1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/compute/v1/compute.proto 18 19 package com.google.cloud.compute.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.Interconnect} 29 */ 30 public final class Interconnect extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.Interconnect) 33 InterconnectOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use Interconnect.newBuilder() to construct. Interconnect(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private Interconnect(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 Interconnect()40 private Interconnect() { 41 circuitInfos_ = java.util.Collections.emptyList(); 42 creationTimestamp_ = ""; 43 customerName_ = ""; 44 description_ = ""; 45 expectedOutages_ = java.util.Collections.emptyList(); 46 googleIpAddress_ = ""; 47 googleReferenceId_ = ""; 48 interconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 49 interconnectType_ = ""; 50 kind_ = ""; 51 linkType_ = ""; 52 location_ = ""; 53 name_ = ""; 54 nocContactEmail_ = ""; 55 operationalStatus_ = ""; 56 peerIpAddress_ = ""; 57 selfLink_ = ""; 58 state_ = ""; 59 } 60 61 @java.lang.Override 62 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)63 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 64 return new Interconnect(); 65 } 66 67 @java.lang.Override getUnknownFields()68 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 69 return this.unknownFields; 70 } 71 getDescriptor()72 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 73 return com.google.cloud.compute.v1.Compute 74 .internal_static_google_cloud_compute_v1_Interconnect_descriptor; 75 } 76 77 @java.lang.Override 78 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()79 internalGetFieldAccessorTable() { 80 return com.google.cloud.compute.v1.Compute 81 .internal_static_google_cloud_compute_v1_Interconnect_fieldAccessorTable 82 .ensureFieldAccessorsInitialized( 83 com.google.cloud.compute.v1.Interconnect.class, 84 com.google.cloud.compute.v1.Interconnect.Builder.class); 85 } 86 87 /** 88 * 89 * 90 * <pre> 91 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 92 * </pre> 93 * 94 * Protobuf enum {@code google.cloud.compute.v1.Interconnect.InterconnectType} 95 */ 96 public enum InterconnectType implements com.google.protobuf.ProtocolMessageEnum { 97 /** 98 * 99 * 100 * <pre> 101 * A value indicating that the enum field is not set. 102 * </pre> 103 * 104 * <code>UNDEFINED_INTERCONNECT_TYPE = 0;</code> 105 */ 106 UNDEFINED_INTERCONNECT_TYPE(0), 107 /** 108 * 109 * 110 * <pre> 111 * A dedicated physical interconnection with the customer. 112 * </pre> 113 * 114 * <code>DEDICATED = 258411983;</code> 115 */ 116 DEDICATED(258411983), 117 /** 118 * 119 * 120 * <pre> 121 * [Deprecated] A private, physical interconnection with the customer. 122 * </pre> 123 * 124 * <code>IT_PRIVATE = 335677007;</code> 125 */ 126 IT_PRIVATE(335677007), 127 /** 128 * 129 * 130 * <pre> 131 * A partner-managed interconnection shared between customers via partner. 132 * </pre> 133 * 134 * <code>PARTNER = 461924520;</code> 135 */ 136 PARTNER(461924520), 137 UNRECOGNIZED(-1), 138 ; 139 140 /** 141 * 142 * 143 * <pre> 144 * A value indicating that the enum field is not set. 145 * </pre> 146 * 147 * <code>UNDEFINED_INTERCONNECT_TYPE = 0;</code> 148 */ 149 public static final int UNDEFINED_INTERCONNECT_TYPE_VALUE = 0; 150 /** 151 * 152 * 153 * <pre> 154 * A dedicated physical interconnection with the customer. 155 * </pre> 156 * 157 * <code>DEDICATED = 258411983;</code> 158 */ 159 public static final int DEDICATED_VALUE = 258411983; 160 /** 161 * 162 * 163 * <pre> 164 * [Deprecated] A private, physical interconnection with the customer. 165 * </pre> 166 * 167 * <code>IT_PRIVATE = 335677007;</code> 168 */ 169 public static final int IT_PRIVATE_VALUE = 335677007; 170 /** 171 * 172 * 173 * <pre> 174 * A partner-managed interconnection shared between customers via partner. 175 * </pre> 176 * 177 * <code>PARTNER = 461924520;</code> 178 */ 179 public static final int PARTNER_VALUE = 461924520; 180 getNumber()181 public final int getNumber() { 182 if (this == UNRECOGNIZED) { 183 throw new java.lang.IllegalArgumentException( 184 "Can't get the number of an unknown enum value."); 185 } 186 return value; 187 } 188 189 /** 190 * @param value The numeric wire value of the corresponding enum entry. 191 * @return The enum associated with the given numeric wire value. 192 * @deprecated Use {@link #forNumber(int)} instead. 193 */ 194 @java.lang.Deprecated valueOf(int value)195 public static InterconnectType valueOf(int value) { 196 return forNumber(value); 197 } 198 199 /** 200 * @param value The numeric wire value of the corresponding enum entry. 201 * @return The enum associated with the given numeric wire value. 202 */ forNumber(int value)203 public static InterconnectType forNumber(int value) { 204 switch (value) { 205 case 0: 206 return UNDEFINED_INTERCONNECT_TYPE; 207 case 258411983: 208 return DEDICATED; 209 case 335677007: 210 return IT_PRIVATE; 211 case 461924520: 212 return PARTNER; 213 default: 214 return null; 215 } 216 } 217 internalGetValueMap()218 public static com.google.protobuf.Internal.EnumLiteMap<InterconnectType> internalGetValueMap() { 219 return internalValueMap; 220 } 221 222 private static final com.google.protobuf.Internal.EnumLiteMap<InterconnectType> 223 internalValueMap = 224 new com.google.protobuf.Internal.EnumLiteMap<InterconnectType>() { 225 public InterconnectType findValueByNumber(int number) { 226 return InterconnectType.forNumber(number); 227 } 228 }; 229 getValueDescriptor()230 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 231 if (this == UNRECOGNIZED) { 232 throw new java.lang.IllegalStateException( 233 "Can't get the descriptor of an unrecognized enum value."); 234 } 235 return getDescriptor().getValues().get(ordinal()); 236 } 237 getDescriptorForType()238 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 239 return getDescriptor(); 240 } 241 getDescriptor()242 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 243 return com.google.cloud.compute.v1.Interconnect.getDescriptor().getEnumTypes().get(0); 244 } 245 246 private static final InterconnectType[] VALUES = values(); 247 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)248 public static InterconnectType valueOf( 249 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 250 if (desc.getType() != getDescriptor()) { 251 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 252 } 253 if (desc.getIndex() == -1) { 254 return UNRECOGNIZED; 255 } 256 return VALUES[desc.getIndex()]; 257 } 258 259 private final int value; 260 InterconnectType(int value)261 private InterconnectType(int value) { 262 this.value = value; 263 } 264 265 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Interconnect.InterconnectType) 266 } 267 268 /** 269 * 270 * 271 * <pre> 272 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 273 * </pre> 274 * 275 * Protobuf enum {@code google.cloud.compute.v1.Interconnect.LinkType} 276 */ 277 public enum LinkType implements com.google.protobuf.ProtocolMessageEnum { 278 /** 279 * 280 * 281 * <pre> 282 * A value indicating that the enum field is not set. 283 * </pre> 284 * 285 * <code>UNDEFINED_LINK_TYPE = 0;</code> 286 */ 287 UNDEFINED_LINK_TYPE(0), 288 /** 289 * 290 * 291 * <pre> 292 * 100G Ethernet, LR Optics. 293 * </pre> 294 * 295 * <code>LINK_TYPE_ETHERNET_100G_LR = 337672551;</code> 296 */ 297 LINK_TYPE_ETHERNET_100G_LR(337672551), 298 /** 299 * 300 * 301 * <pre> 302 * 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; 303 * </pre> 304 * 305 * <code>LINK_TYPE_ETHERNET_10G_LR = 236739749;</code> 306 */ 307 LINK_TYPE_ETHERNET_10G_LR(236739749), 308 UNRECOGNIZED(-1), 309 ; 310 311 /** 312 * 313 * 314 * <pre> 315 * A value indicating that the enum field is not set. 316 * </pre> 317 * 318 * <code>UNDEFINED_LINK_TYPE = 0;</code> 319 */ 320 public static final int UNDEFINED_LINK_TYPE_VALUE = 0; 321 /** 322 * 323 * 324 * <pre> 325 * 100G Ethernet, LR Optics. 326 * </pre> 327 * 328 * <code>LINK_TYPE_ETHERNET_100G_LR = 337672551;</code> 329 */ 330 public static final int LINK_TYPE_ETHERNET_100G_LR_VALUE = 337672551; 331 /** 332 * 333 * 334 * <pre> 335 * 10G Ethernet, LR Optics. [(rate_bps) = 10000000000]; 336 * </pre> 337 * 338 * <code>LINK_TYPE_ETHERNET_10G_LR = 236739749;</code> 339 */ 340 public static final int LINK_TYPE_ETHERNET_10G_LR_VALUE = 236739749; 341 getNumber()342 public final int getNumber() { 343 if (this == UNRECOGNIZED) { 344 throw new java.lang.IllegalArgumentException( 345 "Can't get the number of an unknown enum value."); 346 } 347 return value; 348 } 349 350 /** 351 * @param value The numeric wire value of the corresponding enum entry. 352 * @return The enum associated with the given numeric wire value. 353 * @deprecated Use {@link #forNumber(int)} instead. 354 */ 355 @java.lang.Deprecated valueOf(int value)356 public static LinkType valueOf(int value) { 357 return forNumber(value); 358 } 359 360 /** 361 * @param value The numeric wire value of the corresponding enum entry. 362 * @return The enum associated with the given numeric wire value. 363 */ forNumber(int value)364 public static LinkType forNumber(int value) { 365 switch (value) { 366 case 0: 367 return UNDEFINED_LINK_TYPE; 368 case 337672551: 369 return LINK_TYPE_ETHERNET_100G_LR; 370 case 236739749: 371 return LINK_TYPE_ETHERNET_10G_LR; 372 default: 373 return null; 374 } 375 } 376 internalGetValueMap()377 public static com.google.protobuf.Internal.EnumLiteMap<LinkType> internalGetValueMap() { 378 return internalValueMap; 379 } 380 381 private static final com.google.protobuf.Internal.EnumLiteMap<LinkType> internalValueMap = 382 new com.google.protobuf.Internal.EnumLiteMap<LinkType>() { 383 public LinkType findValueByNumber(int number) { 384 return LinkType.forNumber(number); 385 } 386 }; 387 getValueDescriptor()388 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 389 if (this == UNRECOGNIZED) { 390 throw new java.lang.IllegalStateException( 391 "Can't get the descriptor of an unrecognized enum value."); 392 } 393 return getDescriptor().getValues().get(ordinal()); 394 } 395 getDescriptorForType()396 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 397 return getDescriptor(); 398 } 399 getDescriptor()400 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 401 return com.google.cloud.compute.v1.Interconnect.getDescriptor().getEnumTypes().get(1); 402 } 403 404 private static final LinkType[] VALUES = values(); 405 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)406 public static LinkType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 407 if (desc.getType() != getDescriptor()) { 408 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 409 } 410 if (desc.getIndex() == -1) { 411 return UNRECOGNIZED; 412 } 413 return VALUES[desc.getIndex()]; 414 } 415 416 private final int value; 417 LinkType(int value)418 private LinkType(int value) { 419 this.value = value; 420 } 421 422 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Interconnect.LinkType) 423 } 424 425 /** 426 * 427 * 428 * <pre> 429 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 430 * </pre> 431 * 432 * Protobuf enum {@code google.cloud.compute.v1.Interconnect.OperationalStatus} 433 */ 434 public enum OperationalStatus implements com.google.protobuf.ProtocolMessageEnum { 435 /** 436 * 437 * 438 * <pre> 439 * A value indicating that the enum field is not set. 440 * </pre> 441 * 442 * <code>UNDEFINED_OPERATIONAL_STATUS = 0;</code> 443 */ 444 UNDEFINED_OPERATIONAL_STATUS(0), 445 /** 446 * 447 * 448 * <pre> 449 * The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect. 450 * </pre> 451 * 452 * <code>OS_ACTIVE = 55721409;</code> 453 */ 454 OS_ACTIVE(55721409), 455 /** 456 * 457 * 458 * <pre> 459 * The interconnect has not completed turnup. No attachments may be provisioned on this interconnect. 460 * </pre> 461 * 462 * <code>OS_UNPROVISIONED = 239771840;</code> 463 */ 464 OS_UNPROVISIONED(239771840), 465 UNRECOGNIZED(-1), 466 ; 467 468 /** 469 * 470 * 471 * <pre> 472 * A value indicating that the enum field is not set. 473 * </pre> 474 * 475 * <code>UNDEFINED_OPERATIONAL_STATUS = 0;</code> 476 */ 477 public static final int UNDEFINED_OPERATIONAL_STATUS_VALUE = 0; 478 /** 479 * 480 * 481 * <pre> 482 * The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect. 483 * </pre> 484 * 485 * <code>OS_ACTIVE = 55721409;</code> 486 */ 487 public static final int OS_ACTIVE_VALUE = 55721409; 488 /** 489 * 490 * 491 * <pre> 492 * The interconnect has not completed turnup. No attachments may be provisioned on this interconnect. 493 * </pre> 494 * 495 * <code>OS_UNPROVISIONED = 239771840;</code> 496 */ 497 public static final int OS_UNPROVISIONED_VALUE = 239771840; 498 getNumber()499 public final int getNumber() { 500 if (this == UNRECOGNIZED) { 501 throw new java.lang.IllegalArgumentException( 502 "Can't get the number of an unknown enum value."); 503 } 504 return value; 505 } 506 507 /** 508 * @param value The numeric wire value of the corresponding enum entry. 509 * @return The enum associated with the given numeric wire value. 510 * @deprecated Use {@link #forNumber(int)} instead. 511 */ 512 @java.lang.Deprecated valueOf(int value)513 public static OperationalStatus valueOf(int value) { 514 return forNumber(value); 515 } 516 517 /** 518 * @param value The numeric wire value of the corresponding enum entry. 519 * @return The enum associated with the given numeric wire value. 520 */ forNumber(int value)521 public static OperationalStatus forNumber(int value) { 522 switch (value) { 523 case 0: 524 return UNDEFINED_OPERATIONAL_STATUS; 525 case 55721409: 526 return OS_ACTIVE; 527 case 239771840: 528 return OS_UNPROVISIONED; 529 default: 530 return null; 531 } 532 } 533 534 public static com.google.protobuf.Internal.EnumLiteMap<OperationalStatus> internalGetValueMap()535 internalGetValueMap() { 536 return internalValueMap; 537 } 538 539 private static final com.google.protobuf.Internal.EnumLiteMap<OperationalStatus> 540 internalValueMap = 541 new com.google.protobuf.Internal.EnumLiteMap<OperationalStatus>() { 542 public OperationalStatus findValueByNumber(int number) { 543 return OperationalStatus.forNumber(number); 544 } 545 }; 546 getValueDescriptor()547 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 548 if (this == UNRECOGNIZED) { 549 throw new java.lang.IllegalStateException( 550 "Can't get the descriptor of an unrecognized enum value."); 551 } 552 return getDescriptor().getValues().get(ordinal()); 553 } 554 getDescriptorForType()555 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 556 return getDescriptor(); 557 } 558 getDescriptor()559 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 560 return com.google.cloud.compute.v1.Interconnect.getDescriptor().getEnumTypes().get(2); 561 } 562 563 private static final OperationalStatus[] VALUES = values(); 564 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)565 public static OperationalStatus valueOf( 566 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 567 if (desc.getType() != getDescriptor()) { 568 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 569 } 570 if (desc.getIndex() == -1) { 571 return UNRECOGNIZED; 572 } 573 return VALUES[desc.getIndex()]; 574 } 575 576 private final int value; 577 OperationalStatus(int value)578 private OperationalStatus(int value) { 579 this.value = value; 580 } 581 582 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Interconnect.OperationalStatus) 583 } 584 585 /** 586 * 587 * 588 * <pre> 589 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 590 * </pre> 591 * 592 * Protobuf enum {@code google.cloud.compute.v1.Interconnect.State} 593 */ 594 public enum State implements com.google.protobuf.ProtocolMessageEnum { 595 /** 596 * 597 * 598 * <pre> 599 * A value indicating that the enum field is not set. 600 * </pre> 601 * 602 * <code>UNDEFINED_STATE = 0;</code> 603 */ 604 UNDEFINED_STATE(0), 605 /** 606 * 607 * 608 * <pre> 609 * The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect. 610 * </pre> 611 * 612 * <code>ACTIVE = 314733318;</code> 613 */ 614 ACTIVE(314733318), 615 /** 616 * 617 * 618 * <pre> 619 * The interconnect has not completed turnup. No attachments may be provisioned on this interconnect. 620 * </pre> 621 * 622 * <code>UNPROVISIONED = 517333979;</code> 623 */ 624 UNPROVISIONED(517333979), 625 UNRECOGNIZED(-1), 626 ; 627 628 /** 629 * 630 * 631 * <pre> 632 * A value indicating that the enum field is not set. 633 * </pre> 634 * 635 * <code>UNDEFINED_STATE = 0;</code> 636 */ 637 public static final int UNDEFINED_STATE_VALUE = 0; 638 /** 639 * 640 * 641 * <pre> 642 * The interconnect is valid, turned up, and ready to use. Attachments may be provisioned on this interconnect. 643 * </pre> 644 * 645 * <code>ACTIVE = 314733318;</code> 646 */ 647 public static final int ACTIVE_VALUE = 314733318; 648 /** 649 * 650 * 651 * <pre> 652 * The interconnect has not completed turnup. No attachments may be provisioned on this interconnect. 653 * </pre> 654 * 655 * <code>UNPROVISIONED = 517333979;</code> 656 */ 657 public static final int UNPROVISIONED_VALUE = 517333979; 658 getNumber()659 public final int getNumber() { 660 if (this == UNRECOGNIZED) { 661 throw new java.lang.IllegalArgumentException( 662 "Can't get the number of an unknown enum value."); 663 } 664 return value; 665 } 666 667 /** 668 * @param value The numeric wire value of the corresponding enum entry. 669 * @return The enum associated with the given numeric wire value. 670 * @deprecated Use {@link #forNumber(int)} instead. 671 */ 672 @java.lang.Deprecated valueOf(int value)673 public static State valueOf(int value) { 674 return forNumber(value); 675 } 676 677 /** 678 * @param value The numeric wire value of the corresponding enum entry. 679 * @return The enum associated with the given numeric wire value. 680 */ forNumber(int value)681 public static State forNumber(int value) { 682 switch (value) { 683 case 0: 684 return UNDEFINED_STATE; 685 case 314733318: 686 return ACTIVE; 687 case 517333979: 688 return UNPROVISIONED; 689 default: 690 return null; 691 } 692 } 693 internalGetValueMap()694 public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { 695 return internalValueMap; 696 } 697 698 private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = 699 new com.google.protobuf.Internal.EnumLiteMap<State>() { 700 public State findValueByNumber(int number) { 701 return State.forNumber(number); 702 } 703 }; 704 getValueDescriptor()705 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 706 if (this == UNRECOGNIZED) { 707 throw new java.lang.IllegalStateException( 708 "Can't get the descriptor of an unrecognized enum value."); 709 } 710 return getDescriptor().getValues().get(ordinal()); 711 } 712 getDescriptorForType()713 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 714 return getDescriptor(); 715 } 716 getDescriptor()717 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 718 return com.google.cloud.compute.v1.Interconnect.getDescriptor().getEnumTypes().get(3); 719 } 720 721 private static final State[] VALUES = values(); 722 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)723 public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 724 if (desc.getType() != getDescriptor()) { 725 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 726 } 727 if (desc.getIndex() == -1) { 728 return UNRECOGNIZED; 729 } 730 return VALUES[desc.getIndex()]; 731 } 732 733 private final int value; 734 State(int value)735 private State(int value) { 736 this.value = value; 737 } 738 739 // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.Interconnect.State) 740 } 741 742 private int bitField0_; 743 public static final int ADMIN_ENABLED_FIELD_NUMBER = 445675089; 744 private boolean adminEnabled_ = false; 745 /** 746 * 747 * 748 * <pre> 749 * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. 750 * </pre> 751 * 752 * <code>optional bool admin_enabled = 445675089;</code> 753 * 754 * @return Whether the adminEnabled field is set. 755 */ 756 @java.lang.Override hasAdminEnabled()757 public boolean hasAdminEnabled() { 758 return ((bitField0_ & 0x00000001) != 0); 759 } 760 /** 761 * 762 * 763 * <pre> 764 * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. 765 * </pre> 766 * 767 * <code>optional bool admin_enabled = 445675089;</code> 768 * 769 * @return The adminEnabled. 770 */ 771 @java.lang.Override getAdminEnabled()772 public boolean getAdminEnabled() { 773 return adminEnabled_; 774 } 775 776 public static final int CIRCUIT_INFOS_FIELD_NUMBER = 164839855; 777 778 @SuppressWarnings("serial") 779 private java.util.List<com.google.cloud.compute.v1.InterconnectCircuitInfo> circuitInfos_; 780 /** 781 * 782 * 783 * <pre> 784 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 785 * </pre> 786 * 787 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 788 * </code> 789 */ 790 @java.lang.Override getCircuitInfosList()791 public java.util.List<com.google.cloud.compute.v1.InterconnectCircuitInfo> getCircuitInfosList() { 792 return circuitInfos_; 793 } 794 /** 795 * 796 * 797 * <pre> 798 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 799 * </pre> 800 * 801 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 802 * </code> 803 */ 804 @java.lang.Override 805 public java.util.List<? extends com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder> getCircuitInfosOrBuilderList()806 getCircuitInfosOrBuilderList() { 807 return circuitInfos_; 808 } 809 /** 810 * 811 * 812 * <pre> 813 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 814 * </pre> 815 * 816 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 817 * </code> 818 */ 819 @java.lang.Override getCircuitInfosCount()820 public int getCircuitInfosCount() { 821 return circuitInfos_.size(); 822 } 823 /** 824 * 825 * 826 * <pre> 827 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 828 * </pre> 829 * 830 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 831 * </code> 832 */ 833 @java.lang.Override getCircuitInfos(int index)834 public com.google.cloud.compute.v1.InterconnectCircuitInfo getCircuitInfos(int index) { 835 return circuitInfos_.get(index); 836 } 837 /** 838 * 839 * 840 * <pre> 841 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 842 * </pre> 843 * 844 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 845 * </code> 846 */ 847 @java.lang.Override getCircuitInfosOrBuilder( int index)848 public com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder getCircuitInfosOrBuilder( 849 int index) { 850 return circuitInfos_.get(index); 851 } 852 853 public static final int CREATION_TIMESTAMP_FIELD_NUMBER = 30525366; 854 855 @SuppressWarnings("serial") 856 private volatile java.lang.Object creationTimestamp_ = ""; 857 /** 858 * 859 * 860 * <pre> 861 * [Output Only] Creation timestamp in RFC3339 text format. 862 * </pre> 863 * 864 * <code>optional string creation_timestamp = 30525366;</code> 865 * 866 * @return Whether the creationTimestamp field is set. 867 */ 868 @java.lang.Override hasCreationTimestamp()869 public boolean hasCreationTimestamp() { 870 return ((bitField0_ & 0x00000002) != 0); 871 } 872 /** 873 * 874 * 875 * <pre> 876 * [Output Only] Creation timestamp in RFC3339 text format. 877 * </pre> 878 * 879 * <code>optional string creation_timestamp = 30525366;</code> 880 * 881 * @return The creationTimestamp. 882 */ 883 @java.lang.Override getCreationTimestamp()884 public java.lang.String getCreationTimestamp() { 885 java.lang.Object ref = creationTimestamp_; 886 if (ref instanceof java.lang.String) { 887 return (java.lang.String) ref; 888 } else { 889 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 890 java.lang.String s = bs.toStringUtf8(); 891 creationTimestamp_ = s; 892 return s; 893 } 894 } 895 /** 896 * 897 * 898 * <pre> 899 * [Output Only] Creation timestamp in RFC3339 text format. 900 * </pre> 901 * 902 * <code>optional string creation_timestamp = 30525366;</code> 903 * 904 * @return The bytes for creationTimestamp. 905 */ 906 @java.lang.Override getCreationTimestampBytes()907 public com.google.protobuf.ByteString getCreationTimestampBytes() { 908 java.lang.Object ref = creationTimestamp_; 909 if (ref instanceof java.lang.String) { 910 com.google.protobuf.ByteString b = 911 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 912 creationTimestamp_ = b; 913 return b; 914 } else { 915 return (com.google.protobuf.ByteString) ref; 916 } 917 } 918 919 public static final int CUSTOMER_NAME_FIELD_NUMBER = 3665484; 920 921 @SuppressWarnings("serial") 922 private volatile java.lang.Object customerName_ = ""; 923 /** 924 * 925 * 926 * <pre> 927 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 928 * </pre> 929 * 930 * <code>optional string customer_name = 3665484;</code> 931 * 932 * @return Whether the customerName field is set. 933 */ 934 @java.lang.Override hasCustomerName()935 public boolean hasCustomerName() { 936 return ((bitField0_ & 0x00000004) != 0); 937 } 938 /** 939 * 940 * 941 * <pre> 942 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 943 * </pre> 944 * 945 * <code>optional string customer_name = 3665484;</code> 946 * 947 * @return The customerName. 948 */ 949 @java.lang.Override getCustomerName()950 public java.lang.String getCustomerName() { 951 java.lang.Object ref = customerName_; 952 if (ref instanceof java.lang.String) { 953 return (java.lang.String) ref; 954 } else { 955 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 956 java.lang.String s = bs.toStringUtf8(); 957 customerName_ = s; 958 return s; 959 } 960 } 961 /** 962 * 963 * 964 * <pre> 965 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 966 * </pre> 967 * 968 * <code>optional string customer_name = 3665484;</code> 969 * 970 * @return The bytes for customerName. 971 */ 972 @java.lang.Override getCustomerNameBytes()973 public com.google.protobuf.ByteString getCustomerNameBytes() { 974 java.lang.Object ref = customerName_; 975 if (ref instanceof java.lang.String) { 976 com.google.protobuf.ByteString b = 977 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 978 customerName_ = b; 979 return b; 980 } else { 981 return (com.google.protobuf.ByteString) ref; 982 } 983 } 984 985 public static final int DESCRIPTION_FIELD_NUMBER = 422937596; 986 987 @SuppressWarnings("serial") 988 private volatile java.lang.Object description_ = ""; 989 /** 990 * 991 * 992 * <pre> 993 * An optional description of this resource. Provide this property when you create the resource. 994 * </pre> 995 * 996 * <code>optional string description = 422937596;</code> 997 * 998 * @return Whether the description field is set. 999 */ 1000 @java.lang.Override hasDescription()1001 public boolean hasDescription() { 1002 return ((bitField0_ & 0x00000008) != 0); 1003 } 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * An optional description of this resource. Provide this property when you create the resource. 1009 * </pre> 1010 * 1011 * <code>optional string description = 422937596;</code> 1012 * 1013 * @return The description. 1014 */ 1015 @java.lang.Override getDescription()1016 public java.lang.String getDescription() { 1017 java.lang.Object ref = description_; 1018 if (ref instanceof java.lang.String) { 1019 return (java.lang.String) ref; 1020 } else { 1021 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1022 java.lang.String s = bs.toStringUtf8(); 1023 description_ = s; 1024 return s; 1025 } 1026 } 1027 /** 1028 * 1029 * 1030 * <pre> 1031 * An optional description of this resource. Provide this property when you create the resource. 1032 * </pre> 1033 * 1034 * <code>optional string description = 422937596;</code> 1035 * 1036 * @return The bytes for description. 1037 */ 1038 @java.lang.Override getDescriptionBytes()1039 public com.google.protobuf.ByteString getDescriptionBytes() { 1040 java.lang.Object ref = description_; 1041 if (ref instanceof java.lang.String) { 1042 com.google.protobuf.ByteString b = 1043 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1044 description_ = b; 1045 return b; 1046 } else { 1047 return (com.google.protobuf.ByteString) ref; 1048 } 1049 } 1050 1051 public static final int EXPECTED_OUTAGES_FIELD_NUMBER = 264484123; 1052 1053 @SuppressWarnings("serial") 1054 private java.util.List<com.google.cloud.compute.v1.InterconnectOutageNotification> 1055 expectedOutages_; 1056 /** 1057 * 1058 * 1059 * <pre> 1060 * [Output Only] A list of outages expected for this Interconnect. 1061 * </pre> 1062 * 1063 * <code> 1064 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 1065 * </code> 1066 */ 1067 @java.lang.Override 1068 public java.util.List<com.google.cloud.compute.v1.InterconnectOutageNotification> getExpectedOutagesList()1069 getExpectedOutagesList() { 1070 return expectedOutages_; 1071 } 1072 /** 1073 * 1074 * 1075 * <pre> 1076 * [Output Only] A list of outages expected for this Interconnect. 1077 * </pre> 1078 * 1079 * <code> 1080 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 1081 * </code> 1082 */ 1083 @java.lang.Override 1084 public java.util.List< 1085 ? extends com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder> getExpectedOutagesOrBuilderList()1086 getExpectedOutagesOrBuilderList() { 1087 return expectedOutages_; 1088 } 1089 /** 1090 * 1091 * 1092 * <pre> 1093 * [Output Only] A list of outages expected for this Interconnect. 1094 * </pre> 1095 * 1096 * <code> 1097 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 1098 * </code> 1099 */ 1100 @java.lang.Override getExpectedOutagesCount()1101 public int getExpectedOutagesCount() { 1102 return expectedOutages_.size(); 1103 } 1104 /** 1105 * 1106 * 1107 * <pre> 1108 * [Output Only] A list of outages expected for this Interconnect. 1109 * </pre> 1110 * 1111 * <code> 1112 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 1113 * </code> 1114 */ 1115 @java.lang.Override getExpectedOutages(int index)1116 public com.google.cloud.compute.v1.InterconnectOutageNotification getExpectedOutages(int index) { 1117 return expectedOutages_.get(index); 1118 } 1119 /** 1120 * 1121 * 1122 * <pre> 1123 * [Output Only] A list of outages expected for this Interconnect. 1124 * </pre> 1125 * 1126 * <code> 1127 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 1128 * </code> 1129 */ 1130 @java.lang.Override 1131 public com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder getExpectedOutagesOrBuilder(int index)1132 getExpectedOutagesOrBuilder(int index) { 1133 return expectedOutages_.get(index); 1134 } 1135 1136 public static final int GOOGLE_IP_ADDRESS_FIELD_NUMBER = 443105954; 1137 1138 @SuppressWarnings("serial") 1139 private volatile java.lang.Object googleIpAddress_ = ""; 1140 /** 1141 * 1142 * 1143 * <pre> 1144 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 1145 * </pre> 1146 * 1147 * <code>optional string google_ip_address = 443105954;</code> 1148 * 1149 * @return Whether the googleIpAddress field is set. 1150 */ 1151 @java.lang.Override hasGoogleIpAddress()1152 public boolean hasGoogleIpAddress() { 1153 return ((bitField0_ & 0x00000010) != 0); 1154 } 1155 /** 1156 * 1157 * 1158 * <pre> 1159 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 1160 * </pre> 1161 * 1162 * <code>optional string google_ip_address = 443105954;</code> 1163 * 1164 * @return The googleIpAddress. 1165 */ 1166 @java.lang.Override getGoogleIpAddress()1167 public java.lang.String getGoogleIpAddress() { 1168 java.lang.Object ref = googleIpAddress_; 1169 if (ref instanceof java.lang.String) { 1170 return (java.lang.String) ref; 1171 } else { 1172 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1173 java.lang.String s = bs.toStringUtf8(); 1174 googleIpAddress_ = s; 1175 return s; 1176 } 1177 } 1178 /** 1179 * 1180 * 1181 * <pre> 1182 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 1183 * </pre> 1184 * 1185 * <code>optional string google_ip_address = 443105954;</code> 1186 * 1187 * @return The bytes for googleIpAddress. 1188 */ 1189 @java.lang.Override getGoogleIpAddressBytes()1190 public com.google.protobuf.ByteString getGoogleIpAddressBytes() { 1191 java.lang.Object ref = googleIpAddress_; 1192 if (ref instanceof java.lang.String) { 1193 com.google.protobuf.ByteString b = 1194 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1195 googleIpAddress_ = b; 1196 return b; 1197 } else { 1198 return (com.google.protobuf.ByteString) ref; 1199 } 1200 } 1201 1202 public static final int GOOGLE_REFERENCE_ID_FIELD_NUMBER = 534944469; 1203 1204 @SuppressWarnings("serial") 1205 private volatile java.lang.Object googleReferenceId_ = ""; 1206 /** 1207 * 1208 * 1209 * <pre> 1210 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 1211 * </pre> 1212 * 1213 * <code>optional string google_reference_id = 534944469;</code> 1214 * 1215 * @return Whether the googleReferenceId field is set. 1216 */ 1217 @java.lang.Override hasGoogleReferenceId()1218 public boolean hasGoogleReferenceId() { 1219 return ((bitField0_ & 0x00000020) != 0); 1220 } 1221 /** 1222 * 1223 * 1224 * <pre> 1225 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 1226 * </pre> 1227 * 1228 * <code>optional string google_reference_id = 534944469;</code> 1229 * 1230 * @return The googleReferenceId. 1231 */ 1232 @java.lang.Override getGoogleReferenceId()1233 public java.lang.String getGoogleReferenceId() { 1234 java.lang.Object ref = googleReferenceId_; 1235 if (ref instanceof java.lang.String) { 1236 return (java.lang.String) ref; 1237 } else { 1238 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1239 java.lang.String s = bs.toStringUtf8(); 1240 googleReferenceId_ = s; 1241 return s; 1242 } 1243 } 1244 /** 1245 * 1246 * 1247 * <pre> 1248 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 1249 * </pre> 1250 * 1251 * <code>optional string google_reference_id = 534944469;</code> 1252 * 1253 * @return The bytes for googleReferenceId. 1254 */ 1255 @java.lang.Override getGoogleReferenceIdBytes()1256 public com.google.protobuf.ByteString getGoogleReferenceIdBytes() { 1257 java.lang.Object ref = googleReferenceId_; 1258 if (ref instanceof java.lang.String) { 1259 com.google.protobuf.ByteString b = 1260 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1261 googleReferenceId_ = b; 1262 return b; 1263 } else { 1264 return (com.google.protobuf.ByteString) ref; 1265 } 1266 } 1267 1268 public static final int ID_FIELD_NUMBER = 3355; 1269 private long id_ = 0L; 1270 /** 1271 * 1272 * 1273 * <pre> 1274 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1275 * </pre> 1276 * 1277 * <code>optional uint64 id = 3355;</code> 1278 * 1279 * @return Whether the id field is set. 1280 */ 1281 @java.lang.Override hasId()1282 public boolean hasId() { 1283 return ((bitField0_ & 0x00000040) != 0); 1284 } 1285 /** 1286 * 1287 * 1288 * <pre> 1289 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1290 * </pre> 1291 * 1292 * <code>optional uint64 id = 3355;</code> 1293 * 1294 * @return The id. 1295 */ 1296 @java.lang.Override getId()1297 public long getId() { 1298 return id_; 1299 } 1300 1301 public static final int INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 425388415; 1302 1303 @SuppressWarnings("serial") 1304 private com.google.protobuf.LazyStringList interconnectAttachments_; 1305 /** 1306 * 1307 * 1308 * <pre> 1309 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 1310 * </pre> 1311 * 1312 * <code>repeated string interconnect_attachments = 425388415;</code> 1313 * 1314 * @return A list containing the interconnectAttachments. 1315 */ getInterconnectAttachmentsList()1316 public com.google.protobuf.ProtocolStringList getInterconnectAttachmentsList() { 1317 return interconnectAttachments_; 1318 } 1319 /** 1320 * 1321 * 1322 * <pre> 1323 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 1324 * </pre> 1325 * 1326 * <code>repeated string interconnect_attachments = 425388415;</code> 1327 * 1328 * @return The count of interconnectAttachments. 1329 */ getInterconnectAttachmentsCount()1330 public int getInterconnectAttachmentsCount() { 1331 return interconnectAttachments_.size(); 1332 } 1333 /** 1334 * 1335 * 1336 * <pre> 1337 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 1338 * </pre> 1339 * 1340 * <code>repeated string interconnect_attachments = 425388415;</code> 1341 * 1342 * @param index The index of the element to return. 1343 * @return The interconnectAttachments at the given index. 1344 */ getInterconnectAttachments(int index)1345 public java.lang.String getInterconnectAttachments(int index) { 1346 return interconnectAttachments_.get(index); 1347 } 1348 /** 1349 * 1350 * 1351 * <pre> 1352 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 1353 * </pre> 1354 * 1355 * <code>repeated string interconnect_attachments = 425388415;</code> 1356 * 1357 * @param index The index of the value to return. 1358 * @return The bytes of the interconnectAttachments at the given index. 1359 */ getInterconnectAttachmentsBytes(int index)1360 public com.google.protobuf.ByteString getInterconnectAttachmentsBytes(int index) { 1361 return interconnectAttachments_.getByteString(index); 1362 } 1363 1364 public static final int INTERCONNECT_TYPE_FIELD_NUMBER = 515165259; 1365 1366 @SuppressWarnings("serial") 1367 private volatile java.lang.Object interconnectType_ = ""; 1368 /** 1369 * 1370 * 1371 * <pre> 1372 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 1373 * Check the InterconnectType enum for the list of possible values. 1374 * </pre> 1375 * 1376 * <code>optional string interconnect_type = 515165259;</code> 1377 * 1378 * @return Whether the interconnectType field is set. 1379 */ 1380 @java.lang.Override hasInterconnectType()1381 public boolean hasInterconnectType() { 1382 return ((bitField0_ & 0x00000080) != 0); 1383 } 1384 /** 1385 * 1386 * 1387 * <pre> 1388 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 1389 * Check the InterconnectType enum for the list of possible values. 1390 * </pre> 1391 * 1392 * <code>optional string interconnect_type = 515165259;</code> 1393 * 1394 * @return The interconnectType. 1395 */ 1396 @java.lang.Override getInterconnectType()1397 public java.lang.String getInterconnectType() { 1398 java.lang.Object ref = interconnectType_; 1399 if (ref instanceof java.lang.String) { 1400 return (java.lang.String) ref; 1401 } else { 1402 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1403 java.lang.String s = bs.toStringUtf8(); 1404 interconnectType_ = s; 1405 return s; 1406 } 1407 } 1408 /** 1409 * 1410 * 1411 * <pre> 1412 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 1413 * Check the InterconnectType enum for the list of possible values. 1414 * </pre> 1415 * 1416 * <code>optional string interconnect_type = 515165259;</code> 1417 * 1418 * @return The bytes for interconnectType. 1419 */ 1420 @java.lang.Override getInterconnectTypeBytes()1421 public com.google.protobuf.ByteString getInterconnectTypeBytes() { 1422 java.lang.Object ref = interconnectType_; 1423 if (ref instanceof java.lang.String) { 1424 com.google.protobuf.ByteString b = 1425 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1426 interconnectType_ = b; 1427 return b; 1428 } else { 1429 return (com.google.protobuf.ByteString) ref; 1430 } 1431 } 1432 1433 public static final int KIND_FIELD_NUMBER = 3292052; 1434 1435 @SuppressWarnings("serial") 1436 private volatile java.lang.Object kind_ = ""; 1437 /** 1438 * 1439 * 1440 * <pre> 1441 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 1442 * </pre> 1443 * 1444 * <code>optional string kind = 3292052;</code> 1445 * 1446 * @return Whether the kind field is set. 1447 */ 1448 @java.lang.Override hasKind()1449 public boolean hasKind() { 1450 return ((bitField0_ & 0x00000100) != 0); 1451 } 1452 /** 1453 * 1454 * 1455 * <pre> 1456 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 1457 * </pre> 1458 * 1459 * <code>optional string kind = 3292052;</code> 1460 * 1461 * @return The kind. 1462 */ 1463 @java.lang.Override getKind()1464 public java.lang.String getKind() { 1465 java.lang.Object ref = kind_; 1466 if (ref instanceof java.lang.String) { 1467 return (java.lang.String) ref; 1468 } else { 1469 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1470 java.lang.String s = bs.toStringUtf8(); 1471 kind_ = s; 1472 return s; 1473 } 1474 } 1475 /** 1476 * 1477 * 1478 * <pre> 1479 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 1480 * </pre> 1481 * 1482 * <code>optional string kind = 3292052;</code> 1483 * 1484 * @return The bytes for kind. 1485 */ 1486 @java.lang.Override getKindBytes()1487 public com.google.protobuf.ByteString getKindBytes() { 1488 java.lang.Object ref = kind_; 1489 if (ref instanceof java.lang.String) { 1490 com.google.protobuf.ByteString b = 1491 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1492 kind_ = b; 1493 return b; 1494 } else { 1495 return (com.google.protobuf.ByteString) ref; 1496 } 1497 } 1498 1499 public static final int LINK_TYPE_FIELD_NUMBER = 523207775; 1500 1501 @SuppressWarnings("serial") 1502 private volatile java.lang.Object linkType_ = ""; 1503 /** 1504 * 1505 * 1506 * <pre> 1507 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 1508 * Check the LinkType enum for the list of possible values. 1509 * </pre> 1510 * 1511 * <code>optional string link_type = 523207775;</code> 1512 * 1513 * @return Whether the linkType field is set. 1514 */ 1515 @java.lang.Override hasLinkType()1516 public boolean hasLinkType() { 1517 return ((bitField0_ & 0x00000200) != 0); 1518 } 1519 /** 1520 * 1521 * 1522 * <pre> 1523 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 1524 * Check the LinkType enum for the list of possible values. 1525 * </pre> 1526 * 1527 * <code>optional string link_type = 523207775;</code> 1528 * 1529 * @return The linkType. 1530 */ 1531 @java.lang.Override getLinkType()1532 public java.lang.String getLinkType() { 1533 java.lang.Object ref = linkType_; 1534 if (ref instanceof java.lang.String) { 1535 return (java.lang.String) ref; 1536 } else { 1537 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1538 java.lang.String s = bs.toStringUtf8(); 1539 linkType_ = s; 1540 return s; 1541 } 1542 } 1543 /** 1544 * 1545 * 1546 * <pre> 1547 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 1548 * Check the LinkType enum for the list of possible values. 1549 * </pre> 1550 * 1551 * <code>optional string link_type = 523207775;</code> 1552 * 1553 * @return The bytes for linkType. 1554 */ 1555 @java.lang.Override getLinkTypeBytes()1556 public com.google.protobuf.ByteString getLinkTypeBytes() { 1557 java.lang.Object ref = linkType_; 1558 if (ref instanceof java.lang.String) { 1559 com.google.protobuf.ByteString b = 1560 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1561 linkType_ = b; 1562 return b; 1563 } else { 1564 return (com.google.protobuf.ByteString) ref; 1565 } 1566 } 1567 1568 public static final int LOCATION_FIELD_NUMBER = 290430901; 1569 1570 @SuppressWarnings("serial") 1571 private volatile java.lang.Object location_ = ""; 1572 /** 1573 * 1574 * 1575 * <pre> 1576 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 1577 * </pre> 1578 * 1579 * <code>optional string location = 290430901;</code> 1580 * 1581 * @return Whether the location field is set. 1582 */ 1583 @java.lang.Override hasLocation()1584 public boolean hasLocation() { 1585 return ((bitField0_ & 0x00000400) != 0); 1586 } 1587 /** 1588 * 1589 * 1590 * <pre> 1591 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 1592 * </pre> 1593 * 1594 * <code>optional string location = 290430901;</code> 1595 * 1596 * @return The location. 1597 */ 1598 @java.lang.Override getLocation()1599 public java.lang.String getLocation() { 1600 java.lang.Object ref = location_; 1601 if (ref instanceof java.lang.String) { 1602 return (java.lang.String) ref; 1603 } else { 1604 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1605 java.lang.String s = bs.toStringUtf8(); 1606 location_ = s; 1607 return s; 1608 } 1609 } 1610 /** 1611 * 1612 * 1613 * <pre> 1614 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 1615 * </pre> 1616 * 1617 * <code>optional string location = 290430901;</code> 1618 * 1619 * @return The bytes for location. 1620 */ 1621 @java.lang.Override getLocationBytes()1622 public com.google.protobuf.ByteString getLocationBytes() { 1623 java.lang.Object ref = location_; 1624 if (ref instanceof java.lang.String) { 1625 com.google.protobuf.ByteString b = 1626 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1627 location_ = b; 1628 return b; 1629 } else { 1630 return (com.google.protobuf.ByteString) ref; 1631 } 1632 } 1633 1634 public static final int NAME_FIELD_NUMBER = 3373707; 1635 1636 @SuppressWarnings("serial") 1637 private volatile java.lang.Object name_ = ""; 1638 /** 1639 * 1640 * 1641 * <pre> 1642 * 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. 1643 * </pre> 1644 * 1645 * <code>optional string name = 3373707;</code> 1646 * 1647 * @return Whether the name field is set. 1648 */ 1649 @java.lang.Override hasName()1650 public boolean hasName() { 1651 return ((bitField0_ & 0x00000800) != 0); 1652 } 1653 /** 1654 * 1655 * 1656 * <pre> 1657 * 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. 1658 * </pre> 1659 * 1660 * <code>optional string name = 3373707;</code> 1661 * 1662 * @return The name. 1663 */ 1664 @java.lang.Override getName()1665 public java.lang.String getName() { 1666 java.lang.Object ref = name_; 1667 if (ref instanceof java.lang.String) { 1668 return (java.lang.String) ref; 1669 } else { 1670 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1671 java.lang.String s = bs.toStringUtf8(); 1672 name_ = s; 1673 return s; 1674 } 1675 } 1676 /** 1677 * 1678 * 1679 * <pre> 1680 * 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. 1681 * </pre> 1682 * 1683 * <code>optional string name = 3373707;</code> 1684 * 1685 * @return The bytes for name. 1686 */ 1687 @java.lang.Override getNameBytes()1688 public com.google.protobuf.ByteString getNameBytes() { 1689 java.lang.Object ref = name_; 1690 if (ref instanceof java.lang.String) { 1691 com.google.protobuf.ByteString b = 1692 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1693 name_ = b; 1694 return b; 1695 } else { 1696 return (com.google.protobuf.ByteString) ref; 1697 } 1698 } 1699 1700 public static final int NOC_CONTACT_EMAIL_FIELD_NUMBER = 14072832; 1701 1702 @SuppressWarnings("serial") 1703 private volatile java.lang.Object nocContactEmail_ = ""; 1704 /** 1705 * 1706 * 1707 * <pre> 1708 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 1709 * </pre> 1710 * 1711 * <code>optional string noc_contact_email = 14072832;</code> 1712 * 1713 * @return Whether the nocContactEmail field is set. 1714 */ 1715 @java.lang.Override hasNocContactEmail()1716 public boolean hasNocContactEmail() { 1717 return ((bitField0_ & 0x00001000) != 0); 1718 } 1719 /** 1720 * 1721 * 1722 * <pre> 1723 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 1724 * </pre> 1725 * 1726 * <code>optional string noc_contact_email = 14072832;</code> 1727 * 1728 * @return The nocContactEmail. 1729 */ 1730 @java.lang.Override getNocContactEmail()1731 public java.lang.String getNocContactEmail() { 1732 java.lang.Object ref = nocContactEmail_; 1733 if (ref instanceof java.lang.String) { 1734 return (java.lang.String) ref; 1735 } else { 1736 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1737 java.lang.String s = bs.toStringUtf8(); 1738 nocContactEmail_ = s; 1739 return s; 1740 } 1741 } 1742 /** 1743 * 1744 * 1745 * <pre> 1746 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 1747 * </pre> 1748 * 1749 * <code>optional string noc_contact_email = 14072832;</code> 1750 * 1751 * @return The bytes for nocContactEmail. 1752 */ 1753 @java.lang.Override getNocContactEmailBytes()1754 public com.google.protobuf.ByteString getNocContactEmailBytes() { 1755 java.lang.Object ref = nocContactEmail_; 1756 if (ref instanceof java.lang.String) { 1757 com.google.protobuf.ByteString b = 1758 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1759 nocContactEmail_ = b; 1760 return b; 1761 } else { 1762 return (com.google.protobuf.ByteString) ref; 1763 } 1764 } 1765 1766 public static final int OPERATIONAL_STATUS_FIELD_NUMBER = 201070847; 1767 1768 @SuppressWarnings("serial") 1769 private volatile java.lang.Object operationalStatus_ = ""; 1770 /** 1771 * 1772 * 1773 * <pre> 1774 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 1775 * Check the OperationalStatus enum for the list of possible values. 1776 * </pre> 1777 * 1778 * <code>optional string operational_status = 201070847;</code> 1779 * 1780 * @return Whether the operationalStatus field is set. 1781 */ 1782 @java.lang.Override hasOperationalStatus()1783 public boolean hasOperationalStatus() { 1784 return ((bitField0_ & 0x00002000) != 0); 1785 } 1786 /** 1787 * 1788 * 1789 * <pre> 1790 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 1791 * Check the OperationalStatus enum for the list of possible values. 1792 * </pre> 1793 * 1794 * <code>optional string operational_status = 201070847;</code> 1795 * 1796 * @return The operationalStatus. 1797 */ 1798 @java.lang.Override getOperationalStatus()1799 public java.lang.String getOperationalStatus() { 1800 java.lang.Object ref = operationalStatus_; 1801 if (ref instanceof java.lang.String) { 1802 return (java.lang.String) ref; 1803 } else { 1804 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1805 java.lang.String s = bs.toStringUtf8(); 1806 operationalStatus_ = s; 1807 return s; 1808 } 1809 } 1810 /** 1811 * 1812 * 1813 * <pre> 1814 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 1815 * Check the OperationalStatus enum for the list of possible values. 1816 * </pre> 1817 * 1818 * <code>optional string operational_status = 201070847;</code> 1819 * 1820 * @return The bytes for operationalStatus. 1821 */ 1822 @java.lang.Override getOperationalStatusBytes()1823 public com.google.protobuf.ByteString getOperationalStatusBytes() { 1824 java.lang.Object ref = operationalStatus_; 1825 if (ref instanceof java.lang.String) { 1826 com.google.protobuf.ByteString b = 1827 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1828 operationalStatus_ = b; 1829 return b; 1830 } else { 1831 return (com.google.protobuf.ByteString) ref; 1832 } 1833 } 1834 1835 public static final int PEER_IP_ADDRESS_FIELD_NUMBER = 207735769; 1836 1837 @SuppressWarnings("serial") 1838 private volatile java.lang.Object peerIpAddress_ = ""; 1839 /** 1840 * 1841 * 1842 * <pre> 1843 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 1844 * </pre> 1845 * 1846 * <code>optional string peer_ip_address = 207735769;</code> 1847 * 1848 * @return Whether the peerIpAddress field is set. 1849 */ 1850 @java.lang.Override hasPeerIpAddress()1851 public boolean hasPeerIpAddress() { 1852 return ((bitField0_ & 0x00004000) != 0); 1853 } 1854 /** 1855 * 1856 * 1857 * <pre> 1858 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 1859 * </pre> 1860 * 1861 * <code>optional string peer_ip_address = 207735769;</code> 1862 * 1863 * @return The peerIpAddress. 1864 */ 1865 @java.lang.Override getPeerIpAddress()1866 public java.lang.String getPeerIpAddress() { 1867 java.lang.Object ref = peerIpAddress_; 1868 if (ref instanceof java.lang.String) { 1869 return (java.lang.String) ref; 1870 } else { 1871 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1872 java.lang.String s = bs.toStringUtf8(); 1873 peerIpAddress_ = s; 1874 return s; 1875 } 1876 } 1877 /** 1878 * 1879 * 1880 * <pre> 1881 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 1882 * </pre> 1883 * 1884 * <code>optional string peer_ip_address = 207735769;</code> 1885 * 1886 * @return The bytes for peerIpAddress. 1887 */ 1888 @java.lang.Override getPeerIpAddressBytes()1889 public com.google.protobuf.ByteString getPeerIpAddressBytes() { 1890 java.lang.Object ref = peerIpAddress_; 1891 if (ref instanceof java.lang.String) { 1892 com.google.protobuf.ByteString b = 1893 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1894 peerIpAddress_ = b; 1895 return b; 1896 } else { 1897 return (com.google.protobuf.ByteString) ref; 1898 } 1899 } 1900 1901 public static final int PROVISIONED_LINK_COUNT_FIELD_NUMBER = 410888565; 1902 private int provisionedLinkCount_ = 0; 1903 /** 1904 * 1905 * 1906 * <pre> 1907 * [Output Only] Number of links actually provisioned in this interconnect. 1908 * </pre> 1909 * 1910 * <code>optional int32 provisioned_link_count = 410888565;</code> 1911 * 1912 * @return Whether the provisionedLinkCount field is set. 1913 */ 1914 @java.lang.Override hasProvisionedLinkCount()1915 public boolean hasProvisionedLinkCount() { 1916 return ((bitField0_ & 0x00008000) != 0); 1917 } 1918 /** 1919 * 1920 * 1921 * <pre> 1922 * [Output Only] Number of links actually provisioned in this interconnect. 1923 * </pre> 1924 * 1925 * <code>optional int32 provisioned_link_count = 410888565;</code> 1926 * 1927 * @return The provisionedLinkCount. 1928 */ 1929 @java.lang.Override getProvisionedLinkCount()1930 public int getProvisionedLinkCount() { 1931 return provisionedLinkCount_; 1932 } 1933 1934 public static final int REQUESTED_LINK_COUNT_FIELD_NUMBER = 45051387; 1935 private int requestedLinkCount_ = 0; 1936 /** 1937 * 1938 * 1939 * <pre> 1940 * Target number of physical links in the link bundle, as requested by the customer. 1941 * </pre> 1942 * 1943 * <code>optional int32 requested_link_count = 45051387;</code> 1944 * 1945 * @return Whether the requestedLinkCount field is set. 1946 */ 1947 @java.lang.Override hasRequestedLinkCount()1948 public boolean hasRequestedLinkCount() { 1949 return ((bitField0_ & 0x00010000) != 0); 1950 } 1951 /** 1952 * 1953 * 1954 * <pre> 1955 * Target number of physical links in the link bundle, as requested by the customer. 1956 * </pre> 1957 * 1958 * <code>optional int32 requested_link_count = 45051387;</code> 1959 * 1960 * @return The requestedLinkCount. 1961 */ 1962 @java.lang.Override getRequestedLinkCount()1963 public int getRequestedLinkCount() { 1964 return requestedLinkCount_; 1965 } 1966 1967 public static final int SATISFIES_PZS_FIELD_NUMBER = 480964267; 1968 private boolean satisfiesPzs_ = false; 1969 /** 1970 * 1971 * 1972 * <pre> 1973 * [Output Only] Reserved for future use. 1974 * </pre> 1975 * 1976 * <code>optional bool satisfies_pzs = 480964267;</code> 1977 * 1978 * @return Whether the satisfiesPzs field is set. 1979 */ 1980 @java.lang.Override hasSatisfiesPzs()1981 public boolean hasSatisfiesPzs() { 1982 return ((bitField0_ & 0x00020000) != 0); 1983 } 1984 /** 1985 * 1986 * 1987 * <pre> 1988 * [Output Only] Reserved for future use. 1989 * </pre> 1990 * 1991 * <code>optional bool satisfies_pzs = 480964267;</code> 1992 * 1993 * @return The satisfiesPzs. 1994 */ 1995 @java.lang.Override getSatisfiesPzs()1996 public boolean getSatisfiesPzs() { 1997 return satisfiesPzs_; 1998 } 1999 2000 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 2001 2002 @SuppressWarnings("serial") 2003 private volatile java.lang.Object selfLink_ = ""; 2004 /** 2005 * 2006 * 2007 * <pre> 2008 * [Output Only] Server-defined URL for the resource. 2009 * </pre> 2010 * 2011 * <code>optional string self_link = 456214797;</code> 2012 * 2013 * @return Whether the selfLink field is set. 2014 */ 2015 @java.lang.Override hasSelfLink()2016 public boolean hasSelfLink() { 2017 return ((bitField0_ & 0x00040000) != 0); 2018 } 2019 /** 2020 * 2021 * 2022 * <pre> 2023 * [Output Only] Server-defined URL for the resource. 2024 * </pre> 2025 * 2026 * <code>optional string self_link = 456214797;</code> 2027 * 2028 * @return The selfLink. 2029 */ 2030 @java.lang.Override getSelfLink()2031 public java.lang.String getSelfLink() { 2032 java.lang.Object ref = selfLink_; 2033 if (ref instanceof java.lang.String) { 2034 return (java.lang.String) ref; 2035 } else { 2036 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2037 java.lang.String s = bs.toStringUtf8(); 2038 selfLink_ = s; 2039 return s; 2040 } 2041 } 2042 /** 2043 * 2044 * 2045 * <pre> 2046 * [Output Only] Server-defined URL for the resource. 2047 * </pre> 2048 * 2049 * <code>optional string self_link = 456214797;</code> 2050 * 2051 * @return The bytes for selfLink. 2052 */ 2053 @java.lang.Override getSelfLinkBytes()2054 public com.google.protobuf.ByteString getSelfLinkBytes() { 2055 java.lang.Object ref = selfLink_; 2056 if (ref instanceof java.lang.String) { 2057 com.google.protobuf.ByteString b = 2058 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2059 selfLink_ = b; 2060 return b; 2061 } else { 2062 return (com.google.protobuf.ByteString) ref; 2063 } 2064 } 2065 2066 public static final int STATE_FIELD_NUMBER = 109757585; 2067 2068 @SuppressWarnings("serial") 2069 private volatile java.lang.Object state_ = ""; 2070 /** 2071 * 2072 * 2073 * <pre> 2074 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 2075 * Check the State enum for the list of possible values. 2076 * </pre> 2077 * 2078 * <code>optional string state = 109757585;</code> 2079 * 2080 * @return Whether the state field is set. 2081 */ 2082 @java.lang.Override hasState()2083 public boolean hasState() { 2084 return ((bitField0_ & 0x00080000) != 0); 2085 } 2086 /** 2087 * 2088 * 2089 * <pre> 2090 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 2091 * Check the State enum for the list of possible values. 2092 * </pre> 2093 * 2094 * <code>optional string state = 109757585;</code> 2095 * 2096 * @return The state. 2097 */ 2098 @java.lang.Override getState()2099 public java.lang.String getState() { 2100 java.lang.Object ref = state_; 2101 if (ref instanceof java.lang.String) { 2102 return (java.lang.String) ref; 2103 } else { 2104 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2105 java.lang.String s = bs.toStringUtf8(); 2106 state_ = s; 2107 return s; 2108 } 2109 } 2110 /** 2111 * 2112 * 2113 * <pre> 2114 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 2115 * Check the State enum for the list of possible values. 2116 * </pre> 2117 * 2118 * <code>optional string state = 109757585;</code> 2119 * 2120 * @return The bytes for state. 2121 */ 2122 @java.lang.Override getStateBytes()2123 public com.google.protobuf.ByteString getStateBytes() { 2124 java.lang.Object ref = state_; 2125 if (ref instanceof java.lang.String) { 2126 com.google.protobuf.ByteString b = 2127 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2128 state_ = b; 2129 return b; 2130 } else { 2131 return (com.google.protobuf.ByteString) ref; 2132 } 2133 } 2134 2135 private byte memoizedIsInitialized = -1; 2136 2137 @java.lang.Override isInitialized()2138 public final boolean isInitialized() { 2139 byte isInitialized = memoizedIsInitialized; 2140 if (isInitialized == 1) return true; 2141 if (isInitialized == 0) return false; 2142 2143 memoizedIsInitialized = 1; 2144 return true; 2145 } 2146 2147 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2148 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2149 if (((bitField0_ & 0x00000040) != 0)) { 2150 output.writeUInt64(3355, id_); 2151 } 2152 if (((bitField0_ & 0x00000100) != 0)) { 2153 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 2154 } 2155 if (((bitField0_ & 0x00000800) != 0)) { 2156 com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); 2157 } 2158 if (((bitField0_ & 0x00000004) != 0)) { 2159 com.google.protobuf.GeneratedMessageV3.writeString(output, 3665484, customerName_); 2160 } 2161 if (((bitField0_ & 0x00001000) != 0)) { 2162 com.google.protobuf.GeneratedMessageV3.writeString(output, 14072832, nocContactEmail_); 2163 } 2164 if (((bitField0_ & 0x00000002) != 0)) { 2165 com.google.protobuf.GeneratedMessageV3.writeString(output, 30525366, creationTimestamp_); 2166 } 2167 if (((bitField0_ & 0x00010000) != 0)) { 2168 output.writeInt32(45051387, requestedLinkCount_); 2169 } 2170 if (((bitField0_ & 0x00080000) != 0)) { 2171 com.google.protobuf.GeneratedMessageV3.writeString(output, 109757585, state_); 2172 } 2173 for (int i = 0; i < circuitInfos_.size(); i++) { 2174 output.writeMessage(164839855, circuitInfos_.get(i)); 2175 } 2176 if (((bitField0_ & 0x00002000) != 0)) { 2177 com.google.protobuf.GeneratedMessageV3.writeString(output, 201070847, operationalStatus_); 2178 } 2179 if (((bitField0_ & 0x00004000) != 0)) { 2180 com.google.protobuf.GeneratedMessageV3.writeString(output, 207735769, peerIpAddress_); 2181 } 2182 for (int i = 0; i < expectedOutages_.size(); i++) { 2183 output.writeMessage(264484123, expectedOutages_.get(i)); 2184 } 2185 if (((bitField0_ & 0x00000400) != 0)) { 2186 com.google.protobuf.GeneratedMessageV3.writeString(output, 290430901, location_); 2187 } 2188 if (((bitField0_ & 0x00008000) != 0)) { 2189 output.writeInt32(410888565, provisionedLinkCount_); 2190 } 2191 if (((bitField0_ & 0x00000008) != 0)) { 2192 com.google.protobuf.GeneratedMessageV3.writeString(output, 422937596, description_); 2193 } 2194 for (int i = 0; i < interconnectAttachments_.size(); i++) { 2195 com.google.protobuf.GeneratedMessageV3.writeString( 2196 output, 425388415, interconnectAttachments_.getRaw(i)); 2197 } 2198 if (((bitField0_ & 0x00000010) != 0)) { 2199 com.google.protobuf.GeneratedMessageV3.writeString(output, 443105954, googleIpAddress_); 2200 } 2201 if (((bitField0_ & 0x00000001) != 0)) { 2202 output.writeBool(445675089, adminEnabled_); 2203 } 2204 if (((bitField0_ & 0x00040000) != 0)) { 2205 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 2206 } 2207 if (((bitField0_ & 0x00020000) != 0)) { 2208 output.writeBool(480964267, satisfiesPzs_); 2209 } 2210 if (((bitField0_ & 0x00000080) != 0)) { 2211 com.google.protobuf.GeneratedMessageV3.writeString(output, 515165259, interconnectType_); 2212 } 2213 if (((bitField0_ & 0x00000200) != 0)) { 2214 com.google.protobuf.GeneratedMessageV3.writeString(output, 523207775, linkType_); 2215 } 2216 if (((bitField0_ & 0x00000020) != 0)) { 2217 com.google.protobuf.GeneratedMessageV3.writeString(output, 534944469, googleReferenceId_); 2218 } 2219 getUnknownFields().writeTo(output); 2220 } 2221 2222 @java.lang.Override getSerializedSize()2223 public int getSerializedSize() { 2224 int size = memoizedSize; 2225 if (size != -1) return size; 2226 2227 size = 0; 2228 if (((bitField0_ & 0x00000040) != 0)) { 2229 size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3355, id_); 2230 } 2231 if (((bitField0_ & 0x00000100) != 0)) { 2232 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 2233 } 2234 if (((bitField0_ & 0x00000800) != 0)) { 2235 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); 2236 } 2237 if (((bitField0_ & 0x00000004) != 0)) { 2238 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3665484, customerName_); 2239 } 2240 if (((bitField0_ & 0x00001000) != 0)) { 2241 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14072832, nocContactEmail_); 2242 } 2243 if (((bitField0_ & 0x00000002) != 0)) { 2244 size += 2245 com.google.protobuf.GeneratedMessageV3.computeStringSize(30525366, creationTimestamp_); 2246 } 2247 if (((bitField0_ & 0x00010000) != 0)) { 2248 size += com.google.protobuf.CodedOutputStream.computeInt32Size(45051387, requestedLinkCount_); 2249 } 2250 if (((bitField0_ & 0x00080000) != 0)) { 2251 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(109757585, state_); 2252 } 2253 for (int i = 0; i < circuitInfos_.size(); i++) { 2254 size += 2255 com.google.protobuf.CodedOutputStream.computeMessageSize(164839855, circuitInfos_.get(i)); 2256 } 2257 if (((bitField0_ & 0x00002000) != 0)) { 2258 size += 2259 com.google.protobuf.GeneratedMessageV3.computeStringSize(201070847, operationalStatus_); 2260 } 2261 if (((bitField0_ & 0x00004000) != 0)) { 2262 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(207735769, peerIpAddress_); 2263 } 2264 for (int i = 0; i < expectedOutages_.size(); i++) { 2265 size += 2266 com.google.protobuf.CodedOutputStream.computeMessageSize( 2267 264484123, expectedOutages_.get(i)); 2268 } 2269 if (((bitField0_ & 0x00000400) != 0)) { 2270 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(290430901, location_); 2271 } 2272 if (((bitField0_ & 0x00008000) != 0)) { 2273 size += 2274 com.google.protobuf.CodedOutputStream.computeInt32Size(410888565, provisionedLinkCount_); 2275 } 2276 if (((bitField0_ & 0x00000008) != 0)) { 2277 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(422937596, description_); 2278 } 2279 { 2280 int dataSize = 0; 2281 for (int i = 0; i < interconnectAttachments_.size(); i++) { 2282 dataSize += computeStringSizeNoTag(interconnectAttachments_.getRaw(i)); 2283 } 2284 size += dataSize; 2285 size += 5 * getInterconnectAttachmentsList().size(); 2286 } 2287 if (((bitField0_ & 0x00000010) != 0)) { 2288 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(443105954, googleIpAddress_); 2289 } 2290 if (((bitField0_ & 0x00000001) != 0)) { 2291 size += com.google.protobuf.CodedOutputStream.computeBoolSize(445675089, adminEnabled_); 2292 } 2293 if (((bitField0_ & 0x00040000) != 0)) { 2294 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 2295 } 2296 if (((bitField0_ & 0x00020000) != 0)) { 2297 size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964267, satisfiesPzs_); 2298 } 2299 if (((bitField0_ & 0x00000080) != 0)) { 2300 size += 2301 com.google.protobuf.GeneratedMessageV3.computeStringSize(515165259, interconnectType_); 2302 } 2303 if (((bitField0_ & 0x00000200) != 0)) { 2304 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(523207775, linkType_); 2305 } 2306 if (((bitField0_ & 0x00000020) != 0)) { 2307 size += 2308 com.google.protobuf.GeneratedMessageV3.computeStringSize(534944469, googleReferenceId_); 2309 } 2310 size += getUnknownFields().getSerializedSize(); 2311 memoizedSize = size; 2312 return size; 2313 } 2314 2315 @java.lang.Override equals(final java.lang.Object obj)2316 public boolean equals(final java.lang.Object obj) { 2317 if (obj == this) { 2318 return true; 2319 } 2320 if (!(obj instanceof com.google.cloud.compute.v1.Interconnect)) { 2321 return super.equals(obj); 2322 } 2323 com.google.cloud.compute.v1.Interconnect other = (com.google.cloud.compute.v1.Interconnect) obj; 2324 2325 if (hasAdminEnabled() != other.hasAdminEnabled()) return false; 2326 if (hasAdminEnabled()) { 2327 if (getAdminEnabled() != other.getAdminEnabled()) return false; 2328 } 2329 if (!getCircuitInfosList().equals(other.getCircuitInfosList())) return false; 2330 if (hasCreationTimestamp() != other.hasCreationTimestamp()) return false; 2331 if (hasCreationTimestamp()) { 2332 if (!getCreationTimestamp().equals(other.getCreationTimestamp())) return false; 2333 } 2334 if (hasCustomerName() != other.hasCustomerName()) return false; 2335 if (hasCustomerName()) { 2336 if (!getCustomerName().equals(other.getCustomerName())) return false; 2337 } 2338 if (hasDescription() != other.hasDescription()) return false; 2339 if (hasDescription()) { 2340 if (!getDescription().equals(other.getDescription())) return false; 2341 } 2342 if (!getExpectedOutagesList().equals(other.getExpectedOutagesList())) return false; 2343 if (hasGoogleIpAddress() != other.hasGoogleIpAddress()) return false; 2344 if (hasGoogleIpAddress()) { 2345 if (!getGoogleIpAddress().equals(other.getGoogleIpAddress())) return false; 2346 } 2347 if (hasGoogleReferenceId() != other.hasGoogleReferenceId()) return false; 2348 if (hasGoogleReferenceId()) { 2349 if (!getGoogleReferenceId().equals(other.getGoogleReferenceId())) return false; 2350 } 2351 if (hasId() != other.hasId()) return false; 2352 if (hasId()) { 2353 if (getId() != other.getId()) return false; 2354 } 2355 if (!getInterconnectAttachmentsList().equals(other.getInterconnectAttachmentsList())) 2356 return false; 2357 if (hasInterconnectType() != other.hasInterconnectType()) return false; 2358 if (hasInterconnectType()) { 2359 if (!getInterconnectType().equals(other.getInterconnectType())) return false; 2360 } 2361 if (hasKind() != other.hasKind()) return false; 2362 if (hasKind()) { 2363 if (!getKind().equals(other.getKind())) return false; 2364 } 2365 if (hasLinkType() != other.hasLinkType()) return false; 2366 if (hasLinkType()) { 2367 if (!getLinkType().equals(other.getLinkType())) return false; 2368 } 2369 if (hasLocation() != other.hasLocation()) return false; 2370 if (hasLocation()) { 2371 if (!getLocation().equals(other.getLocation())) return false; 2372 } 2373 if (hasName() != other.hasName()) return false; 2374 if (hasName()) { 2375 if (!getName().equals(other.getName())) return false; 2376 } 2377 if (hasNocContactEmail() != other.hasNocContactEmail()) return false; 2378 if (hasNocContactEmail()) { 2379 if (!getNocContactEmail().equals(other.getNocContactEmail())) return false; 2380 } 2381 if (hasOperationalStatus() != other.hasOperationalStatus()) return false; 2382 if (hasOperationalStatus()) { 2383 if (!getOperationalStatus().equals(other.getOperationalStatus())) return false; 2384 } 2385 if (hasPeerIpAddress() != other.hasPeerIpAddress()) return false; 2386 if (hasPeerIpAddress()) { 2387 if (!getPeerIpAddress().equals(other.getPeerIpAddress())) return false; 2388 } 2389 if (hasProvisionedLinkCount() != other.hasProvisionedLinkCount()) return false; 2390 if (hasProvisionedLinkCount()) { 2391 if (getProvisionedLinkCount() != other.getProvisionedLinkCount()) return false; 2392 } 2393 if (hasRequestedLinkCount() != other.hasRequestedLinkCount()) return false; 2394 if (hasRequestedLinkCount()) { 2395 if (getRequestedLinkCount() != other.getRequestedLinkCount()) return false; 2396 } 2397 if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; 2398 if (hasSatisfiesPzs()) { 2399 if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; 2400 } 2401 if (hasSelfLink() != other.hasSelfLink()) return false; 2402 if (hasSelfLink()) { 2403 if (!getSelfLink().equals(other.getSelfLink())) return false; 2404 } 2405 if (hasState() != other.hasState()) return false; 2406 if (hasState()) { 2407 if (!getState().equals(other.getState())) return false; 2408 } 2409 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2410 return true; 2411 } 2412 2413 @java.lang.Override hashCode()2414 public int hashCode() { 2415 if (memoizedHashCode != 0) { 2416 return memoizedHashCode; 2417 } 2418 int hash = 41; 2419 hash = (19 * hash) + getDescriptor().hashCode(); 2420 if (hasAdminEnabled()) { 2421 hash = (37 * hash) + ADMIN_ENABLED_FIELD_NUMBER; 2422 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminEnabled()); 2423 } 2424 if (getCircuitInfosCount() > 0) { 2425 hash = (37 * hash) + CIRCUIT_INFOS_FIELD_NUMBER; 2426 hash = (53 * hash) + getCircuitInfosList().hashCode(); 2427 } 2428 if (hasCreationTimestamp()) { 2429 hash = (37 * hash) + CREATION_TIMESTAMP_FIELD_NUMBER; 2430 hash = (53 * hash) + getCreationTimestamp().hashCode(); 2431 } 2432 if (hasCustomerName()) { 2433 hash = (37 * hash) + CUSTOMER_NAME_FIELD_NUMBER; 2434 hash = (53 * hash) + getCustomerName().hashCode(); 2435 } 2436 if (hasDescription()) { 2437 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 2438 hash = (53 * hash) + getDescription().hashCode(); 2439 } 2440 if (getExpectedOutagesCount() > 0) { 2441 hash = (37 * hash) + EXPECTED_OUTAGES_FIELD_NUMBER; 2442 hash = (53 * hash) + getExpectedOutagesList().hashCode(); 2443 } 2444 if (hasGoogleIpAddress()) { 2445 hash = (37 * hash) + GOOGLE_IP_ADDRESS_FIELD_NUMBER; 2446 hash = (53 * hash) + getGoogleIpAddress().hashCode(); 2447 } 2448 if (hasGoogleReferenceId()) { 2449 hash = (37 * hash) + GOOGLE_REFERENCE_ID_FIELD_NUMBER; 2450 hash = (53 * hash) + getGoogleReferenceId().hashCode(); 2451 } 2452 if (hasId()) { 2453 hash = (37 * hash) + ID_FIELD_NUMBER; 2454 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); 2455 } 2456 if (getInterconnectAttachmentsCount() > 0) { 2457 hash = (37 * hash) + INTERCONNECT_ATTACHMENTS_FIELD_NUMBER; 2458 hash = (53 * hash) + getInterconnectAttachmentsList().hashCode(); 2459 } 2460 if (hasInterconnectType()) { 2461 hash = (37 * hash) + INTERCONNECT_TYPE_FIELD_NUMBER; 2462 hash = (53 * hash) + getInterconnectType().hashCode(); 2463 } 2464 if (hasKind()) { 2465 hash = (37 * hash) + KIND_FIELD_NUMBER; 2466 hash = (53 * hash) + getKind().hashCode(); 2467 } 2468 if (hasLinkType()) { 2469 hash = (37 * hash) + LINK_TYPE_FIELD_NUMBER; 2470 hash = (53 * hash) + getLinkType().hashCode(); 2471 } 2472 if (hasLocation()) { 2473 hash = (37 * hash) + LOCATION_FIELD_NUMBER; 2474 hash = (53 * hash) + getLocation().hashCode(); 2475 } 2476 if (hasName()) { 2477 hash = (37 * hash) + NAME_FIELD_NUMBER; 2478 hash = (53 * hash) + getName().hashCode(); 2479 } 2480 if (hasNocContactEmail()) { 2481 hash = (37 * hash) + NOC_CONTACT_EMAIL_FIELD_NUMBER; 2482 hash = (53 * hash) + getNocContactEmail().hashCode(); 2483 } 2484 if (hasOperationalStatus()) { 2485 hash = (37 * hash) + OPERATIONAL_STATUS_FIELD_NUMBER; 2486 hash = (53 * hash) + getOperationalStatus().hashCode(); 2487 } 2488 if (hasPeerIpAddress()) { 2489 hash = (37 * hash) + PEER_IP_ADDRESS_FIELD_NUMBER; 2490 hash = (53 * hash) + getPeerIpAddress().hashCode(); 2491 } 2492 if (hasProvisionedLinkCount()) { 2493 hash = (37 * hash) + PROVISIONED_LINK_COUNT_FIELD_NUMBER; 2494 hash = (53 * hash) + getProvisionedLinkCount(); 2495 } 2496 if (hasRequestedLinkCount()) { 2497 hash = (37 * hash) + REQUESTED_LINK_COUNT_FIELD_NUMBER; 2498 hash = (53 * hash) + getRequestedLinkCount(); 2499 } 2500 if (hasSatisfiesPzs()) { 2501 hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; 2502 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); 2503 } 2504 if (hasSelfLink()) { 2505 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 2506 hash = (53 * hash) + getSelfLink().hashCode(); 2507 } 2508 if (hasState()) { 2509 hash = (37 * hash) + STATE_FIELD_NUMBER; 2510 hash = (53 * hash) + getState().hashCode(); 2511 } 2512 hash = (29 * hash) + getUnknownFields().hashCode(); 2513 memoizedHashCode = hash; 2514 return hash; 2515 } 2516 parseFrom(java.nio.ByteBuffer data)2517 public static com.google.cloud.compute.v1.Interconnect parseFrom(java.nio.ByteBuffer data) 2518 throws com.google.protobuf.InvalidProtocolBufferException { 2519 return PARSER.parseFrom(data); 2520 } 2521 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2522 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2523 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2524 throws com.google.protobuf.InvalidProtocolBufferException { 2525 return PARSER.parseFrom(data, extensionRegistry); 2526 } 2527 parseFrom( com.google.protobuf.ByteString data)2528 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2529 com.google.protobuf.ByteString data) 2530 throws com.google.protobuf.InvalidProtocolBufferException { 2531 return PARSER.parseFrom(data); 2532 } 2533 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2534 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2535 com.google.protobuf.ByteString data, 2536 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2537 throws com.google.protobuf.InvalidProtocolBufferException { 2538 return PARSER.parseFrom(data, extensionRegistry); 2539 } 2540 parseFrom(byte[] data)2541 public static com.google.cloud.compute.v1.Interconnect parseFrom(byte[] data) 2542 throws com.google.protobuf.InvalidProtocolBufferException { 2543 return PARSER.parseFrom(data); 2544 } 2545 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2546 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2547 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2548 throws com.google.protobuf.InvalidProtocolBufferException { 2549 return PARSER.parseFrom(data, extensionRegistry); 2550 } 2551 parseFrom(java.io.InputStream input)2552 public static com.google.cloud.compute.v1.Interconnect parseFrom(java.io.InputStream input) 2553 throws java.io.IOException { 2554 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2555 } 2556 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2557 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2558 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2559 throws java.io.IOException { 2560 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2561 PARSER, input, extensionRegistry); 2562 } 2563 parseDelimitedFrom( java.io.InputStream input)2564 public static com.google.cloud.compute.v1.Interconnect parseDelimitedFrom( 2565 java.io.InputStream input) throws java.io.IOException { 2566 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2567 } 2568 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2569 public static com.google.cloud.compute.v1.Interconnect parseDelimitedFrom( 2570 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2571 throws java.io.IOException { 2572 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2573 PARSER, input, extensionRegistry); 2574 } 2575 parseFrom( com.google.protobuf.CodedInputStream input)2576 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2577 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2578 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2579 } 2580 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2581 public static com.google.cloud.compute.v1.Interconnect parseFrom( 2582 com.google.protobuf.CodedInputStream input, 2583 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2584 throws java.io.IOException { 2585 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2586 PARSER, input, extensionRegistry); 2587 } 2588 2589 @java.lang.Override newBuilderForType()2590 public Builder newBuilderForType() { 2591 return newBuilder(); 2592 } 2593 newBuilder()2594 public static Builder newBuilder() { 2595 return DEFAULT_INSTANCE.toBuilder(); 2596 } 2597 newBuilder(com.google.cloud.compute.v1.Interconnect prototype)2598 public static Builder newBuilder(com.google.cloud.compute.v1.Interconnect prototype) { 2599 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2600 } 2601 2602 @java.lang.Override toBuilder()2603 public Builder toBuilder() { 2604 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2605 } 2606 2607 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2608 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2609 Builder builder = new Builder(parent); 2610 return builder; 2611 } 2612 /** 2613 * 2614 * 2615 * <pre> 2616 * Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview. 2617 * </pre> 2618 * 2619 * Protobuf type {@code google.cloud.compute.v1.Interconnect} 2620 */ 2621 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2622 implements 2623 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.Interconnect) 2624 com.google.cloud.compute.v1.InterconnectOrBuilder { getDescriptor()2625 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2626 return com.google.cloud.compute.v1.Compute 2627 .internal_static_google_cloud_compute_v1_Interconnect_descriptor; 2628 } 2629 2630 @java.lang.Override 2631 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2632 internalGetFieldAccessorTable() { 2633 return com.google.cloud.compute.v1.Compute 2634 .internal_static_google_cloud_compute_v1_Interconnect_fieldAccessorTable 2635 .ensureFieldAccessorsInitialized( 2636 com.google.cloud.compute.v1.Interconnect.class, 2637 com.google.cloud.compute.v1.Interconnect.Builder.class); 2638 } 2639 2640 // Construct using com.google.cloud.compute.v1.Interconnect.newBuilder() Builder()2641 private Builder() {} 2642 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2643 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2644 super(parent); 2645 } 2646 2647 @java.lang.Override clear()2648 public Builder clear() { 2649 super.clear(); 2650 bitField0_ = 0; 2651 adminEnabled_ = false; 2652 if (circuitInfosBuilder_ == null) { 2653 circuitInfos_ = java.util.Collections.emptyList(); 2654 } else { 2655 circuitInfos_ = null; 2656 circuitInfosBuilder_.clear(); 2657 } 2658 bitField0_ = (bitField0_ & ~0x00000002); 2659 creationTimestamp_ = ""; 2660 customerName_ = ""; 2661 description_ = ""; 2662 if (expectedOutagesBuilder_ == null) { 2663 expectedOutages_ = java.util.Collections.emptyList(); 2664 } else { 2665 expectedOutages_ = null; 2666 expectedOutagesBuilder_.clear(); 2667 } 2668 bitField0_ = (bitField0_ & ~0x00000020); 2669 googleIpAddress_ = ""; 2670 googleReferenceId_ = ""; 2671 id_ = 0L; 2672 interconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2673 bitField0_ = (bitField0_ & ~0x00000200); 2674 interconnectType_ = ""; 2675 kind_ = ""; 2676 linkType_ = ""; 2677 location_ = ""; 2678 name_ = ""; 2679 nocContactEmail_ = ""; 2680 operationalStatus_ = ""; 2681 peerIpAddress_ = ""; 2682 provisionedLinkCount_ = 0; 2683 requestedLinkCount_ = 0; 2684 satisfiesPzs_ = false; 2685 selfLink_ = ""; 2686 state_ = ""; 2687 return this; 2688 } 2689 2690 @java.lang.Override getDescriptorForType()2691 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2692 return com.google.cloud.compute.v1.Compute 2693 .internal_static_google_cloud_compute_v1_Interconnect_descriptor; 2694 } 2695 2696 @java.lang.Override getDefaultInstanceForType()2697 public com.google.cloud.compute.v1.Interconnect getDefaultInstanceForType() { 2698 return com.google.cloud.compute.v1.Interconnect.getDefaultInstance(); 2699 } 2700 2701 @java.lang.Override build()2702 public com.google.cloud.compute.v1.Interconnect build() { 2703 com.google.cloud.compute.v1.Interconnect result = buildPartial(); 2704 if (!result.isInitialized()) { 2705 throw newUninitializedMessageException(result); 2706 } 2707 return result; 2708 } 2709 2710 @java.lang.Override buildPartial()2711 public com.google.cloud.compute.v1.Interconnect buildPartial() { 2712 com.google.cloud.compute.v1.Interconnect result = 2713 new com.google.cloud.compute.v1.Interconnect(this); 2714 buildPartialRepeatedFields(result); 2715 if (bitField0_ != 0) { 2716 buildPartial0(result); 2717 } 2718 onBuilt(); 2719 return result; 2720 } 2721 buildPartialRepeatedFields(com.google.cloud.compute.v1.Interconnect result)2722 private void buildPartialRepeatedFields(com.google.cloud.compute.v1.Interconnect result) { 2723 if (circuitInfosBuilder_ == null) { 2724 if (((bitField0_ & 0x00000002) != 0)) { 2725 circuitInfos_ = java.util.Collections.unmodifiableList(circuitInfos_); 2726 bitField0_ = (bitField0_ & ~0x00000002); 2727 } 2728 result.circuitInfos_ = circuitInfos_; 2729 } else { 2730 result.circuitInfos_ = circuitInfosBuilder_.build(); 2731 } 2732 if (expectedOutagesBuilder_ == null) { 2733 if (((bitField0_ & 0x00000020) != 0)) { 2734 expectedOutages_ = java.util.Collections.unmodifiableList(expectedOutages_); 2735 bitField0_ = (bitField0_ & ~0x00000020); 2736 } 2737 result.expectedOutages_ = expectedOutages_; 2738 } else { 2739 result.expectedOutages_ = expectedOutagesBuilder_.build(); 2740 } 2741 if (((bitField0_ & 0x00000200) != 0)) { 2742 interconnectAttachments_ = interconnectAttachments_.getUnmodifiableView(); 2743 bitField0_ = (bitField0_ & ~0x00000200); 2744 } 2745 result.interconnectAttachments_ = interconnectAttachments_; 2746 } 2747 buildPartial0(com.google.cloud.compute.v1.Interconnect result)2748 private void buildPartial0(com.google.cloud.compute.v1.Interconnect result) { 2749 int from_bitField0_ = bitField0_; 2750 int to_bitField0_ = 0; 2751 if (((from_bitField0_ & 0x00000001) != 0)) { 2752 result.adminEnabled_ = adminEnabled_; 2753 to_bitField0_ |= 0x00000001; 2754 } 2755 if (((from_bitField0_ & 0x00000004) != 0)) { 2756 result.creationTimestamp_ = creationTimestamp_; 2757 to_bitField0_ |= 0x00000002; 2758 } 2759 if (((from_bitField0_ & 0x00000008) != 0)) { 2760 result.customerName_ = customerName_; 2761 to_bitField0_ |= 0x00000004; 2762 } 2763 if (((from_bitField0_ & 0x00000010) != 0)) { 2764 result.description_ = description_; 2765 to_bitField0_ |= 0x00000008; 2766 } 2767 if (((from_bitField0_ & 0x00000040) != 0)) { 2768 result.googleIpAddress_ = googleIpAddress_; 2769 to_bitField0_ |= 0x00000010; 2770 } 2771 if (((from_bitField0_ & 0x00000080) != 0)) { 2772 result.googleReferenceId_ = googleReferenceId_; 2773 to_bitField0_ |= 0x00000020; 2774 } 2775 if (((from_bitField0_ & 0x00000100) != 0)) { 2776 result.id_ = id_; 2777 to_bitField0_ |= 0x00000040; 2778 } 2779 if (((from_bitField0_ & 0x00000400) != 0)) { 2780 result.interconnectType_ = interconnectType_; 2781 to_bitField0_ |= 0x00000080; 2782 } 2783 if (((from_bitField0_ & 0x00000800) != 0)) { 2784 result.kind_ = kind_; 2785 to_bitField0_ |= 0x00000100; 2786 } 2787 if (((from_bitField0_ & 0x00001000) != 0)) { 2788 result.linkType_ = linkType_; 2789 to_bitField0_ |= 0x00000200; 2790 } 2791 if (((from_bitField0_ & 0x00002000) != 0)) { 2792 result.location_ = location_; 2793 to_bitField0_ |= 0x00000400; 2794 } 2795 if (((from_bitField0_ & 0x00004000) != 0)) { 2796 result.name_ = name_; 2797 to_bitField0_ |= 0x00000800; 2798 } 2799 if (((from_bitField0_ & 0x00008000) != 0)) { 2800 result.nocContactEmail_ = nocContactEmail_; 2801 to_bitField0_ |= 0x00001000; 2802 } 2803 if (((from_bitField0_ & 0x00010000) != 0)) { 2804 result.operationalStatus_ = operationalStatus_; 2805 to_bitField0_ |= 0x00002000; 2806 } 2807 if (((from_bitField0_ & 0x00020000) != 0)) { 2808 result.peerIpAddress_ = peerIpAddress_; 2809 to_bitField0_ |= 0x00004000; 2810 } 2811 if (((from_bitField0_ & 0x00040000) != 0)) { 2812 result.provisionedLinkCount_ = provisionedLinkCount_; 2813 to_bitField0_ |= 0x00008000; 2814 } 2815 if (((from_bitField0_ & 0x00080000) != 0)) { 2816 result.requestedLinkCount_ = requestedLinkCount_; 2817 to_bitField0_ |= 0x00010000; 2818 } 2819 if (((from_bitField0_ & 0x00100000) != 0)) { 2820 result.satisfiesPzs_ = satisfiesPzs_; 2821 to_bitField0_ |= 0x00020000; 2822 } 2823 if (((from_bitField0_ & 0x00200000) != 0)) { 2824 result.selfLink_ = selfLink_; 2825 to_bitField0_ |= 0x00040000; 2826 } 2827 if (((from_bitField0_ & 0x00400000) != 0)) { 2828 result.state_ = state_; 2829 to_bitField0_ |= 0x00080000; 2830 } 2831 result.bitField0_ |= to_bitField0_; 2832 } 2833 2834 @java.lang.Override clone()2835 public Builder clone() { 2836 return super.clone(); 2837 } 2838 2839 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2840 public Builder setField( 2841 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2842 return super.setField(field, value); 2843 } 2844 2845 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2846 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2847 return super.clearField(field); 2848 } 2849 2850 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2851 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2852 return super.clearOneof(oneof); 2853 } 2854 2855 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2856 public Builder setRepeatedField( 2857 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2858 return super.setRepeatedField(field, index, value); 2859 } 2860 2861 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2862 public Builder addRepeatedField( 2863 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2864 return super.addRepeatedField(field, value); 2865 } 2866 2867 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2868 public Builder mergeFrom(com.google.protobuf.Message other) { 2869 if (other instanceof com.google.cloud.compute.v1.Interconnect) { 2870 return mergeFrom((com.google.cloud.compute.v1.Interconnect) other); 2871 } else { 2872 super.mergeFrom(other); 2873 return this; 2874 } 2875 } 2876 mergeFrom(com.google.cloud.compute.v1.Interconnect other)2877 public Builder mergeFrom(com.google.cloud.compute.v1.Interconnect other) { 2878 if (other == com.google.cloud.compute.v1.Interconnect.getDefaultInstance()) return this; 2879 if (other.hasAdminEnabled()) { 2880 setAdminEnabled(other.getAdminEnabled()); 2881 } 2882 if (circuitInfosBuilder_ == null) { 2883 if (!other.circuitInfos_.isEmpty()) { 2884 if (circuitInfos_.isEmpty()) { 2885 circuitInfos_ = other.circuitInfos_; 2886 bitField0_ = (bitField0_ & ~0x00000002); 2887 } else { 2888 ensureCircuitInfosIsMutable(); 2889 circuitInfos_.addAll(other.circuitInfos_); 2890 } 2891 onChanged(); 2892 } 2893 } else { 2894 if (!other.circuitInfos_.isEmpty()) { 2895 if (circuitInfosBuilder_.isEmpty()) { 2896 circuitInfosBuilder_.dispose(); 2897 circuitInfosBuilder_ = null; 2898 circuitInfos_ = other.circuitInfos_; 2899 bitField0_ = (bitField0_ & ~0x00000002); 2900 circuitInfosBuilder_ = 2901 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2902 ? getCircuitInfosFieldBuilder() 2903 : null; 2904 } else { 2905 circuitInfosBuilder_.addAllMessages(other.circuitInfos_); 2906 } 2907 } 2908 } 2909 if (other.hasCreationTimestamp()) { 2910 creationTimestamp_ = other.creationTimestamp_; 2911 bitField0_ |= 0x00000004; 2912 onChanged(); 2913 } 2914 if (other.hasCustomerName()) { 2915 customerName_ = other.customerName_; 2916 bitField0_ |= 0x00000008; 2917 onChanged(); 2918 } 2919 if (other.hasDescription()) { 2920 description_ = other.description_; 2921 bitField0_ |= 0x00000010; 2922 onChanged(); 2923 } 2924 if (expectedOutagesBuilder_ == null) { 2925 if (!other.expectedOutages_.isEmpty()) { 2926 if (expectedOutages_.isEmpty()) { 2927 expectedOutages_ = other.expectedOutages_; 2928 bitField0_ = (bitField0_ & ~0x00000020); 2929 } else { 2930 ensureExpectedOutagesIsMutable(); 2931 expectedOutages_.addAll(other.expectedOutages_); 2932 } 2933 onChanged(); 2934 } 2935 } else { 2936 if (!other.expectedOutages_.isEmpty()) { 2937 if (expectedOutagesBuilder_.isEmpty()) { 2938 expectedOutagesBuilder_.dispose(); 2939 expectedOutagesBuilder_ = null; 2940 expectedOutages_ = other.expectedOutages_; 2941 bitField0_ = (bitField0_ & ~0x00000020); 2942 expectedOutagesBuilder_ = 2943 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2944 ? getExpectedOutagesFieldBuilder() 2945 : null; 2946 } else { 2947 expectedOutagesBuilder_.addAllMessages(other.expectedOutages_); 2948 } 2949 } 2950 } 2951 if (other.hasGoogleIpAddress()) { 2952 googleIpAddress_ = other.googleIpAddress_; 2953 bitField0_ |= 0x00000040; 2954 onChanged(); 2955 } 2956 if (other.hasGoogleReferenceId()) { 2957 googleReferenceId_ = other.googleReferenceId_; 2958 bitField0_ |= 0x00000080; 2959 onChanged(); 2960 } 2961 if (other.hasId()) { 2962 setId(other.getId()); 2963 } 2964 if (!other.interconnectAttachments_.isEmpty()) { 2965 if (interconnectAttachments_.isEmpty()) { 2966 interconnectAttachments_ = other.interconnectAttachments_; 2967 bitField0_ = (bitField0_ & ~0x00000200); 2968 } else { 2969 ensureInterconnectAttachmentsIsMutable(); 2970 interconnectAttachments_.addAll(other.interconnectAttachments_); 2971 } 2972 onChanged(); 2973 } 2974 if (other.hasInterconnectType()) { 2975 interconnectType_ = other.interconnectType_; 2976 bitField0_ |= 0x00000400; 2977 onChanged(); 2978 } 2979 if (other.hasKind()) { 2980 kind_ = other.kind_; 2981 bitField0_ |= 0x00000800; 2982 onChanged(); 2983 } 2984 if (other.hasLinkType()) { 2985 linkType_ = other.linkType_; 2986 bitField0_ |= 0x00001000; 2987 onChanged(); 2988 } 2989 if (other.hasLocation()) { 2990 location_ = other.location_; 2991 bitField0_ |= 0x00002000; 2992 onChanged(); 2993 } 2994 if (other.hasName()) { 2995 name_ = other.name_; 2996 bitField0_ |= 0x00004000; 2997 onChanged(); 2998 } 2999 if (other.hasNocContactEmail()) { 3000 nocContactEmail_ = other.nocContactEmail_; 3001 bitField0_ |= 0x00008000; 3002 onChanged(); 3003 } 3004 if (other.hasOperationalStatus()) { 3005 operationalStatus_ = other.operationalStatus_; 3006 bitField0_ |= 0x00010000; 3007 onChanged(); 3008 } 3009 if (other.hasPeerIpAddress()) { 3010 peerIpAddress_ = other.peerIpAddress_; 3011 bitField0_ |= 0x00020000; 3012 onChanged(); 3013 } 3014 if (other.hasProvisionedLinkCount()) { 3015 setProvisionedLinkCount(other.getProvisionedLinkCount()); 3016 } 3017 if (other.hasRequestedLinkCount()) { 3018 setRequestedLinkCount(other.getRequestedLinkCount()); 3019 } 3020 if (other.hasSatisfiesPzs()) { 3021 setSatisfiesPzs(other.getSatisfiesPzs()); 3022 } 3023 if (other.hasSelfLink()) { 3024 selfLink_ = other.selfLink_; 3025 bitField0_ |= 0x00200000; 3026 onChanged(); 3027 } 3028 if (other.hasState()) { 3029 state_ = other.state_; 3030 bitField0_ |= 0x00400000; 3031 onChanged(); 3032 } 3033 this.mergeUnknownFields(other.getUnknownFields()); 3034 onChanged(); 3035 return this; 3036 } 3037 3038 @java.lang.Override isInitialized()3039 public final boolean isInitialized() { 3040 return true; 3041 } 3042 3043 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3044 public Builder mergeFrom( 3045 com.google.protobuf.CodedInputStream input, 3046 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3047 throws java.io.IOException { 3048 if (extensionRegistry == null) { 3049 throw new java.lang.NullPointerException(); 3050 } 3051 try { 3052 boolean done = false; 3053 while (!done) { 3054 int tag = input.readTag(); 3055 switch (tag) { 3056 case 0: 3057 done = true; 3058 break; 3059 case 26840: 3060 { 3061 id_ = input.readUInt64(); 3062 bitField0_ |= 0x00000100; 3063 break; 3064 } // case 26840 3065 case 26336418: 3066 { 3067 kind_ = input.readStringRequireUtf8(); 3068 bitField0_ |= 0x00000800; 3069 break; 3070 } // case 26336418 3071 case 26989658: 3072 { 3073 name_ = input.readStringRequireUtf8(); 3074 bitField0_ |= 0x00004000; 3075 break; 3076 } // case 26989658 3077 case 29323874: 3078 { 3079 customerName_ = input.readStringRequireUtf8(); 3080 bitField0_ |= 0x00000008; 3081 break; 3082 } // case 29323874 3083 case 112582658: 3084 { 3085 nocContactEmail_ = input.readStringRequireUtf8(); 3086 bitField0_ |= 0x00008000; 3087 break; 3088 } // case 112582658 3089 case 244202930: 3090 { 3091 creationTimestamp_ = input.readStringRequireUtf8(); 3092 bitField0_ |= 0x00000004; 3093 break; 3094 } // case 244202930 3095 case 360411096: 3096 { 3097 requestedLinkCount_ = input.readInt32(); 3098 bitField0_ |= 0x00080000; 3099 break; 3100 } // case 360411096 3101 case 878060682: 3102 { 3103 state_ = input.readStringRequireUtf8(); 3104 bitField0_ |= 0x00400000; 3105 break; 3106 } // case 878060682 3107 case 1318718842: 3108 { 3109 com.google.cloud.compute.v1.InterconnectCircuitInfo m = 3110 input.readMessage( 3111 com.google.cloud.compute.v1.InterconnectCircuitInfo.parser(), 3112 extensionRegistry); 3113 if (circuitInfosBuilder_ == null) { 3114 ensureCircuitInfosIsMutable(); 3115 circuitInfos_.add(m); 3116 } else { 3117 circuitInfosBuilder_.addMessage(m); 3118 } 3119 break; 3120 } // case 1318718842 3121 case 1608566778: 3122 { 3123 operationalStatus_ = input.readStringRequireUtf8(); 3124 bitField0_ |= 0x00010000; 3125 break; 3126 } // case 1608566778 3127 case 1661886154: 3128 { 3129 peerIpAddress_ = input.readStringRequireUtf8(); 3130 bitField0_ |= 0x00020000; 3131 break; 3132 } // case 1661886154 3133 case 2115872986: 3134 { 3135 com.google.cloud.compute.v1.InterconnectOutageNotification m = 3136 input.readMessage( 3137 com.google.cloud.compute.v1.InterconnectOutageNotification.parser(), 3138 extensionRegistry); 3139 if (expectedOutagesBuilder_ == null) { 3140 ensureExpectedOutagesIsMutable(); 3141 expectedOutages_.add(m); 3142 } else { 3143 expectedOutagesBuilder_.addMessage(m); 3144 } 3145 break; 3146 } // case 2115872986 3147 case -1971520086: 3148 { 3149 location_ = input.readStringRequireUtf8(); 3150 bitField0_ |= 0x00002000; 3151 break; 3152 } // case -1971520086 3153 case -1007858776: 3154 { 3155 provisionedLinkCount_ = input.readInt32(); 3156 bitField0_ |= 0x00040000; 3157 break; 3158 } // case -1007858776 3159 case -911466526: 3160 { 3161 description_ = input.readStringRequireUtf8(); 3162 bitField0_ |= 0x00000010; 3163 break; 3164 } // case -911466526 3165 case -891859974: 3166 { 3167 java.lang.String s = input.readStringRequireUtf8(); 3168 ensureInterconnectAttachmentsIsMutable(); 3169 interconnectAttachments_.add(s); 3170 break; 3171 } // case -891859974 3172 case -750119662: 3173 { 3174 googleIpAddress_ = input.readStringRequireUtf8(); 3175 bitField0_ |= 0x00000040; 3176 break; 3177 } // case -750119662 3178 case -729566584: 3179 { 3180 adminEnabled_ = input.readBool(); 3181 bitField0_ |= 0x00000001; 3182 break; 3183 } // case -729566584 3184 case -645248918: 3185 { 3186 selfLink_ = input.readStringRequireUtf8(); 3187 bitField0_ |= 0x00200000; 3188 break; 3189 } // case -645248918 3190 case -447253160: 3191 { 3192 satisfiesPzs_ = input.readBool(); 3193 bitField0_ |= 0x00100000; 3194 break; 3195 } // case -447253160 3196 case -173645222: 3197 { 3198 interconnectType_ = input.readStringRequireUtf8(); 3199 bitField0_ |= 0x00000400; 3200 break; 3201 } // case -173645222 3202 case -109305094: 3203 { 3204 linkType_ = input.readStringRequireUtf8(); 3205 bitField0_ |= 0x00001000; 3206 break; 3207 } // case -109305094 3208 case -15411542: 3209 { 3210 googleReferenceId_ = input.readStringRequireUtf8(); 3211 bitField0_ |= 0x00000080; 3212 break; 3213 } // case -15411542 3214 default: 3215 { 3216 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 3217 done = true; // was an endgroup tag 3218 } 3219 break; 3220 } // default: 3221 } // switch (tag) 3222 } // while (!done) 3223 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3224 throw e.unwrapIOException(); 3225 } finally { 3226 onChanged(); 3227 } // finally 3228 return this; 3229 } 3230 3231 private int bitField0_; 3232 3233 private boolean adminEnabled_; 3234 /** 3235 * 3236 * 3237 * <pre> 3238 * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. 3239 * </pre> 3240 * 3241 * <code>optional bool admin_enabled = 445675089;</code> 3242 * 3243 * @return Whether the adminEnabled field is set. 3244 */ 3245 @java.lang.Override hasAdminEnabled()3246 public boolean hasAdminEnabled() { 3247 return ((bitField0_ & 0x00000001) != 0); 3248 } 3249 /** 3250 * 3251 * 3252 * <pre> 3253 * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. 3254 * </pre> 3255 * 3256 * <code>optional bool admin_enabled = 445675089;</code> 3257 * 3258 * @return The adminEnabled. 3259 */ 3260 @java.lang.Override getAdminEnabled()3261 public boolean getAdminEnabled() { 3262 return adminEnabled_; 3263 } 3264 /** 3265 * 3266 * 3267 * <pre> 3268 * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. 3269 * </pre> 3270 * 3271 * <code>optional bool admin_enabled = 445675089;</code> 3272 * 3273 * @param value The adminEnabled to set. 3274 * @return This builder for chaining. 3275 */ setAdminEnabled(boolean value)3276 public Builder setAdminEnabled(boolean value) { 3277 3278 adminEnabled_ = value; 3279 bitField0_ |= 0x00000001; 3280 onChanged(); 3281 return this; 3282 } 3283 /** 3284 * 3285 * 3286 * <pre> 3287 * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. 3288 * </pre> 3289 * 3290 * <code>optional bool admin_enabled = 445675089;</code> 3291 * 3292 * @return This builder for chaining. 3293 */ clearAdminEnabled()3294 public Builder clearAdminEnabled() { 3295 bitField0_ = (bitField0_ & ~0x00000001); 3296 adminEnabled_ = false; 3297 onChanged(); 3298 return this; 3299 } 3300 3301 private java.util.List<com.google.cloud.compute.v1.InterconnectCircuitInfo> circuitInfos_ = 3302 java.util.Collections.emptyList(); 3303 ensureCircuitInfosIsMutable()3304 private void ensureCircuitInfosIsMutable() { 3305 if (!((bitField0_ & 0x00000002) != 0)) { 3306 circuitInfos_ = 3307 new java.util.ArrayList<com.google.cloud.compute.v1.InterconnectCircuitInfo>( 3308 circuitInfos_); 3309 bitField0_ |= 0x00000002; 3310 } 3311 } 3312 3313 private com.google.protobuf.RepeatedFieldBuilderV3< 3314 com.google.cloud.compute.v1.InterconnectCircuitInfo, 3315 com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder, 3316 com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder> 3317 circuitInfosBuilder_; 3318 3319 /** 3320 * 3321 * 3322 * <pre> 3323 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3324 * </pre> 3325 * 3326 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3327 * </code> 3328 */ 3329 public java.util.List<com.google.cloud.compute.v1.InterconnectCircuitInfo> getCircuitInfosList()3330 getCircuitInfosList() { 3331 if (circuitInfosBuilder_ == null) { 3332 return java.util.Collections.unmodifiableList(circuitInfos_); 3333 } else { 3334 return circuitInfosBuilder_.getMessageList(); 3335 } 3336 } 3337 /** 3338 * 3339 * 3340 * <pre> 3341 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3342 * </pre> 3343 * 3344 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3345 * </code> 3346 */ getCircuitInfosCount()3347 public int getCircuitInfosCount() { 3348 if (circuitInfosBuilder_ == null) { 3349 return circuitInfos_.size(); 3350 } else { 3351 return circuitInfosBuilder_.getCount(); 3352 } 3353 } 3354 /** 3355 * 3356 * 3357 * <pre> 3358 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3359 * </pre> 3360 * 3361 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3362 * </code> 3363 */ getCircuitInfos(int index)3364 public com.google.cloud.compute.v1.InterconnectCircuitInfo getCircuitInfos(int index) { 3365 if (circuitInfosBuilder_ == null) { 3366 return circuitInfos_.get(index); 3367 } else { 3368 return circuitInfosBuilder_.getMessage(index); 3369 } 3370 } 3371 /** 3372 * 3373 * 3374 * <pre> 3375 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3376 * </pre> 3377 * 3378 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3379 * </code> 3380 */ setCircuitInfos( int index, com.google.cloud.compute.v1.InterconnectCircuitInfo value)3381 public Builder setCircuitInfos( 3382 int index, com.google.cloud.compute.v1.InterconnectCircuitInfo value) { 3383 if (circuitInfosBuilder_ == null) { 3384 if (value == null) { 3385 throw new NullPointerException(); 3386 } 3387 ensureCircuitInfosIsMutable(); 3388 circuitInfos_.set(index, value); 3389 onChanged(); 3390 } else { 3391 circuitInfosBuilder_.setMessage(index, value); 3392 } 3393 return this; 3394 } 3395 /** 3396 * 3397 * 3398 * <pre> 3399 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3400 * </pre> 3401 * 3402 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3403 * </code> 3404 */ setCircuitInfos( int index, com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder builderForValue)3405 public Builder setCircuitInfos( 3406 int index, com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder builderForValue) { 3407 if (circuitInfosBuilder_ == null) { 3408 ensureCircuitInfosIsMutable(); 3409 circuitInfos_.set(index, builderForValue.build()); 3410 onChanged(); 3411 } else { 3412 circuitInfosBuilder_.setMessage(index, builderForValue.build()); 3413 } 3414 return this; 3415 } 3416 /** 3417 * 3418 * 3419 * <pre> 3420 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3421 * </pre> 3422 * 3423 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3424 * </code> 3425 */ addCircuitInfos(com.google.cloud.compute.v1.InterconnectCircuitInfo value)3426 public Builder addCircuitInfos(com.google.cloud.compute.v1.InterconnectCircuitInfo value) { 3427 if (circuitInfosBuilder_ == null) { 3428 if (value == null) { 3429 throw new NullPointerException(); 3430 } 3431 ensureCircuitInfosIsMutable(); 3432 circuitInfos_.add(value); 3433 onChanged(); 3434 } else { 3435 circuitInfosBuilder_.addMessage(value); 3436 } 3437 return this; 3438 } 3439 /** 3440 * 3441 * 3442 * <pre> 3443 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3444 * </pre> 3445 * 3446 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3447 * </code> 3448 */ addCircuitInfos( int index, com.google.cloud.compute.v1.InterconnectCircuitInfo value)3449 public Builder addCircuitInfos( 3450 int index, com.google.cloud.compute.v1.InterconnectCircuitInfo value) { 3451 if (circuitInfosBuilder_ == null) { 3452 if (value == null) { 3453 throw new NullPointerException(); 3454 } 3455 ensureCircuitInfosIsMutable(); 3456 circuitInfos_.add(index, value); 3457 onChanged(); 3458 } else { 3459 circuitInfosBuilder_.addMessage(index, value); 3460 } 3461 return this; 3462 } 3463 /** 3464 * 3465 * 3466 * <pre> 3467 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3468 * </pre> 3469 * 3470 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3471 * </code> 3472 */ addCircuitInfos( com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder builderForValue)3473 public Builder addCircuitInfos( 3474 com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder builderForValue) { 3475 if (circuitInfosBuilder_ == null) { 3476 ensureCircuitInfosIsMutable(); 3477 circuitInfos_.add(builderForValue.build()); 3478 onChanged(); 3479 } else { 3480 circuitInfosBuilder_.addMessage(builderForValue.build()); 3481 } 3482 return this; 3483 } 3484 /** 3485 * 3486 * 3487 * <pre> 3488 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3489 * </pre> 3490 * 3491 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3492 * </code> 3493 */ addCircuitInfos( int index, com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder builderForValue)3494 public Builder addCircuitInfos( 3495 int index, com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder builderForValue) { 3496 if (circuitInfosBuilder_ == null) { 3497 ensureCircuitInfosIsMutable(); 3498 circuitInfos_.add(index, builderForValue.build()); 3499 onChanged(); 3500 } else { 3501 circuitInfosBuilder_.addMessage(index, builderForValue.build()); 3502 } 3503 return this; 3504 } 3505 /** 3506 * 3507 * 3508 * <pre> 3509 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3510 * </pre> 3511 * 3512 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3513 * </code> 3514 */ addAllCircuitInfos( java.lang.Iterable<? extends com.google.cloud.compute.v1.InterconnectCircuitInfo> values)3515 public Builder addAllCircuitInfos( 3516 java.lang.Iterable<? extends com.google.cloud.compute.v1.InterconnectCircuitInfo> values) { 3517 if (circuitInfosBuilder_ == null) { 3518 ensureCircuitInfosIsMutable(); 3519 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, circuitInfos_); 3520 onChanged(); 3521 } else { 3522 circuitInfosBuilder_.addAllMessages(values); 3523 } 3524 return this; 3525 } 3526 /** 3527 * 3528 * 3529 * <pre> 3530 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3531 * </pre> 3532 * 3533 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3534 * </code> 3535 */ clearCircuitInfos()3536 public Builder clearCircuitInfos() { 3537 if (circuitInfosBuilder_ == null) { 3538 circuitInfos_ = java.util.Collections.emptyList(); 3539 bitField0_ = (bitField0_ & ~0x00000002); 3540 onChanged(); 3541 } else { 3542 circuitInfosBuilder_.clear(); 3543 } 3544 return this; 3545 } 3546 /** 3547 * 3548 * 3549 * <pre> 3550 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3551 * </pre> 3552 * 3553 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3554 * </code> 3555 */ removeCircuitInfos(int index)3556 public Builder removeCircuitInfos(int index) { 3557 if (circuitInfosBuilder_ == null) { 3558 ensureCircuitInfosIsMutable(); 3559 circuitInfos_.remove(index); 3560 onChanged(); 3561 } else { 3562 circuitInfosBuilder_.remove(index); 3563 } 3564 return this; 3565 } 3566 /** 3567 * 3568 * 3569 * <pre> 3570 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3571 * </pre> 3572 * 3573 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3574 * </code> 3575 */ getCircuitInfosBuilder( int index)3576 public com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder getCircuitInfosBuilder( 3577 int index) { 3578 return getCircuitInfosFieldBuilder().getBuilder(index); 3579 } 3580 /** 3581 * 3582 * 3583 * <pre> 3584 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3585 * </pre> 3586 * 3587 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3588 * </code> 3589 */ getCircuitInfosOrBuilder( int index)3590 public com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder getCircuitInfosOrBuilder( 3591 int index) { 3592 if (circuitInfosBuilder_ == null) { 3593 return circuitInfos_.get(index); 3594 } else { 3595 return circuitInfosBuilder_.getMessageOrBuilder(index); 3596 } 3597 } 3598 /** 3599 * 3600 * 3601 * <pre> 3602 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3603 * </pre> 3604 * 3605 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3606 * </code> 3607 */ 3608 public java.util.List<? extends com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder> getCircuitInfosOrBuilderList()3609 getCircuitInfosOrBuilderList() { 3610 if (circuitInfosBuilder_ != null) { 3611 return circuitInfosBuilder_.getMessageOrBuilderList(); 3612 } else { 3613 return java.util.Collections.unmodifiableList(circuitInfos_); 3614 } 3615 } 3616 /** 3617 * 3618 * 3619 * <pre> 3620 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3621 * </pre> 3622 * 3623 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3624 * </code> 3625 */ addCircuitInfosBuilder()3626 public com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder addCircuitInfosBuilder() { 3627 return getCircuitInfosFieldBuilder() 3628 .addBuilder(com.google.cloud.compute.v1.InterconnectCircuitInfo.getDefaultInstance()); 3629 } 3630 /** 3631 * 3632 * 3633 * <pre> 3634 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3635 * </pre> 3636 * 3637 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3638 * </code> 3639 */ addCircuitInfosBuilder( int index)3640 public com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder addCircuitInfosBuilder( 3641 int index) { 3642 return getCircuitInfosFieldBuilder() 3643 .addBuilder( 3644 index, com.google.cloud.compute.v1.InterconnectCircuitInfo.getDefaultInstance()); 3645 } 3646 /** 3647 * 3648 * 3649 * <pre> 3650 * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. 3651 * </pre> 3652 * 3653 * <code>repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; 3654 * </code> 3655 */ 3656 public java.util.List<com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder> getCircuitInfosBuilderList()3657 getCircuitInfosBuilderList() { 3658 return getCircuitInfosFieldBuilder().getBuilderList(); 3659 } 3660 3661 private com.google.protobuf.RepeatedFieldBuilderV3< 3662 com.google.cloud.compute.v1.InterconnectCircuitInfo, 3663 com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder, 3664 com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder> getCircuitInfosFieldBuilder()3665 getCircuitInfosFieldBuilder() { 3666 if (circuitInfosBuilder_ == null) { 3667 circuitInfosBuilder_ = 3668 new com.google.protobuf.RepeatedFieldBuilderV3< 3669 com.google.cloud.compute.v1.InterconnectCircuitInfo, 3670 com.google.cloud.compute.v1.InterconnectCircuitInfo.Builder, 3671 com.google.cloud.compute.v1.InterconnectCircuitInfoOrBuilder>( 3672 circuitInfos_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); 3673 circuitInfos_ = null; 3674 } 3675 return circuitInfosBuilder_; 3676 } 3677 3678 private java.lang.Object creationTimestamp_ = ""; 3679 /** 3680 * 3681 * 3682 * <pre> 3683 * [Output Only] Creation timestamp in RFC3339 text format. 3684 * </pre> 3685 * 3686 * <code>optional string creation_timestamp = 30525366;</code> 3687 * 3688 * @return Whether the creationTimestamp field is set. 3689 */ hasCreationTimestamp()3690 public boolean hasCreationTimestamp() { 3691 return ((bitField0_ & 0x00000004) != 0); 3692 } 3693 /** 3694 * 3695 * 3696 * <pre> 3697 * [Output Only] Creation timestamp in RFC3339 text format. 3698 * </pre> 3699 * 3700 * <code>optional string creation_timestamp = 30525366;</code> 3701 * 3702 * @return The creationTimestamp. 3703 */ getCreationTimestamp()3704 public java.lang.String getCreationTimestamp() { 3705 java.lang.Object ref = creationTimestamp_; 3706 if (!(ref instanceof java.lang.String)) { 3707 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3708 java.lang.String s = bs.toStringUtf8(); 3709 creationTimestamp_ = s; 3710 return s; 3711 } else { 3712 return (java.lang.String) ref; 3713 } 3714 } 3715 /** 3716 * 3717 * 3718 * <pre> 3719 * [Output Only] Creation timestamp in RFC3339 text format. 3720 * </pre> 3721 * 3722 * <code>optional string creation_timestamp = 30525366;</code> 3723 * 3724 * @return The bytes for creationTimestamp. 3725 */ getCreationTimestampBytes()3726 public com.google.protobuf.ByteString getCreationTimestampBytes() { 3727 java.lang.Object ref = creationTimestamp_; 3728 if (ref instanceof String) { 3729 com.google.protobuf.ByteString b = 3730 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3731 creationTimestamp_ = b; 3732 return b; 3733 } else { 3734 return (com.google.protobuf.ByteString) ref; 3735 } 3736 } 3737 /** 3738 * 3739 * 3740 * <pre> 3741 * [Output Only] Creation timestamp in RFC3339 text format. 3742 * </pre> 3743 * 3744 * <code>optional string creation_timestamp = 30525366;</code> 3745 * 3746 * @param value The creationTimestamp to set. 3747 * @return This builder for chaining. 3748 */ setCreationTimestamp(java.lang.String value)3749 public Builder setCreationTimestamp(java.lang.String value) { 3750 if (value == null) { 3751 throw new NullPointerException(); 3752 } 3753 creationTimestamp_ = value; 3754 bitField0_ |= 0x00000004; 3755 onChanged(); 3756 return this; 3757 } 3758 /** 3759 * 3760 * 3761 * <pre> 3762 * [Output Only] Creation timestamp in RFC3339 text format. 3763 * </pre> 3764 * 3765 * <code>optional string creation_timestamp = 30525366;</code> 3766 * 3767 * @return This builder for chaining. 3768 */ clearCreationTimestamp()3769 public Builder clearCreationTimestamp() { 3770 creationTimestamp_ = getDefaultInstance().getCreationTimestamp(); 3771 bitField0_ = (bitField0_ & ~0x00000004); 3772 onChanged(); 3773 return this; 3774 } 3775 /** 3776 * 3777 * 3778 * <pre> 3779 * [Output Only] Creation timestamp in RFC3339 text format. 3780 * </pre> 3781 * 3782 * <code>optional string creation_timestamp = 30525366;</code> 3783 * 3784 * @param value The bytes for creationTimestamp to set. 3785 * @return This builder for chaining. 3786 */ setCreationTimestampBytes(com.google.protobuf.ByteString value)3787 public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { 3788 if (value == null) { 3789 throw new NullPointerException(); 3790 } 3791 checkByteStringIsUtf8(value); 3792 creationTimestamp_ = value; 3793 bitField0_ |= 0x00000004; 3794 onChanged(); 3795 return this; 3796 } 3797 3798 private java.lang.Object customerName_ = ""; 3799 /** 3800 * 3801 * 3802 * <pre> 3803 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 3804 * </pre> 3805 * 3806 * <code>optional string customer_name = 3665484;</code> 3807 * 3808 * @return Whether the customerName field is set. 3809 */ hasCustomerName()3810 public boolean hasCustomerName() { 3811 return ((bitField0_ & 0x00000008) != 0); 3812 } 3813 /** 3814 * 3815 * 3816 * <pre> 3817 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 3818 * </pre> 3819 * 3820 * <code>optional string customer_name = 3665484;</code> 3821 * 3822 * @return The customerName. 3823 */ getCustomerName()3824 public java.lang.String getCustomerName() { 3825 java.lang.Object ref = customerName_; 3826 if (!(ref instanceof java.lang.String)) { 3827 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3828 java.lang.String s = bs.toStringUtf8(); 3829 customerName_ = s; 3830 return s; 3831 } else { 3832 return (java.lang.String) ref; 3833 } 3834 } 3835 /** 3836 * 3837 * 3838 * <pre> 3839 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 3840 * </pre> 3841 * 3842 * <code>optional string customer_name = 3665484;</code> 3843 * 3844 * @return The bytes for customerName. 3845 */ getCustomerNameBytes()3846 public com.google.protobuf.ByteString getCustomerNameBytes() { 3847 java.lang.Object ref = customerName_; 3848 if (ref instanceof String) { 3849 com.google.protobuf.ByteString b = 3850 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3851 customerName_ = b; 3852 return b; 3853 } else { 3854 return (com.google.protobuf.ByteString) ref; 3855 } 3856 } 3857 /** 3858 * 3859 * 3860 * <pre> 3861 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 3862 * </pre> 3863 * 3864 * <code>optional string customer_name = 3665484;</code> 3865 * 3866 * @param value The customerName to set. 3867 * @return This builder for chaining. 3868 */ setCustomerName(java.lang.String value)3869 public Builder setCustomerName(java.lang.String value) { 3870 if (value == null) { 3871 throw new NullPointerException(); 3872 } 3873 customerName_ = value; 3874 bitField0_ |= 0x00000008; 3875 onChanged(); 3876 return this; 3877 } 3878 /** 3879 * 3880 * 3881 * <pre> 3882 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 3883 * </pre> 3884 * 3885 * <code>optional string customer_name = 3665484;</code> 3886 * 3887 * @return This builder for chaining. 3888 */ clearCustomerName()3889 public Builder clearCustomerName() { 3890 customerName_ = getDefaultInstance().getCustomerName(); 3891 bitField0_ = (bitField0_ & ~0x00000008); 3892 onChanged(); 3893 return this; 3894 } 3895 /** 3896 * 3897 * 3898 * <pre> 3899 * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. 3900 * </pre> 3901 * 3902 * <code>optional string customer_name = 3665484;</code> 3903 * 3904 * @param value The bytes for customerName to set. 3905 * @return This builder for chaining. 3906 */ setCustomerNameBytes(com.google.protobuf.ByteString value)3907 public Builder setCustomerNameBytes(com.google.protobuf.ByteString value) { 3908 if (value == null) { 3909 throw new NullPointerException(); 3910 } 3911 checkByteStringIsUtf8(value); 3912 customerName_ = value; 3913 bitField0_ |= 0x00000008; 3914 onChanged(); 3915 return this; 3916 } 3917 3918 private java.lang.Object description_ = ""; 3919 /** 3920 * 3921 * 3922 * <pre> 3923 * An optional description of this resource. Provide this property when you create the resource. 3924 * </pre> 3925 * 3926 * <code>optional string description = 422937596;</code> 3927 * 3928 * @return Whether the description field is set. 3929 */ hasDescription()3930 public boolean hasDescription() { 3931 return ((bitField0_ & 0x00000010) != 0); 3932 } 3933 /** 3934 * 3935 * 3936 * <pre> 3937 * An optional description of this resource. Provide this property when you create the resource. 3938 * </pre> 3939 * 3940 * <code>optional string description = 422937596;</code> 3941 * 3942 * @return The description. 3943 */ getDescription()3944 public java.lang.String getDescription() { 3945 java.lang.Object ref = description_; 3946 if (!(ref instanceof java.lang.String)) { 3947 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3948 java.lang.String s = bs.toStringUtf8(); 3949 description_ = s; 3950 return s; 3951 } else { 3952 return (java.lang.String) ref; 3953 } 3954 } 3955 /** 3956 * 3957 * 3958 * <pre> 3959 * An optional description of this resource. Provide this property when you create the resource. 3960 * </pre> 3961 * 3962 * <code>optional string description = 422937596;</code> 3963 * 3964 * @return The bytes for description. 3965 */ getDescriptionBytes()3966 public com.google.protobuf.ByteString getDescriptionBytes() { 3967 java.lang.Object ref = description_; 3968 if (ref instanceof String) { 3969 com.google.protobuf.ByteString b = 3970 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3971 description_ = b; 3972 return b; 3973 } else { 3974 return (com.google.protobuf.ByteString) ref; 3975 } 3976 } 3977 /** 3978 * 3979 * 3980 * <pre> 3981 * An optional description of this resource. Provide this property when you create the resource. 3982 * </pre> 3983 * 3984 * <code>optional string description = 422937596;</code> 3985 * 3986 * @param value The description to set. 3987 * @return This builder for chaining. 3988 */ setDescription(java.lang.String value)3989 public Builder setDescription(java.lang.String value) { 3990 if (value == null) { 3991 throw new NullPointerException(); 3992 } 3993 description_ = value; 3994 bitField0_ |= 0x00000010; 3995 onChanged(); 3996 return this; 3997 } 3998 /** 3999 * 4000 * 4001 * <pre> 4002 * An optional description of this resource. Provide this property when you create the resource. 4003 * </pre> 4004 * 4005 * <code>optional string description = 422937596;</code> 4006 * 4007 * @return This builder for chaining. 4008 */ clearDescription()4009 public Builder clearDescription() { 4010 description_ = getDefaultInstance().getDescription(); 4011 bitField0_ = (bitField0_ & ~0x00000010); 4012 onChanged(); 4013 return this; 4014 } 4015 /** 4016 * 4017 * 4018 * <pre> 4019 * An optional description of this resource. Provide this property when you create the resource. 4020 * </pre> 4021 * 4022 * <code>optional string description = 422937596;</code> 4023 * 4024 * @param value The bytes for description to set. 4025 * @return This builder for chaining. 4026 */ setDescriptionBytes(com.google.protobuf.ByteString value)4027 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 4028 if (value == null) { 4029 throw new NullPointerException(); 4030 } 4031 checkByteStringIsUtf8(value); 4032 description_ = value; 4033 bitField0_ |= 0x00000010; 4034 onChanged(); 4035 return this; 4036 } 4037 4038 private java.util.List<com.google.cloud.compute.v1.InterconnectOutageNotification> 4039 expectedOutages_ = java.util.Collections.emptyList(); 4040 ensureExpectedOutagesIsMutable()4041 private void ensureExpectedOutagesIsMutable() { 4042 if (!((bitField0_ & 0x00000020) != 0)) { 4043 expectedOutages_ = 4044 new java.util.ArrayList<com.google.cloud.compute.v1.InterconnectOutageNotification>( 4045 expectedOutages_); 4046 bitField0_ |= 0x00000020; 4047 } 4048 } 4049 4050 private com.google.protobuf.RepeatedFieldBuilderV3< 4051 com.google.cloud.compute.v1.InterconnectOutageNotification, 4052 com.google.cloud.compute.v1.InterconnectOutageNotification.Builder, 4053 com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder> 4054 expectedOutagesBuilder_; 4055 4056 /** 4057 * 4058 * 4059 * <pre> 4060 * [Output Only] A list of outages expected for this Interconnect. 4061 * </pre> 4062 * 4063 * <code> 4064 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4065 * </code> 4066 */ 4067 public java.util.List<com.google.cloud.compute.v1.InterconnectOutageNotification> getExpectedOutagesList()4068 getExpectedOutagesList() { 4069 if (expectedOutagesBuilder_ == null) { 4070 return java.util.Collections.unmodifiableList(expectedOutages_); 4071 } else { 4072 return expectedOutagesBuilder_.getMessageList(); 4073 } 4074 } 4075 /** 4076 * 4077 * 4078 * <pre> 4079 * [Output Only] A list of outages expected for this Interconnect. 4080 * </pre> 4081 * 4082 * <code> 4083 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4084 * </code> 4085 */ getExpectedOutagesCount()4086 public int getExpectedOutagesCount() { 4087 if (expectedOutagesBuilder_ == null) { 4088 return expectedOutages_.size(); 4089 } else { 4090 return expectedOutagesBuilder_.getCount(); 4091 } 4092 } 4093 /** 4094 * 4095 * 4096 * <pre> 4097 * [Output Only] A list of outages expected for this Interconnect. 4098 * </pre> 4099 * 4100 * <code> 4101 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4102 * </code> 4103 */ getExpectedOutages( int index)4104 public com.google.cloud.compute.v1.InterconnectOutageNotification getExpectedOutages( 4105 int index) { 4106 if (expectedOutagesBuilder_ == null) { 4107 return expectedOutages_.get(index); 4108 } else { 4109 return expectedOutagesBuilder_.getMessage(index); 4110 } 4111 } 4112 /** 4113 * 4114 * 4115 * <pre> 4116 * [Output Only] A list of outages expected for this Interconnect. 4117 * </pre> 4118 * 4119 * <code> 4120 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4121 * </code> 4122 */ setExpectedOutages( int index, com.google.cloud.compute.v1.InterconnectOutageNotification value)4123 public Builder setExpectedOutages( 4124 int index, com.google.cloud.compute.v1.InterconnectOutageNotification value) { 4125 if (expectedOutagesBuilder_ == null) { 4126 if (value == null) { 4127 throw new NullPointerException(); 4128 } 4129 ensureExpectedOutagesIsMutable(); 4130 expectedOutages_.set(index, value); 4131 onChanged(); 4132 } else { 4133 expectedOutagesBuilder_.setMessage(index, value); 4134 } 4135 return this; 4136 } 4137 /** 4138 * 4139 * 4140 * <pre> 4141 * [Output Only] A list of outages expected for this Interconnect. 4142 * </pre> 4143 * 4144 * <code> 4145 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4146 * </code> 4147 */ setExpectedOutages( int index, com.google.cloud.compute.v1.InterconnectOutageNotification.Builder builderForValue)4148 public Builder setExpectedOutages( 4149 int index, 4150 com.google.cloud.compute.v1.InterconnectOutageNotification.Builder builderForValue) { 4151 if (expectedOutagesBuilder_ == null) { 4152 ensureExpectedOutagesIsMutable(); 4153 expectedOutages_.set(index, builderForValue.build()); 4154 onChanged(); 4155 } else { 4156 expectedOutagesBuilder_.setMessage(index, builderForValue.build()); 4157 } 4158 return this; 4159 } 4160 /** 4161 * 4162 * 4163 * <pre> 4164 * [Output Only] A list of outages expected for this Interconnect. 4165 * </pre> 4166 * 4167 * <code> 4168 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4169 * </code> 4170 */ addExpectedOutages( com.google.cloud.compute.v1.InterconnectOutageNotification value)4171 public Builder addExpectedOutages( 4172 com.google.cloud.compute.v1.InterconnectOutageNotification value) { 4173 if (expectedOutagesBuilder_ == null) { 4174 if (value == null) { 4175 throw new NullPointerException(); 4176 } 4177 ensureExpectedOutagesIsMutable(); 4178 expectedOutages_.add(value); 4179 onChanged(); 4180 } else { 4181 expectedOutagesBuilder_.addMessage(value); 4182 } 4183 return this; 4184 } 4185 /** 4186 * 4187 * 4188 * <pre> 4189 * [Output Only] A list of outages expected for this Interconnect. 4190 * </pre> 4191 * 4192 * <code> 4193 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4194 * </code> 4195 */ addExpectedOutages( int index, com.google.cloud.compute.v1.InterconnectOutageNotification value)4196 public Builder addExpectedOutages( 4197 int index, com.google.cloud.compute.v1.InterconnectOutageNotification value) { 4198 if (expectedOutagesBuilder_ == null) { 4199 if (value == null) { 4200 throw new NullPointerException(); 4201 } 4202 ensureExpectedOutagesIsMutable(); 4203 expectedOutages_.add(index, value); 4204 onChanged(); 4205 } else { 4206 expectedOutagesBuilder_.addMessage(index, value); 4207 } 4208 return this; 4209 } 4210 /** 4211 * 4212 * 4213 * <pre> 4214 * [Output Only] A list of outages expected for this Interconnect. 4215 * </pre> 4216 * 4217 * <code> 4218 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4219 * </code> 4220 */ addExpectedOutages( com.google.cloud.compute.v1.InterconnectOutageNotification.Builder builderForValue)4221 public Builder addExpectedOutages( 4222 com.google.cloud.compute.v1.InterconnectOutageNotification.Builder builderForValue) { 4223 if (expectedOutagesBuilder_ == null) { 4224 ensureExpectedOutagesIsMutable(); 4225 expectedOutages_.add(builderForValue.build()); 4226 onChanged(); 4227 } else { 4228 expectedOutagesBuilder_.addMessage(builderForValue.build()); 4229 } 4230 return this; 4231 } 4232 /** 4233 * 4234 * 4235 * <pre> 4236 * [Output Only] A list of outages expected for this Interconnect. 4237 * </pre> 4238 * 4239 * <code> 4240 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4241 * </code> 4242 */ addExpectedOutages( int index, com.google.cloud.compute.v1.InterconnectOutageNotification.Builder builderForValue)4243 public Builder addExpectedOutages( 4244 int index, 4245 com.google.cloud.compute.v1.InterconnectOutageNotification.Builder builderForValue) { 4246 if (expectedOutagesBuilder_ == null) { 4247 ensureExpectedOutagesIsMutable(); 4248 expectedOutages_.add(index, builderForValue.build()); 4249 onChanged(); 4250 } else { 4251 expectedOutagesBuilder_.addMessage(index, builderForValue.build()); 4252 } 4253 return this; 4254 } 4255 /** 4256 * 4257 * 4258 * <pre> 4259 * [Output Only] A list of outages expected for this Interconnect. 4260 * </pre> 4261 * 4262 * <code> 4263 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4264 * </code> 4265 */ addAllExpectedOutages( java.lang.Iterable<? extends com.google.cloud.compute.v1.InterconnectOutageNotification> values)4266 public Builder addAllExpectedOutages( 4267 java.lang.Iterable<? extends com.google.cloud.compute.v1.InterconnectOutageNotification> 4268 values) { 4269 if (expectedOutagesBuilder_ == null) { 4270 ensureExpectedOutagesIsMutable(); 4271 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expectedOutages_); 4272 onChanged(); 4273 } else { 4274 expectedOutagesBuilder_.addAllMessages(values); 4275 } 4276 return this; 4277 } 4278 /** 4279 * 4280 * 4281 * <pre> 4282 * [Output Only] A list of outages expected for this Interconnect. 4283 * </pre> 4284 * 4285 * <code> 4286 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4287 * </code> 4288 */ clearExpectedOutages()4289 public Builder clearExpectedOutages() { 4290 if (expectedOutagesBuilder_ == null) { 4291 expectedOutages_ = java.util.Collections.emptyList(); 4292 bitField0_ = (bitField0_ & ~0x00000020); 4293 onChanged(); 4294 } else { 4295 expectedOutagesBuilder_.clear(); 4296 } 4297 return this; 4298 } 4299 /** 4300 * 4301 * 4302 * <pre> 4303 * [Output Only] A list of outages expected for this Interconnect. 4304 * </pre> 4305 * 4306 * <code> 4307 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4308 * </code> 4309 */ removeExpectedOutages(int index)4310 public Builder removeExpectedOutages(int index) { 4311 if (expectedOutagesBuilder_ == null) { 4312 ensureExpectedOutagesIsMutable(); 4313 expectedOutages_.remove(index); 4314 onChanged(); 4315 } else { 4316 expectedOutagesBuilder_.remove(index); 4317 } 4318 return this; 4319 } 4320 /** 4321 * 4322 * 4323 * <pre> 4324 * [Output Only] A list of outages expected for this Interconnect. 4325 * </pre> 4326 * 4327 * <code> 4328 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4329 * </code> 4330 */ 4331 public com.google.cloud.compute.v1.InterconnectOutageNotification.Builder getExpectedOutagesBuilder(int index)4332 getExpectedOutagesBuilder(int index) { 4333 return getExpectedOutagesFieldBuilder().getBuilder(index); 4334 } 4335 /** 4336 * 4337 * 4338 * <pre> 4339 * [Output Only] A list of outages expected for this Interconnect. 4340 * </pre> 4341 * 4342 * <code> 4343 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4344 * </code> 4345 */ 4346 public com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder getExpectedOutagesOrBuilder(int index)4347 getExpectedOutagesOrBuilder(int index) { 4348 if (expectedOutagesBuilder_ == null) { 4349 return expectedOutages_.get(index); 4350 } else { 4351 return expectedOutagesBuilder_.getMessageOrBuilder(index); 4352 } 4353 } 4354 /** 4355 * 4356 * 4357 * <pre> 4358 * [Output Only] A list of outages expected for this Interconnect. 4359 * </pre> 4360 * 4361 * <code> 4362 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4363 * </code> 4364 */ 4365 public java.util.List< 4366 ? extends com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder> getExpectedOutagesOrBuilderList()4367 getExpectedOutagesOrBuilderList() { 4368 if (expectedOutagesBuilder_ != null) { 4369 return expectedOutagesBuilder_.getMessageOrBuilderList(); 4370 } else { 4371 return java.util.Collections.unmodifiableList(expectedOutages_); 4372 } 4373 } 4374 /** 4375 * 4376 * 4377 * <pre> 4378 * [Output Only] A list of outages expected for this Interconnect. 4379 * </pre> 4380 * 4381 * <code> 4382 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4383 * </code> 4384 */ 4385 public com.google.cloud.compute.v1.InterconnectOutageNotification.Builder addExpectedOutagesBuilder()4386 addExpectedOutagesBuilder() { 4387 return getExpectedOutagesFieldBuilder() 4388 .addBuilder( 4389 com.google.cloud.compute.v1.InterconnectOutageNotification.getDefaultInstance()); 4390 } 4391 /** 4392 * 4393 * 4394 * <pre> 4395 * [Output Only] A list of outages expected for this Interconnect. 4396 * </pre> 4397 * 4398 * <code> 4399 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4400 * </code> 4401 */ 4402 public com.google.cloud.compute.v1.InterconnectOutageNotification.Builder addExpectedOutagesBuilder(int index)4403 addExpectedOutagesBuilder(int index) { 4404 return getExpectedOutagesFieldBuilder() 4405 .addBuilder( 4406 index, 4407 com.google.cloud.compute.v1.InterconnectOutageNotification.getDefaultInstance()); 4408 } 4409 /** 4410 * 4411 * 4412 * <pre> 4413 * [Output Only] A list of outages expected for this Interconnect. 4414 * </pre> 4415 * 4416 * <code> 4417 * repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; 4418 * </code> 4419 */ 4420 public java.util.List<com.google.cloud.compute.v1.InterconnectOutageNotification.Builder> getExpectedOutagesBuilderList()4421 getExpectedOutagesBuilderList() { 4422 return getExpectedOutagesFieldBuilder().getBuilderList(); 4423 } 4424 4425 private com.google.protobuf.RepeatedFieldBuilderV3< 4426 com.google.cloud.compute.v1.InterconnectOutageNotification, 4427 com.google.cloud.compute.v1.InterconnectOutageNotification.Builder, 4428 com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder> getExpectedOutagesFieldBuilder()4429 getExpectedOutagesFieldBuilder() { 4430 if (expectedOutagesBuilder_ == null) { 4431 expectedOutagesBuilder_ = 4432 new com.google.protobuf.RepeatedFieldBuilderV3< 4433 com.google.cloud.compute.v1.InterconnectOutageNotification, 4434 com.google.cloud.compute.v1.InterconnectOutageNotification.Builder, 4435 com.google.cloud.compute.v1.InterconnectOutageNotificationOrBuilder>( 4436 expectedOutages_, 4437 ((bitField0_ & 0x00000020) != 0), 4438 getParentForChildren(), 4439 isClean()); 4440 expectedOutages_ = null; 4441 } 4442 return expectedOutagesBuilder_; 4443 } 4444 4445 private java.lang.Object googleIpAddress_ = ""; 4446 /** 4447 * 4448 * 4449 * <pre> 4450 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 4451 * </pre> 4452 * 4453 * <code>optional string google_ip_address = 443105954;</code> 4454 * 4455 * @return Whether the googleIpAddress field is set. 4456 */ hasGoogleIpAddress()4457 public boolean hasGoogleIpAddress() { 4458 return ((bitField0_ & 0x00000040) != 0); 4459 } 4460 /** 4461 * 4462 * 4463 * <pre> 4464 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 4465 * </pre> 4466 * 4467 * <code>optional string google_ip_address = 443105954;</code> 4468 * 4469 * @return The googleIpAddress. 4470 */ getGoogleIpAddress()4471 public java.lang.String getGoogleIpAddress() { 4472 java.lang.Object ref = googleIpAddress_; 4473 if (!(ref instanceof java.lang.String)) { 4474 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4475 java.lang.String s = bs.toStringUtf8(); 4476 googleIpAddress_ = s; 4477 return s; 4478 } else { 4479 return (java.lang.String) ref; 4480 } 4481 } 4482 /** 4483 * 4484 * 4485 * <pre> 4486 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 4487 * </pre> 4488 * 4489 * <code>optional string google_ip_address = 443105954;</code> 4490 * 4491 * @return The bytes for googleIpAddress. 4492 */ getGoogleIpAddressBytes()4493 public com.google.protobuf.ByteString getGoogleIpAddressBytes() { 4494 java.lang.Object ref = googleIpAddress_; 4495 if (ref instanceof String) { 4496 com.google.protobuf.ByteString b = 4497 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4498 googleIpAddress_ = b; 4499 return b; 4500 } else { 4501 return (com.google.protobuf.ByteString) ref; 4502 } 4503 } 4504 /** 4505 * 4506 * 4507 * <pre> 4508 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 4509 * </pre> 4510 * 4511 * <code>optional string google_ip_address = 443105954;</code> 4512 * 4513 * @param value The googleIpAddress to set. 4514 * @return This builder for chaining. 4515 */ setGoogleIpAddress(java.lang.String value)4516 public Builder setGoogleIpAddress(java.lang.String value) { 4517 if (value == null) { 4518 throw new NullPointerException(); 4519 } 4520 googleIpAddress_ = value; 4521 bitField0_ |= 0x00000040; 4522 onChanged(); 4523 return this; 4524 } 4525 /** 4526 * 4527 * 4528 * <pre> 4529 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 4530 * </pre> 4531 * 4532 * <code>optional string google_ip_address = 443105954;</code> 4533 * 4534 * @return This builder for chaining. 4535 */ clearGoogleIpAddress()4536 public Builder clearGoogleIpAddress() { 4537 googleIpAddress_ = getDefaultInstance().getGoogleIpAddress(); 4538 bitField0_ = (bitField0_ & ~0x00000040); 4539 onChanged(); 4540 return this; 4541 } 4542 /** 4543 * 4544 * 4545 * <pre> 4546 * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. 4547 * </pre> 4548 * 4549 * <code>optional string google_ip_address = 443105954;</code> 4550 * 4551 * @param value The bytes for googleIpAddress to set. 4552 * @return This builder for chaining. 4553 */ setGoogleIpAddressBytes(com.google.protobuf.ByteString value)4554 public Builder setGoogleIpAddressBytes(com.google.protobuf.ByteString value) { 4555 if (value == null) { 4556 throw new NullPointerException(); 4557 } 4558 checkByteStringIsUtf8(value); 4559 googleIpAddress_ = value; 4560 bitField0_ |= 0x00000040; 4561 onChanged(); 4562 return this; 4563 } 4564 4565 private java.lang.Object googleReferenceId_ = ""; 4566 /** 4567 * 4568 * 4569 * <pre> 4570 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 4571 * </pre> 4572 * 4573 * <code>optional string google_reference_id = 534944469;</code> 4574 * 4575 * @return Whether the googleReferenceId field is set. 4576 */ hasGoogleReferenceId()4577 public boolean hasGoogleReferenceId() { 4578 return ((bitField0_ & 0x00000080) != 0); 4579 } 4580 /** 4581 * 4582 * 4583 * <pre> 4584 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 4585 * </pre> 4586 * 4587 * <code>optional string google_reference_id = 534944469;</code> 4588 * 4589 * @return The googleReferenceId. 4590 */ getGoogleReferenceId()4591 public java.lang.String getGoogleReferenceId() { 4592 java.lang.Object ref = googleReferenceId_; 4593 if (!(ref instanceof java.lang.String)) { 4594 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4595 java.lang.String s = bs.toStringUtf8(); 4596 googleReferenceId_ = s; 4597 return s; 4598 } else { 4599 return (java.lang.String) ref; 4600 } 4601 } 4602 /** 4603 * 4604 * 4605 * <pre> 4606 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 4607 * </pre> 4608 * 4609 * <code>optional string google_reference_id = 534944469;</code> 4610 * 4611 * @return The bytes for googleReferenceId. 4612 */ getGoogleReferenceIdBytes()4613 public com.google.protobuf.ByteString getGoogleReferenceIdBytes() { 4614 java.lang.Object ref = googleReferenceId_; 4615 if (ref instanceof String) { 4616 com.google.protobuf.ByteString b = 4617 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4618 googleReferenceId_ = b; 4619 return b; 4620 } else { 4621 return (com.google.protobuf.ByteString) ref; 4622 } 4623 } 4624 /** 4625 * 4626 * 4627 * <pre> 4628 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 4629 * </pre> 4630 * 4631 * <code>optional string google_reference_id = 534944469;</code> 4632 * 4633 * @param value The googleReferenceId to set. 4634 * @return This builder for chaining. 4635 */ setGoogleReferenceId(java.lang.String value)4636 public Builder setGoogleReferenceId(java.lang.String value) { 4637 if (value == null) { 4638 throw new NullPointerException(); 4639 } 4640 googleReferenceId_ = value; 4641 bitField0_ |= 0x00000080; 4642 onChanged(); 4643 return this; 4644 } 4645 /** 4646 * 4647 * 4648 * <pre> 4649 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 4650 * </pre> 4651 * 4652 * <code>optional string google_reference_id = 534944469;</code> 4653 * 4654 * @return This builder for chaining. 4655 */ clearGoogleReferenceId()4656 public Builder clearGoogleReferenceId() { 4657 googleReferenceId_ = getDefaultInstance().getGoogleReferenceId(); 4658 bitField0_ = (bitField0_ & ~0x00000080); 4659 onChanged(); 4660 return this; 4661 } 4662 /** 4663 * 4664 * 4665 * <pre> 4666 * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. 4667 * </pre> 4668 * 4669 * <code>optional string google_reference_id = 534944469;</code> 4670 * 4671 * @param value The bytes for googleReferenceId to set. 4672 * @return This builder for chaining. 4673 */ setGoogleReferenceIdBytes(com.google.protobuf.ByteString value)4674 public Builder setGoogleReferenceIdBytes(com.google.protobuf.ByteString value) { 4675 if (value == null) { 4676 throw new NullPointerException(); 4677 } 4678 checkByteStringIsUtf8(value); 4679 googleReferenceId_ = value; 4680 bitField0_ |= 0x00000080; 4681 onChanged(); 4682 return this; 4683 } 4684 4685 private long id_; 4686 /** 4687 * 4688 * 4689 * <pre> 4690 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 4691 * </pre> 4692 * 4693 * <code>optional uint64 id = 3355;</code> 4694 * 4695 * @return Whether the id field is set. 4696 */ 4697 @java.lang.Override hasId()4698 public boolean hasId() { 4699 return ((bitField0_ & 0x00000100) != 0); 4700 } 4701 /** 4702 * 4703 * 4704 * <pre> 4705 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 4706 * </pre> 4707 * 4708 * <code>optional uint64 id = 3355;</code> 4709 * 4710 * @return The id. 4711 */ 4712 @java.lang.Override getId()4713 public long getId() { 4714 return id_; 4715 } 4716 /** 4717 * 4718 * 4719 * <pre> 4720 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 4721 * </pre> 4722 * 4723 * <code>optional uint64 id = 3355;</code> 4724 * 4725 * @param value The id to set. 4726 * @return This builder for chaining. 4727 */ setId(long value)4728 public Builder setId(long value) { 4729 4730 id_ = value; 4731 bitField0_ |= 0x00000100; 4732 onChanged(); 4733 return this; 4734 } 4735 /** 4736 * 4737 * 4738 * <pre> 4739 * [Output Only] The unique identifier for the resource. This identifier is defined by the server. 4740 * </pre> 4741 * 4742 * <code>optional uint64 id = 3355;</code> 4743 * 4744 * @return This builder for chaining. 4745 */ clearId()4746 public Builder clearId() { 4747 bitField0_ = (bitField0_ & ~0x00000100); 4748 id_ = 0L; 4749 onChanged(); 4750 return this; 4751 } 4752 4753 private com.google.protobuf.LazyStringList interconnectAttachments_ = 4754 com.google.protobuf.LazyStringArrayList.EMPTY; 4755 ensureInterconnectAttachmentsIsMutable()4756 private void ensureInterconnectAttachmentsIsMutable() { 4757 if (!((bitField0_ & 0x00000200) != 0)) { 4758 interconnectAttachments_ = 4759 new com.google.protobuf.LazyStringArrayList(interconnectAttachments_); 4760 bitField0_ |= 0x00000200; 4761 } 4762 } 4763 /** 4764 * 4765 * 4766 * <pre> 4767 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4768 * </pre> 4769 * 4770 * <code>repeated string interconnect_attachments = 425388415;</code> 4771 * 4772 * @return A list containing the interconnectAttachments. 4773 */ getInterconnectAttachmentsList()4774 public com.google.protobuf.ProtocolStringList getInterconnectAttachmentsList() { 4775 return interconnectAttachments_.getUnmodifiableView(); 4776 } 4777 /** 4778 * 4779 * 4780 * <pre> 4781 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4782 * </pre> 4783 * 4784 * <code>repeated string interconnect_attachments = 425388415;</code> 4785 * 4786 * @return The count of interconnectAttachments. 4787 */ getInterconnectAttachmentsCount()4788 public int getInterconnectAttachmentsCount() { 4789 return interconnectAttachments_.size(); 4790 } 4791 /** 4792 * 4793 * 4794 * <pre> 4795 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4796 * </pre> 4797 * 4798 * <code>repeated string interconnect_attachments = 425388415;</code> 4799 * 4800 * @param index The index of the element to return. 4801 * @return The interconnectAttachments at the given index. 4802 */ getInterconnectAttachments(int index)4803 public java.lang.String getInterconnectAttachments(int index) { 4804 return interconnectAttachments_.get(index); 4805 } 4806 /** 4807 * 4808 * 4809 * <pre> 4810 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4811 * </pre> 4812 * 4813 * <code>repeated string interconnect_attachments = 425388415;</code> 4814 * 4815 * @param index The index of the value to return. 4816 * @return The bytes of the interconnectAttachments at the given index. 4817 */ getInterconnectAttachmentsBytes(int index)4818 public com.google.protobuf.ByteString getInterconnectAttachmentsBytes(int index) { 4819 return interconnectAttachments_.getByteString(index); 4820 } 4821 /** 4822 * 4823 * 4824 * <pre> 4825 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4826 * </pre> 4827 * 4828 * <code>repeated string interconnect_attachments = 425388415;</code> 4829 * 4830 * @param index The index to set the value at. 4831 * @param value The interconnectAttachments to set. 4832 * @return This builder for chaining. 4833 */ setInterconnectAttachments(int index, java.lang.String value)4834 public Builder setInterconnectAttachments(int index, java.lang.String value) { 4835 if (value == null) { 4836 throw new NullPointerException(); 4837 } 4838 ensureInterconnectAttachmentsIsMutable(); 4839 interconnectAttachments_.set(index, value); 4840 onChanged(); 4841 return this; 4842 } 4843 /** 4844 * 4845 * 4846 * <pre> 4847 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4848 * </pre> 4849 * 4850 * <code>repeated string interconnect_attachments = 425388415;</code> 4851 * 4852 * @param value The interconnectAttachments to add. 4853 * @return This builder for chaining. 4854 */ addInterconnectAttachments(java.lang.String value)4855 public Builder addInterconnectAttachments(java.lang.String value) { 4856 if (value == null) { 4857 throw new NullPointerException(); 4858 } 4859 ensureInterconnectAttachmentsIsMutable(); 4860 interconnectAttachments_.add(value); 4861 onChanged(); 4862 return this; 4863 } 4864 /** 4865 * 4866 * 4867 * <pre> 4868 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4869 * </pre> 4870 * 4871 * <code>repeated string interconnect_attachments = 425388415;</code> 4872 * 4873 * @param values The interconnectAttachments to add. 4874 * @return This builder for chaining. 4875 */ addAllInterconnectAttachments(java.lang.Iterable<java.lang.String> values)4876 public Builder addAllInterconnectAttachments(java.lang.Iterable<java.lang.String> values) { 4877 ensureInterconnectAttachmentsIsMutable(); 4878 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interconnectAttachments_); 4879 onChanged(); 4880 return this; 4881 } 4882 /** 4883 * 4884 * 4885 * <pre> 4886 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4887 * </pre> 4888 * 4889 * <code>repeated string interconnect_attachments = 425388415;</code> 4890 * 4891 * @return This builder for chaining. 4892 */ clearInterconnectAttachments()4893 public Builder clearInterconnectAttachments() { 4894 interconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4895 bitField0_ = (bitField0_ & ~0x00000200); 4896 onChanged(); 4897 return this; 4898 } 4899 /** 4900 * 4901 * 4902 * <pre> 4903 * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. 4904 * </pre> 4905 * 4906 * <code>repeated string interconnect_attachments = 425388415;</code> 4907 * 4908 * @param value The bytes of the interconnectAttachments to add. 4909 * @return This builder for chaining. 4910 */ addInterconnectAttachmentsBytes(com.google.protobuf.ByteString value)4911 public Builder addInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { 4912 if (value == null) { 4913 throw new NullPointerException(); 4914 } 4915 checkByteStringIsUtf8(value); 4916 ensureInterconnectAttachmentsIsMutable(); 4917 interconnectAttachments_.add(value); 4918 onChanged(); 4919 return this; 4920 } 4921 4922 private java.lang.Object interconnectType_ = ""; 4923 /** 4924 * 4925 * 4926 * <pre> 4927 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 4928 * Check the InterconnectType enum for the list of possible values. 4929 * </pre> 4930 * 4931 * <code>optional string interconnect_type = 515165259;</code> 4932 * 4933 * @return Whether the interconnectType field is set. 4934 */ hasInterconnectType()4935 public boolean hasInterconnectType() { 4936 return ((bitField0_ & 0x00000400) != 0); 4937 } 4938 /** 4939 * 4940 * 4941 * <pre> 4942 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 4943 * Check the InterconnectType enum for the list of possible values. 4944 * </pre> 4945 * 4946 * <code>optional string interconnect_type = 515165259;</code> 4947 * 4948 * @return The interconnectType. 4949 */ getInterconnectType()4950 public java.lang.String getInterconnectType() { 4951 java.lang.Object ref = interconnectType_; 4952 if (!(ref instanceof java.lang.String)) { 4953 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4954 java.lang.String s = bs.toStringUtf8(); 4955 interconnectType_ = s; 4956 return s; 4957 } else { 4958 return (java.lang.String) ref; 4959 } 4960 } 4961 /** 4962 * 4963 * 4964 * <pre> 4965 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 4966 * Check the InterconnectType enum for the list of possible values. 4967 * </pre> 4968 * 4969 * <code>optional string interconnect_type = 515165259;</code> 4970 * 4971 * @return The bytes for interconnectType. 4972 */ getInterconnectTypeBytes()4973 public com.google.protobuf.ByteString getInterconnectTypeBytes() { 4974 java.lang.Object ref = interconnectType_; 4975 if (ref instanceof String) { 4976 com.google.protobuf.ByteString b = 4977 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4978 interconnectType_ = b; 4979 return b; 4980 } else { 4981 return (com.google.protobuf.ByteString) ref; 4982 } 4983 } 4984 /** 4985 * 4986 * 4987 * <pre> 4988 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 4989 * Check the InterconnectType enum for the list of possible values. 4990 * </pre> 4991 * 4992 * <code>optional string interconnect_type = 515165259;</code> 4993 * 4994 * @param value The interconnectType to set. 4995 * @return This builder for chaining. 4996 */ setInterconnectType(java.lang.String value)4997 public Builder setInterconnectType(java.lang.String value) { 4998 if (value == null) { 4999 throw new NullPointerException(); 5000 } 5001 interconnectType_ = value; 5002 bitField0_ |= 0x00000400; 5003 onChanged(); 5004 return this; 5005 } 5006 /** 5007 * 5008 * 5009 * <pre> 5010 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 5011 * Check the InterconnectType enum for the list of possible values. 5012 * </pre> 5013 * 5014 * <code>optional string interconnect_type = 515165259;</code> 5015 * 5016 * @return This builder for chaining. 5017 */ clearInterconnectType()5018 public Builder clearInterconnectType() { 5019 interconnectType_ = getDefaultInstance().getInterconnectType(); 5020 bitField0_ = (bitField0_ & ~0x00000400); 5021 onChanged(); 5022 return this; 5023 } 5024 /** 5025 * 5026 * 5027 * <pre> 5028 * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. 5029 * Check the InterconnectType enum for the list of possible values. 5030 * </pre> 5031 * 5032 * <code>optional string interconnect_type = 515165259;</code> 5033 * 5034 * @param value The bytes for interconnectType to set. 5035 * @return This builder for chaining. 5036 */ setInterconnectTypeBytes(com.google.protobuf.ByteString value)5037 public Builder setInterconnectTypeBytes(com.google.protobuf.ByteString value) { 5038 if (value == null) { 5039 throw new NullPointerException(); 5040 } 5041 checkByteStringIsUtf8(value); 5042 interconnectType_ = value; 5043 bitField0_ |= 0x00000400; 5044 onChanged(); 5045 return this; 5046 } 5047 5048 private java.lang.Object kind_ = ""; 5049 /** 5050 * 5051 * 5052 * <pre> 5053 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 5054 * </pre> 5055 * 5056 * <code>optional string kind = 3292052;</code> 5057 * 5058 * @return Whether the kind field is set. 5059 */ hasKind()5060 public boolean hasKind() { 5061 return ((bitField0_ & 0x00000800) != 0); 5062 } 5063 /** 5064 * 5065 * 5066 * <pre> 5067 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 5068 * </pre> 5069 * 5070 * <code>optional string kind = 3292052;</code> 5071 * 5072 * @return The kind. 5073 */ getKind()5074 public java.lang.String getKind() { 5075 java.lang.Object ref = kind_; 5076 if (!(ref instanceof java.lang.String)) { 5077 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5078 java.lang.String s = bs.toStringUtf8(); 5079 kind_ = s; 5080 return s; 5081 } else { 5082 return (java.lang.String) ref; 5083 } 5084 } 5085 /** 5086 * 5087 * 5088 * <pre> 5089 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 5090 * </pre> 5091 * 5092 * <code>optional string kind = 3292052;</code> 5093 * 5094 * @return The bytes for kind. 5095 */ getKindBytes()5096 public com.google.protobuf.ByteString getKindBytes() { 5097 java.lang.Object ref = kind_; 5098 if (ref instanceof String) { 5099 com.google.protobuf.ByteString b = 5100 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5101 kind_ = b; 5102 return b; 5103 } else { 5104 return (com.google.protobuf.ByteString) ref; 5105 } 5106 } 5107 /** 5108 * 5109 * 5110 * <pre> 5111 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 5112 * </pre> 5113 * 5114 * <code>optional string kind = 3292052;</code> 5115 * 5116 * @param value The kind to set. 5117 * @return This builder for chaining. 5118 */ setKind(java.lang.String value)5119 public Builder setKind(java.lang.String value) { 5120 if (value == null) { 5121 throw new NullPointerException(); 5122 } 5123 kind_ = value; 5124 bitField0_ |= 0x00000800; 5125 onChanged(); 5126 return this; 5127 } 5128 /** 5129 * 5130 * 5131 * <pre> 5132 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 5133 * </pre> 5134 * 5135 * <code>optional string kind = 3292052;</code> 5136 * 5137 * @return This builder for chaining. 5138 */ clearKind()5139 public Builder clearKind() { 5140 kind_ = getDefaultInstance().getKind(); 5141 bitField0_ = (bitField0_ & ~0x00000800); 5142 onChanged(); 5143 return this; 5144 } 5145 /** 5146 * 5147 * 5148 * <pre> 5149 * [Output Only] Type of the resource. Always compute#interconnect for interconnects. 5150 * </pre> 5151 * 5152 * <code>optional string kind = 3292052;</code> 5153 * 5154 * @param value The bytes for kind to set. 5155 * @return This builder for chaining. 5156 */ setKindBytes(com.google.protobuf.ByteString value)5157 public Builder setKindBytes(com.google.protobuf.ByteString value) { 5158 if (value == null) { 5159 throw new NullPointerException(); 5160 } 5161 checkByteStringIsUtf8(value); 5162 kind_ = value; 5163 bitField0_ |= 0x00000800; 5164 onChanged(); 5165 return this; 5166 } 5167 5168 private java.lang.Object linkType_ = ""; 5169 /** 5170 * 5171 * 5172 * <pre> 5173 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 5174 * Check the LinkType enum for the list of possible values. 5175 * </pre> 5176 * 5177 * <code>optional string link_type = 523207775;</code> 5178 * 5179 * @return Whether the linkType field is set. 5180 */ hasLinkType()5181 public boolean hasLinkType() { 5182 return ((bitField0_ & 0x00001000) != 0); 5183 } 5184 /** 5185 * 5186 * 5187 * <pre> 5188 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 5189 * Check the LinkType enum for the list of possible values. 5190 * </pre> 5191 * 5192 * <code>optional string link_type = 523207775;</code> 5193 * 5194 * @return The linkType. 5195 */ getLinkType()5196 public java.lang.String getLinkType() { 5197 java.lang.Object ref = linkType_; 5198 if (!(ref instanceof java.lang.String)) { 5199 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5200 java.lang.String s = bs.toStringUtf8(); 5201 linkType_ = s; 5202 return s; 5203 } else { 5204 return (java.lang.String) ref; 5205 } 5206 } 5207 /** 5208 * 5209 * 5210 * <pre> 5211 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 5212 * Check the LinkType enum for the list of possible values. 5213 * </pre> 5214 * 5215 * <code>optional string link_type = 523207775;</code> 5216 * 5217 * @return The bytes for linkType. 5218 */ getLinkTypeBytes()5219 public com.google.protobuf.ByteString getLinkTypeBytes() { 5220 java.lang.Object ref = linkType_; 5221 if (ref instanceof String) { 5222 com.google.protobuf.ByteString b = 5223 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5224 linkType_ = b; 5225 return b; 5226 } else { 5227 return (com.google.protobuf.ByteString) ref; 5228 } 5229 } 5230 /** 5231 * 5232 * 5233 * <pre> 5234 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 5235 * Check the LinkType enum for the list of possible values. 5236 * </pre> 5237 * 5238 * <code>optional string link_type = 523207775;</code> 5239 * 5240 * @param value The linkType to set. 5241 * @return This builder for chaining. 5242 */ setLinkType(java.lang.String value)5243 public Builder setLinkType(java.lang.String value) { 5244 if (value == null) { 5245 throw new NullPointerException(); 5246 } 5247 linkType_ = value; 5248 bitField0_ |= 0x00001000; 5249 onChanged(); 5250 return this; 5251 } 5252 /** 5253 * 5254 * 5255 * <pre> 5256 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 5257 * Check the LinkType enum for the list of possible values. 5258 * </pre> 5259 * 5260 * <code>optional string link_type = 523207775;</code> 5261 * 5262 * @return This builder for chaining. 5263 */ clearLinkType()5264 public Builder clearLinkType() { 5265 linkType_ = getDefaultInstance().getLinkType(); 5266 bitField0_ = (bitField0_ & ~0x00001000); 5267 onChanged(); 5268 return this; 5269 } 5270 /** 5271 * 5272 * 5273 * <pre> 5274 * Type of link requested, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR: A 10G Ethernet with LR optics - LINK_TYPE_ETHERNET_100G_LR: A 100G Ethernet with LR optics. Note that this field indicates the speed of each of the links in the bundle, not the speed of the entire bundle. 5275 * Check the LinkType enum for the list of possible values. 5276 * </pre> 5277 * 5278 * <code>optional string link_type = 523207775;</code> 5279 * 5280 * @param value The bytes for linkType to set. 5281 * @return This builder for chaining. 5282 */ setLinkTypeBytes(com.google.protobuf.ByteString value)5283 public Builder setLinkTypeBytes(com.google.protobuf.ByteString value) { 5284 if (value == null) { 5285 throw new NullPointerException(); 5286 } 5287 checkByteStringIsUtf8(value); 5288 linkType_ = value; 5289 bitField0_ |= 0x00001000; 5290 onChanged(); 5291 return this; 5292 } 5293 5294 private java.lang.Object location_ = ""; 5295 /** 5296 * 5297 * 5298 * <pre> 5299 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 5300 * </pre> 5301 * 5302 * <code>optional string location = 290430901;</code> 5303 * 5304 * @return Whether the location field is set. 5305 */ hasLocation()5306 public boolean hasLocation() { 5307 return ((bitField0_ & 0x00002000) != 0); 5308 } 5309 /** 5310 * 5311 * 5312 * <pre> 5313 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 5314 * </pre> 5315 * 5316 * <code>optional string location = 290430901;</code> 5317 * 5318 * @return The location. 5319 */ getLocation()5320 public java.lang.String getLocation() { 5321 java.lang.Object ref = location_; 5322 if (!(ref instanceof java.lang.String)) { 5323 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5324 java.lang.String s = bs.toStringUtf8(); 5325 location_ = s; 5326 return s; 5327 } else { 5328 return (java.lang.String) ref; 5329 } 5330 } 5331 /** 5332 * 5333 * 5334 * <pre> 5335 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 5336 * </pre> 5337 * 5338 * <code>optional string location = 290430901;</code> 5339 * 5340 * @return The bytes for location. 5341 */ getLocationBytes()5342 public com.google.protobuf.ByteString getLocationBytes() { 5343 java.lang.Object ref = location_; 5344 if (ref instanceof String) { 5345 com.google.protobuf.ByteString b = 5346 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5347 location_ = b; 5348 return b; 5349 } else { 5350 return (com.google.protobuf.ByteString) ref; 5351 } 5352 } 5353 /** 5354 * 5355 * 5356 * <pre> 5357 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 5358 * </pre> 5359 * 5360 * <code>optional string location = 290430901;</code> 5361 * 5362 * @param value The location to set. 5363 * @return This builder for chaining. 5364 */ setLocation(java.lang.String value)5365 public Builder setLocation(java.lang.String value) { 5366 if (value == null) { 5367 throw new NullPointerException(); 5368 } 5369 location_ = value; 5370 bitField0_ |= 0x00002000; 5371 onChanged(); 5372 return this; 5373 } 5374 /** 5375 * 5376 * 5377 * <pre> 5378 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 5379 * </pre> 5380 * 5381 * <code>optional string location = 290430901;</code> 5382 * 5383 * @return This builder for chaining. 5384 */ clearLocation()5385 public Builder clearLocation() { 5386 location_ = getDefaultInstance().getLocation(); 5387 bitField0_ = (bitField0_ & ~0x00002000); 5388 onChanged(); 5389 return this; 5390 } 5391 /** 5392 * 5393 * 5394 * <pre> 5395 * URL of the InterconnectLocation object that represents where this connection is to be provisioned. 5396 * </pre> 5397 * 5398 * <code>optional string location = 290430901;</code> 5399 * 5400 * @param value The bytes for location to set. 5401 * @return This builder for chaining. 5402 */ setLocationBytes(com.google.protobuf.ByteString value)5403 public Builder setLocationBytes(com.google.protobuf.ByteString value) { 5404 if (value == null) { 5405 throw new NullPointerException(); 5406 } 5407 checkByteStringIsUtf8(value); 5408 location_ = value; 5409 bitField0_ |= 0x00002000; 5410 onChanged(); 5411 return this; 5412 } 5413 5414 private java.lang.Object name_ = ""; 5415 /** 5416 * 5417 * 5418 * <pre> 5419 * 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. 5420 * </pre> 5421 * 5422 * <code>optional string name = 3373707;</code> 5423 * 5424 * @return Whether the name field is set. 5425 */ hasName()5426 public boolean hasName() { 5427 return ((bitField0_ & 0x00004000) != 0); 5428 } 5429 /** 5430 * 5431 * 5432 * <pre> 5433 * 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. 5434 * </pre> 5435 * 5436 * <code>optional string name = 3373707;</code> 5437 * 5438 * @return The name. 5439 */ getName()5440 public java.lang.String getName() { 5441 java.lang.Object ref = name_; 5442 if (!(ref instanceof java.lang.String)) { 5443 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5444 java.lang.String s = bs.toStringUtf8(); 5445 name_ = s; 5446 return s; 5447 } else { 5448 return (java.lang.String) ref; 5449 } 5450 } 5451 /** 5452 * 5453 * 5454 * <pre> 5455 * 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. 5456 * </pre> 5457 * 5458 * <code>optional string name = 3373707;</code> 5459 * 5460 * @return The bytes for name. 5461 */ getNameBytes()5462 public com.google.protobuf.ByteString getNameBytes() { 5463 java.lang.Object ref = name_; 5464 if (ref instanceof String) { 5465 com.google.protobuf.ByteString b = 5466 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5467 name_ = b; 5468 return b; 5469 } else { 5470 return (com.google.protobuf.ByteString) ref; 5471 } 5472 } 5473 /** 5474 * 5475 * 5476 * <pre> 5477 * 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. 5478 * </pre> 5479 * 5480 * <code>optional string name = 3373707;</code> 5481 * 5482 * @param value The name to set. 5483 * @return This builder for chaining. 5484 */ setName(java.lang.String value)5485 public Builder setName(java.lang.String value) { 5486 if (value == null) { 5487 throw new NullPointerException(); 5488 } 5489 name_ = value; 5490 bitField0_ |= 0x00004000; 5491 onChanged(); 5492 return this; 5493 } 5494 /** 5495 * 5496 * 5497 * <pre> 5498 * 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. 5499 * </pre> 5500 * 5501 * <code>optional string name = 3373707;</code> 5502 * 5503 * @return This builder for chaining. 5504 */ clearName()5505 public Builder clearName() { 5506 name_ = getDefaultInstance().getName(); 5507 bitField0_ = (bitField0_ & ~0x00004000); 5508 onChanged(); 5509 return this; 5510 } 5511 /** 5512 * 5513 * 5514 * <pre> 5515 * 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. 5516 * </pre> 5517 * 5518 * <code>optional string name = 3373707;</code> 5519 * 5520 * @param value The bytes for name to set. 5521 * @return This builder for chaining. 5522 */ setNameBytes(com.google.protobuf.ByteString value)5523 public Builder setNameBytes(com.google.protobuf.ByteString value) { 5524 if (value == null) { 5525 throw new NullPointerException(); 5526 } 5527 checkByteStringIsUtf8(value); 5528 name_ = value; 5529 bitField0_ |= 0x00004000; 5530 onChanged(); 5531 return this; 5532 } 5533 5534 private java.lang.Object nocContactEmail_ = ""; 5535 /** 5536 * 5537 * 5538 * <pre> 5539 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 5540 * </pre> 5541 * 5542 * <code>optional string noc_contact_email = 14072832;</code> 5543 * 5544 * @return Whether the nocContactEmail field is set. 5545 */ hasNocContactEmail()5546 public boolean hasNocContactEmail() { 5547 return ((bitField0_ & 0x00008000) != 0); 5548 } 5549 /** 5550 * 5551 * 5552 * <pre> 5553 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 5554 * </pre> 5555 * 5556 * <code>optional string noc_contact_email = 14072832;</code> 5557 * 5558 * @return The nocContactEmail. 5559 */ getNocContactEmail()5560 public java.lang.String getNocContactEmail() { 5561 java.lang.Object ref = nocContactEmail_; 5562 if (!(ref instanceof java.lang.String)) { 5563 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5564 java.lang.String s = bs.toStringUtf8(); 5565 nocContactEmail_ = s; 5566 return s; 5567 } else { 5568 return (java.lang.String) ref; 5569 } 5570 } 5571 /** 5572 * 5573 * 5574 * <pre> 5575 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 5576 * </pre> 5577 * 5578 * <code>optional string noc_contact_email = 14072832;</code> 5579 * 5580 * @return The bytes for nocContactEmail. 5581 */ getNocContactEmailBytes()5582 public com.google.protobuf.ByteString getNocContactEmailBytes() { 5583 java.lang.Object ref = nocContactEmail_; 5584 if (ref instanceof String) { 5585 com.google.protobuf.ByteString b = 5586 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5587 nocContactEmail_ = b; 5588 return b; 5589 } else { 5590 return (com.google.protobuf.ByteString) ref; 5591 } 5592 } 5593 /** 5594 * 5595 * 5596 * <pre> 5597 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 5598 * </pre> 5599 * 5600 * <code>optional string noc_contact_email = 14072832;</code> 5601 * 5602 * @param value The nocContactEmail to set. 5603 * @return This builder for chaining. 5604 */ setNocContactEmail(java.lang.String value)5605 public Builder setNocContactEmail(java.lang.String value) { 5606 if (value == null) { 5607 throw new NullPointerException(); 5608 } 5609 nocContactEmail_ = value; 5610 bitField0_ |= 0x00008000; 5611 onChanged(); 5612 return this; 5613 } 5614 /** 5615 * 5616 * 5617 * <pre> 5618 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 5619 * </pre> 5620 * 5621 * <code>optional string noc_contact_email = 14072832;</code> 5622 * 5623 * @return This builder for chaining. 5624 */ clearNocContactEmail()5625 public Builder clearNocContactEmail() { 5626 nocContactEmail_ = getDefaultInstance().getNocContactEmail(); 5627 bitField0_ = (bitField0_ & ~0x00008000); 5628 onChanged(); 5629 return this; 5630 } 5631 /** 5632 * 5633 * 5634 * <pre> 5635 * Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. 5636 * </pre> 5637 * 5638 * <code>optional string noc_contact_email = 14072832;</code> 5639 * 5640 * @param value The bytes for nocContactEmail to set. 5641 * @return This builder for chaining. 5642 */ setNocContactEmailBytes(com.google.protobuf.ByteString value)5643 public Builder setNocContactEmailBytes(com.google.protobuf.ByteString value) { 5644 if (value == null) { 5645 throw new NullPointerException(); 5646 } 5647 checkByteStringIsUtf8(value); 5648 nocContactEmail_ = value; 5649 bitField0_ |= 0x00008000; 5650 onChanged(); 5651 return this; 5652 } 5653 5654 private java.lang.Object operationalStatus_ = ""; 5655 /** 5656 * 5657 * 5658 * <pre> 5659 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 5660 * Check the OperationalStatus enum for the list of possible values. 5661 * </pre> 5662 * 5663 * <code>optional string operational_status = 201070847;</code> 5664 * 5665 * @return Whether the operationalStatus field is set. 5666 */ hasOperationalStatus()5667 public boolean hasOperationalStatus() { 5668 return ((bitField0_ & 0x00010000) != 0); 5669 } 5670 /** 5671 * 5672 * 5673 * <pre> 5674 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 5675 * Check the OperationalStatus enum for the list of possible values. 5676 * </pre> 5677 * 5678 * <code>optional string operational_status = 201070847;</code> 5679 * 5680 * @return The operationalStatus. 5681 */ getOperationalStatus()5682 public java.lang.String getOperationalStatus() { 5683 java.lang.Object ref = operationalStatus_; 5684 if (!(ref instanceof java.lang.String)) { 5685 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5686 java.lang.String s = bs.toStringUtf8(); 5687 operationalStatus_ = s; 5688 return s; 5689 } else { 5690 return (java.lang.String) ref; 5691 } 5692 } 5693 /** 5694 * 5695 * 5696 * <pre> 5697 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 5698 * Check the OperationalStatus enum for the list of possible values. 5699 * </pre> 5700 * 5701 * <code>optional string operational_status = 201070847;</code> 5702 * 5703 * @return The bytes for operationalStatus. 5704 */ getOperationalStatusBytes()5705 public com.google.protobuf.ByteString getOperationalStatusBytes() { 5706 java.lang.Object ref = operationalStatus_; 5707 if (ref instanceof String) { 5708 com.google.protobuf.ByteString b = 5709 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5710 operationalStatus_ = b; 5711 return b; 5712 } else { 5713 return (com.google.protobuf.ByteString) ref; 5714 } 5715 } 5716 /** 5717 * 5718 * 5719 * <pre> 5720 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 5721 * Check the OperationalStatus enum for the list of possible values. 5722 * </pre> 5723 * 5724 * <code>optional string operational_status = 201070847;</code> 5725 * 5726 * @param value The operationalStatus to set. 5727 * @return This builder for chaining. 5728 */ setOperationalStatus(java.lang.String value)5729 public Builder setOperationalStatus(java.lang.String value) { 5730 if (value == null) { 5731 throw new NullPointerException(); 5732 } 5733 operationalStatus_ = value; 5734 bitField0_ |= 0x00010000; 5735 onChanged(); 5736 return this; 5737 } 5738 /** 5739 * 5740 * 5741 * <pre> 5742 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 5743 * Check the OperationalStatus enum for the list of possible values. 5744 * </pre> 5745 * 5746 * <code>optional string operational_status = 201070847;</code> 5747 * 5748 * @return This builder for chaining. 5749 */ clearOperationalStatus()5750 public Builder clearOperationalStatus() { 5751 operationalStatus_ = getDefaultInstance().getOperationalStatus(); 5752 bitField0_ = (bitField0_ & ~0x00010000); 5753 onChanged(); 5754 return this; 5755 } 5756 /** 5757 * 5758 * 5759 * <pre> 5760 * [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 5761 * Check the OperationalStatus enum for the list of possible values. 5762 * </pre> 5763 * 5764 * <code>optional string operational_status = 201070847;</code> 5765 * 5766 * @param value The bytes for operationalStatus to set. 5767 * @return This builder for chaining. 5768 */ setOperationalStatusBytes(com.google.protobuf.ByteString value)5769 public Builder setOperationalStatusBytes(com.google.protobuf.ByteString value) { 5770 if (value == null) { 5771 throw new NullPointerException(); 5772 } 5773 checkByteStringIsUtf8(value); 5774 operationalStatus_ = value; 5775 bitField0_ |= 0x00010000; 5776 onChanged(); 5777 return this; 5778 } 5779 5780 private java.lang.Object peerIpAddress_ = ""; 5781 /** 5782 * 5783 * 5784 * <pre> 5785 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 5786 * </pre> 5787 * 5788 * <code>optional string peer_ip_address = 207735769;</code> 5789 * 5790 * @return Whether the peerIpAddress field is set. 5791 */ hasPeerIpAddress()5792 public boolean hasPeerIpAddress() { 5793 return ((bitField0_ & 0x00020000) != 0); 5794 } 5795 /** 5796 * 5797 * 5798 * <pre> 5799 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 5800 * </pre> 5801 * 5802 * <code>optional string peer_ip_address = 207735769;</code> 5803 * 5804 * @return The peerIpAddress. 5805 */ getPeerIpAddress()5806 public java.lang.String getPeerIpAddress() { 5807 java.lang.Object ref = peerIpAddress_; 5808 if (!(ref instanceof java.lang.String)) { 5809 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 5810 java.lang.String s = bs.toStringUtf8(); 5811 peerIpAddress_ = s; 5812 return s; 5813 } else { 5814 return (java.lang.String) ref; 5815 } 5816 } 5817 /** 5818 * 5819 * 5820 * <pre> 5821 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 5822 * </pre> 5823 * 5824 * <code>optional string peer_ip_address = 207735769;</code> 5825 * 5826 * @return The bytes for peerIpAddress. 5827 */ getPeerIpAddressBytes()5828 public com.google.protobuf.ByteString getPeerIpAddressBytes() { 5829 java.lang.Object ref = peerIpAddress_; 5830 if (ref instanceof String) { 5831 com.google.protobuf.ByteString b = 5832 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 5833 peerIpAddress_ = b; 5834 return b; 5835 } else { 5836 return (com.google.protobuf.ByteString) ref; 5837 } 5838 } 5839 /** 5840 * 5841 * 5842 * <pre> 5843 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 5844 * </pre> 5845 * 5846 * <code>optional string peer_ip_address = 207735769;</code> 5847 * 5848 * @param value The peerIpAddress to set. 5849 * @return This builder for chaining. 5850 */ setPeerIpAddress(java.lang.String value)5851 public Builder setPeerIpAddress(java.lang.String value) { 5852 if (value == null) { 5853 throw new NullPointerException(); 5854 } 5855 peerIpAddress_ = value; 5856 bitField0_ |= 0x00020000; 5857 onChanged(); 5858 return this; 5859 } 5860 /** 5861 * 5862 * 5863 * <pre> 5864 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 5865 * </pre> 5866 * 5867 * <code>optional string peer_ip_address = 207735769;</code> 5868 * 5869 * @return This builder for chaining. 5870 */ clearPeerIpAddress()5871 public Builder clearPeerIpAddress() { 5872 peerIpAddress_ = getDefaultInstance().getPeerIpAddress(); 5873 bitField0_ = (bitField0_ & ~0x00020000); 5874 onChanged(); 5875 return this; 5876 } 5877 /** 5878 * 5879 * 5880 * <pre> 5881 * [Output Only] IP address configured on the customer side of the Interconnect link. The customer should configure this IP address during turnup when prompted by Google NOC. This can be used only for ping tests. 5882 * </pre> 5883 * 5884 * <code>optional string peer_ip_address = 207735769;</code> 5885 * 5886 * @param value The bytes for peerIpAddress to set. 5887 * @return This builder for chaining. 5888 */ setPeerIpAddressBytes(com.google.protobuf.ByteString value)5889 public Builder setPeerIpAddressBytes(com.google.protobuf.ByteString value) { 5890 if (value == null) { 5891 throw new NullPointerException(); 5892 } 5893 checkByteStringIsUtf8(value); 5894 peerIpAddress_ = value; 5895 bitField0_ |= 0x00020000; 5896 onChanged(); 5897 return this; 5898 } 5899 5900 private int provisionedLinkCount_; 5901 /** 5902 * 5903 * 5904 * <pre> 5905 * [Output Only] Number of links actually provisioned in this interconnect. 5906 * </pre> 5907 * 5908 * <code>optional int32 provisioned_link_count = 410888565;</code> 5909 * 5910 * @return Whether the provisionedLinkCount field is set. 5911 */ 5912 @java.lang.Override hasProvisionedLinkCount()5913 public boolean hasProvisionedLinkCount() { 5914 return ((bitField0_ & 0x00040000) != 0); 5915 } 5916 /** 5917 * 5918 * 5919 * <pre> 5920 * [Output Only] Number of links actually provisioned in this interconnect. 5921 * </pre> 5922 * 5923 * <code>optional int32 provisioned_link_count = 410888565;</code> 5924 * 5925 * @return The provisionedLinkCount. 5926 */ 5927 @java.lang.Override getProvisionedLinkCount()5928 public int getProvisionedLinkCount() { 5929 return provisionedLinkCount_; 5930 } 5931 /** 5932 * 5933 * 5934 * <pre> 5935 * [Output Only] Number of links actually provisioned in this interconnect. 5936 * </pre> 5937 * 5938 * <code>optional int32 provisioned_link_count = 410888565;</code> 5939 * 5940 * @param value The provisionedLinkCount to set. 5941 * @return This builder for chaining. 5942 */ setProvisionedLinkCount(int value)5943 public Builder setProvisionedLinkCount(int value) { 5944 5945 provisionedLinkCount_ = value; 5946 bitField0_ |= 0x00040000; 5947 onChanged(); 5948 return this; 5949 } 5950 /** 5951 * 5952 * 5953 * <pre> 5954 * [Output Only] Number of links actually provisioned in this interconnect. 5955 * </pre> 5956 * 5957 * <code>optional int32 provisioned_link_count = 410888565;</code> 5958 * 5959 * @return This builder for chaining. 5960 */ clearProvisionedLinkCount()5961 public Builder clearProvisionedLinkCount() { 5962 bitField0_ = (bitField0_ & ~0x00040000); 5963 provisionedLinkCount_ = 0; 5964 onChanged(); 5965 return this; 5966 } 5967 5968 private int requestedLinkCount_; 5969 /** 5970 * 5971 * 5972 * <pre> 5973 * Target number of physical links in the link bundle, as requested by the customer. 5974 * </pre> 5975 * 5976 * <code>optional int32 requested_link_count = 45051387;</code> 5977 * 5978 * @return Whether the requestedLinkCount field is set. 5979 */ 5980 @java.lang.Override hasRequestedLinkCount()5981 public boolean hasRequestedLinkCount() { 5982 return ((bitField0_ & 0x00080000) != 0); 5983 } 5984 /** 5985 * 5986 * 5987 * <pre> 5988 * Target number of physical links in the link bundle, as requested by the customer. 5989 * </pre> 5990 * 5991 * <code>optional int32 requested_link_count = 45051387;</code> 5992 * 5993 * @return The requestedLinkCount. 5994 */ 5995 @java.lang.Override getRequestedLinkCount()5996 public int getRequestedLinkCount() { 5997 return requestedLinkCount_; 5998 } 5999 /** 6000 * 6001 * 6002 * <pre> 6003 * Target number of physical links in the link bundle, as requested by the customer. 6004 * </pre> 6005 * 6006 * <code>optional int32 requested_link_count = 45051387;</code> 6007 * 6008 * @param value The requestedLinkCount to set. 6009 * @return This builder for chaining. 6010 */ setRequestedLinkCount(int value)6011 public Builder setRequestedLinkCount(int value) { 6012 6013 requestedLinkCount_ = value; 6014 bitField0_ |= 0x00080000; 6015 onChanged(); 6016 return this; 6017 } 6018 /** 6019 * 6020 * 6021 * <pre> 6022 * Target number of physical links in the link bundle, as requested by the customer. 6023 * </pre> 6024 * 6025 * <code>optional int32 requested_link_count = 45051387;</code> 6026 * 6027 * @return This builder for chaining. 6028 */ clearRequestedLinkCount()6029 public Builder clearRequestedLinkCount() { 6030 bitField0_ = (bitField0_ & ~0x00080000); 6031 requestedLinkCount_ = 0; 6032 onChanged(); 6033 return this; 6034 } 6035 6036 private boolean satisfiesPzs_; 6037 /** 6038 * 6039 * 6040 * <pre> 6041 * [Output Only] Reserved for future use. 6042 * </pre> 6043 * 6044 * <code>optional bool satisfies_pzs = 480964267;</code> 6045 * 6046 * @return Whether the satisfiesPzs field is set. 6047 */ 6048 @java.lang.Override hasSatisfiesPzs()6049 public boolean hasSatisfiesPzs() { 6050 return ((bitField0_ & 0x00100000) != 0); 6051 } 6052 /** 6053 * 6054 * 6055 * <pre> 6056 * [Output Only] Reserved for future use. 6057 * </pre> 6058 * 6059 * <code>optional bool satisfies_pzs = 480964267;</code> 6060 * 6061 * @return The satisfiesPzs. 6062 */ 6063 @java.lang.Override getSatisfiesPzs()6064 public boolean getSatisfiesPzs() { 6065 return satisfiesPzs_; 6066 } 6067 /** 6068 * 6069 * 6070 * <pre> 6071 * [Output Only] Reserved for future use. 6072 * </pre> 6073 * 6074 * <code>optional bool satisfies_pzs = 480964267;</code> 6075 * 6076 * @param value The satisfiesPzs to set. 6077 * @return This builder for chaining. 6078 */ setSatisfiesPzs(boolean value)6079 public Builder setSatisfiesPzs(boolean value) { 6080 6081 satisfiesPzs_ = value; 6082 bitField0_ |= 0x00100000; 6083 onChanged(); 6084 return this; 6085 } 6086 /** 6087 * 6088 * 6089 * <pre> 6090 * [Output Only] Reserved for future use. 6091 * </pre> 6092 * 6093 * <code>optional bool satisfies_pzs = 480964267;</code> 6094 * 6095 * @return This builder for chaining. 6096 */ clearSatisfiesPzs()6097 public Builder clearSatisfiesPzs() { 6098 bitField0_ = (bitField0_ & ~0x00100000); 6099 satisfiesPzs_ = false; 6100 onChanged(); 6101 return this; 6102 } 6103 6104 private java.lang.Object selfLink_ = ""; 6105 /** 6106 * 6107 * 6108 * <pre> 6109 * [Output Only] Server-defined URL for the resource. 6110 * </pre> 6111 * 6112 * <code>optional string self_link = 456214797;</code> 6113 * 6114 * @return Whether the selfLink field is set. 6115 */ hasSelfLink()6116 public boolean hasSelfLink() { 6117 return ((bitField0_ & 0x00200000) != 0); 6118 } 6119 /** 6120 * 6121 * 6122 * <pre> 6123 * [Output Only] Server-defined URL for the resource. 6124 * </pre> 6125 * 6126 * <code>optional string self_link = 456214797;</code> 6127 * 6128 * @return The selfLink. 6129 */ getSelfLink()6130 public java.lang.String getSelfLink() { 6131 java.lang.Object ref = selfLink_; 6132 if (!(ref instanceof java.lang.String)) { 6133 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6134 java.lang.String s = bs.toStringUtf8(); 6135 selfLink_ = s; 6136 return s; 6137 } else { 6138 return (java.lang.String) ref; 6139 } 6140 } 6141 /** 6142 * 6143 * 6144 * <pre> 6145 * [Output Only] Server-defined URL for the resource. 6146 * </pre> 6147 * 6148 * <code>optional string self_link = 456214797;</code> 6149 * 6150 * @return The bytes for selfLink. 6151 */ getSelfLinkBytes()6152 public com.google.protobuf.ByteString getSelfLinkBytes() { 6153 java.lang.Object ref = selfLink_; 6154 if (ref instanceof String) { 6155 com.google.protobuf.ByteString b = 6156 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6157 selfLink_ = b; 6158 return b; 6159 } else { 6160 return (com.google.protobuf.ByteString) ref; 6161 } 6162 } 6163 /** 6164 * 6165 * 6166 * <pre> 6167 * [Output Only] Server-defined URL for the resource. 6168 * </pre> 6169 * 6170 * <code>optional string self_link = 456214797;</code> 6171 * 6172 * @param value The selfLink to set. 6173 * @return This builder for chaining. 6174 */ setSelfLink(java.lang.String value)6175 public Builder setSelfLink(java.lang.String value) { 6176 if (value == null) { 6177 throw new NullPointerException(); 6178 } 6179 selfLink_ = value; 6180 bitField0_ |= 0x00200000; 6181 onChanged(); 6182 return this; 6183 } 6184 /** 6185 * 6186 * 6187 * <pre> 6188 * [Output Only] Server-defined URL for the resource. 6189 * </pre> 6190 * 6191 * <code>optional string self_link = 456214797;</code> 6192 * 6193 * @return This builder for chaining. 6194 */ clearSelfLink()6195 public Builder clearSelfLink() { 6196 selfLink_ = getDefaultInstance().getSelfLink(); 6197 bitField0_ = (bitField0_ & ~0x00200000); 6198 onChanged(); 6199 return this; 6200 } 6201 /** 6202 * 6203 * 6204 * <pre> 6205 * [Output Only] Server-defined URL for the resource. 6206 * </pre> 6207 * 6208 * <code>optional string self_link = 456214797;</code> 6209 * 6210 * @param value The bytes for selfLink to set. 6211 * @return This builder for chaining. 6212 */ setSelfLinkBytes(com.google.protobuf.ByteString value)6213 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 6214 if (value == null) { 6215 throw new NullPointerException(); 6216 } 6217 checkByteStringIsUtf8(value); 6218 selfLink_ = value; 6219 bitField0_ |= 0x00200000; 6220 onChanged(); 6221 return this; 6222 } 6223 6224 private java.lang.Object state_ = ""; 6225 /** 6226 * 6227 * 6228 * <pre> 6229 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 6230 * Check the State enum for the list of possible values. 6231 * </pre> 6232 * 6233 * <code>optional string state = 109757585;</code> 6234 * 6235 * @return Whether the state field is set. 6236 */ hasState()6237 public boolean hasState() { 6238 return ((bitField0_ & 0x00400000) != 0); 6239 } 6240 /** 6241 * 6242 * 6243 * <pre> 6244 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 6245 * Check the State enum for the list of possible values. 6246 * </pre> 6247 * 6248 * <code>optional string state = 109757585;</code> 6249 * 6250 * @return The state. 6251 */ getState()6252 public java.lang.String getState() { 6253 java.lang.Object ref = state_; 6254 if (!(ref instanceof java.lang.String)) { 6255 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 6256 java.lang.String s = bs.toStringUtf8(); 6257 state_ = s; 6258 return s; 6259 } else { 6260 return (java.lang.String) ref; 6261 } 6262 } 6263 /** 6264 * 6265 * 6266 * <pre> 6267 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 6268 * Check the State enum for the list of possible values. 6269 * </pre> 6270 * 6271 * <code>optional string state = 109757585;</code> 6272 * 6273 * @return The bytes for state. 6274 */ getStateBytes()6275 public com.google.protobuf.ByteString getStateBytes() { 6276 java.lang.Object ref = state_; 6277 if (ref instanceof String) { 6278 com.google.protobuf.ByteString b = 6279 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 6280 state_ = b; 6281 return b; 6282 } else { 6283 return (com.google.protobuf.ByteString) ref; 6284 } 6285 } 6286 /** 6287 * 6288 * 6289 * <pre> 6290 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 6291 * Check the State enum for the list of possible values. 6292 * </pre> 6293 * 6294 * <code>optional string state = 109757585;</code> 6295 * 6296 * @param value The state to set. 6297 * @return This builder for chaining. 6298 */ setState(java.lang.String value)6299 public Builder setState(java.lang.String value) { 6300 if (value == null) { 6301 throw new NullPointerException(); 6302 } 6303 state_ = value; 6304 bitField0_ |= 0x00400000; 6305 onChanged(); 6306 return this; 6307 } 6308 /** 6309 * 6310 * 6311 * <pre> 6312 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 6313 * Check the State enum for the list of possible values. 6314 * </pre> 6315 * 6316 * <code>optional string state = 109757585;</code> 6317 * 6318 * @return This builder for chaining. 6319 */ clearState()6320 public Builder clearState() { 6321 state_ = getDefaultInstance().getState(); 6322 bitField0_ = (bitField0_ & ~0x00400000); 6323 onChanged(); 6324 return this; 6325 } 6326 /** 6327 * 6328 * 6329 * <pre> 6330 * [Output Only] The current state of Interconnect functionality, which can take one of the following values: - ACTIVE: The Interconnect is valid, turned up and ready to use. Attachments may be provisioned on this Interconnect. - UNPROVISIONED: The Interconnect has not completed turnup. No attachments may be provisioned on this Interconnect. - UNDER_MAINTENANCE: The Interconnect is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. 6331 * Check the State enum for the list of possible values. 6332 * </pre> 6333 * 6334 * <code>optional string state = 109757585;</code> 6335 * 6336 * @param value The bytes for state to set. 6337 * @return This builder for chaining. 6338 */ setStateBytes(com.google.protobuf.ByteString value)6339 public Builder setStateBytes(com.google.protobuf.ByteString value) { 6340 if (value == null) { 6341 throw new NullPointerException(); 6342 } 6343 checkByteStringIsUtf8(value); 6344 state_ = value; 6345 bitField0_ |= 0x00400000; 6346 onChanged(); 6347 return this; 6348 } 6349 6350 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)6351 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 6352 return super.setUnknownFields(unknownFields); 6353 } 6354 6355 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)6356 public final Builder mergeUnknownFields( 6357 final com.google.protobuf.UnknownFieldSet unknownFields) { 6358 return super.mergeUnknownFields(unknownFields); 6359 } 6360 6361 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.Interconnect) 6362 } 6363 6364 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.Interconnect) 6365 private static final com.google.cloud.compute.v1.Interconnect DEFAULT_INSTANCE; 6366 6367 static { 6368 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.Interconnect(); 6369 } 6370 getDefaultInstance()6371 public static com.google.cloud.compute.v1.Interconnect getDefaultInstance() { 6372 return DEFAULT_INSTANCE; 6373 } 6374 6375 private static final com.google.protobuf.Parser<Interconnect> PARSER = 6376 new com.google.protobuf.AbstractParser<Interconnect>() { 6377 @java.lang.Override 6378 public Interconnect parsePartialFrom( 6379 com.google.protobuf.CodedInputStream input, 6380 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6381 throws com.google.protobuf.InvalidProtocolBufferException { 6382 Builder builder = newBuilder(); 6383 try { 6384 builder.mergeFrom(input, extensionRegistry); 6385 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6386 throw e.setUnfinishedMessage(builder.buildPartial()); 6387 } catch (com.google.protobuf.UninitializedMessageException e) { 6388 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 6389 } catch (java.io.IOException e) { 6390 throw new com.google.protobuf.InvalidProtocolBufferException(e) 6391 .setUnfinishedMessage(builder.buildPartial()); 6392 } 6393 return builder.buildPartial(); 6394 } 6395 }; 6396 parser()6397 public static com.google.protobuf.Parser<Interconnect> parser() { 6398 return PARSER; 6399 } 6400 6401 @java.lang.Override getParserForType()6402 public com.google.protobuf.Parser<Interconnect> getParserForType() { 6403 return PARSER; 6404 } 6405 6406 @java.lang.Override getDefaultInstanceForType()6407 public com.google.cloud.compute.v1.Interconnect getDefaultInstanceForType() { 6408 return DEFAULT_INSTANCE; 6409 } 6410 } 6411