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 * </pre> 26 * 27 * Protobuf type {@code google.cloud.compute.v1.AddressAggregatedList} 28 */ 29 public final class AddressAggregatedList extends com.google.protobuf.GeneratedMessageV3 30 implements 31 // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.AddressAggregatedList) 32 AddressAggregatedListOrBuilder { 33 private static final long serialVersionUID = 0L; 34 // Use AddressAggregatedList.newBuilder() to construct. AddressAggregatedList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)35 private AddressAggregatedList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 36 super(builder); 37 } 38 AddressAggregatedList()39 private AddressAggregatedList() { 40 id_ = ""; 41 kind_ = ""; 42 nextPageToken_ = ""; 43 selfLink_ = ""; 44 unreachables_ = com.google.protobuf.LazyStringArrayList.EMPTY; 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new AddressAggregatedList(); 51 } 52 53 @java.lang.Override getUnknownFields()54 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 55 return this.unknownFields; 56 } 57 getDescriptor()58 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 59 return com.google.cloud.compute.v1.Compute 60 .internal_static_google_cloud_compute_v1_AddressAggregatedList_descriptor; 61 } 62 63 @SuppressWarnings({"rawtypes"}) 64 @java.lang.Override internalGetMapField(int number)65 protected com.google.protobuf.MapField internalGetMapField(int number) { 66 switch (number) { 67 case 100526016: 68 return internalGetItems(); 69 default: 70 throw new RuntimeException("Invalid map field number: " + number); 71 } 72 } 73 74 @java.lang.Override 75 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()76 internalGetFieldAccessorTable() { 77 return com.google.cloud.compute.v1.Compute 78 .internal_static_google_cloud_compute_v1_AddressAggregatedList_fieldAccessorTable 79 .ensureFieldAccessorsInitialized( 80 com.google.cloud.compute.v1.AddressAggregatedList.class, 81 com.google.cloud.compute.v1.AddressAggregatedList.Builder.class); 82 } 83 84 private int bitField0_; 85 public static final int ID_FIELD_NUMBER = 3355; 86 87 @SuppressWarnings("serial") 88 private volatile java.lang.Object id_ = ""; 89 /** 90 * 91 * 92 * <pre> 93 * [Output Only] Unique identifier for the resource; defined by the server. 94 * </pre> 95 * 96 * <code>optional string id = 3355;</code> 97 * 98 * @return Whether the id field is set. 99 */ 100 @java.lang.Override hasId()101 public boolean hasId() { 102 return ((bitField0_ & 0x00000001) != 0); 103 } 104 /** 105 * 106 * 107 * <pre> 108 * [Output Only] Unique identifier for the resource; defined by the server. 109 * </pre> 110 * 111 * <code>optional string id = 3355;</code> 112 * 113 * @return The id. 114 */ 115 @java.lang.Override getId()116 public java.lang.String getId() { 117 java.lang.Object ref = id_; 118 if (ref instanceof java.lang.String) { 119 return (java.lang.String) ref; 120 } else { 121 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 122 java.lang.String s = bs.toStringUtf8(); 123 id_ = s; 124 return s; 125 } 126 } 127 /** 128 * 129 * 130 * <pre> 131 * [Output Only] Unique identifier for the resource; defined by the server. 132 * </pre> 133 * 134 * <code>optional string id = 3355;</code> 135 * 136 * @return The bytes for id. 137 */ 138 @java.lang.Override getIdBytes()139 public com.google.protobuf.ByteString getIdBytes() { 140 java.lang.Object ref = id_; 141 if (ref instanceof java.lang.String) { 142 com.google.protobuf.ByteString b = 143 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 144 id_ = b; 145 return b; 146 } else { 147 return (com.google.protobuf.ByteString) ref; 148 } 149 } 150 151 public static final int ITEMS_FIELD_NUMBER = 100526016; 152 153 private static final class ItemsDefaultEntryHolder { 154 static final com.google.protobuf.MapEntry< 155 java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> 156 defaultEntry = 157 com.google.protobuf.MapEntry 158 .<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> 159 newDefaultInstance( 160 com.google.cloud.compute.v1.Compute 161 .internal_static_google_cloud_compute_v1_AddressAggregatedList_ItemsEntry_descriptor, 162 com.google.protobuf.WireFormat.FieldType.STRING, 163 "", 164 com.google.protobuf.WireFormat.FieldType.MESSAGE, 165 com.google.cloud.compute.v1.AddressesScopedList.getDefaultInstance()); 166 } 167 168 @SuppressWarnings("serial") 169 private com.google.protobuf.MapField< 170 java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> 171 items_; 172 173 private com.google.protobuf.MapField< 174 java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> internalGetItems()175 internalGetItems() { 176 if (items_ == null) { 177 return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); 178 } 179 return items_; 180 } 181 getItemsCount()182 public int getItemsCount() { 183 return internalGetItems().getMap().size(); 184 } 185 /** 186 * 187 * 188 * <pre> 189 * A list of AddressesScopedList resources. 190 * </pre> 191 * 192 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016;</code> 193 */ 194 @java.lang.Override containsItems(java.lang.String key)195 public boolean containsItems(java.lang.String key) { 196 if (key == null) { 197 throw new NullPointerException("map key"); 198 } 199 return internalGetItems().getMap().containsKey(key); 200 } 201 /** Use {@link #getItemsMap()} instead. */ 202 @java.lang.Override 203 @java.lang.Deprecated 204 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> getItems()205 getItems() { 206 return getItemsMap(); 207 } 208 /** 209 * 210 * 211 * <pre> 212 * A list of AddressesScopedList resources. 213 * </pre> 214 * 215 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016;</code> 216 */ 217 @java.lang.Override 218 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> getItemsMap()219 getItemsMap() { 220 return internalGetItems().getMap(); 221 } 222 /** 223 * 224 * 225 * <pre> 226 * A list of AddressesScopedList resources. 227 * </pre> 228 * 229 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016;</code> 230 */ 231 @java.lang.Override getItemsOrDefault( java.lang.String key, com.google.cloud.compute.v1.AddressesScopedList defaultValue)232 public /* nullable */ com.google.cloud.compute.v1.AddressesScopedList getItemsOrDefault( 233 java.lang.String key, 234 /* nullable */ 235 com.google.cloud.compute.v1.AddressesScopedList defaultValue) { 236 if (key == null) { 237 throw new NullPointerException("map key"); 238 } 239 java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> map = 240 internalGetItems().getMap(); 241 return map.containsKey(key) ? map.get(key) : defaultValue; 242 } 243 /** 244 * 245 * 246 * <pre> 247 * A list of AddressesScopedList resources. 248 * </pre> 249 * 250 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016;</code> 251 */ 252 @java.lang.Override getItemsOrThrow(java.lang.String key)253 public com.google.cloud.compute.v1.AddressesScopedList 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.AddressesScopedList> 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 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 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 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 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 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 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.AddressesScopedList> 629 entry : internalGetItems().getMap().entrySet()) { 630 com.google.protobuf.MapEntry< 631 java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> 632 items__ = 633 ItemsDefaultEntryHolder.defaultEntry 634 .newBuilderForType() 635 .setKey(entry.getKey()) 636 .setValue(entry.getValue()) 637 .build(); 638 size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items__); 639 } 640 { 641 int dataSize = 0; 642 for (int i = 0; i < unreachables_.size(); i++) { 643 dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); 644 } 645 size += dataSize; 646 size += 5 * getUnreachablesList().size(); 647 } 648 if (((bitField0_ & 0x00000008) != 0)) { 649 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_); 650 } 651 size += getUnknownFields().getSerializedSize(); 652 memoizedSize = size; 653 return size; 654 } 655 656 @java.lang.Override equals(final java.lang.Object obj)657 public boolean equals(final java.lang.Object obj) { 658 if (obj == this) { 659 return true; 660 } 661 if (!(obj instanceof com.google.cloud.compute.v1.AddressAggregatedList)) { 662 return super.equals(obj); 663 } 664 com.google.cloud.compute.v1.AddressAggregatedList other = 665 (com.google.cloud.compute.v1.AddressAggregatedList) obj; 666 667 if (hasId() != other.hasId()) return false; 668 if (hasId()) { 669 if (!getId().equals(other.getId())) return false; 670 } 671 if (!internalGetItems().equals(other.internalGetItems())) return false; 672 if (hasKind() != other.hasKind()) return false; 673 if (hasKind()) { 674 if (!getKind().equals(other.getKind())) return false; 675 } 676 if (hasNextPageToken() != other.hasNextPageToken()) return false; 677 if (hasNextPageToken()) { 678 if (!getNextPageToken().equals(other.getNextPageToken())) return false; 679 } 680 if (hasSelfLink() != other.hasSelfLink()) return false; 681 if (hasSelfLink()) { 682 if (!getSelfLink().equals(other.getSelfLink())) return false; 683 } 684 if (!getUnreachablesList().equals(other.getUnreachablesList())) return false; 685 if (hasWarning() != other.hasWarning()) return false; 686 if (hasWarning()) { 687 if (!getWarning().equals(other.getWarning())) return false; 688 } 689 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 690 return true; 691 } 692 693 @java.lang.Override hashCode()694 public int hashCode() { 695 if (memoizedHashCode != 0) { 696 return memoizedHashCode; 697 } 698 int hash = 41; 699 hash = (19 * hash) + getDescriptor().hashCode(); 700 if (hasId()) { 701 hash = (37 * hash) + ID_FIELD_NUMBER; 702 hash = (53 * hash) + getId().hashCode(); 703 } 704 if (!internalGetItems().getMap().isEmpty()) { 705 hash = (37 * hash) + ITEMS_FIELD_NUMBER; 706 hash = (53 * hash) + internalGetItems().hashCode(); 707 } 708 if (hasKind()) { 709 hash = (37 * hash) + KIND_FIELD_NUMBER; 710 hash = (53 * hash) + getKind().hashCode(); 711 } 712 if (hasNextPageToken()) { 713 hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; 714 hash = (53 * hash) + getNextPageToken().hashCode(); 715 } 716 if (hasSelfLink()) { 717 hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; 718 hash = (53 * hash) + getSelfLink().hashCode(); 719 } 720 if (getUnreachablesCount() > 0) { 721 hash = (37 * hash) + UNREACHABLES_FIELD_NUMBER; 722 hash = (53 * hash) + getUnreachablesList().hashCode(); 723 } 724 if (hasWarning()) { 725 hash = (37 * hash) + WARNING_FIELD_NUMBER; 726 hash = (53 * hash) + getWarning().hashCode(); 727 } 728 hash = (29 * hash) + getUnknownFields().hashCode(); 729 memoizedHashCode = hash; 730 return hash; 731 } 732 parseFrom( java.nio.ByteBuffer data)733 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 734 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 735 return PARSER.parseFrom(data); 736 } 737 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)738 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 739 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 740 throws com.google.protobuf.InvalidProtocolBufferException { 741 return PARSER.parseFrom(data, extensionRegistry); 742 } 743 parseFrom( com.google.protobuf.ByteString data)744 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 745 com.google.protobuf.ByteString data) 746 throws com.google.protobuf.InvalidProtocolBufferException { 747 return PARSER.parseFrom(data); 748 } 749 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)750 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 751 com.google.protobuf.ByteString data, 752 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 753 throws com.google.protobuf.InvalidProtocolBufferException { 754 return PARSER.parseFrom(data, extensionRegistry); 755 } 756 parseFrom(byte[] data)757 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom(byte[] data) 758 throws com.google.protobuf.InvalidProtocolBufferException { 759 return PARSER.parseFrom(data); 760 } 761 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)762 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 763 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 764 throws com.google.protobuf.InvalidProtocolBufferException { 765 return PARSER.parseFrom(data, extensionRegistry); 766 } 767 parseFrom( java.io.InputStream input)768 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 769 java.io.InputStream input) throws java.io.IOException { 770 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 771 } 772 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)773 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 774 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 775 throws java.io.IOException { 776 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 777 PARSER, input, extensionRegistry); 778 } 779 parseDelimitedFrom( java.io.InputStream input)780 public static com.google.cloud.compute.v1.AddressAggregatedList parseDelimitedFrom( 781 java.io.InputStream input) throws java.io.IOException { 782 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 783 } 784 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)785 public static com.google.cloud.compute.v1.AddressAggregatedList parseDelimitedFrom( 786 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 787 throws java.io.IOException { 788 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 789 PARSER, input, extensionRegistry); 790 } 791 parseFrom( com.google.protobuf.CodedInputStream input)792 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 793 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 794 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 795 } 796 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)797 public static com.google.cloud.compute.v1.AddressAggregatedList parseFrom( 798 com.google.protobuf.CodedInputStream input, 799 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 800 throws java.io.IOException { 801 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 802 PARSER, input, extensionRegistry); 803 } 804 805 @java.lang.Override newBuilderForType()806 public Builder newBuilderForType() { 807 return newBuilder(); 808 } 809 newBuilder()810 public static Builder newBuilder() { 811 return DEFAULT_INSTANCE.toBuilder(); 812 } 813 newBuilder(com.google.cloud.compute.v1.AddressAggregatedList prototype)814 public static Builder newBuilder(com.google.cloud.compute.v1.AddressAggregatedList prototype) { 815 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 816 } 817 818 @java.lang.Override toBuilder()819 public Builder toBuilder() { 820 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 821 } 822 823 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)824 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 825 Builder builder = new Builder(parent); 826 return builder; 827 } 828 /** 829 * 830 * 831 * <pre> 832 * </pre> 833 * 834 * Protobuf type {@code google.cloud.compute.v1.AddressAggregatedList} 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.AddressAggregatedList) 839 com.google.cloud.compute.v1.AddressAggregatedListOrBuilder { 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_AddressAggregatedList_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_AddressAggregatedList_fieldAccessorTable 870 .ensureFieldAccessorsInitialized( 871 com.google.cloud.compute.v1.AddressAggregatedList.class, 872 com.google.cloud.compute.v1.AddressAggregatedList.Builder.class); 873 } 874 875 // Construct using com.google.cloud.compute.v1.AddressAggregatedList.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_AddressAggregatedList_descriptor; 914 } 915 916 @java.lang.Override getDefaultInstanceForType()917 public com.google.cloud.compute.v1.AddressAggregatedList getDefaultInstanceForType() { 918 return com.google.cloud.compute.v1.AddressAggregatedList.getDefaultInstance(); 919 } 920 921 @java.lang.Override build()922 public com.google.cloud.compute.v1.AddressAggregatedList build() { 923 com.google.cloud.compute.v1.AddressAggregatedList 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.AddressAggregatedList buildPartial() { 932 com.google.cloud.compute.v1.AddressAggregatedList result = 933 new com.google.cloud.compute.v1.AddressAggregatedList(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.AddressAggregatedList result)942 private void buildPartialRepeatedFields( 943 com.google.cloud.compute.v1.AddressAggregatedList 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.AddressAggregatedList result)951 private void buildPartial0(com.google.cloud.compute.v1.AddressAggregatedList 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.AddressAggregatedList) { 1017 return mergeFrom((com.google.cloud.compute.v1.AddressAggregatedList) other); 1018 } else { 1019 super.mergeFrom(other); 1020 return this; 1021 } 1022 } 1023 mergeFrom(com.google.cloud.compute.v1.AddressAggregatedList other)1024 public Builder mergeFrom(com.google.cloud.compute.v1.AddressAggregatedList other) { 1025 if (other == com.google.cloud.compute.v1.AddressAggregatedList.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.AddressesScopedList> 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.AddressesScopedList> 1278 items_; 1279 1280 private com.google.protobuf.MapField< 1281 java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> 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.AddressesScopedList> 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 AddressesScopedList resources. 1311 * </pre> 1312 * 1313 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1314 * </code> 1315 */ 1316 @java.lang.Override containsItems(java.lang.String key)1317 public boolean containsItems(java.lang.String key) { 1318 if (key == null) { 1319 throw new NullPointerException("map key"); 1320 } 1321 return internalGetItems().getMap().containsKey(key); 1322 } 1323 /** Use {@link #getItemsMap()} instead. */ 1324 @java.lang.Override 1325 @java.lang.Deprecated 1326 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> getItems()1327 getItems() { 1328 return getItemsMap(); 1329 } 1330 /** 1331 * 1332 * 1333 * <pre> 1334 * A list of AddressesScopedList resources. 1335 * </pre> 1336 * 1337 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1338 * </code> 1339 */ 1340 @java.lang.Override 1341 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> getItemsMap()1342 getItemsMap() { 1343 return internalGetItems().getMap(); 1344 } 1345 /** 1346 * 1347 * 1348 * <pre> 1349 * A list of AddressesScopedList resources. 1350 * </pre> 1351 * 1352 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1353 * </code> 1354 */ 1355 @java.lang.Override getItemsOrDefault( java.lang.String key, com.google.cloud.compute.v1.AddressesScopedList defaultValue)1356 public /* nullable */ com.google.cloud.compute.v1.AddressesScopedList getItemsOrDefault( 1357 java.lang.String key, 1358 /* nullable */ 1359 com.google.cloud.compute.v1.AddressesScopedList defaultValue) { 1360 if (key == null) { 1361 throw new NullPointerException("map key"); 1362 } 1363 java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> map = 1364 internalGetItems().getMap(); 1365 return map.containsKey(key) ? map.get(key) : defaultValue; 1366 } 1367 /** 1368 * 1369 * 1370 * <pre> 1371 * A list of AddressesScopedList resources. 1372 * </pre> 1373 * 1374 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1375 * </code> 1376 */ 1377 @java.lang.Override getItemsOrThrow(java.lang.String key)1378 public com.google.cloud.compute.v1.AddressesScopedList getItemsOrThrow(java.lang.String key) { 1379 if (key == null) { 1380 throw new NullPointerException("map key"); 1381 } 1382 java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> map = 1383 internalGetItems().getMap(); 1384 if (!map.containsKey(key)) { 1385 throw new java.lang.IllegalArgumentException(); 1386 } 1387 return map.get(key); 1388 } 1389 clearItems()1390 public Builder clearItems() { 1391 bitField0_ = (bitField0_ & ~0x00000002); 1392 internalGetMutableItems().getMutableMap().clear(); 1393 return this; 1394 } 1395 /** 1396 * 1397 * 1398 * <pre> 1399 * A list of AddressesScopedList resources. 1400 * </pre> 1401 * 1402 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1403 * </code> 1404 */ removeItems(java.lang.String key)1405 public Builder removeItems(java.lang.String key) { 1406 if (key == null) { 1407 throw new NullPointerException("map key"); 1408 } 1409 internalGetMutableItems().getMutableMap().remove(key); 1410 return this; 1411 } 1412 /** Use alternate mutation accessors instead. */ 1413 @java.lang.Deprecated 1414 public java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> getMutableItems()1415 getMutableItems() { 1416 bitField0_ |= 0x00000002; 1417 return internalGetMutableItems().getMutableMap(); 1418 } 1419 /** 1420 * 1421 * 1422 * <pre> 1423 * A list of AddressesScopedList resources. 1424 * </pre> 1425 * 1426 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1427 * </code> 1428 */ putItems( java.lang.String key, com.google.cloud.compute.v1.AddressesScopedList value)1429 public Builder putItems( 1430 java.lang.String key, com.google.cloud.compute.v1.AddressesScopedList value) { 1431 if (key == null) { 1432 throw new NullPointerException("map key"); 1433 } 1434 if (value == null) { 1435 throw new NullPointerException("map value"); 1436 } 1437 internalGetMutableItems().getMutableMap().put(key, value); 1438 bitField0_ |= 0x00000002; 1439 return this; 1440 } 1441 /** 1442 * 1443 * 1444 * <pre> 1445 * A list of AddressesScopedList resources. 1446 * </pre> 1447 * 1448 * <code>map<string, .google.cloud.compute.v1.AddressesScopedList> items = 100526016; 1449 * </code> 1450 */ putAllItems( java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> values)1451 public Builder putAllItems( 1452 java.util.Map<java.lang.String, com.google.cloud.compute.v1.AddressesScopedList> values) { 1453 internalGetMutableItems().getMutableMap().putAll(values); 1454 bitField0_ |= 0x00000002; 1455 return this; 1456 } 1457 1458 private java.lang.Object kind_ = ""; 1459 /** 1460 * 1461 * 1462 * <pre> 1463 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 1464 * </pre> 1465 * 1466 * <code>optional string kind = 3292052;</code> 1467 * 1468 * @return Whether the kind field is set. 1469 */ hasKind()1470 public boolean hasKind() { 1471 return ((bitField0_ & 0x00000004) != 0); 1472 } 1473 /** 1474 * 1475 * 1476 * <pre> 1477 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 1478 * </pre> 1479 * 1480 * <code>optional string kind = 3292052;</code> 1481 * 1482 * @return The kind. 1483 */ getKind()1484 public java.lang.String getKind() { 1485 java.lang.Object ref = kind_; 1486 if (!(ref instanceof java.lang.String)) { 1487 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1488 java.lang.String s = bs.toStringUtf8(); 1489 kind_ = s; 1490 return s; 1491 } else { 1492 return (java.lang.String) ref; 1493 } 1494 } 1495 /** 1496 * 1497 * 1498 * <pre> 1499 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 1500 * </pre> 1501 * 1502 * <code>optional string kind = 3292052;</code> 1503 * 1504 * @return The bytes for kind. 1505 */ getKindBytes()1506 public com.google.protobuf.ByteString getKindBytes() { 1507 java.lang.Object ref = kind_; 1508 if (ref instanceof String) { 1509 com.google.protobuf.ByteString b = 1510 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1511 kind_ = b; 1512 return b; 1513 } else { 1514 return (com.google.protobuf.ByteString) ref; 1515 } 1516 } 1517 /** 1518 * 1519 * 1520 * <pre> 1521 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 1522 * </pre> 1523 * 1524 * <code>optional string kind = 3292052;</code> 1525 * 1526 * @param value The kind to set. 1527 * @return This builder for chaining. 1528 */ setKind(java.lang.String value)1529 public Builder setKind(java.lang.String value) { 1530 if (value == null) { 1531 throw new NullPointerException(); 1532 } 1533 kind_ = value; 1534 bitField0_ |= 0x00000004; 1535 onChanged(); 1536 return this; 1537 } 1538 /** 1539 * 1540 * 1541 * <pre> 1542 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 1543 * </pre> 1544 * 1545 * <code>optional string kind = 3292052;</code> 1546 * 1547 * @return This builder for chaining. 1548 */ clearKind()1549 public Builder clearKind() { 1550 kind_ = getDefaultInstance().getKind(); 1551 bitField0_ = (bitField0_ & ~0x00000004); 1552 onChanged(); 1553 return this; 1554 } 1555 /** 1556 * 1557 * 1558 * <pre> 1559 * [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses. 1560 * </pre> 1561 * 1562 * <code>optional string kind = 3292052;</code> 1563 * 1564 * @param value The bytes for kind to set. 1565 * @return This builder for chaining. 1566 */ setKindBytes(com.google.protobuf.ByteString value)1567 public Builder setKindBytes(com.google.protobuf.ByteString value) { 1568 if (value == null) { 1569 throw new NullPointerException(); 1570 } 1571 checkByteStringIsUtf8(value); 1572 kind_ = value; 1573 bitField0_ |= 0x00000004; 1574 onChanged(); 1575 return this; 1576 } 1577 1578 private java.lang.Object nextPageToken_ = ""; 1579 /** 1580 * 1581 * 1582 * <pre> 1583 * [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. 1584 * </pre> 1585 * 1586 * <code>optional string next_page_token = 79797525;</code> 1587 * 1588 * @return Whether the nextPageToken field is set. 1589 */ hasNextPageToken()1590 public boolean hasNextPageToken() { 1591 return ((bitField0_ & 0x00000008) != 0); 1592 } 1593 /** 1594 * 1595 * 1596 * <pre> 1597 * [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. 1598 * </pre> 1599 * 1600 * <code>optional string next_page_token = 79797525;</code> 1601 * 1602 * @return The nextPageToken. 1603 */ getNextPageToken()1604 public java.lang.String getNextPageToken() { 1605 java.lang.Object ref = nextPageToken_; 1606 if (!(ref instanceof java.lang.String)) { 1607 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1608 java.lang.String s = bs.toStringUtf8(); 1609 nextPageToken_ = s; 1610 return s; 1611 } else { 1612 return (java.lang.String) ref; 1613 } 1614 } 1615 /** 1616 * 1617 * 1618 * <pre> 1619 * [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. 1620 * </pre> 1621 * 1622 * <code>optional string next_page_token = 79797525;</code> 1623 * 1624 * @return The bytes for nextPageToken. 1625 */ getNextPageTokenBytes()1626 public com.google.protobuf.ByteString getNextPageTokenBytes() { 1627 java.lang.Object ref = nextPageToken_; 1628 if (ref instanceof String) { 1629 com.google.protobuf.ByteString b = 1630 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1631 nextPageToken_ = b; 1632 return b; 1633 } else { 1634 return (com.google.protobuf.ByteString) ref; 1635 } 1636 } 1637 /** 1638 * 1639 * 1640 * <pre> 1641 * [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. 1642 * </pre> 1643 * 1644 * <code>optional string next_page_token = 79797525;</code> 1645 * 1646 * @param value The nextPageToken to set. 1647 * @return This builder for chaining. 1648 */ setNextPageToken(java.lang.String value)1649 public Builder setNextPageToken(java.lang.String value) { 1650 if (value == null) { 1651 throw new NullPointerException(); 1652 } 1653 nextPageToken_ = value; 1654 bitField0_ |= 0x00000008; 1655 onChanged(); 1656 return this; 1657 } 1658 /** 1659 * 1660 * 1661 * <pre> 1662 * [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. 1663 * </pre> 1664 * 1665 * <code>optional string next_page_token = 79797525;</code> 1666 * 1667 * @return This builder for chaining. 1668 */ clearNextPageToken()1669 public Builder clearNextPageToken() { 1670 nextPageToken_ = getDefaultInstance().getNextPageToken(); 1671 bitField0_ = (bitField0_ & ~0x00000008); 1672 onChanged(); 1673 return this; 1674 } 1675 /** 1676 * 1677 * 1678 * <pre> 1679 * [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. 1680 * </pre> 1681 * 1682 * <code>optional string next_page_token = 79797525;</code> 1683 * 1684 * @param value The bytes for nextPageToken to set. 1685 * @return This builder for chaining. 1686 */ setNextPageTokenBytes(com.google.protobuf.ByteString value)1687 public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 1688 if (value == null) { 1689 throw new NullPointerException(); 1690 } 1691 checkByteStringIsUtf8(value); 1692 nextPageToken_ = value; 1693 bitField0_ |= 0x00000008; 1694 onChanged(); 1695 return this; 1696 } 1697 1698 private java.lang.Object selfLink_ = ""; 1699 /** 1700 * 1701 * 1702 * <pre> 1703 * [Output Only] Server-defined URL for this resource. 1704 * </pre> 1705 * 1706 * <code>optional string self_link = 456214797;</code> 1707 * 1708 * @return Whether the selfLink field is set. 1709 */ hasSelfLink()1710 public boolean hasSelfLink() { 1711 return ((bitField0_ & 0x00000010) != 0); 1712 } 1713 /** 1714 * 1715 * 1716 * <pre> 1717 * [Output Only] Server-defined URL for this resource. 1718 * </pre> 1719 * 1720 * <code>optional string self_link = 456214797;</code> 1721 * 1722 * @return The selfLink. 1723 */ getSelfLink()1724 public java.lang.String getSelfLink() { 1725 java.lang.Object ref = selfLink_; 1726 if (!(ref instanceof java.lang.String)) { 1727 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1728 java.lang.String s = bs.toStringUtf8(); 1729 selfLink_ = s; 1730 return s; 1731 } else { 1732 return (java.lang.String) ref; 1733 } 1734 } 1735 /** 1736 * 1737 * 1738 * <pre> 1739 * [Output Only] Server-defined URL for this resource. 1740 * </pre> 1741 * 1742 * <code>optional string self_link = 456214797;</code> 1743 * 1744 * @return The bytes for selfLink. 1745 */ getSelfLinkBytes()1746 public com.google.protobuf.ByteString getSelfLinkBytes() { 1747 java.lang.Object ref = selfLink_; 1748 if (ref instanceof String) { 1749 com.google.protobuf.ByteString b = 1750 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1751 selfLink_ = b; 1752 return b; 1753 } else { 1754 return (com.google.protobuf.ByteString) ref; 1755 } 1756 } 1757 /** 1758 * 1759 * 1760 * <pre> 1761 * [Output Only] Server-defined URL for this resource. 1762 * </pre> 1763 * 1764 * <code>optional string self_link = 456214797;</code> 1765 * 1766 * @param value The selfLink to set. 1767 * @return This builder for chaining. 1768 */ setSelfLink(java.lang.String value)1769 public Builder setSelfLink(java.lang.String value) { 1770 if (value == null) { 1771 throw new NullPointerException(); 1772 } 1773 selfLink_ = value; 1774 bitField0_ |= 0x00000010; 1775 onChanged(); 1776 return this; 1777 } 1778 /** 1779 * 1780 * 1781 * <pre> 1782 * [Output Only] Server-defined URL for this resource. 1783 * </pre> 1784 * 1785 * <code>optional string self_link = 456214797;</code> 1786 * 1787 * @return This builder for chaining. 1788 */ clearSelfLink()1789 public Builder clearSelfLink() { 1790 selfLink_ = getDefaultInstance().getSelfLink(); 1791 bitField0_ = (bitField0_ & ~0x00000010); 1792 onChanged(); 1793 return this; 1794 } 1795 /** 1796 * 1797 * 1798 * <pre> 1799 * [Output Only] Server-defined URL for this resource. 1800 * </pre> 1801 * 1802 * <code>optional string self_link = 456214797;</code> 1803 * 1804 * @param value The bytes for selfLink to set. 1805 * @return This builder for chaining. 1806 */ setSelfLinkBytes(com.google.protobuf.ByteString value)1807 public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { 1808 if (value == null) { 1809 throw new NullPointerException(); 1810 } 1811 checkByteStringIsUtf8(value); 1812 selfLink_ = value; 1813 bitField0_ |= 0x00000010; 1814 onChanged(); 1815 return this; 1816 } 1817 1818 private com.google.protobuf.LazyStringList unreachables_ = 1819 com.google.protobuf.LazyStringArrayList.EMPTY; 1820 ensureUnreachablesIsMutable()1821 private void ensureUnreachablesIsMutable() { 1822 if (!((bitField0_ & 0x00000020) != 0)) { 1823 unreachables_ = new com.google.protobuf.LazyStringArrayList(unreachables_); 1824 bitField0_ |= 0x00000020; 1825 } 1826 } 1827 /** 1828 * 1829 * 1830 * <pre> 1831 * [Output Only] Unreachable resources. 1832 * </pre> 1833 * 1834 * <code>repeated string unreachables = 243372063;</code> 1835 * 1836 * @return A list containing the unreachables. 1837 */ getUnreachablesList()1838 public com.google.protobuf.ProtocolStringList getUnreachablesList() { 1839 return unreachables_.getUnmodifiableView(); 1840 } 1841 /** 1842 * 1843 * 1844 * <pre> 1845 * [Output Only] Unreachable resources. 1846 * </pre> 1847 * 1848 * <code>repeated string unreachables = 243372063;</code> 1849 * 1850 * @return The count of unreachables. 1851 */ getUnreachablesCount()1852 public int getUnreachablesCount() { 1853 return unreachables_.size(); 1854 } 1855 /** 1856 * 1857 * 1858 * <pre> 1859 * [Output Only] Unreachable resources. 1860 * </pre> 1861 * 1862 * <code>repeated string unreachables = 243372063;</code> 1863 * 1864 * @param index The index of the element to return. 1865 * @return The unreachables at the given index. 1866 */ getUnreachables(int index)1867 public java.lang.String getUnreachables(int index) { 1868 return unreachables_.get(index); 1869 } 1870 /** 1871 * 1872 * 1873 * <pre> 1874 * [Output Only] Unreachable resources. 1875 * </pre> 1876 * 1877 * <code>repeated string unreachables = 243372063;</code> 1878 * 1879 * @param index The index of the value to return. 1880 * @return The bytes of the unreachables at the given index. 1881 */ getUnreachablesBytes(int index)1882 public com.google.protobuf.ByteString getUnreachablesBytes(int index) { 1883 return unreachables_.getByteString(index); 1884 } 1885 /** 1886 * 1887 * 1888 * <pre> 1889 * [Output Only] Unreachable resources. 1890 * </pre> 1891 * 1892 * <code>repeated string unreachables = 243372063;</code> 1893 * 1894 * @param index The index to set the value at. 1895 * @param value The unreachables to set. 1896 * @return This builder for chaining. 1897 */ setUnreachables(int index, java.lang.String value)1898 public Builder setUnreachables(int index, java.lang.String value) { 1899 if (value == null) { 1900 throw new NullPointerException(); 1901 } 1902 ensureUnreachablesIsMutable(); 1903 unreachables_.set(index, value); 1904 onChanged(); 1905 return this; 1906 } 1907 /** 1908 * 1909 * 1910 * <pre> 1911 * [Output Only] Unreachable resources. 1912 * </pre> 1913 * 1914 * <code>repeated string unreachables = 243372063;</code> 1915 * 1916 * @param value The unreachables to add. 1917 * @return This builder for chaining. 1918 */ addUnreachables(java.lang.String value)1919 public Builder addUnreachables(java.lang.String value) { 1920 if (value == null) { 1921 throw new NullPointerException(); 1922 } 1923 ensureUnreachablesIsMutable(); 1924 unreachables_.add(value); 1925 onChanged(); 1926 return this; 1927 } 1928 /** 1929 * 1930 * 1931 * <pre> 1932 * [Output Only] Unreachable resources. 1933 * </pre> 1934 * 1935 * <code>repeated string unreachables = 243372063;</code> 1936 * 1937 * @param values The unreachables to add. 1938 * @return This builder for chaining. 1939 */ addAllUnreachables(java.lang.Iterable<java.lang.String> values)1940 public Builder addAllUnreachables(java.lang.Iterable<java.lang.String> values) { 1941 ensureUnreachablesIsMutable(); 1942 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachables_); 1943 onChanged(); 1944 return this; 1945 } 1946 /** 1947 * 1948 * 1949 * <pre> 1950 * [Output Only] Unreachable resources. 1951 * </pre> 1952 * 1953 * <code>repeated string unreachables = 243372063;</code> 1954 * 1955 * @return This builder for chaining. 1956 */ clearUnreachables()1957 public Builder clearUnreachables() { 1958 unreachables_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1959 bitField0_ = (bitField0_ & ~0x00000020); 1960 onChanged(); 1961 return this; 1962 } 1963 /** 1964 * 1965 * 1966 * <pre> 1967 * [Output Only] Unreachable resources. 1968 * </pre> 1969 * 1970 * <code>repeated string unreachables = 243372063;</code> 1971 * 1972 * @param value The bytes of the unreachables to add. 1973 * @return This builder for chaining. 1974 */ addUnreachablesBytes(com.google.protobuf.ByteString value)1975 public Builder addUnreachablesBytes(com.google.protobuf.ByteString value) { 1976 if (value == null) { 1977 throw new NullPointerException(); 1978 } 1979 checkByteStringIsUtf8(value); 1980 ensureUnreachablesIsMutable(); 1981 unreachables_.add(value); 1982 onChanged(); 1983 return this; 1984 } 1985 1986 private com.google.cloud.compute.v1.Warning warning_; 1987 private com.google.protobuf.SingleFieldBuilderV3< 1988 com.google.cloud.compute.v1.Warning, 1989 com.google.cloud.compute.v1.Warning.Builder, 1990 com.google.cloud.compute.v1.WarningOrBuilder> 1991 warningBuilder_; 1992 /** 1993 * 1994 * 1995 * <pre> 1996 * [Output Only] Informational warning message. 1997 * </pre> 1998 * 1999 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2000 * 2001 * @return Whether the warning field is set. 2002 */ hasWarning()2003 public boolean hasWarning() { 2004 return ((bitField0_ & 0x00000040) != 0); 2005 } 2006 /** 2007 * 2008 * 2009 * <pre> 2010 * [Output Only] Informational warning message. 2011 * </pre> 2012 * 2013 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2014 * 2015 * @return The warning. 2016 */ getWarning()2017 public com.google.cloud.compute.v1.Warning getWarning() { 2018 if (warningBuilder_ == null) { 2019 return warning_ == null 2020 ? com.google.cloud.compute.v1.Warning.getDefaultInstance() 2021 : warning_; 2022 } else { 2023 return warningBuilder_.getMessage(); 2024 } 2025 } 2026 /** 2027 * 2028 * 2029 * <pre> 2030 * [Output Only] Informational warning message. 2031 * </pre> 2032 * 2033 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2034 */ setWarning(com.google.cloud.compute.v1.Warning value)2035 public Builder setWarning(com.google.cloud.compute.v1.Warning value) { 2036 if (warningBuilder_ == null) { 2037 if (value == null) { 2038 throw new NullPointerException(); 2039 } 2040 warning_ = value; 2041 } else { 2042 warningBuilder_.setMessage(value); 2043 } 2044 bitField0_ |= 0x00000040; 2045 onChanged(); 2046 return this; 2047 } 2048 /** 2049 * 2050 * 2051 * <pre> 2052 * [Output Only] Informational warning message. 2053 * </pre> 2054 * 2055 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2056 */ setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue)2057 public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) { 2058 if (warningBuilder_ == null) { 2059 warning_ = builderForValue.build(); 2060 } else { 2061 warningBuilder_.setMessage(builderForValue.build()); 2062 } 2063 bitField0_ |= 0x00000040; 2064 onChanged(); 2065 return this; 2066 } 2067 /** 2068 * 2069 * 2070 * <pre> 2071 * [Output Only] Informational warning message. 2072 * </pre> 2073 * 2074 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2075 */ mergeWarning(com.google.cloud.compute.v1.Warning value)2076 public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { 2077 if (warningBuilder_ == null) { 2078 if (((bitField0_ & 0x00000040) != 0) 2079 && warning_ != null 2080 && warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) { 2081 getWarningBuilder().mergeFrom(value); 2082 } else { 2083 warning_ = value; 2084 } 2085 } else { 2086 warningBuilder_.mergeFrom(value); 2087 } 2088 bitField0_ |= 0x00000040; 2089 onChanged(); 2090 return this; 2091 } 2092 /** 2093 * 2094 * 2095 * <pre> 2096 * [Output Only] Informational warning message. 2097 * </pre> 2098 * 2099 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2100 */ clearWarning()2101 public Builder clearWarning() { 2102 bitField0_ = (bitField0_ & ~0x00000040); 2103 warning_ = null; 2104 if (warningBuilder_ != null) { 2105 warningBuilder_.dispose(); 2106 warningBuilder_ = null; 2107 } 2108 onChanged(); 2109 return this; 2110 } 2111 /** 2112 * 2113 * 2114 * <pre> 2115 * [Output Only] Informational warning message. 2116 * </pre> 2117 * 2118 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2119 */ getWarningBuilder()2120 public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { 2121 bitField0_ |= 0x00000040; 2122 onChanged(); 2123 return getWarningFieldBuilder().getBuilder(); 2124 } 2125 /** 2126 * 2127 * 2128 * <pre> 2129 * [Output Only] Informational warning message. 2130 * </pre> 2131 * 2132 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2133 */ getWarningOrBuilder()2134 public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() { 2135 if (warningBuilder_ != null) { 2136 return warningBuilder_.getMessageOrBuilder(); 2137 } else { 2138 return warning_ == null 2139 ? com.google.cloud.compute.v1.Warning.getDefaultInstance() 2140 : warning_; 2141 } 2142 } 2143 /** 2144 * 2145 * 2146 * <pre> 2147 * [Output Only] Informational warning message. 2148 * </pre> 2149 * 2150 * <code>optional .google.cloud.compute.v1.Warning warning = 50704284;</code> 2151 */ 2152 private 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> getWarningFieldBuilder()2156 getWarningFieldBuilder() { 2157 if (warningBuilder_ == null) { 2158 warningBuilder_ = 2159 new com.google.protobuf.SingleFieldBuilderV3< 2160 com.google.cloud.compute.v1.Warning, 2161 com.google.cloud.compute.v1.Warning.Builder, 2162 com.google.cloud.compute.v1.WarningOrBuilder>( 2163 getWarning(), getParentForChildren(), isClean()); 2164 warning_ = null; 2165 } 2166 return warningBuilder_; 2167 } 2168 2169 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2170 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2171 return super.setUnknownFields(unknownFields); 2172 } 2173 2174 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2175 public final Builder mergeUnknownFields( 2176 final com.google.protobuf.UnknownFieldSet unknownFields) { 2177 return super.mergeUnknownFields(unknownFields); 2178 } 2179 2180 // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.AddressAggregatedList) 2181 } 2182 2183 // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.AddressAggregatedList) 2184 private static final com.google.cloud.compute.v1.AddressAggregatedList DEFAULT_INSTANCE; 2185 2186 static { 2187 DEFAULT_INSTANCE = new com.google.cloud.compute.v1.AddressAggregatedList(); 2188 } 2189 getDefaultInstance()2190 public static com.google.cloud.compute.v1.AddressAggregatedList getDefaultInstance() { 2191 return DEFAULT_INSTANCE; 2192 } 2193 2194 private static final com.google.protobuf.Parser<AddressAggregatedList> PARSER = 2195 new com.google.protobuf.AbstractParser<AddressAggregatedList>() { 2196 @java.lang.Override 2197 public AddressAggregatedList parsePartialFrom( 2198 com.google.protobuf.CodedInputStream input, 2199 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2200 throws com.google.protobuf.InvalidProtocolBufferException { 2201 Builder builder = newBuilder(); 2202 try { 2203 builder.mergeFrom(input, extensionRegistry); 2204 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2205 throw e.setUnfinishedMessage(builder.buildPartial()); 2206 } catch (com.google.protobuf.UninitializedMessageException e) { 2207 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2208 } catch (java.io.IOException e) { 2209 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2210 .setUnfinishedMessage(builder.buildPartial()); 2211 } 2212 return builder.buildPartial(); 2213 } 2214 }; 2215 parser()2216 public static com.google.protobuf.Parser<AddressAggregatedList> parser() { 2217 return PARSER; 2218 } 2219 2220 @java.lang.Override getParserForType()2221 public com.google.protobuf.Parser<AddressAggregatedList> getParserForType() { 2222 return PARSER; 2223 } 2224 2225 @java.lang.Override getDefaultInstanceForType()2226 public com.google.cloud.compute.v1.AddressAggregatedList getDefaultInstanceForType() { 2227 return DEFAULT_INSTANCE; 2228 } 2229 } 2230