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 * Contains a list of routers. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.compute.v1.RouterAggregatedList} 29 */ 30 public final class RouterAggregatedList extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.RouterAggregatedList) 33 RouterAggregatedListOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use RouterAggregatedList.newBuilder() to construct. RouterAggregatedList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private RouterAggregatedList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 RouterAggregatedList()40 private RouterAggregatedList() { 41 id_ = ""; 42 kind_ = ""; 43 nextPageToken_ = ""; 44 selfLink_ = ""; 45 unreachables_ = com.google.protobuf.LazyStringArrayList.EMPTY; 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new RouterAggregatedList(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.compute.v1.Compute 61 .internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor; 62 } 63 64 @SuppressWarnings({"rawtypes"}) 65 @java.lang.Override internalGetMapField(int number)66 protected com.google.protobuf.MapField internalGetMapField(int number) { 67 switch (number) { 68 case 100526016: 69 return internalGetItems(); 70 default: 71 throw new RuntimeException("Invalid map field number: " + number); 72 } 73 } 74 75 @java.lang.Override 76 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()77 internalGetFieldAccessorTable() { 78 return com.google.cloud.compute.v1.Compute 79 .internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable 80 .ensureFieldAccessorsInitialized( 81 com.google.cloud.compute.v1.RouterAggregatedList.class, 82 com.google.cloud.compute.v1.RouterAggregatedList.Builder.class); 83 } 84 85 private int bitField0_; 86 public static final int ID_FIELD_NUMBER = 3355; 87 88 @SuppressWarnings("serial") 89 private volatile java.lang.Object id_ = ""; 90 /** 91 * 92 * 93 * <pre> 94 * [Output Only] Unique identifier for the resource; defined by the server. 95 * </pre> 96 * 97 * <code>optional string id = 3355;</code> 98 * 99 * @return Whether the id field is set. 100 */ 101 @java.lang.Override hasId()102 public boolean hasId() { 103 return ((bitField0_ & 0x00000001) != 0); 104 } 105 /** 106 * 107 * 108 * <pre> 109 * [Output Only] Unique identifier for the resource; defined by the server. 110 * </pre> 111 * 112 * <code>optional string id = 3355;</code> 113 * 114 * @return The id. 115 */ 116 @java.lang.Override getId()117 public java.lang.String getId() { 118 java.lang.Object ref = id_; 119 if (ref instanceof java.lang.String) { 120 return (java.lang.String) ref; 121 } else { 122 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 123 java.lang.String s = bs.toStringUtf8(); 124 id_ = s; 125 return s; 126 } 127 } 128 /** 129 * 130 * 131 * <pre> 132 * [Output Only] Unique identifier for the resource; defined by the server. 133 * </pre> 134 * 135 * <code>optional string id = 3355;</code> 136 * 137 * @return The bytes for id. 138 */ 139 @java.lang.Override getIdBytes()140 public com.google.protobuf.ByteString getIdBytes() { 141 java.lang.Object ref = id_; 142 if (ref instanceof java.lang.String) { 143 com.google.protobuf.ByteString b = 144 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 145 id_ = b; 146 return b; 147 } else { 148 return (com.google.protobuf.ByteString) ref; 149 } 150 } 151 152 public static final int ITEMS_FIELD_NUMBER = 100526016; 153 154 private static final class ItemsDefaultEntryHolder { 155 static final com.google.protobuf.MapEntry< 156 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 157 defaultEntry = 158 com.google.protobuf.MapEntry 159 .<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 160 newDefaultInstance( 161 com.google.cloud.compute.v1.Compute 162 .internal_static_google_cloud_compute_v1_RouterAggregatedList_ItemsEntry_descriptor, 163 com.google.protobuf.WireFormat.FieldType.STRING, 164 "", 165 com.google.protobuf.WireFormat.FieldType.MESSAGE, 166 com.google.cloud.compute.v1.RoutersScopedList.getDefaultInstance()); 167 } 168 169 @SuppressWarnings("serial") 170 private com.google.protobuf.MapField< 171 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 172 items_; 173 174 private com.google.protobuf.MapField< 175 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> internalGetItems()176 internalGetItems() { 177 if (items_ == null) { 178 return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); 179 } 180 return items_; 181 } 182 getItemsCount()183 public int getItemsCount() { 184 return internalGetItems().getMap().size(); 185 } 186 /** 187 * 188 * 189 * <pre> 190 * A list of Router resources. 191 * </pre> 192 * 193 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 194 */ 195 @java.lang.Override containsItems(java.lang.String key)196 public boolean containsItems(java.lang.String key) { 197 if (key == null) { 198 throw new NullPointerException("map key"); 199 } 200 return internalGetItems().getMap().containsKey(key); 201 } 202 /** Use {@link #getItemsMap()} instead. */ 203 @java.lang.Override 204 @java.lang.Deprecated getItems()205 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> getItems() { 206 return getItemsMap(); 207 } 208 /** 209 * 210 * 211 * <pre> 212 * A list of Router resources. 213 * </pre> 214 * 215 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 216 */ 217 @java.lang.Override 218 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> getItemsMap()219 getItemsMap() { 220 return internalGetItems().getMap(); 221 } 222 /** 223 * 224 * 225 * <pre> 226 * A list of Router resources. 227 * </pre> 228 * 229 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 230 */ 231 @java.lang.Override getItemsOrDefault( java.lang.String key, com.google.cloud.compute.v1.RoutersScopedList defaultValue)232 public /* nullable */ com.google.cloud.compute.v1.RoutersScopedList getItemsOrDefault( 233 java.lang.String key, 234 /* nullable */ 235 com.google.cloud.compute.v1.RoutersScopedList defaultValue) { 236 if (key == null) { 237 throw new NullPointerException("map key"); 238 } 239 java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> map = 240 internalGetItems().getMap(); 241 return map.containsKey(key) ? map.get(key) : defaultValue; 242 } 243 /** 244 * 245 * 246 * <pre> 247 * A list of Router resources. 248 * </pre> 249 * 250 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 251 */ 252 @java.lang.Override getItemsOrThrow(java.lang.String key)253 public com.google.cloud.compute.v1.RoutersScopedList getItemsOrThrow(java.lang.String key) { 254 if (key == null) { 255 throw new NullPointerException("map key"); 256 } 257 java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> map = 258 internalGetItems().getMap(); 259 if (!map.containsKey(key)) { 260 throw new java.lang.IllegalArgumentException(); 261 } 262 return map.get(key); 263 } 264 265 public static final int KIND_FIELD_NUMBER = 3292052; 266 267 @SuppressWarnings("serial") 268 private volatile java.lang.Object kind_ = ""; 269 /** 270 * 271 * 272 * <pre> 273 * Type of resource. 274 * </pre> 275 * 276 * <code>optional string kind = 3292052;</code> 277 * 278 * @return Whether the kind field is set. 279 */ 280 @java.lang.Override hasKind()281 public boolean hasKind() { 282 return ((bitField0_ & 0x00000002) != 0); 283 } 284 /** 285 * 286 * 287 * <pre> 288 * Type of resource. 289 * </pre> 290 * 291 * <code>optional string kind = 3292052;</code> 292 * 293 * @return The kind. 294 */ 295 @java.lang.Override getKind()296 public java.lang.String getKind() { 297 java.lang.Object ref = kind_; 298 if (ref instanceof java.lang.String) { 299 return (java.lang.String) ref; 300 } else { 301 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 302 java.lang.String s = bs.toStringUtf8(); 303 kind_ = s; 304 return s; 305 } 306 } 307 /** 308 * 309 * 310 * <pre> 311 * Type of resource. 312 * </pre> 313 * 314 * <code>optional string kind = 3292052;</code> 315 * 316 * @return The bytes for kind. 317 */ 318 @java.lang.Override getKindBytes()319 public com.google.protobuf.ByteString getKindBytes() { 320 java.lang.Object ref = kind_; 321 if (ref instanceof java.lang.String) { 322 com.google.protobuf.ByteString b = 323 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 324 kind_ = b; 325 return b; 326 } else { 327 return (com.google.protobuf.ByteString) ref; 328 } 329 } 330 331 public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525; 332 333 @SuppressWarnings("serial") 334 private volatile java.lang.Object nextPageToken_ = ""; 335 /** 336 * 337 * 338 * <pre> 339 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 340 * </pre> 341 * 342 * <code>optional string next_page_token = 79797525;</code> 343 * 344 * @return Whether the nextPageToken field is set. 345 */ 346 @java.lang.Override hasNextPageToken()347 public boolean hasNextPageToken() { 348 return ((bitField0_ & 0x00000004) != 0); 349 } 350 /** 351 * 352 * 353 * <pre> 354 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 355 * </pre> 356 * 357 * <code>optional string next_page_token = 79797525;</code> 358 * 359 * @return The nextPageToken. 360 */ 361 @java.lang.Override getNextPageToken()362 public java.lang.String getNextPageToken() { 363 java.lang.Object ref = nextPageToken_; 364 if (ref instanceof java.lang.String) { 365 return (java.lang.String) ref; 366 } else { 367 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 368 java.lang.String s = bs.toStringUtf8(); 369 nextPageToken_ = s; 370 return s; 371 } 372 } 373 /** 374 * 375 * 376 * <pre> 377 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 378 * </pre> 379 * 380 * <code>optional string next_page_token = 79797525;</code> 381 * 382 * @return The bytes for nextPageToken. 383 */ 384 @java.lang.Override getNextPageTokenBytes()385 public com.google.protobuf.ByteString getNextPageTokenBytes() { 386 java.lang.Object ref = nextPageToken_; 387 if (ref instanceof java.lang.String) { 388 com.google.protobuf.ByteString b = 389 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 390 nextPageToken_ = b; 391 return b; 392 } else { 393 return (com.google.protobuf.ByteString) ref; 394 } 395 } 396 397 public static final int SELF_LINK_FIELD_NUMBER = 456214797; 398 399 @SuppressWarnings("serial") 400 private volatile java.lang.Object selfLink_ = ""; 401 /** 402 * 403 * 404 * <pre> 405 * [Output Only] Server-defined URL for this resource. 406 * </pre> 407 * 408 * <code>optional string self_link = 456214797;</code> 409 * 410 * @return Whether the selfLink field is set. 411 */ 412 @java.lang.Override hasSelfLink()413 public boolean hasSelfLink() { 414 return ((bitField0_ & 0x00000008) != 0); 415 } 416 /** 417 * 418 * 419 * <pre> 420 * [Output Only] Server-defined URL for this resource. 421 * </pre> 422 * 423 * <code>optional string self_link = 456214797;</code> 424 * 425 * @return The selfLink. 426 */ 427 @java.lang.Override getSelfLink()428 public java.lang.String getSelfLink() { 429 java.lang.Object ref = selfLink_; 430 if (ref instanceof java.lang.String) { 431 return (java.lang.String) ref; 432 } else { 433 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 434 java.lang.String s = bs.toStringUtf8(); 435 selfLink_ = s; 436 return s; 437 } 438 } 439 /** 440 * 441 * 442 * <pre> 443 * [Output Only] Server-defined URL for this resource. 444 * </pre> 445 * 446 * <code>optional string self_link = 456214797;</code> 447 * 448 * @return The bytes for selfLink. 449 */ 450 @java.lang.Override getSelfLinkBytes()451 public com.google.protobuf.ByteString getSelfLinkBytes() { 452 java.lang.Object ref = selfLink_; 453 if (ref instanceof java.lang.String) { 454 com.google.protobuf.ByteString b = 455 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 456 selfLink_ = b; 457 return b; 458 } else { 459 return (com.google.protobuf.ByteString) ref; 460 } 461 } 462 463 public static final int UNREACHABLES_FIELD_NUMBER = 243372063; 464 465 @SuppressWarnings("serial") 466 private com.google.protobuf.LazyStringList unreachables_; 467 /** 468 * 469 * 470 * <pre> 471 * [Output Only] Unreachable resources. 472 * </pre> 473 * 474 * <code>repeated string unreachables = 243372063;</code> 475 * 476 * @return A list containing the unreachables. 477 */ getUnreachablesList()478 public com.google.protobuf.ProtocolStringList getUnreachablesList() { 479 return unreachables_; 480 } 481 /** 482 * 483 * 484 * <pre> 485 * [Output Only] Unreachable resources. 486 * </pre> 487 * 488 * <code>repeated string unreachables = 243372063;</code> 489 * 490 * @return The count of unreachables. 491 */ getUnreachablesCount()492 public int getUnreachablesCount() { 493 return unreachables_.size(); 494 } 495 /** 496 * 497 * 498 * <pre> 499 * [Output Only] Unreachable resources. 500 * </pre> 501 * 502 * <code>repeated string unreachables = 243372063;</code> 503 * 504 * @param index The index of the element to return. 505 * @return The unreachables at the given index. 506 */ getUnreachables(int index)507 public java.lang.String getUnreachables(int index) { 508 return unreachables_.get(index); 509 } 510 /** 511 * 512 * 513 * <pre> 514 * [Output Only] Unreachable resources. 515 * </pre> 516 * 517 * <code>repeated string unreachables = 243372063;</code> 518 * 519 * @param index The index of the value to return. 520 * @return The bytes of the unreachables at the given index. 521 */ getUnreachablesBytes(int index)522 public com.google.protobuf.ByteString getUnreachablesBytes(int index) { 523 return unreachables_.getByteString(index); 524 } 525 526 public static final int WARNING_FIELD_NUMBER = 50704284; 527 private com.google.cloud.compute.v1.Warning warning_; 528 /** 529 * 530 * 531 * <pre> 532 * [Output Only] Informational warning message. 533 * </pre> 534 * 535 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 536 * 537 * @return Whether the warning field is set. 538 */ 539 @java.lang.Override hasWarning()540 public boolean hasWarning() { 541 return ((bitField0_ & 0x00000010) != 0); 542 } 543 /** 544 * 545 * 546 * <pre> 547 * [Output Only] Informational warning message. 548 * </pre> 549 * 550 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 551 * 552 * @return The warning. 553 */ 554 @java.lang.Override getWarning()555 public com.google.cloud.compute.v1.Warning getWarning() { 556 return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; 557 } 558 /** 559 * 560 * 561 * <pre> 562 * [Output Only] Informational warning message. 563 * </pre> 564 * 565 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 566 */ 567 @java.lang.Override getWarningOrBuilder()568 public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { 569 return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_; 570 } 571 572 private byte memoizedIsInitialized = -1; 573 574 @java.lang.Override isInitialized()575 public final boolean isInitialized() { 576 byte isInitialized = memoizedIsInitialized; 577 if (isInitialized == 1) return true; 578 if (isInitialized == 0) return false; 579 580 memoizedIsInitialized = 1; 581 return true; 582 } 583 584 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)585 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 586 if (((bitField0_ & 0x00000001) != 0)) { 587 com.google.protobuf.GeneratedMessageV3.writeString(output, 3355, id_); 588 } 589 if (((bitField0_ & 0x00000002) != 0)) { 590 com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); 591 } 592 if (((bitField0_ & 0x00000010) != 0)) { 593 output.writeMessage(50704284, getWarning()); 594 } 595 if (((bitField0_ & 0x00000004) != 0)) { 596 com.google.protobuf.GeneratedMessageV3.writeString(output, 79797525, nextPageToken_); 597 } 598 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 599 output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 100526016); 600 for (int i = 0; i < unreachables_.size(); i++) { 601 com.google.protobuf.GeneratedMessageV3.writeString( 602 output, 243372063, unreachables_.getRaw(i)); 603 } 604 if (((bitField0_ & 0x00000008) != 0)) { 605 com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_); 606 } 607 getUnknownFields().writeTo(output); 608 } 609 610 @java.lang.Override getSerializedSize()611 public int getSerializedSize() { 612 int size = memoizedSize; 613 if (size != -1) return size; 614 615 size = 0; 616 if (((bitField0_ & 0x00000001) != 0)) { 617 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3355, id_); 618 } 619 if (((bitField0_ & 0x00000002) != 0)) { 620 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); 621 } 622 if (((bitField0_ & 0x00000010) != 0)) { 623 size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); 624 } 625 if (((bitField0_ & 0x00000004) != 0)) { 626 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(79797525, nextPageToken_); 627 } 628 for (java.util.Map.Entry<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 629 entry : internalGetItems().getMap().entrySet()) { 630 com.google.protobuf.MapEntry<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 631 items__ = 632 ItemsDefaultEntryHolder.defaultEntry 633 .newBuilderForType() 634 .setKey(entry.getKey()) 635 .setValue(entry.getValue()) 636 .build(); 637 size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items__); 638 } 639 { 640 int dataSize = 0; 641 for (int i = 0; i < unreachables_.size(); i++) { 642 dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); 643 } 644 size += dataSize; 645 size += 5 * getUnreachablesList().size(); 646 } 647 if (((bitField0_ & 0x00000008) != 0)) { 648 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 649 } 650 size += getUnknownFields().getSerializedSize(); 651 memoizedSize = size; 652 return size; 653 } 654 655 @java.lang.Override equals(final java.lang.Object obj)656 public boolean equals(final java.lang.Object obj) { 657 if (obj == this) { 658 return true; 659 } 660 if (!(obj instanceof com.google.cloud.compute.v1.RouterAggregatedList)) { 661 return super.equals(obj); 662 } 663 com.google.cloud.compute.v1.RouterAggregatedList other = 664 (com.google.cloud.compute.v1.RouterAggregatedList) obj; 665 666 if (hasId() != other.hasId()) return false; 667 if (hasId()) { 668 if (!getId().equals(other.getId())) return false; 669 } 670 if (!internalGetItems().equals(other.internalGetItems())) return false; 671 if (hasKind() != other.hasKind()) return false; 672 if (hasKind()) { 673 if (!getKind().equals(other.getKind())) return false; 674 } 675 if (hasNextPageToken() != other.hasNextPageToken()) return false; 676 if (hasNextPageToken()) { 677 if (!getNextPageToken().equals(other.getNextPageToken())) return false; 678 } 679 if (hasSelfLink() != other.hasSelfLink()) return false; 680 if (hasSelfLink()) { 681 if (!getSelfLink().equals(other.getSelfLink())) return false; 682 } 683 if (!getUnreachablesList().equals(other.getUnreachablesList())) return false; 684 if (hasWarning() != other.hasWarning()) return false; 685 if (hasWarning()) { 686 if (!getWarning().equals(other.getWarning())) return false; 687 } 688 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 689 return true; 690 } 691 692 @java.lang.Override hashCode()693 public int hashCode() { 694 if (memoizedHashCode != 0) { 695 return memoizedHashCode; 696 } 697 int hash = 41; 698 hash = (19 * hash) + getDescriptor().hashCode(); 699 if (hasId()) { 700 hash = (37 * hash) + ID_FIELD_NUMBER; 701 hash = (53 * hash) + getId().hashCode(); 702 } 703 if (!internalGetItems().getMap().isEmpty()) { 704 hash = (37 * hash) + ITEMS_FIELD_NUMBER; 705 hash = (53 * hash) + internalGetItems().hashCode(); 706 } 707 if (hasKind()) { 708 hash = (37 * hash) + KIND_FIELD_NUMBER; 709 hash = (53 * hash) + getKind().hashCode(); 710 } 711 if (hasNextPageToken()) { 712 hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; 713 hash = (53 * hash) + getNextPageToken().hashCode(); 714 } 715 if (hasSelfLink()) { 716 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 717 hash = (53 * hash) + getSelfLink().hashCode(); 718 } 719 if (getUnreachablesCount() > 0) { 720 hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER; 721 hash = (53 * hash) + getUnreachablesList().hashCode(); 722 } 723 if (hasWarning()) { 724 hash = (37 * hash) + WARNING_FIELD_NUMBER; 725 hash = (53 * hash) + getWarning().hashCode(); 726 } 727 hash = (29 * hash) + getUnknownFields().hashCode(); 728 memoizedHashCode = hash; 729 return hash; 730 } 731 parseFrom(java.nio.ByteBuffer data)732 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom(java.nio.ByteBuffer data) 733 throws com.google.protobuf.InvalidProtocolBufferException { 734 return PARSER.parseFrom(data); 735 } 736 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)737 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 738 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 739 throws com.google.protobuf.InvalidProtocolBufferException { 740 return PARSER.parseFrom(data, extensionRegistry); 741 } 742 parseFrom( com.google.protobuf.ByteString data)743 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 744 com.google.protobuf.ByteString data) 745 throws com.google.protobuf.InvalidProtocolBufferException { 746 return PARSER.parseFrom(data); 747 } 748 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)749 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 750 com.google.protobuf.ByteString data, 751 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 752 throws com.google.protobuf.InvalidProtocolBufferException { 753 return PARSER.parseFrom(data, extensionRegistry); 754 } 755 parseFrom(byte[] data)756 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom(byte[] data) 757 throws com.google.protobuf.InvalidProtocolBufferException { 758 return PARSER.parseFrom(data); 759 } 760 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)761 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 762 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 763 throws com.google.protobuf.InvalidProtocolBufferException { 764 return PARSER.parseFrom(data, extensionRegistry); 765 } 766 parseFrom( java.io.InputStream input)767 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 768 java.io.InputStream input) throws java.io.IOException { 769 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 770 } 771 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)772 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 773 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 774 throws java.io.IOException { 775 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 776 PARSER, input, extensionRegistry); 777 } 778 parseDelimitedFrom( java.io.InputStream input)779 public static com.google.cloud.compute.v1.RouterAggregatedList parseDelimitedFrom( 780 java.io.InputStream input) throws java.io.IOException { 781 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 782 } 783 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)784 public static com.google.cloud.compute.v1.RouterAggregatedList parseDelimitedFrom( 785 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 786 throws java.io.IOException { 787 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 788 PARSER, input, extensionRegistry); 789 } 790 parseFrom( com.google.protobuf.CodedInputStream input)791 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 792 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 793 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 794 } 795 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)796 public static com.google.cloud.compute.v1.RouterAggregatedList parseFrom( 797 com.google.protobuf.CodedInputStream input, 798 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 799 throws java.io.IOException { 800 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 801 PARSER, input, extensionRegistry); 802 } 803 804 @java.lang.Override newBuilderForType()805 public Builder newBuilderForType() { 806 return newBuilder(); 807 } 808 newBuilder()809 public static Builder newBuilder() { 810 return DEFAULT_INSTANCE.toBuilder(); 811 } 812 newBuilder(com.google.cloud.compute.v1.RouterAggregatedList prototype)813 public static Builder newBuilder(com.google.cloud.compute.v1.RouterAggregatedList prototype) { 814 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 815 } 816 817 @java.lang.Override toBuilder()818 public Builder toBuilder() { 819 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 820 } 821 822 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)823 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 824 Builder builder = new Builder(parent); 825 return builder; 826 } 827 /** 828 * 829 * 830 * <pre> 831 * Contains a list of routers. 832 * </pre> 833 * 834 * Protobuf type {@code google.cloud.compute.v1.RouterAggregatedList} 835 */ 836 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 837 implements 838 // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.RouterAggregatedList) 839 com.google.cloud.compute.v1.RouterAggregatedListOrBuilder { getDescriptor()840 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 841 return com.google.cloud.compute.v1.Compute 842 .internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor; 843 } 844 845 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)846 protected com.google.protobuf.MapField internalGetMapField(int number) { 847 switch (number) { 848 case 100526016: 849 return internalGetItems(); 850 default: 851 throw new RuntimeException("Invalid map field number: " + number); 852 } 853 } 854 855 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)856 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 857 switch (number) { 858 case 100526016: 859 return internalGetMutableItems(); 860 default: 861 throw new RuntimeException("Invalid map field number: " + number); 862 } 863 } 864 865 @java.lang.Override 866 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()867 internalGetFieldAccessorTable() { 868 return com.google.cloud.compute.v1.Compute 869 .internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable 870 .ensureFieldAccessorsInitialized( 871 com.google.cloud.compute.v1.RouterAggregatedList.class, 872 com.google.cloud.compute.v1.RouterAggregatedList.Builder.class); 873 } 874 875 // Construct using com.google.cloud.compute.v1.RouterAggregatedList.newBuilder() Builder()876 private Builder() { 877 maybeForceBuilderInitialization(); 878 } 879 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)880 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 881 super(parent); 882 maybeForceBuilderInitialization(); 883 } 884 maybeForceBuilderInitialization()885 private void maybeForceBuilderInitialization() { 886 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { 887 getWarningFieldBuilder(); 888 } 889 } 890 891 @java.lang.Override clear()892 public Builder clear() { 893 super.clear(); 894 bitField0_ = 0; 895 id_ = ""; 896 internalGetMutableItems().clear(); 897 kind_ = ""; 898 nextPageToken_ = ""; 899 selfLink_ = ""; 900 unreachables_ = com.google.protobuf.LazyStringArrayList.EMPTY; 901 bitField0_ = (bitField0_ & ~0x00000020); 902 warning_ = null; 903 if (warningBuilder_ != null) { 904 warningBuilder_.dispose(); 905 warningBuilder_ = null; 906 } 907 return this; 908 } 909 910 @java.lang.Override getDescriptorForType()911 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 912 return com.google.cloud.compute.v1.Compute 913 .internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor; 914 } 915 916 @java.lang.Override getDefaultInstanceForType()917 public com.google.cloud.compute.v1.RouterAggregatedList getDefaultInstanceForType() { 918 return com.google.cloud.compute.v1.RouterAggregatedList.getDefaultInstance(); 919 } 920 921 @java.lang.Override build()922 public com.google.cloud.compute.v1.RouterAggregatedList build() { 923 com.google.cloud.compute.v1.RouterAggregatedList result = buildPartial(); 924 if (!result.isInitialized()) { 925 throw newUninitializedMessageException(result); 926 } 927 return result; 928 } 929 930 @java.lang.Override buildPartial()931 public com.google.cloud.compute.v1.RouterAggregatedList buildPartial() { 932 com.google.cloud.compute.v1.RouterAggregatedList result = 933 new com.google.cloud.compute.v1.RouterAggregatedList(this); 934 buildPartialRepeatedFields(result); 935 if (bitField0_ != 0) { 936 buildPartial0(result); 937 } 938 onBuilt(); 939 return result; 940 } 941 buildPartialRepeatedFields( com.google.cloud.compute.v1.RouterAggregatedList result)942 private void buildPartialRepeatedFields( 943 com.google.cloud.compute.v1.RouterAggregatedList result) { 944 if (((bitField0_ & 0x00000020) != 0)) { 945 unreachables_ = unreachables_.getUnmodifiableView(); 946 bitField0_ = (bitField0_ & ~0x00000020); 947 } 948 result.unreachables_ = unreachables_; 949 } 950 buildPartial0(com.google.cloud.compute.v1.RouterAggregatedList result)951 private void buildPartial0(com.google.cloud.compute.v1.RouterAggregatedList result) { 952 int from_bitField0_ = bitField0_; 953 int to_bitField0_ = 0; 954 if (((from_bitField0_ & 0x00000001) != 0)) { 955 result.id_ = id_; 956 to_bitField0_ |= 0x00000001; 957 } 958 if (((from_bitField0_ & 0x00000002) != 0)) { 959 result.items_ = internalGetItems(); 960 result.items_.makeImmutable(); 961 } 962 if (((from_bitField0_ & 0x00000004) != 0)) { 963 result.kind_ = kind_; 964 to_bitField0_ |= 0x00000002; 965 } 966 if (((from_bitField0_ & 0x00000008) != 0)) { 967 result.nextPageToken_ = nextPageToken_; 968 to_bitField0_ |= 0x00000004; 969 } 970 if (((from_bitField0_ & 0x00000010) != 0)) { 971 result.selfLink_ = selfLink_; 972 to_bitField0_ |= 0x00000008; 973 } 974 if (((from_bitField0_ & 0x00000040) != 0)) { 975 result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); 976 to_bitField0_ |= 0x00000010; 977 } 978 result.bitField0_ |= to_bitField0_; 979 } 980 981 @java.lang.Override clone()982 public Builder clone() { 983 return super.clone(); 984 } 985 986 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)987 public Builder setField( 988 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 989 return super.setField(field, value); 990 } 991 992 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)993 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 994 return super.clearField(field); 995 } 996 997 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)998 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 999 return super.clearOneof(oneof); 1000 } 1001 1002 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1003 public Builder setRepeatedField( 1004 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1005 return super.setRepeatedField(field, index, value); 1006 } 1007 1008 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1009 public Builder addRepeatedField( 1010 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1011 return super.addRepeatedField(field, value); 1012 } 1013 1014 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1015 public Builder mergeFrom(com.google.protobuf.Message other) { 1016 if (other instanceof com.google.cloud.compute.v1.RouterAggregatedList) { 1017 return mergeFrom((com.google.cloud.compute.v1.RouterAggregatedList) other); 1018 } else { 1019 super.mergeFrom(other); 1020 return this; 1021 } 1022 } 1023 mergeFrom(com.google.cloud.compute.v1.RouterAggregatedList other)1024 public Builder mergeFrom(com.google.cloud.compute.v1.RouterAggregatedList other) { 1025 if (other == com.google.cloud.compute.v1.RouterAggregatedList.getDefaultInstance()) 1026 return this; 1027 if (other.hasId()) { 1028 id_ = other.id_; 1029 bitField0_ |= 0x00000001; 1030 onChanged(); 1031 } 1032 internalGetMutableItems().mergeFrom(other.internalGetItems()); 1033 bitField0_ |= 0x00000002; 1034 if (other.hasKind()) { 1035 kind_ = other.kind_; 1036 bitField0_ |= 0x00000004; 1037 onChanged(); 1038 } 1039 if (other.hasNextPageToken()) { 1040 nextPageToken_ = other.nextPageToken_; 1041 bitField0_ |= 0x00000008; 1042 onChanged(); 1043 } 1044 if (other.hasSelfLink()) { 1045 selfLink_ = other.selfLink_; 1046 bitField0_ |= 0x00000010; 1047 onChanged(); 1048 } 1049 if (!other.unreachables_.isEmpty()) { 1050 if (unreachables_.isEmpty()) { 1051 unreachables_ = other.unreachables_; 1052 bitField0_ = (bitField0_ & ~0x00000020); 1053 } else { 1054 ensureUnreachablesIsMutable(); 1055 unreachables_.addAll(other.unreachables_); 1056 } 1057 onChanged(); 1058 } 1059 if (other.hasWarning()) { 1060 mergeWarning(other.getWarning()); 1061 } 1062 this.mergeUnknownFields(other.getUnknownFields()); 1063 onChanged(); 1064 return this; 1065 } 1066 1067 @java.lang.Override isInitialized()1068 public final boolean isInitialized() { 1069 return true; 1070 } 1071 1072 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1073 public Builder mergeFrom( 1074 com.google.protobuf.CodedInputStream input, 1075 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1076 throws java.io.IOException { 1077 if (extensionRegistry == null) { 1078 throw new java.lang.NullPointerException(); 1079 } 1080 try { 1081 boolean done = false; 1082 while (!done) { 1083 int tag = input.readTag(); 1084 switch (tag) { 1085 case 0: 1086 done = true; 1087 break; 1088 case 26842: 1089 { 1090 id_ = input.readStringRequireUtf8(); 1091 bitField0_ |= 0x00000001; 1092 break; 1093 } // case 26842 1094 case 26336418: 1095 { 1096 kind_ = input.readStringRequireUtf8(); 1097 bitField0_ |= 0x00000004; 1098 break; 1099 } // case 26336418 1100 case 405634274: 1101 { 1102 input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry); 1103 bitField0_ |= 0x00000040; 1104 break; 1105 } // case 405634274 1106 case 638380202: 1107 { 1108 nextPageToken_ = input.readStringRequireUtf8(); 1109 bitField0_ |= 0x00000008; 1110 break; 1111 } // case 638380202 1112 case 804208130: 1113 { 1114 com.google.protobuf.MapEntry< 1115 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 1116 items__ = 1117 input.readMessage( 1118 ItemsDefaultEntryHolder.defaultEntry.getParserForType(), 1119 extensionRegistry); 1120 internalGetMutableItems().getMutableMap().put(items__.getKey(), items__.getValue()); 1121 bitField0_ |= 0x00000002; 1122 break; 1123 } // case 804208130 1124 case 1946976506: 1125 { 1126 java.lang.String s = input.readStringRequireUtf8(); 1127 ensureUnreachablesIsMutable(); 1128 unreachables_.add(s); 1129 break; 1130 } // case 1946976506 1131 case -645248918: 1132 { 1133 selfLink_ = input.readStringRequireUtf8(); 1134 bitField0_ |= 0x00000010; 1135 break; 1136 } // case -645248918 1137 default: 1138 { 1139 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1140 done = true; // was an endgroup tag 1141 } 1142 break; 1143 } // default: 1144 } // switch (tag) 1145 } // while (!done) 1146 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1147 throw e.unwrapIOException(); 1148 } finally { 1149 onChanged(); 1150 } // finally 1151 return this; 1152 } 1153 1154 private int bitField0_; 1155 1156 private java.lang.Object id_ = ""; 1157 /** 1158 * 1159 * 1160 * <pre> 1161 * [Output Only] Unique identifier for the resource; defined by the server. 1162 * </pre> 1163 * 1164 * <code>optional string id = 3355;</code> 1165 * 1166 * @return Whether the id field is set. 1167 */ hasId()1168 public boolean hasId() { 1169 return ((bitField0_ & 0x00000001) != 0); 1170 } 1171 /** 1172 * 1173 * 1174 * <pre> 1175 * [Output Only] Unique identifier for the resource; defined by the server. 1176 * </pre> 1177 * 1178 * <code>optional string id = 3355;</code> 1179 * 1180 * @return The id. 1181 */ getId()1182 public java.lang.String getId() { 1183 java.lang.Object ref = id_; 1184 if (!(ref instanceof java.lang.String)) { 1185 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1186 java.lang.String s = bs.toStringUtf8(); 1187 id_ = s; 1188 return s; 1189 } else { 1190 return (java.lang.String) ref; 1191 } 1192 } 1193 /** 1194 * 1195 * 1196 * <pre> 1197 * [Output Only] Unique identifier for the resource; defined by the server. 1198 * </pre> 1199 * 1200 * <code>optional string id = 3355;</code> 1201 * 1202 * @return The bytes for id. 1203 */ getIdBytes()1204 public com.google.protobuf.ByteString getIdBytes() { 1205 java.lang.Object ref = id_; 1206 if (ref instanceof String) { 1207 com.google.protobuf.ByteString b = 1208 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1209 id_ = b; 1210 return b; 1211 } else { 1212 return (com.google.protobuf.ByteString) ref; 1213 } 1214 } 1215 /** 1216 * 1217 * 1218 * <pre> 1219 * [Output Only] Unique identifier for the resource; defined by the server. 1220 * </pre> 1221 * 1222 * <code>optional string id = 3355;</code> 1223 * 1224 * @param value The id to set. 1225 * @return This builder for chaining. 1226 */ setId(java.lang.String value)1227 public Builder setId(java.lang.String value) { 1228 if (value == null) { 1229 throw new NullPointerException(); 1230 } 1231 id_ = value; 1232 bitField0_ |= 0x00000001; 1233 onChanged(); 1234 return this; 1235 } 1236 /** 1237 * 1238 * 1239 * <pre> 1240 * [Output Only] Unique identifier for the resource; defined by the server. 1241 * </pre> 1242 * 1243 * <code>optional string id = 3355;</code> 1244 * 1245 * @return This builder for chaining. 1246 */ clearId()1247 public Builder clearId() { 1248 id_ = getDefaultInstance().getId(); 1249 bitField0_ = (bitField0_ & ~0x00000001); 1250 onChanged(); 1251 return this; 1252 } 1253 /** 1254 * 1255 * 1256 * <pre> 1257 * [Output Only] Unique identifier for the resource; defined by the server. 1258 * </pre> 1259 * 1260 * <code>optional string id = 3355;</code> 1261 * 1262 * @param value The bytes for id to set. 1263 * @return This builder for chaining. 1264 */ setIdBytes(com.google.protobuf.ByteString value)1265 public Builder setIdBytes(com.google.protobuf.ByteString value) { 1266 if (value == null) { 1267 throw new NullPointerException(); 1268 } 1269 checkByteStringIsUtf8(value); 1270 id_ = value; 1271 bitField0_ |= 0x00000001; 1272 onChanged(); 1273 return this; 1274 } 1275 1276 private com.google.protobuf.MapField< 1277 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> 1278 items_; 1279 1280 private com.google.protobuf.MapField< 1281 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> internalGetItems()1282 internalGetItems() { 1283 if (items_ == null) { 1284 return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); 1285 } 1286 return items_; 1287 } 1288 1289 private com.google.protobuf.MapField< 1290 java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> internalGetMutableItems()1291 internalGetMutableItems() { 1292 if (items_ == null) { 1293 items_ = com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry); 1294 } 1295 if (!items_.isMutable()) { 1296 items_ = items_.copy(); 1297 } 1298 bitField0_ |= 0x00000002; 1299 onChanged(); 1300 return items_; 1301 } 1302 getItemsCount()1303 public int getItemsCount() { 1304 return internalGetItems().getMap().size(); 1305 } 1306 /** 1307 * 1308 * 1309 * <pre> 1310 * A list of Router resources. 1311 * </pre> 1312 * 1313 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1314 */ 1315 @java.lang.Override containsItems(java.lang.String key)1316 public boolean containsItems(java.lang.String key) { 1317 if (key == null) { 1318 throw new NullPointerException("map key"); 1319 } 1320 return internalGetItems().getMap().containsKey(key); 1321 } 1322 /** Use {@link #getItemsMap()} instead. */ 1323 @java.lang.Override 1324 @java.lang.Deprecated 1325 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> getItems()1326 getItems() { 1327 return getItemsMap(); 1328 } 1329 /** 1330 * 1331 * 1332 * <pre> 1333 * A list of Router resources. 1334 * </pre> 1335 * 1336 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1337 */ 1338 @java.lang.Override 1339 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> getItemsMap()1340 getItemsMap() { 1341 return internalGetItems().getMap(); 1342 } 1343 /** 1344 * 1345 * 1346 * <pre> 1347 * A list of Router resources. 1348 * </pre> 1349 * 1350 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1351 */ 1352 @java.lang.Override getItemsOrDefault( java.lang.String key, com.google.cloud.compute.v1.RoutersScopedList defaultValue)1353 public /* nullable */ com.google.cloud.compute.v1.RoutersScopedList getItemsOrDefault( 1354 java.lang.String key, 1355 /* nullable */ 1356 com.google.cloud.compute.v1.RoutersScopedList defaultValue) { 1357 if (key == null) { 1358 throw new NullPointerException("map key"); 1359 } 1360 java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> map = 1361 internalGetItems().getMap(); 1362 return map.containsKey(key) ? map.get(key) : defaultValue; 1363 } 1364 /** 1365 * 1366 * 1367 * <pre> 1368 * A list of Router resources. 1369 * </pre> 1370 * 1371 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1372 */ 1373 @java.lang.Override getItemsOrThrow(java.lang.String key)1374 public com.google.cloud.compute.v1.RoutersScopedList getItemsOrThrow(java.lang.String key) { 1375 if (key == null) { 1376 throw new NullPointerException("map key"); 1377 } 1378 java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> map = 1379 internalGetItems().getMap(); 1380 if (!map.containsKey(key)) { 1381 throw new java.lang.IllegalArgumentException(); 1382 } 1383 return map.get(key); 1384 } 1385 clearItems()1386 public Builder clearItems() { 1387 bitField0_ = (bitField0_ & ~0x00000002); 1388 internalGetMutableItems().getMutableMap().clear(); 1389 return this; 1390 } 1391 /** 1392 * 1393 * 1394 * <pre> 1395 * A list of Router resources. 1396 * </pre> 1397 * 1398 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1399 */ removeItems(java.lang.String key)1400 public Builder removeItems(java.lang.String key) { 1401 if (key == null) { 1402 throw new NullPointerException("map key"); 1403 } 1404 internalGetMutableItems().getMutableMap().remove(key); 1405 return this; 1406 } 1407 /** Use alternate mutation accessors instead. */ 1408 @java.lang.Deprecated 1409 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> getMutableItems()1410 getMutableItems() { 1411 bitField0_ |= 0x00000002; 1412 return internalGetMutableItems().getMutableMap(); 1413 } 1414 /** 1415 * 1416 * 1417 * <pre> 1418 * A list of Router resources. 1419 * </pre> 1420 * 1421 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1422 */ putItems( java.lang.String key, com.google.cloud.compute.v1.RoutersScopedList value)1423 public Builder putItems( 1424 java.lang.String key, com.google.cloud.compute.v1.RoutersScopedList value) { 1425 if (key == null) { 1426 throw new NullPointerException("map key"); 1427 } 1428 if (value == null) { 1429 throw new NullPointerException("map value"); 1430 } 1431 internalGetMutableItems().getMutableMap().put(key, value); 1432 bitField0_ |= 0x00000002; 1433 return this; 1434 } 1435 /** 1436 * 1437 * 1438 * <pre> 1439 * A list of Router resources. 1440 * </pre> 1441 * 1442 * <code>map<string, .google.cloud.compute.v1.RoutersScopedList> items = 100526016;</code> 1443 */ putAllItems( java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> values)1444 public Builder putAllItems( 1445 java.util.Map<java.lang.String, com.google.cloud.compute.v1.RoutersScopedList> values) { 1446 internalGetMutableItems().getMutableMap().putAll(values); 1447 bitField0_ |= 0x00000002; 1448 return this; 1449 } 1450 1451 private java.lang.Object kind_ = ""; 1452 /** 1453 * 1454 * 1455 * <pre> 1456 * Type of resource. 1457 * </pre> 1458 * 1459 * <code>optional string kind = 3292052;</code> 1460 * 1461 * @return Whether the kind field is set. 1462 */ hasKind()1463 public boolean hasKind() { 1464 return ((bitField0_ & 0x00000004) != 0); 1465 } 1466 /** 1467 * 1468 * 1469 * <pre> 1470 * Type of resource. 1471 * </pre> 1472 * 1473 * <code>optional string kind = 3292052;</code> 1474 * 1475 * @return The kind. 1476 */ getKind()1477 public java.lang.String getKind() { 1478 java.lang.Object ref = kind_; 1479 if (!(ref instanceof java.lang.String)) { 1480 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1481 java.lang.String s = bs.toStringUtf8(); 1482 kind_ = s; 1483 return s; 1484 } else { 1485 return (java.lang.String) ref; 1486 } 1487 } 1488 /** 1489 * 1490 * 1491 * <pre> 1492 * Type of resource. 1493 * </pre> 1494 * 1495 * <code>optional string kind = 3292052;</code> 1496 * 1497 * @return The bytes for kind. 1498 */ getKindBytes()1499 public com.google.protobuf.ByteString getKindBytes() { 1500 java.lang.Object ref = kind_; 1501 if (ref instanceof String) { 1502 com.google.protobuf.ByteString b = 1503 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1504 kind_ = b; 1505 return b; 1506 } else { 1507 return (com.google.protobuf.ByteString) ref; 1508 } 1509 } 1510 /** 1511 * 1512 * 1513 * <pre> 1514 * Type of resource. 1515 * </pre> 1516 * 1517 * <code>optional string kind = 3292052;</code> 1518 * 1519 * @param value The kind to set. 1520 * @return This builder for chaining. 1521 */ setKind(java.lang.String value)1522 public Builder setKind(java.lang.String value) { 1523 if (value == null) { 1524 throw new NullPointerException(); 1525 } 1526 kind_ = value; 1527 bitField0_ |= 0x00000004; 1528 onChanged(); 1529 return this; 1530 } 1531 /** 1532 * 1533 * 1534 * <pre> 1535 * Type of resource. 1536 * </pre> 1537 * 1538 * <code>optional string kind = 3292052;</code> 1539 * 1540 * @return This builder for chaining. 1541 */ clearKind()1542 public Builder clearKind() { 1543 kind_ = getDefaultInstance().getKind(); 1544 bitField0_ = (bitField0_ & ~0x00000004); 1545 onChanged(); 1546 return this; 1547 } 1548 /** 1549 * 1550 * 1551 * <pre> 1552 * Type of resource. 1553 * </pre> 1554 * 1555 * <code>optional string kind = 3292052;</code> 1556 * 1557 * @param value The bytes for kind to set. 1558 * @return This builder for chaining. 1559 */ setKindBytes(com.google.protobuf.ByteString value)1560 public Builder setKindBytes(com.google.protobuf.ByteString value) { 1561 if (value == null) { 1562 throw new NullPointerException(); 1563 } 1564 checkByteStringIsUtf8(value); 1565 kind_ = value; 1566 bitField0_ |= 0x00000004; 1567 onChanged(); 1568 return this; 1569 } 1570 1571 private java.lang.Object nextPageToken_ = ""; 1572 /** 1573 * 1574 * 1575 * <pre> 1576 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1577 * </pre> 1578 * 1579 * <code>optional string next_page_token = 79797525;</code> 1580 * 1581 * @return Whether the nextPageToken field is set. 1582 */ hasNextPageToken()1583 public boolean hasNextPageToken() { 1584 return ((bitField0_ & 0x00000008) != 0); 1585 } 1586 /** 1587 * 1588 * 1589 * <pre> 1590 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1591 * </pre> 1592 * 1593 * <code>optional string next_page_token = 79797525;</code> 1594 * 1595 * @return The nextPageToken. 1596 */ getNextPageToken()1597 public java.lang.String getNextPageToken() { 1598 java.lang.Object ref = nextPageToken_; 1599 if (!(ref instanceof java.lang.String)) { 1600 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1601 java.lang.String s = bs.toStringUtf8(); 1602 nextPageToken_ = s; 1603 return s; 1604 } else { 1605 return (java.lang.String) ref; 1606 } 1607 } 1608 /** 1609 * 1610 * 1611 * <pre> 1612 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1613 * </pre> 1614 * 1615 * <code>optional string next_page_token = 79797525;</code> 1616 * 1617 * @return The bytes for nextPageToken. 1618 */ getNextPageTokenBytes()1619 public com.google.protobuf.ByteString getNextPageTokenBytes() { 1620 java.lang.Object ref = nextPageToken_; 1621 if (ref instanceof String) { 1622 com.google.protobuf.ByteString b = 1623 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1624 nextPageToken_ = b; 1625 return b; 1626 } else { 1627 return (com.google.protobuf.ByteString) ref; 1628 } 1629 } 1630 /** 1631 * 1632 * 1633 * <pre> 1634 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1635 * </pre> 1636 * 1637 * <code>optional string next_page_token = 79797525;</code> 1638 * 1639 * @param value The nextPageToken to set. 1640 * @return This builder for chaining. 1641 */ setNextPageToken(java.lang.String value)1642 public Builder setNextPageToken(java.lang.String value) { 1643 if (value == null) { 1644 throw new NullPointerException(); 1645 } 1646 nextPageToken_ = value; 1647 bitField0_ |= 0x00000008; 1648 onChanged(); 1649 return this; 1650 } 1651 /** 1652 * 1653 * 1654 * <pre> 1655 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1656 * </pre> 1657 * 1658 * <code>optional string next_page_token = 79797525;</code> 1659 * 1660 * @return This builder for chaining. 1661 */ clearNextPageToken()1662 public Builder clearNextPageToken() { 1663 nextPageToken_ = getDefaultInstance().getNextPageToken(); 1664 bitField0_ = (bitField0_ & ~0x00000008); 1665 onChanged(); 1666 return this; 1667 } 1668 /** 1669 * 1670 * 1671 * <pre> 1672 * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 1673 * </pre> 1674 * 1675 * <code>optional string next_page_token = 79797525;</code> 1676 * 1677 * @param value The bytes for nextPageToken to set. 1678 * @return This builder for chaining. 1679 */ setNextPageTokenBytes(com.google.protobuf.ByteString value)1680 public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 1681 if (value == null) { 1682 throw new NullPointerException(); 1683 } 1684 checkByteStringIsUtf8(value); 1685 nextPageToken_ = value; 1686 bitField0_ |= 0x00000008; 1687 onChanged(); 1688 return this; 1689 } 1690 1691 private java.lang.Object selfLink_ = ""; 1692 /** 1693 * 1694 * 1695 * <pre> 1696 * [Output Only] Server-defined URL for this resource. 1697 * </pre> 1698 * 1699 * <code>optional string self_link = 456214797;</code> 1700 * 1701 * @return Whether the selfLink field is set. 1702 */ hasSelfLink()1703 public boolean hasSelfLink() { 1704 return ((bitField0_ & 0x00000010) != 0); 1705 } 1706 /** 1707 * 1708 * 1709 * <pre> 1710 * [Output Only] Server-defined URL for this resource. 1711 * </pre> 1712 * 1713 * <code>optional string self_link = 456214797;</code> 1714 * 1715 * @return The selfLink. 1716 */ getSelfLink()1717 public java.lang.String getSelfLink() { 1718 java.lang.Object ref = selfLink_; 1719 if (!(ref instanceof java.lang.String)) { 1720 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1721 java.lang.String s = bs.toStringUtf8(); 1722 selfLink_ = s; 1723 return s; 1724 } else { 1725 return (java.lang.String) ref; 1726 } 1727 } 1728 /** 1729 * 1730 * 1731 * <pre> 1732 * [Output Only] Server-defined URL for this resource. 1733 * </pre> 1734 * 1735 * <code>optional string self_link = 456214797;</code> 1736 * 1737 * @return The bytes for selfLink. 1738 */ getSelfLinkBytes()1739 public com.google.protobuf.ByteString getSelfLinkBytes() { 1740 java.lang.Object ref = selfLink_; 1741 if (ref instanceof String) { 1742 com.google.protobuf.ByteString b = 1743 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1744 selfLink_ = b; 1745 return b; 1746 } else { 1747 return (com.google.protobuf.ByteString) ref; 1748 } 1749 } 1750 /** 1751 * 1752 * 1753 * <pre> 1754 * [Output Only] Server-defined URL for this resource. 1755 * </pre> 1756 * 1757 * <code>optional string self_link = 456214797;</code> 1758 * 1759 * @param value The selfLink to set. 1760 * @return This builder for chaining. 1761 */ setSelfLink(java.lang.String value)1762 public Builder setSelfLink(java.lang.String value) { 1763 if (value == null) { 1764 throw new NullPointerException(); 1765 } 1766 selfLink_ = value; 1767 bitField0_ |= 0x00000010; 1768 onChanged(); 1769 return this; 1770 } 1771 /** 1772 * 1773 * 1774 * <pre> 1775 * [Output Only] Server-defined URL for this resource. 1776 * </pre> 1777 * 1778 * <code>optional string self_link = 456214797;</code> 1779 * 1780 * @return This builder for chaining. 1781 */ clearSelfLink()1782 public Builder clearSelfLink() { 1783 selfLink_ = getDefaultInstance().getSelfLink(); 1784 bitField0_ = (bitField0_ & ~0x00000010); 1785 onChanged(); 1786 return this; 1787 } 1788 /** 1789 * 1790 * 1791 * <pre> 1792 * [Output Only] Server-defined URL for this resource. 1793 * </pre> 1794 * 1795 * <code>optional string self_link = 456214797;</code> 1796 * 1797 * @param value The bytes for selfLink to set. 1798 * @return This builder for chaining. 1799 */ setSelfLinkBytes(com.google.protobuf.ByteString value)1800 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 1801 if (value == null) { 1802 throw new NullPointerException(); 1803 } 1804 checkByteStringIsUtf8(value); 1805 selfLink_ = value; 1806 bitField0_ |= 0x00000010; 1807 onChanged(); 1808 return this; 1809 } 1810 1811 private com.google.protobuf.LazyStringList unreachables_ = 1812 com.google.protobuf.LazyStringArrayList.EMPTY; 1813 ensureUnreachablesIsMutable()1814 private void ensureUnreachablesIsMutable() { 1815 if (!((bitField0_ & 0x00000020) != 0)) { 1816 unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_); 1817 bitField0_ |= 0x00000020; 1818 } 1819 } 1820 /** 1821 * 1822 * 1823 * <pre> 1824 * [Output Only] Unreachable resources. 1825 * </pre> 1826 * 1827 * <code>repeated string unreachables = 243372063;</code> 1828 * 1829 * @return A list containing the unreachables. 1830 */ getUnreachablesList()1831 public com.google.protobuf.ProtocolStringList getUnreachablesList() { 1832 return unreachables_.getUnmodifiableView(); 1833 } 1834 /** 1835 * 1836 * 1837 * <pre> 1838 * [Output Only] Unreachable resources. 1839 * </pre> 1840 * 1841 * <code>repeated string unreachables = 243372063;</code> 1842 * 1843 * @return The count of unreachables. 1844 */ getUnreachablesCount()1845 public int getUnreachablesCount() { 1846 return unreachables_.size(); 1847 } 1848 /** 1849 * 1850 * 1851 * <pre> 1852 * [Output Only] Unreachable resources. 1853 * </pre> 1854 * 1855 * <code>repeated string unreachables = 243372063;</code> 1856 * 1857 * @param index The index of the element to return. 1858 * @return The unreachables at the given index. 1859 */ getUnreachables(int index)1860 public java.lang.String getUnreachables(int index) { 1861 return unreachables_.get(index); 1862 } 1863 /** 1864 * 1865 * 1866 * <pre> 1867 * [Output Only] Unreachable resources. 1868 * </pre> 1869 * 1870 * <code>repeated string unreachables = 243372063;</code> 1871 * 1872 * @param index The index of the value to return. 1873 * @return The bytes of the unreachables at the given index. 1874 */ getUnreachablesBytes(int index)1875 public com.google.protobuf.ByteString getUnreachablesBytes(int index) { 1876 return unreachables_.getByteString(index); 1877 } 1878 /** 1879 * 1880 * 1881 * <pre> 1882 * [Output Only] Unreachable resources. 1883 * </pre> 1884 * 1885 * <code>repeated string unreachables = 243372063;</code> 1886 * 1887 * @param index The index to set the value at. 1888 * @param value The unreachables to set. 1889 * @return This builder for chaining. 1890 */ setUnreachables(int index, java.lang.String value)1891 public Builder setUnreachables(int index, java.lang.String value) { 1892 if (value == null) { 1893 throw new NullPointerException(); 1894 } 1895 ensureUnreachablesIsMutable(); 1896 unreachables_.set(index, value); 1897 onChanged(); 1898 return this; 1899 } 1900 /** 1901 * 1902 * 1903 * <pre> 1904 * [Output Only] Unreachable resources. 1905 * </pre> 1906 * 1907 * <code>repeated string unreachables = 243372063;</code> 1908 * 1909 * @param value The unreachables to add. 1910 * @return This builder for chaining. 1911 */ addUnreachables(java.lang.String value)1912 public Builder addUnreachables(java.lang.String value) { 1913 if (value == null) { 1914 throw new NullPointerException(); 1915 } 1916 ensureUnreachablesIsMutable(); 1917 unreachables_.add(value); 1918 onChanged(); 1919 return this; 1920 } 1921 /** 1922 * 1923 * 1924 * <pre> 1925 * [Output Only] Unreachable resources. 1926 * </pre> 1927 * 1928 * <code>repeated string unreachables = 243372063;</code> 1929 * 1930 * @param values The unreachables to add. 1931 * @return This builder for chaining. 1932 */ addAllUnreachables(java.lang.Iterable<java.lang.String> values)1933 public Builder addAllUnreachables(java.lang.Iterable<java.lang.String> values) { 1934 ensureUnreachablesIsMutable(); 1935 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_); 1936 onChanged(); 1937 return this; 1938 } 1939 /** 1940 * 1941 * 1942 * <pre> 1943 * [Output Only] Unreachable resources. 1944 * </pre> 1945 * 1946 * <code>repeated string unreachables = 243372063;</code> 1947 * 1948 * @return This builder for chaining. 1949 */ clearUnreachables()1950 public Builder clearUnreachables() { 1951 unreachables_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1952 bitField0_ = (bitField0_ & ~0x00000020); 1953 onChanged(); 1954 return this; 1955 } 1956 /** 1957 * 1958 * 1959 * <pre> 1960 * [Output Only] Unreachable resources. 1961 * </pre> 1962 * 1963 * <code>repeated string unreachables = 243372063;</code> 1964 * 1965 * @param value The bytes of the unreachables to add. 1966 * @return This builder for chaining. 1967 */ addUnreachablesBytes(com.google.protobuf.ByteString value)1968 public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) { 1969 if (value == null) { 1970 throw new NullPointerException(); 1971 } 1972 checkByteStringIsUtf8(value); 1973 ensureUnreachablesIsMutable(); 1974 unreachables_.add(value); 1975 onChanged(); 1976 return this; 1977 } 1978 1979 private com.google.cloud.compute.v1.Warning warning_; 1980 private com.google.protobuf.SingleFieldBuilderV3< 1981 com.google.cloud.compute.v1.Warning, 1982 com.google.cloud.compute.v1.Warning.Builder, 1983 com.google.cloud.compute.v1.WarningOrBuilder> 1984 warningBuilder_; 1985 /** 1986 * 1987 * 1988 * <pre> 1989 * [Output Only] Informational warning message. 1990 * </pre> 1991 * 1992 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 1993 * 1994 * @return Whether the warning field is set. 1995 */ hasWarning()1996 public boolean hasWarning() { 1997 return ((bitField0_ & 0x00000040) != 0); 1998 } 1999 /** 2000 * 2001 * 2002 * <pre> 2003 * [Output Only] Informational warning message. 2004 * </pre> 2005 * 2006 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2007 * 2008 * @return The warning. 2009 */ getWarning()2010 public com.google.cloud.compute.v1.Warning getWarning() { 2011 if (warningBuilder_ == null) { 2012 return warning_ == null 2013 ? com.google.cloud.compute.v1.Warning.getDefaultInstance() 2014 : warning_; 2015 } else { 2016 return warningBuilder_.getMessage(); 2017 } 2018 } 2019 /** 2020 * 2021 * 2022 * <pre> 2023 * [Output Only] Informational warning message. 2024 * </pre> 2025 * 2026 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2027 */ setWarning(com.google.cloud.compute.v1.Warning value)2028 public Builder setWarning(com.google.cloud.compute.v1.Warning value) { 2029 if (warningBuilder_ == null) { 2030 if (value == null) { 2031 throw new NullPointerException(); 2032 } 2033 warning_ = value; 2034 } else { 2035 warningBuilder_.setMessage(value); 2036 } 2037 bitField0_ |= 0x00000040; 2038 onChanged(); 2039 return this; 2040 } 2041 /** 2042 * 2043 * 2044 * <pre> 2045 * [Output Only] Informational warning message. 2046 * </pre> 2047 * 2048 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2049 */ setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue)2050 public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { 2051 if (warningBuilder_ == null) { 2052 warning_ = builderForValue.build(); 2053 } else { 2054 warningBuilder_.setMessage(builderForValue.build()); 2055 } 2056 bitField0_ |= 0x00000040; 2057 onChanged(); 2058 return this; 2059 } 2060 /** 2061 * 2062 * 2063 * <pre> 2064 * [Output Only] Informational warning message. 2065 * </pre> 2066 * 2067 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2068 */ mergeWarning(com.google.cloud.compute.v1.Warning value)2069 public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { 2070 if (warningBuilder_ == null) { 2071 if (((bitField0_ & 0x00000040) != 0) 2072 && warning_ != null 2073 && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { 2074 getWarningBuilder().mergeFrom(value); 2075 } else { 2076 warning_ = value; 2077 } 2078 } else { 2079 warningBuilder_.mergeFrom(value); 2080 } 2081 bitField0_ |= 0x00000040; 2082 onChanged(); 2083 return this; 2084 } 2085 /** 2086 * 2087 * 2088 * <pre> 2089 * [Output Only] Informational warning message. 2090 * </pre> 2091 * 2092 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2093 */ clearWarning()2094 public Builder clearWarning() { 2095 bitField0_ = (bitField0_ & ~0x00000040); 2096 warning_ = null; 2097 if (warningBuilder_ != null) { 2098 warningBuilder_.dispose(); 2099 warningBuilder_ = null; 2100 } 2101 onChanged(); 2102 return this; 2103 } 2104 /** 2105 * 2106 * 2107 * <pre> 2108 * [Output Only] Informational warning message. 2109 * </pre> 2110 * 2111 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2112 */ getWarningBuilder()2113 public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { 2114 bitField0_ |= 0x00000040; 2115 onChanged(); 2116 return getWarningFieldBuilder().getBuilder(); 2117 } 2118 /** 2119 * 2120 * 2121 * <pre> 2122 * [Output Only] Informational warning message. 2123 * </pre> 2124 * 2125 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2126 */ getWarningOrBuilder()2127 public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { 2128 if (warningBuilder_ != null) { 2129 return warningBuilder_.getMessageOrBuilder(); 2130 } else { 2131 return warning_ == null 2132 ? com.google.cloud.compute.v1.Warning.getDefaultInstance() 2133 : warning_; 2134 } 2135 } 2136 /** 2137 * 2138 * 2139 * <pre> 2140 * [Output Only] Informational warning message. 2141 * </pre> 2142 * 2143 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2144 */ 2145 private com.google.protobuf.SingleFieldBuilderV3< 2146 com.google.cloud.compute.v1.Warning, 2147 com.google.cloud.compute.v1.Warning.Builder, 2148 com.google.cloud.compute.v1.WarningOrBuilder> getWarningFieldBuilder()2149 getWarningFieldBuilder() { 2150 if (warningBuilder_ == null) { 2151 warningBuilder_ = 2152 new com.google.protobuf.SingleFieldBuilderV3< 2153 com.google.cloud.compute.v1.Warning, 2154 com.google.cloud.compute.v1.Warning.Builder, 2155 com.google.cloud.compute.v1.WarningOrBuilder>( 2156 getWarning(), getParentForChildren(), isClean()); 2157 warning_ = null; 2158 } 2159 return warningBuilder_; 2160 } 2161 2162 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2163 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2164 return super.setUnknownFields(unknownFields); 2165 } 2166 2167 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2168 public final Builder mergeUnknownFields( 2169 final com.google.protobuf.UnknownFieldSet unknownFields) { 2170 return super.mergeUnknownFields(unknownFields); 2171 } 2172 2173 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.RouterAggregatedList) 2174 } 2175 2176 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.RouterAggregatedList) 2177 private static final com.google.cloud.compute.v1.RouterAggregatedList DEFAULT_INSTANCE; 2178 2179 static { 2180 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.RouterAggregatedList(); 2181 } 2182 getDefaultInstance()2183 public static com.google.cloud.compute.v1.RouterAggregatedList getDefaultInstance() { 2184 return DEFAULT_INSTANCE; 2185 } 2186 2187 private static final com.google.protobuf.Parser<RouterAggregatedList> PARSER = 2188 new com.google.protobuf.AbstractParser<RouterAggregatedList>() { 2189 @java.lang.Override 2190 public RouterAggregatedList parsePartialFrom( 2191 com.google.protobuf.CodedInputStream input, 2192 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2193 throws com.google.protobuf.InvalidProtocolBufferException { 2194 Builder builder = newBuilder(); 2195 try { 2196 builder.mergeFrom(input, extensionRegistry); 2197 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2198 throw e.setUnfinishedMessage(builder.buildPartial()); 2199 } catch (com.google.protobuf.UninitializedMessageException e) { 2200 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2201 } catch (java.io.IOException e) { 2202 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2203 .setUnfinishedMessage(builder.buildPartial()); 2204 } 2205 return builder.buildPartial(); 2206 } 2207 }; 2208 parser()2209 public static com.google.protobuf.Parser<RouterAggregatedList> parser() { 2210 return PARSER; 2211 } 2212 2213 @java.lang.Override getParserForType()2214 public com.google.protobuf.Parser<RouterAggregatedList> getParserForType() { 2215 return PARSER; 2216 } 2217 2218 @java.lang.Override getDefaultInstanceForType()2219 public com.google.cloud.compute.v1.RouterAggregatedList getDefaultInstanceForType() { 2220 return DEFAULT_INSTANCE; 2221 } 2222 } 2223