001 // Generated by the protocol buffer compiler. DO NOT EDIT! 002 // source: core/serialization.js/src/js.proto 003 004 package org.jetbrains.kotlin.serialization.js; 005 006 import com.google.protobuf.*; 007 008 import java.io.IOException; 009 import java.io.InputStream; 010 import java.io.ObjectStreamException; 011 import java.util.ArrayList; 012 import java.util.Collections; 013 import java.util.List; 014 015 public final class JsProtoBuf { 016 private JsProtoBuf() {} 017 public static void registerAllExtensions( 018 ExtensionRegistryLite registry) { 019 } 020 public interface LibraryOrBuilder 021 extends MessageLiteOrBuilder { 022 023 // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; 024 /** 025 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 026 */ 027 List<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry> 028 getEntryList(); 029 /** 030 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 031 */ 032 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getEntry(int index); 033 /** 034 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 035 */ 036 int getEntryCount(); 037 } 038 /** 039 * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library} 040 * 041 * <pre> 042 * For Kotlin/Javascript we reuse builtins serialization code. 043 * </pre> 044 */ 045 public static final class Library extends 046 GeneratedMessageLite 047 implements LibraryOrBuilder { 048 // Use Library.newBuilder() to construct. 049 private Library(GeneratedMessageLite.Builder builder) { 050 super(builder); 051 052 } 053 private Library(boolean noInit) {} 054 055 private static final Library defaultInstance; 056 public static Library getDefaultInstance() { 057 return defaultInstance; 058 } 059 060 public Library getDefaultInstanceForType() { 061 return defaultInstance; 062 } 063 064 private Library( 065 CodedInputStream input, 066 ExtensionRegistryLite extensionRegistry) 067 throws InvalidProtocolBufferException { 068 initFields(); 069 int mutable_bitField0_ = 0; 070 try { 071 boolean done = false; 072 while (!done) { 073 int tag = input.readTag(); 074 switch (tag) { 075 case 0: 076 done = true; 077 break; 078 default: { 079 if (!parseUnknownField(input, 080 extensionRegistry, tag)) { 081 done = true; 082 } 083 break; 084 } 085 case 10: { 086 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 087 entry_ = new ArrayList<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry>(); 088 mutable_bitField0_ |= 0x00000001; 089 } 090 entry_.add(input.readMessage(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.PARSER, extensionRegistry)); 091 break; 092 } 093 } 094 } 095 } catch (InvalidProtocolBufferException e) { 096 throw e.setUnfinishedMessage(this); 097 } catch (IOException e) { 098 throw new InvalidProtocolBufferException( 099 e.getMessage()).setUnfinishedMessage(this); 100 } finally { 101 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 102 entry_ = Collections.unmodifiableList(entry_); 103 } 104 makeExtensionsImmutable(); 105 } 106 } 107 public static Parser<Library> PARSER = 108 new AbstractParser<Library>() { 109 public Library parsePartialFrom( 110 CodedInputStream input, 111 ExtensionRegistryLite extensionRegistry) 112 throws InvalidProtocolBufferException { 113 return new Library(input, extensionRegistry); 114 } 115 }; 116 117 @Override 118 public Parser<Library> getParserForType() { 119 return PARSER; 120 } 121 122 public interface FileEntryOrBuilder 123 extends MessageLiteOrBuilder { 124 125 // required string path = 1; 126 /** 127 * <code>required string path = 1;</code> 128 */ 129 boolean hasPath(); 130 /** 131 * <code>required string path = 1;</code> 132 */ 133 String getPath(); 134 /** 135 * <code>required string path = 1;</code> 136 */ 137 ByteString 138 getPathBytes(); 139 140 // required bytes content = 2; 141 /** 142 * <code>required bytes content = 2;</code> 143 */ 144 boolean hasContent(); 145 /** 146 * <code>required bytes content = 2;</code> 147 */ 148 ByteString getContent(); 149 } 150 /** 151 * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library.FileEntry} 152 */ 153 public static final class FileEntry extends 154 GeneratedMessageLite 155 implements FileEntryOrBuilder { 156 // Use FileEntry.newBuilder() to construct. 157 private FileEntry(GeneratedMessageLite.Builder builder) { 158 super(builder); 159 160 } 161 private FileEntry(boolean noInit) {} 162 163 private static final FileEntry defaultInstance; 164 public static FileEntry getDefaultInstance() { 165 return defaultInstance; 166 } 167 168 public FileEntry getDefaultInstanceForType() { 169 return defaultInstance; 170 } 171 172 private FileEntry( 173 CodedInputStream input, 174 ExtensionRegistryLite extensionRegistry) 175 throws InvalidProtocolBufferException { 176 initFields(); 177 int mutable_bitField0_ = 0; 178 try { 179 boolean done = false; 180 while (!done) { 181 int tag = input.readTag(); 182 switch (tag) { 183 case 0: 184 done = true; 185 break; 186 default: { 187 if (!parseUnknownField(input, 188 extensionRegistry, tag)) { 189 done = true; 190 } 191 break; 192 } 193 case 10: { 194 bitField0_ |= 0x00000001; 195 path_ = input.readBytes(); 196 break; 197 } 198 case 18: { 199 bitField0_ |= 0x00000002; 200 content_ = input.readBytes(); 201 break; 202 } 203 } 204 } 205 } catch (InvalidProtocolBufferException e) { 206 throw e.setUnfinishedMessage(this); 207 } catch (IOException e) { 208 throw new InvalidProtocolBufferException( 209 e.getMessage()).setUnfinishedMessage(this); 210 } finally { 211 makeExtensionsImmutable(); 212 } 213 } 214 public static Parser<FileEntry> PARSER = 215 new AbstractParser<FileEntry>() { 216 public FileEntry parsePartialFrom( 217 CodedInputStream input, 218 ExtensionRegistryLite extensionRegistry) 219 throws InvalidProtocolBufferException { 220 return new FileEntry(input, extensionRegistry); 221 } 222 }; 223 224 @Override 225 public Parser<FileEntry> getParserForType() { 226 return PARSER; 227 } 228 229 private int bitField0_; 230 // required string path = 1; 231 public static final int PATH_FIELD_NUMBER = 1; 232 private Object path_; 233 /** 234 * <code>required string path = 1;</code> 235 */ 236 public boolean hasPath() { 237 return ((bitField0_ & 0x00000001) == 0x00000001); 238 } 239 /** 240 * <code>required string path = 1;</code> 241 */ 242 public String getPath() { 243 Object ref = path_; 244 if (ref instanceof String) { 245 return (String) ref; 246 } else { 247 ByteString bs = 248 (ByteString) ref; 249 String s = bs.toStringUtf8(); 250 if (bs.isValidUtf8()) { 251 path_ = s; 252 } 253 return s; 254 } 255 } 256 /** 257 * <code>required string path = 1;</code> 258 */ 259 public ByteString 260 getPathBytes() { 261 Object ref = path_; 262 if (ref instanceof String) { 263 ByteString b = 264 ByteString.copyFromUtf8( 265 (String) ref); 266 path_ = b; 267 return b; 268 } else { 269 return (ByteString) ref; 270 } 271 } 272 273 // required bytes content = 2; 274 public static final int CONTENT_FIELD_NUMBER = 2; 275 private ByteString content_; 276 /** 277 * <code>required bytes content = 2;</code> 278 */ 279 public boolean hasContent() { 280 return ((bitField0_ & 0x00000002) == 0x00000002); 281 } 282 /** 283 * <code>required bytes content = 2;</code> 284 */ 285 public ByteString getContent() { 286 return content_; 287 } 288 289 private void initFields() { 290 path_ = ""; 291 content_ = ByteString.EMPTY; 292 } 293 private byte memoizedIsInitialized = -1; 294 public final boolean isInitialized() { 295 byte isInitialized = memoizedIsInitialized; 296 if (isInitialized != -1) return isInitialized == 1; 297 298 if (!hasPath()) { 299 memoizedIsInitialized = 0; 300 return false; 301 } 302 if (!hasContent()) { 303 memoizedIsInitialized = 0; 304 return false; 305 } 306 memoizedIsInitialized = 1; 307 return true; 308 } 309 310 public void writeTo(CodedOutputStream output) 311 throws IOException { 312 getSerializedSize(); 313 if (((bitField0_ & 0x00000001) == 0x00000001)) { 314 output.writeBytes(1, getPathBytes()); 315 } 316 if (((bitField0_ & 0x00000002) == 0x00000002)) { 317 output.writeBytes(2, content_); 318 } 319 } 320 321 private int memoizedSerializedSize = -1; 322 public int getSerializedSize() { 323 int size = memoizedSerializedSize; 324 if (size != -1) return size; 325 326 size = 0; 327 if (((bitField0_ & 0x00000001) == 0x00000001)) { 328 size += CodedOutputStream 329 .computeBytesSize(1, getPathBytes()); 330 } 331 if (((bitField0_ & 0x00000002) == 0x00000002)) { 332 size += CodedOutputStream 333 .computeBytesSize(2, content_); 334 } 335 memoizedSerializedSize = size; 336 return size; 337 } 338 339 private static final long serialVersionUID = 0L; 340 @Override 341 protected Object writeReplace() 342 throws ObjectStreamException { 343 return super.writeReplace(); 344 } 345 346 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( 347 ByteString data) 348 throws InvalidProtocolBufferException { 349 return PARSER.parseFrom(data); 350 } 351 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( 352 ByteString data, 353 ExtensionRegistryLite extensionRegistry) 354 throws InvalidProtocolBufferException { 355 return PARSER.parseFrom(data, extensionRegistry); 356 } 357 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom(byte[] data) 358 throws InvalidProtocolBufferException { 359 return PARSER.parseFrom(data); 360 } 361 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( 362 byte[] data, 363 ExtensionRegistryLite extensionRegistry) 364 throws InvalidProtocolBufferException { 365 return PARSER.parseFrom(data, extensionRegistry); 366 } 367 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom(InputStream input) 368 throws IOException { 369 return PARSER.parseFrom(input); 370 } 371 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( 372 InputStream input, 373 ExtensionRegistryLite extensionRegistry) 374 throws IOException { 375 return PARSER.parseFrom(input, extensionRegistry); 376 } 377 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseDelimitedFrom(InputStream input) 378 throws IOException { 379 return PARSER.parseDelimitedFrom(input); 380 } 381 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseDelimitedFrom( 382 InputStream input, 383 ExtensionRegistryLite extensionRegistry) 384 throws IOException { 385 return PARSER.parseDelimitedFrom(input, extensionRegistry); 386 } 387 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( 388 CodedInputStream input) 389 throws IOException { 390 return PARSER.parseFrom(input); 391 } 392 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( 393 CodedInputStream input, 394 ExtensionRegistryLite extensionRegistry) 395 throws IOException { 396 return PARSER.parseFrom(input, extensionRegistry); 397 } 398 399 public static Builder newBuilder() { return Builder.create(); } 400 public Builder newBuilderForType() { return newBuilder(); } 401 public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry prototype) { 402 return newBuilder().mergeFrom(prototype); 403 } 404 public Builder toBuilder() { return newBuilder(this); } 405 406 /** 407 * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library.FileEntry} 408 */ 409 public static final class Builder extends 410 GeneratedMessageLite.Builder< 411 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry, Builder> 412 implements org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntryOrBuilder { 413 // Construct using org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.newBuilder() 414 private Builder() { 415 maybeForceBuilderInitialization(); 416 } 417 418 private void maybeForceBuilderInitialization() { 419 } 420 private static Builder create() { 421 return new Builder(); 422 } 423 424 public Builder clear() { 425 super.clear(); 426 path_ = ""; 427 bitField0_ = (bitField0_ & ~0x00000001); 428 content_ = ByteString.EMPTY; 429 bitField0_ = (bitField0_ & ~0x00000002); 430 return this; 431 } 432 433 public Builder clone() { 434 return create().mergeFrom(buildPartial()); 435 } 436 437 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getDefaultInstanceForType() { 438 return getDefaultInstance(); 439 } 440 441 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry build() { 442 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry result = buildPartial(); 443 if (!result.isInitialized()) { 444 throw newUninitializedMessageException(result); 445 } 446 return result; 447 } 448 449 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry buildPartial() { 450 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry result = new org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry(this); 451 int from_bitField0_ = bitField0_; 452 int to_bitField0_ = 0; 453 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 454 to_bitField0_ |= 0x00000001; 455 } 456 result.path_ = path_; 457 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 458 to_bitField0_ |= 0x00000002; 459 } 460 result.content_ = content_; 461 result.bitField0_ = to_bitField0_; 462 return result; 463 } 464 465 public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry other) { 466 if (other == getDefaultInstance()) return this; 467 if (other.hasPath()) { 468 bitField0_ |= 0x00000001; 469 path_ = other.path_; 470 471 } 472 if (other.hasContent()) { 473 setContent(other.getContent()); 474 } 475 return this; 476 } 477 478 public final boolean isInitialized() { 479 if (!hasPath()) { 480 481 return false; 482 } 483 if (!hasContent()) { 484 485 return false; 486 } 487 return true; 488 } 489 490 public Builder mergeFrom( 491 CodedInputStream input, 492 ExtensionRegistryLite extensionRegistry) 493 throws IOException { 494 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parsedMessage = null; 495 try { 496 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 497 } catch (InvalidProtocolBufferException e) { 498 parsedMessage = (org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry) e.getUnfinishedMessage(); 499 throw e; 500 } finally { 501 if (parsedMessage != null) { 502 mergeFrom(parsedMessage); 503 } 504 } 505 return this; 506 } 507 private int bitField0_; 508 509 // required string path = 1; 510 private Object path_ = ""; 511 /** 512 * <code>required string path = 1;</code> 513 */ 514 public boolean hasPath() { 515 return ((bitField0_ & 0x00000001) == 0x00000001); 516 } 517 /** 518 * <code>required string path = 1;</code> 519 */ 520 public String getPath() { 521 Object ref = path_; 522 if (!(ref instanceof String)) { 523 String s = ((ByteString) ref) 524 .toStringUtf8(); 525 path_ = s; 526 return s; 527 } else { 528 return (String) ref; 529 } 530 } 531 /** 532 * <code>required string path = 1;</code> 533 */ 534 public ByteString 535 getPathBytes() { 536 Object ref = path_; 537 if (ref instanceof String) { 538 ByteString b = 539 ByteString.copyFromUtf8( 540 (String) ref); 541 path_ = b; 542 return b; 543 } else { 544 return (ByteString) ref; 545 } 546 } 547 /** 548 * <code>required string path = 1;</code> 549 */ 550 public Builder setPath( 551 String value) { 552 if (value == null) { 553 throw new NullPointerException(); 554 } 555 bitField0_ |= 0x00000001; 556 path_ = value; 557 558 return this; 559 } 560 /** 561 * <code>required string path = 1;</code> 562 */ 563 public Builder clearPath() { 564 bitField0_ = (bitField0_ & ~0x00000001); 565 path_ = getDefaultInstance().getPath(); 566 567 return this; 568 } 569 /** 570 * <code>required string path = 1;</code> 571 */ 572 public Builder setPathBytes( 573 ByteString value) { 574 if (value == null) { 575 throw new NullPointerException(); 576 } 577 bitField0_ |= 0x00000001; 578 path_ = value; 579 580 return this; 581 } 582 583 // required bytes content = 2; 584 private ByteString content_ = ByteString.EMPTY; 585 /** 586 * <code>required bytes content = 2;</code> 587 */ 588 public boolean hasContent() { 589 return ((bitField0_ & 0x00000002) == 0x00000002); 590 } 591 /** 592 * <code>required bytes content = 2;</code> 593 */ 594 public ByteString getContent() { 595 return content_; 596 } 597 /** 598 * <code>required bytes content = 2;</code> 599 */ 600 public Builder setContent(ByteString value) { 601 if (value == null) { 602 throw new NullPointerException(); 603 } 604 bitField0_ |= 0x00000002; 605 content_ = value; 606 607 return this; 608 } 609 /** 610 * <code>required bytes content = 2;</code> 611 */ 612 public Builder clearContent() { 613 bitField0_ = (bitField0_ & ~0x00000002); 614 content_ = getDefaultInstance().getContent(); 615 616 return this; 617 } 618 619 // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.js.Library.FileEntry) 620 } 621 622 static { 623 defaultInstance = new FileEntry(true); 624 defaultInstance.initFields(); 625 } 626 627 // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.js.Library.FileEntry) 628 } 629 630 // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; 631 public static final int ENTRY_FIELD_NUMBER = 1; 632 private List<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry> entry_; 633 /** 634 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 635 */ 636 public List<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry> getEntryList() { 637 return entry_; 638 } 639 /** 640 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 641 */ 642 public List<? extends org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntryOrBuilder> 643 getEntryOrBuilderList() { 644 return entry_; 645 } 646 /** 647 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 648 */ 649 public int getEntryCount() { 650 return entry_.size(); 651 } 652 /** 653 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 654 */ 655 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getEntry(int index) { 656 return entry_.get(index); 657 } 658 /** 659 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 660 */ 661 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( 662 int index) { 663 return entry_.get(index); 664 } 665 666 private void initFields() { 667 entry_ = Collections.emptyList(); 668 } 669 private byte memoizedIsInitialized = -1; 670 public final boolean isInitialized() { 671 byte isInitialized = memoizedIsInitialized; 672 if (isInitialized != -1) return isInitialized == 1; 673 674 for (int i = 0; i < getEntryCount(); i++) { 675 if (!getEntry(i).isInitialized()) { 676 memoizedIsInitialized = 0; 677 return false; 678 } 679 } 680 memoizedIsInitialized = 1; 681 return true; 682 } 683 684 public void writeTo(CodedOutputStream output) 685 throws IOException { 686 getSerializedSize(); 687 for (int i = 0; i < entry_.size(); i++) { 688 output.writeMessage(1, entry_.get(i)); 689 } 690 } 691 692 private int memoizedSerializedSize = -1; 693 public int getSerializedSize() { 694 int size = memoizedSerializedSize; 695 if (size != -1) return size; 696 697 size = 0; 698 for (int i = 0; i < entry_.size(); i++) { 699 size += CodedOutputStream 700 .computeMessageSize(1, entry_.get(i)); 701 } 702 memoizedSerializedSize = size; 703 return size; 704 } 705 706 private static final long serialVersionUID = 0L; 707 @Override 708 protected Object writeReplace() 709 throws ObjectStreamException { 710 return super.writeReplace(); 711 } 712 713 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( 714 ByteString data) 715 throws InvalidProtocolBufferException { 716 return PARSER.parseFrom(data); 717 } 718 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( 719 ByteString data, 720 ExtensionRegistryLite extensionRegistry) 721 throws InvalidProtocolBufferException { 722 return PARSER.parseFrom(data, extensionRegistry); 723 } 724 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom(byte[] data) 725 throws InvalidProtocolBufferException { 726 return PARSER.parseFrom(data); 727 } 728 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( 729 byte[] data, 730 ExtensionRegistryLite extensionRegistry) 731 throws InvalidProtocolBufferException { 732 return PARSER.parseFrom(data, extensionRegistry); 733 } 734 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom(InputStream input) 735 throws IOException { 736 return PARSER.parseFrom(input); 737 } 738 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( 739 InputStream input, 740 ExtensionRegistryLite extensionRegistry) 741 throws IOException { 742 return PARSER.parseFrom(input, extensionRegistry); 743 } 744 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseDelimitedFrom(InputStream input) 745 throws IOException { 746 return PARSER.parseDelimitedFrom(input); 747 } 748 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseDelimitedFrom( 749 InputStream input, 750 ExtensionRegistryLite extensionRegistry) 751 throws IOException { 752 return PARSER.parseDelimitedFrom(input, extensionRegistry); 753 } 754 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( 755 CodedInputStream input) 756 throws IOException { 757 return PARSER.parseFrom(input); 758 } 759 public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( 760 CodedInputStream input, 761 ExtensionRegistryLite extensionRegistry) 762 throws IOException { 763 return PARSER.parseFrom(input, extensionRegistry); 764 } 765 766 public static Builder newBuilder() { return Builder.create(); } 767 public Builder newBuilderForType() { return newBuilder(); } 768 public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library prototype) { 769 return newBuilder().mergeFrom(prototype); 770 } 771 public Builder toBuilder() { return newBuilder(this); } 772 773 /** 774 * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library} 775 * 776 * <pre> 777 * For Kotlin/Javascript we reuse builtins serialization code. 778 * </pre> 779 */ 780 public static final class Builder extends 781 GeneratedMessageLite.Builder< 782 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library, Builder> 783 implements org.jetbrains.kotlin.serialization.js.JsProtoBuf.LibraryOrBuilder { 784 // Construct using org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.newBuilder() 785 private Builder() { 786 maybeForceBuilderInitialization(); 787 } 788 789 private void maybeForceBuilderInitialization() { 790 } 791 private static Builder create() { 792 return new Builder(); 793 } 794 795 public Builder clear() { 796 super.clear(); 797 entry_ = Collections.emptyList(); 798 bitField0_ = (bitField0_ & ~0x00000001); 799 return this; 800 } 801 802 public Builder clone() { 803 return create().mergeFrom(buildPartial()); 804 } 805 806 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library getDefaultInstanceForType() { 807 return getDefaultInstance(); 808 } 809 810 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library build() { 811 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library result = buildPartial(); 812 if (!result.isInitialized()) { 813 throw newUninitializedMessageException(result); 814 } 815 return result; 816 } 817 818 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library buildPartial() { 819 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library result = new org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library(this); 820 int from_bitField0_ = bitField0_; 821 if (((bitField0_ & 0x00000001) == 0x00000001)) { 822 entry_ = Collections.unmodifiableList(entry_); 823 bitField0_ = (bitField0_ & ~0x00000001); 824 } 825 result.entry_ = entry_; 826 return result; 827 } 828 829 public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library other) { 830 if (other == getDefaultInstance()) return this; 831 if (!other.entry_.isEmpty()) { 832 if (entry_.isEmpty()) { 833 entry_ = other.entry_; 834 bitField0_ = (bitField0_ & ~0x00000001); 835 } else { 836 ensureEntryIsMutable(); 837 entry_.addAll(other.entry_); 838 } 839 840 } 841 return this; 842 } 843 844 public final boolean isInitialized() { 845 for (int i = 0; i < getEntryCount(); i++) { 846 if (!getEntry(i).isInitialized()) { 847 848 return false; 849 } 850 } 851 return true; 852 } 853 854 public Builder mergeFrom( 855 CodedInputStream input, 856 ExtensionRegistryLite extensionRegistry) 857 throws IOException { 858 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parsedMessage = null; 859 try { 860 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 861 } catch (InvalidProtocolBufferException e) { 862 parsedMessage = (org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library) e.getUnfinishedMessage(); 863 throw e; 864 } finally { 865 if (parsedMessage != null) { 866 mergeFrom(parsedMessage); 867 } 868 } 869 return this; 870 } 871 private int bitField0_; 872 873 // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; 874 private List<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry> entry_ = 875 Collections.emptyList(); 876 private void ensureEntryIsMutable() { 877 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 878 entry_ = new ArrayList<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry>(entry_); 879 bitField0_ |= 0x00000001; 880 } 881 } 882 883 /** 884 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 885 */ 886 public List<org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry> getEntryList() { 887 return Collections.unmodifiableList(entry_); 888 } 889 /** 890 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 891 */ 892 public int getEntryCount() { 893 return entry_.size(); 894 } 895 /** 896 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 897 */ 898 public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getEntry(int index) { 899 return entry_.get(index); 900 } 901 /** 902 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 903 */ 904 public Builder setEntry( 905 int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry value) { 906 if (value == null) { 907 throw new NullPointerException(); 908 } 909 ensureEntryIsMutable(); 910 entry_.set(index, value); 911 912 return this; 913 } 914 /** 915 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 916 */ 917 public Builder setEntry( 918 int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.Builder builderForValue) { 919 ensureEntryIsMutable(); 920 entry_.set(index, builderForValue.build()); 921 922 return this; 923 } 924 /** 925 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 926 */ 927 public Builder addEntry(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry value) { 928 if (value == null) { 929 throw new NullPointerException(); 930 } 931 ensureEntryIsMutable(); 932 entry_.add(value); 933 934 return this; 935 } 936 /** 937 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 938 */ 939 public Builder addEntry( 940 int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry value) { 941 if (value == null) { 942 throw new NullPointerException(); 943 } 944 ensureEntryIsMutable(); 945 entry_.add(index, value); 946 947 return this; 948 } 949 /** 950 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 951 */ 952 public Builder addEntry( 953 org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.Builder builderForValue) { 954 ensureEntryIsMutable(); 955 entry_.add(builderForValue.build()); 956 957 return this; 958 } 959 /** 960 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 961 */ 962 public Builder addEntry( 963 int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.Builder builderForValue) { 964 ensureEntryIsMutable(); 965 entry_.add(index, builderForValue.build()); 966 967 return this; 968 } 969 /** 970 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 971 */ 972 public Builder addAllEntry( 973 Iterable<? extends org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry> values) { 974 ensureEntryIsMutable(); 975 addAll(values, entry_); 976 977 return this; 978 } 979 /** 980 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 981 */ 982 public Builder clearEntry() { 983 entry_ = Collections.emptyList(); 984 bitField0_ = (bitField0_ & ~0x00000001); 985 986 return this; 987 } 988 /** 989 * <code>repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1;</code> 990 */ 991 public Builder removeEntry(int index) { 992 ensureEntryIsMutable(); 993 entry_.remove(index); 994 995 return this; 996 } 997 998 // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.js.Library) 999 } 1000 1001 static { 1002 defaultInstance = new Library(true); 1003 defaultInstance.initFields(); 1004 } 1005 1006 // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.js.Library) 1007 } 1008 1009 1010 static { 1011 } 1012 1013 // @@protoc_insertion_point(outer_class_scope) 1014 }