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