001 // Generated by the protocol buffer compiler. DO NOT EDIT! 002 // source: compiler/frontend/serialization/src/descriptors.proto 003 004 package org.jetbrains.jet.descriptors.serialization; 005 006 public final class ProtoBuf { 007 private ProtoBuf() {} 008 public static void registerAllExtensions( 009 com.google.protobuf.ExtensionRegistryLite registry) { 010 } 011 /** 012 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Modality} 013 */ 014 public enum Modality 015 implements com.google.protobuf.Internal.EnumLite { 016 /** 017 * <code>FINAL = 0;</code> 018 * 019 * <pre> 020 * 2 bits 021 * </pre> 022 */ 023 FINAL(0, 0), 024 /** 025 * <code>OPEN = 1;</code> 026 */ 027 OPEN(1, 1), 028 /** 029 * <code>ABSTRACT = 2;</code> 030 */ 031 ABSTRACT(2, 2), 032 ; 033 034 /** 035 * <code>FINAL = 0;</code> 036 * 037 * <pre> 038 * 2 bits 039 * </pre> 040 */ 041 public static final int FINAL_VALUE = 0; 042 /** 043 * <code>OPEN = 1;</code> 044 */ 045 public static final int OPEN_VALUE = 1; 046 /** 047 * <code>ABSTRACT = 2;</code> 048 */ 049 public static final int ABSTRACT_VALUE = 2; 050 051 052 public final int getNumber() { return value; } 053 054 public static Modality valueOf(int value) { 055 switch (value) { 056 case 0: return FINAL; 057 case 1: return OPEN; 058 case 2: return ABSTRACT; 059 default: return null; 060 } 061 } 062 063 public static com.google.protobuf.Internal.EnumLiteMap<Modality> 064 internalGetValueMap() { 065 return internalValueMap; 066 } 067 private static com.google.protobuf.Internal.EnumLiteMap<Modality> 068 internalValueMap = 069 new com.google.protobuf.Internal.EnumLiteMap<Modality>() { 070 public Modality findValueByNumber(int number) { 071 return Modality.valueOf(number); 072 } 073 }; 074 075 private final int value; 076 077 private Modality(int index, int value) { 078 this.value = value; 079 } 080 081 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Modality) 082 } 083 084 /** 085 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Visibility} 086 */ 087 public enum Visibility 088 implements com.google.protobuf.Internal.EnumLite { 089 /** 090 * <code>INTERNAL = 0;</code> 091 * 092 * <pre> 093 * 3 bits 094 * </pre> 095 */ 096 INTERNAL(0, 0), 097 /** 098 * <code>PRIVATE = 1;</code> 099 */ 100 PRIVATE(1, 1), 101 /** 102 * <code>PROTECTED = 2;</code> 103 */ 104 PROTECTED(2, 2), 105 /** 106 * <code>PUBLIC = 3;</code> 107 */ 108 PUBLIC(3, 3), 109 /** 110 * <code>EXTRA = 4;</code> 111 * 112 * <pre> 113 * there's an extra field for the actual visibility 114 * </pre> 115 */ 116 EXTRA(4, 4), 117 ; 118 119 /** 120 * <code>INTERNAL = 0;</code> 121 * 122 * <pre> 123 * 3 bits 124 * </pre> 125 */ 126 public static final int INTERNAL_VALUE = 0; 127 /** 128 * <code>PRIVATE = 1;</code> 129 */ 130 public static final int PRIVATE_VALUE = 1; 131 /** 132 * <code>PROTECTED = 2;</code> 133 */ 134 public static final int PROTECTED_VALUE = 2; 135 /** 136 * <code>PUBLIC = 3;</code> 137 */ 138 public static final int PUBLIC_VALUE = 3; 139 /** 140 * <code>EXTRA = 4;</code> 141 * 142 * <pre> 143 * there's an extra field for the actual visibility 144 * </pre> 145 */ 146 public static final int EXTRA_VALUE = 4; 147 148 149 public final int getNumber() { return value; } 150 151 public static Visibility valueOf(int value) { 152 switch (value) { 153 case 0: return INTERNAL; 154 case 1: return PRIVATE; 155 case 2: return PROTECTED; 156 case 3: return PUBLIC; 157 case 4: return EXTRA; 158 default: return null; 159 } 160 } 161 162 public static com.google.protobuf.Internal.EnumLiteMap<Visibility> 163 internalGetValueMap() { 164 return internalValueMap; 165 } 166 private static com.google.protobuf.Internal.EnumLiteMap<Visibility> 167 internalValueMap = 168 new com.google.protobuf.Internal.EnumLiteMap<Visibility>() { 169 public Visibility findValueByNumber(int number) { 170 return Visibility.valueOf(number); 171 } 172 }; 173 174 private final int value; 175 176 private Visibility(int index, int value) { 177 this.value = value; 178 } 179 180 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Visibility) 181 } 182 183 public interface SimpleNameTableOrBuilder 184 extends com.google.protobuf.MessageLiteOrBuilder { 185 186 // repeated string name = 1; 187 /** 188 * <code>repeated string name = 1;</code> 189 */ 190 java.util.List<java.lang.String> 191 getNameList(); 192 /** 193 * <code>repeated string name = 1;</code> 194 */ 195 int getNameCount(); 196 /** 197 * <code>repeated string name = 1;</code> 198 */ 199 java.lang.String getName(int index); 200 /** 201 * <code>repeated string name = 1;</code> 202 */ 203 com.google.protobuf.ByteString 204 getNameBytes(int index); 205 } 206 /** 207 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.SimpleNameTable} 208 */ 209 public static final class SimpleNameTable extends 210 com.google.protobuf.GeneratedMessageLite 211 implements SimpleNameTableOrBuilder { 212 // Use SimpleNameTable.newBuilder() to construct. 213 private SimpleNameTable(com.google.protobuf.GeneratedMessageLite.Builder builder) { 214 super(builder); 215 216 } 217 private SimpleNameTable(boolean noInit) {} 218 219 private static final SimpleNameTable defaultInstance; 220 public static SimpleNameTable getDefaultInstance() { 221 return defaultInstance; 222 } 223 224 public SimpleNameTable getDefaultInstanceForType() { 225 return defaultInstance; 226 } 227 228 private SimpleNameTable( 229 com.google.protobuf.CodedInputStream input, 230 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 231 throws com.google.protobuf.InvalidProtocolBufferException { 232 initFields(); 233 int mutable_bitField0_ = 0; 234 try { 235 boolean done = false; 236 while (!done) { 237 int tag = input.readTag(); 238 switch (tag) { 239 case 0: 240 done = true; 241 break; 242 default: { 243 if (!parseUnknownField(input, 244 extensionRegistry, tag)) { 245 done = true; 246 } 247 break; 248 } 249 case 10: { 250 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 251 name_ = new com.google.protobuf.LazyStringArrayList(); 252 mutable_bitField0_ |= 0x00000001; 253 } 254 name_.add(input.readBytes()); 255 break; 256 } 257 } 258 } 259 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 260 throw e.setUnfinishedMessage(this); 261 } catch (java.io.IOException e) { 262 throw new com.google.protobuf.InvalidProtocolBufferException( 263 e.getMessage()).setUnfinishedMessage(this); 264 } finally { 265 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 266 name_ = new com.google.protobuf.UnmodifiableLazyStringList(name_); 267 } 268 makeExtensionsImmutable(); 269 } 270 } 271 public static com.google.protobuf.Parser<SimpleNameTable> PARSER = 272 new com.google.protobuf.AbstractParser<SimpleNameTable>() { 273 public SimpleNameTable parsePartialFrom( 274 com.google.protobuf.CodedInputStream input, 275 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 276 throws com.google.protobuf.InvalidProtocolBufferException { 277 return new SimpleNameTable(input, extensionRegistry); 278 } 279 }; 280 281 @java.lang.Override 282 public com.google.protobuf.Parser<SimpleNameTable> getParserForType() { 283 return PARSER; 284 } 285 286 // repeated string name = 1; 287 public static final int NAME_FIELD_NUMBER = 1; 288 private com.google.protobuf.LazyStringList name_; 289 /** 290 * <code>repeated string name = 1;</code> 291 */ 292 public java.util.List<java.lang.String> 293 getNameList() { 294 return name_; 295 } 296 /** 297 * <code>repeated string name = 1;</code> 298 */ 299 public int getNameCount() { 300 return name_.size(); 301 } 302 /** 303 * <code>repeated string name = 1;</code> 304 */ 305 public java.lang.String getName(int index) { 306 return name_.get(index); 307 } 308 /** 309 * <code>repeated string name = 1;</code> 310 */ 311 public com.google.protobuf.ByteString 312 getNameBytes(int index) { 313 return name_.getByteString(index); 314 } 315 316 private void initFields() { 317 name_ = com.google.protobuf.LazyStringArrayList.EMPTY; 318 } 319 private byte memoizedIsInitialized = -1; 320 public final boolean isInitialized() { 321 byte isInitialized = memoizedIsInitialized; 322 if (isInitialized != -1) return isInitialized == 1; 323 324 memoizedIsInitialized = 1; 325 return true; 326 } 327 328 public void writeTo(com.google.protobuf.CodedOutputStream output) 329 throws java.io.IOException { 330 getSerializedSize(); 331 for (int i = 0; i < name_.size(); i++) { 332 output.writeBytes(1, name_.getByteString(i)); 333 } 334 } 335 336 private int memoizedSerializedSize = -1; 337 public int getSerializedSize() { 338 int size = memoizedSerializedSize; 339 if (size != -1) return size; 340 341 size = 0; 342 { 343 int dataSize = 0; 344 for (int i = 0; i < name_.size(); i++) { 345 dataSize += com.google.protobuf.CodedOutputStream 346 .computeBytesSizeNoTag(name_.getByteString(i)); 347 } 348 size += dataSize; 349 size += 1 * getNameList().size(); 350 } 351 memoizedSerializedSize = size; 352 return size; 353 } 354 355 private static final long serialVersionUID = 0L; 356 @java.lang.Override 357 protected java.lang.Object writeReplace() 358 throws java.io.ObjectStreamException { 359 return super.writeReplace(); 360 } 361 362 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( 363 com.google.protobuf.ByteString data) 364 throws com.google.protobuf.InvalidProtocolBufferException { 365 return PARSER.parseFrom(data); 366 } 367 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( 368 com.google.protobuf.ByteString data, 369 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 370 throws com.google.protobuf.InvalidProtocolBufferException { 371 return PARSER.parseFrom(data, extensionRegistry); 372 } 373 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom(byte[] data) 374 throws com.google.protobuf.InvalidProtocolBufferException { 375 return PARSER.parseFrom(data); 376 } 377 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( 378 byte[] data, 379 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 380 throws com.google.protobuf.InvalidProtocolBufferException { 381 return PARSER.parseFrom(data, extensionRegistry); 382 } 383 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom(java.io.InputStream input) 384 throws java.io.IOException { 385 return PARSER.parseFrom(input); 386 } 387 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( 388 java.io.InputStream input, 389 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 390 throws java.io.IOException { 391 return PARSER.parseFrom(input, extensionRegistry); 392 } 393 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseDelimitedFrom(java.io.InputStream input) 394 throws java.io.IOException { 395 return PARSER.parseDelimitedFrom(input); 396 } 397 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseDelimitedFrom( 398 java.io.InputStream input, 399 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 400 throws java.io.IOException { 401 return PARSER.parseDelimitedFrom(input, extensionRegistry); 402 } 403 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( 404 com.google.protobuf.CodedInputStream input) 405 throws java.io.IOException { 406 return PARSER.parseFrom(input); 407 } 408 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( 409 com.google.protobuf.CodedInputStream input, 410 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 411 throws java.io.IOException { 412 return PARSER.parseFrom(input, extensionRegistry); 413 } 414 415 public static Builder newBuilder() { return Builder.create(); } 416 public Builder newBuilderForType() { return newBuilder(); } 417 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable prototype) { 418 return newBuilder().mergeFrom(prototype); 419 } 420 public Builder toBuilder() { return newBuilder(this); } 421 422 /** 423 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.SimpleNameTable} 424 */ 425 public static final class Builder extends 426 com.google.protobuf.GeneratedMessageLite.Builder< 427 org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable, Builder> 428 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTableOrBuilder { 429 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable.newBuilder() 430 private Builder() { 431 maybeForceBuilderInitialization(); 432 } 433 434 private void maybeForceBuilderInitialization() { 435 } 436 private static Builder create() { 437 return new Builder(); 438 } 439 440 public Builder clear() { 441 super.clear(); 442 name_ = com.google.protobuf.LazyStringArrayList.EMPTY; 443 bitField0_ = (bitField0_ & ~0x00000001); 444 return this; 445 } 446 447 public Builder clone() { 448 return create().mergeFrom(buildPartial()); 449 } 450 451 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable getDefaultInstanceForType() { 452 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable.getDefaultInstance(); 453 } 454 455 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable build() { 456 org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable result = buildPartial(); 457 if (!result.isInitialized()) { 458 throw newUninitializedMessageException(result); 459 } 460 return result; 461 } 462 463 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable buildPartial() { 464 org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable(this); 465 int from_bitField0_ = bitField0_; 466 if (((bitField0_ & 0x00000001) == 0x00000001)) { 467 name_ = new com.google.protobuf.UnmodifiableLazyStringList( 468 name_); 469 bitField0_ = (bitField0_ & ~0x00000001); 470 } 471 result.name_ = name_; 472 return result; 473 } 474 475 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable other) { 476 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable.getDefaultInstance()) return this; 477 if (!other.name_.isEmpty()) { 478 if (name_.isEmpty()) { 479 name_ = other.name_; 480 bitField0_ = (bitField0_ & ~0x00000001); 481 } else { 482 ensureNameIsMutable(); 483 name_.addAll(other.name_); 484 } 485 486 } 487 return this; 488 } 489 490 public final boolean isInitialized() { 491 return true; 492 } 493 494 public Builder mergeFrom( 495 com.google.protobuf.CodedInputStream input, 496 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 497 throws java.io.IOException { 498 org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parsedMessage = null; 499 try { 500 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 501 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 502 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable) e.getUnfinishedMessage(); 503 throw e; 504 } finally { 505 if (parsedMessage != null) { 506 mergeFrom(parsedMessage); 507 } 508 } 509 return this; 510 } 511 private int bitField0_; 512 513 // repeated string name = 1; 514 private com.google.protobuf.LazyStringList name_ = com.google.protobuf.LazyStringArrayList.EMPTY; 515 private void ensureNameIsMutable() { 516 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 517 name_ = new com.google.protobuf.LazyStringArrayList(name_); 518 bitField0_ |= 0x00000001; 519 } 520 } 521 /** 522 * <code>repeated string name = 1;</code> 523 */ 524 public java.util.List<java.lang.String> 525 getNameList() { 526 return java.util.Collections.unmodifiableList(name_); 527 } 528 /** 529 * <code>repeated string name = 1;</code> 530 */ 531 public int getNameCount() { 532 return name_.size(); 533 } 534 /** 535 * <code>repeated string name = 1;</code> 536 */ 537 public java.lang.String getName(int index) { 538 return name_.get(index); 539 } 540 /** 541 * <code>repeated string name = 1;</code> 542 */ 543 public com.google.protobuf.ByteString 544 getNameBytes(int index) { 545 return name_.getByteString(index); 546 } 547 /** 548 * <code>repeated string name = 1;</code> 549 */ 550 public Builder setName( 551 int index, java.lang.String value) { 552 if (value == null) { 553 throw new NullPointerException(); 554 } 555 ensureNameIsMutable(); 556 name_.set(index, value); 557 558 return this; 559 } 560 /** 561 * <code>repeated string name = 1;</code> 562 */ 563 public Builder addName( 564 java.lang.String value) { 565 if (value == null) { 566 throw new NullPointerException(); 567 } 568 ensureNameIsMutable(); 569 name_.add(value); 570 571 return this; 572 } 573 /** 574 * <code>repeated string name = 1;</code> 575 */ 576 public Builder addAllName( 577 java.lang.Iterable<java.lang.String> values) { 578 ensureNameIsMutable(); 579 super.addAll(values, name_); 580 581 return this; 582 } 583 /** 584 * <code>repeated string name = 1;</code> 585 */ 586 public Builder clearName() { 587 name_ = com.google.protobuf.LazyStringArrayList.EMPTY; 588 bitField0_ = (bitField0_ & ~0x00000001); 589 590 return this; 591 } 592 /** 593 * <code>repeated string name = 1;</code> 594 */ 595 public Builder addNameBytes( 596 com.google.protobuf.ByteString value) { 597 if (value == null) { 598 throw new NullPointerException(); 599 } 600 ensureNameIsMutable(); 601 name_.add(value); 602 603 return this; 604 } 605 606 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.SimpleNameTable) 607 } 608 609 static { 610 defaultInstance = new SimpleNameTable(true); 611 defaultInstance.initFields(); 612 } 613 614 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.SimpleNameTable) 615 } 616 617 public interface QualifiedNameTableOrBuilder 618 extends com.google.protobuf.MessageLiteOrBuilder { 619 620 // repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1; 621 /** 622 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 623 */ 624 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName> 625 getQualifiedNameList(); 626 /** 627 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 628 */ 629 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedName(int index); 630 /** 631 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 632 */ 633 int getQualifiedNameCount(); 634 } 635 /** 636 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.QualifiedNameTable} 637 */ 638 public static final class QualifiedNameTable extends 639 com.google.protobuf.GeneratedMessageLite 640 implements QualifiedNameTableOrBuilder { 641 // Use QualifiedNameTable.newBuilder() to construct. 642 private QualifiedNameTable(com.google.protobuf.GeneratedMessageLite.Builder builder) { 643 super(builder); 644 645 } 646 private QualifiedNameTable(boolean noInit) {} 647 648 private static final QualifiedNameTable defaultInstance; 649 public static QualifiedNameTable getDefaultInstance() { 650 return defaultInstance; 651 } 652 653 public QualifiedNameTable getDefaultInstanceForType() { 654 return defaultInstance; 655 } 656 657 private QualifiedNameTable( 658 com.google.protobuf.CodedInputStream input, 659 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 660 throws com.google.protobuf.InvalidProtocolBufferException { 661 initFields(); 662 int mutable_bitField0_ = 0; 663 try { 664 boolean done = false; 665 while (!done) { 666 int tag = input.readTag(); 667 switch (tag) { 668 case 0: 669 done = true; 670 break; 671 default: { 672 if (!parseUnknownField(input, 673 extensionRegistry, tag)) { 674 done = true; 675 } 676 break; 677 } 678 case 10: { 679 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 680 qualifiedName_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName>(); 681 mutable_bitField0_ |= 0x00000001; 682 } 683 qualifiedName_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.PARSER, extensionRegistry)); 684 break; 685 } 686 } 687 } 688 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 689 throw e.setUnfinishedMessage(this); 690 } catch (java.io.IOException e) { 691 throw new com.google.protobuf.InvalidProtocolBufferException( 692 e.getMessage()).setUnfinishedMessage(this); 693 } finally { 694 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 695 qualifiedName_ = java.util.Collections.unmodifiableList(qualifiedName_); 696 } 697 makeExtensionsImmutable(); 698 } 699 } 700 public static com.google.protobuf.Parser<QualifiedNameTable> PARSER = 701 new com.google.protobuf.AbstractParser<QualifiedNameTable>() { 702 public QualifiedNameTable parsePartialFrom( 703 com.google.protobuf.CodedInputStream input, 704 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 705 throws com.google.protobuf.InvalidProtocolBufferException { 706 return new QualifiedNameTable(input, extensionRegistry); 707 } 708 }; 709 710 @java.lang.Override 711 public com.google.protobuf.Parser<QualifiedNameTable> getParserForType() { 712 return PARSER; 713 } 714 715 public interface QualifiedNameOrBuilder 716 extends com.google.protobuf.MessageLiteOrBuilder { 717 718 // optional int32 parent_qualified_name = 1 [default = -1]; 719 /** 720 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 721 */ 722 boolean hasParentQualifiedName(); 723 /** 724 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 725 */ 726 int getParentQualifiedName(); 727 728 // required int32 short_name = 2; 729 /** 730 * <code>required int32 short_name = 2;</code> 731 */ 732 boolean hasShortName(); 733 /** 734 * <code>required int32 short_name = 2;</code> 735 */ 736 int getShortName(); 737 738 // optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE]; 739 /** 740 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 741 */ 742 boolean hasKind(); 743 /** 744 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 745 */ 746 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind(); 747 } 748 /** 749 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName} 750 */ 751 public static final class QualifiedName extends 752 com.google.protobuf.GeneratedMessageLite 753 implements QualifiedNameOrBuilder { 754 // Use QualifiedName.newBuilder() to construct. 755 private QualifiedName(com.google.protobuf.GeneratedMessageLite.Builder builder) { 756 super(builder); 757 758 } 759 private QualifiedName(boolean noInit) {} 760 761 private static final QualifiedName defaultInstance; 762 public static QualifiedName getDefaultInstance() { 763 return defaultInstance; 764 } 765 766 public QualifiedName getDefaultInstanceForType() { 767 return defaultInstance; 768 } 769 770 private QualifiedName( 771 com.google.protobuf.CodedInputStream input, 772 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 773 throws com.google.protobuf.InvalidProtocolBufferException { 774 initFields(); 775 int mutable_bitField0_ = 0; 776 try { 777 boolean done = false; 778 while (!done) { 779 int tag = input.readTag(); 780 switch (tag) { 781 case 0: 782 done = true; 783 break; 784 default: { 785 if (!parseUnknownField(input, 786 extensionRegistry, tag)) { 787 done = true; 788 } 789 break; 790 } 791 case 8: { 792 bitField0_ |= 0x00000001; 793 parentQualifiedName_ = input.readInt32(); 794 break; 795 } 796 case 16: { 797 bitField0_ |= 0x00000002; 798 shortName_ = input.readInt32(); 799 break; 800 } 801 case 24: { 802 int rawValue = input.readEnum(); 803 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.valueOf(rawValue); 804 if (value != null) { 805 bitField0_ |= 0x00000004; 806 kind_ = value; 807 } 808 break; 809 } 810 } 811 } 812 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 813 throw e.setUnfinishedMessage(this); 814 } catch (java.io.IOException e) { 815 throw new com.google.protobuf.InvalidProtocolBufferException( 816 e.getMessage()).setUnfinishedMessage(this); 817 } finally { 818 makeExtensionsImmutable(); 819 } 820 } 821 public static com.google.protobuf.Parser<QualifiedName> PARSER = 822 new com.google.protobuf.AbstractParser<QualifiedName>() { 823 public QualifiedName parsePartialFrom( 824 com.google.protobuf.CodedInputStream input, 825 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 826 throws com.google.protobuf.InvalidProtocolBufferException { 827 return new QualifiedName(input, extensionRegistry); 828 } 829 }; 830 831 @java.lang.Override 832 public com.google.protobuf.Parser<QualifiedName> getParserForType() { 833 return PARSER; 834 } 835 836 /** 837 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind} 838 */ 839 public enum Kind 840 implements com.google.protobuf.Internal.EnumLite { 841 /** 842 * <code>CLASS = 0;</code> 843 */ 844 CLASS(0, 0), 845 /** 846 * <code>PACKAGE = 1;</code> 847 */ 848 PACKAGE(1, 1), 849 ; 850 851 /** 852 * <code>CLASS = 0;</code> 853 */ 854 public static final int CLASS_VALUE = 0; 855 /** 856 * <code>PACKAGE = 1;</code> 857 */ 858 public static final int PACKAGE_VALUE = 1; 859 860 861 public final int getNumber() { return value; } 862 863 public static Kind valueOf(int value) { 864 switch (value) { 865 case 0: return CLASS; 866 case 1: return PACKAGE; 867 default: return null; 868 } 869 } 870 871 public static com.google.protobuf.Internal.EnumLiteMap<Kind> 872 internalGetValueMap() { 873 return internalValueMap; 874 } 875 private static com.google.protobuf.Internal.EnumLiteMap<Kind> 876 internalValueMap = 877 new com.google.protobuf.Internal.EnumLiteMap<Kind>() { 878 public Kind findValueByNumber(int number) { 879 return Kind.valueOf(number); 880 } 881 }; 882 883 private final int value; 884 885 private Kind(int index, int value) { 886 this.value = value; 887 } 888 889 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind) 890 } 891 892 private int bitField0_; 893 // optional int32 parent_qualified_name = 1 [default = -1]; 894 public static final int PARENT_QUALIFIED_NAME_FIELD_NUMBER = 1; 895 private int parentQualifiedName_; 896 /** 897 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 898 */ 899 public boolean hasParentQualifiedName() { 900 return ((bitField0_ & 0x00000001) == 0x00000001); 901 } 902 /** 903 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 904 */ 905 public int getParentQualifiedName() { 906 return parentQualifiedName_; 907 } 908 909 // required int32 short_name = 2; 910 public static final int SHORT_NAME_FIELD_NUMBER = 2; 911 private int shortName_; 912 /** 913 * <code>required int32 short_name = 2;</code> 914 */ 915 public boolean hasShortName() { 916 return ((bitField0_ & 0x00000002) == 0x00000002); 917 } 918 /** 919 * <code>required int32 short_name = 2;</code> 920 */ 921 public int getShortName() { 922 return shortName_; 923 } 924 925 // optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE]; 926 public static final int KIND_FIELD_NUMBER = 3; 927 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind kind_; 928 /** 929 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 930 */ 931 public boolean hasKind() { 932 return ((bitField0_ & 0x00000004) == 0x00000004); 933 } 934 /** 935 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 936 */ 937 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind() { 938 return kind_; 939 } 940 941 private void initFields() { 942 parentQualifiedName_ = -1; 943 shortName_ = 0; 944 kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; 945 } 946 private byte memoizedIsInitialized = -1; 947 public final boolean isInitialized() { 948 byte isInitialized = memoizedIsInitialized; 949 if (isInitialized != -1) return isInitialized == 1; 950 951 if (!hasShortName()) { 952 memoizedIsInitialized = 0; 953 return false; 954 } 955 memoizedIsInitialized = 1; 956 return true; 957 } 958 959 public void writeTo(com.google.protobuf.CodedOutputStream output) 960 throws java.io.IOException { 961 getSerializedSize(); 962 if (((bitField0_ & 0x00000001) == 0x00000001)) { 963 output.writeInt32(1, parentQualifiedName_); 964 } 965 if (((bitField0_ & 0x00000002) == 0x00000002)) { 966 output.writeInt32(2, shortName_); 967 } 968 if (((bitField0_ & 0x00000004) == 0x00000004)) { 969 output.writeEnum(3, kind_.getNumber()); 970 } 971 } 972 973 private int memoizedSerializedSize = -1; 974 public int getSerializedSize() { 975 int size = memoizedSerializedSize; 976 if (size != -1) return size; 977 978 size = 0; 979 if (((bitField0_ & 0x00000001) == 0x00000001)) { 980 size += com.google.protobuf.CodedOutputStream 981 .computeInt32Size(1, parentQualifiedName_); 982 } 983 if (((bitField0_ & 0x00000002) == 0x00000002)) { 984 size += com.google.protobuf.CodedOutputStream 985 .computeInt32Size(2, shortName_); 986 } 987 if (((bitField0_ & 0x00000004) == 0x00000004)) { 988 size += com.google.protobuf.CodedOutputStream 989 .computeEnumSize(3, kind_.getNumber()); 990 } 991 memoizedSerializedSize = size; 992 return size; 993 } 994 995 private static final long serialVersionUID = 0L; 996 @java.lang.Override 997 protected java.lang.Object writeReplace() 998 throws java.io.ObjectStreamException { 999 return super.writeReplace(); 1000 } 1001 1002 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( 1003 com.google.protobuf.ByteString data) 1004 throws com.google.protobuf.InvalidProtocolBufferException { 1005 return PARSER.parseFrom(data); 1006 } 1007 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( 1008 com.google.protobuf.ByteString data, 1009 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1010 throws com.google.protobuf.InvalidProtocolBufferException { 1011 return PARSER.parseFrom(data, extensionRegistry); 1012 } 1013 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom(byte[] data) 1014 throws com.google.protobuf.InvalidProtocolBufferException { 1015 return PARSER.parseFrom(data); 1016 } 1017 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( 1018 byte[] data, 1019 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1020 throws com.google.protobuf.InvalidProtocolBufferException { 1021 return PARSER.parseFrom(data, extensionRegistry); 1022 } 1023 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom(java.io.InputStream input) 1024 throws java.io.IOException { 1025 return PARSER.parseFrom(input); 1026 } 1027 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( 1028 java.io.InputStream input, 1029 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1030 throws java.io.IOException { 1031 return PARSER.parseFrom(input, extensionRegistry); 1032 } 1033 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseDelimitedFrom(java.io.InputStream input) 1034 throws java.io.IOException { 1035 return PARSER.parseDelimitedFrom(input); 1036 } 1037 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseDelimitedFrom( 1038 java.io.InputStream input, 1039 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1040 throws java.io.IOException { 1041 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1042 } 1043 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( 1044 com.google.protobuf.CodedInputStream input) 1045 throws java.io.IOException { 1046 return PARSER.parseFrom(input); 1047 } 1048 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( 1049 com.google.protobuf.CodedInputStream input, 1050 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1051 throws java.io.IOException { 1052 return PARSER.parseFrom(input, extensionRegistry); 1053 } 1054 1055 public static Builder newBuilder() { return Builder.create(); } 1056 public Builder newBuilderForType() { return newBuilder(); } 1057 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName prototype) { 1058 return newBuilder().mergeFrom(prototype); 1059 } 1060 public Builder toBuilder() { return newBuilder(this); } 1061 1062 /** 1063 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName} 1064 */ 1065 public static final class Builder extends 1066 com.google.protobuf.GeneratedMessageLite.Builder< 1067 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName, Builder> 1068 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedNameOrBuilder { 1069 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.newBuilder() 1070 private Builder() { 1071 maybeForceBuilderInitialization(); 1072 } 1073 1074 private void maybeForceBuilderInitialization() { 1075 } 1076 private static Builder create() { 1077 return new Builder(); 1078 } 1079 1080 public Builder clear() { 1081 super.clear(); 1082 parentQualifiedName_ = -1; 1083 bitField0_ = (bitField0_ & ~0x00000001); 1084 shortName_ = 0; 1085 bitField0_ = (bitField0_ & ~0x00000002); 1086 kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; 1087 bitField0_ = (bitField0_ & ~0x00000004); 1088 return this; 1089 } 1090 1091 public Builder clone() { 1092 return create().mergeFrom(buildPartial()); 1093 } 1094 1095 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getDefaultInstanceForType() { 1096 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.getDefaultInstance(); 1097 } 1098 1099 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName build() { 1100 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName result = buildPartial(); 1101 if (!result.isInitialized()) { 1102 throw newUninitializedMessageException(result); 1103 } 1104 return result; 1105 } 1106 1107 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName buildPartial() { 1108 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName(this); 1109 int from_bitField0_ = bitField0_; 1110 int to_bitField0_ = 0; 1111 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1112 to_bitField0_ |= 0x00000001; 1113 } 1114 result.parentQualifiedName_ = parentQualifiedName_; 1115 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 1116 to_bitField0_ |= 0x00000002; 1117 } 1118 result.shortName_ = shortName_; 1119 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 1120 to_bitField0_ |= 0x00000004; 1121 } 1122 result.kind_ = kind_; 1123 result.bitField0_ = to_bitField0_; 1124 return result; 1125 } 1126 1127 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName other) { 1128 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.getDefaultInstance()) return this; 1129 if (other.hasParentQualifiedName()) { 1130 setParentQualifiedName(other.getParentQualifiedName()); 1131 } 1132 if (other.hasShortName()) { 1133 setShortName(other.getShortName()); 1134 } 1135 if (other.hasKind()) { 1136 setKind(other.getKind()); 1137 } 1138 return this; 1139 } 1140 1141 public final boolean isInitialized() { 1142 if (!hasShortName()) { 1143 1144 return false; 1145 } 1146 return true; 1147 } 1148 1149 public Builder mergeFrom( 1150 com.google.protobuf.CodedInputStream input, 1151 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1152 throws java.io.IOException { 1153 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parsedMessage = null; 1154 try { 1155 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1156 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1157 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName) e.getUnfinishedMessage(); 1158 throw e; 1159 } finally { 1160 if (parsedMessage != null) { 1161 mergeFrom(parsedMessage); 1162 } 1163 } 1164 return this; 1165 } 1166 private int bitField0_; 1167 1168 // optional int32 parent_qualified_name = 1 [default = -1]; 1169 private int parentQualifiedName_ = -1; 1170 /** 1171 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 1172 */ 1173 public boolean hasParentQualifiedName() { 1174 return ((bitField0_ & 0x00000001) == 0x00000001); 1175 } 1176 /** 1177 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 1178 */ 1179 public int getParentQualifiedName() { 1180 return parentQualifiedName_; 1181 } 1182 /** 1183 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 1184 */ 1185 public Builder setParentQualifiedName(int value) { 1186 bitField0_ |= 0x00000001; 1187 parentQualifiedName_ = value; 1188 1189 return this; 1190 } 1191 /** 1192 * <code>optional int32 parent_qualified_name = 1 [default = -1];</code> 1193 */ 1194 public Builder clearParentQualifiedName() { 1195 bitField0_ = (bitField0_ & ~0x00000001); 1196 parentQualifiedName_ = -1; 1197 1198 return this; 1199 } 1200 1201 // required int32 short_name = 2; 1202 private int shortName_ ; 1203 /** 1204 * <code>required int32 short_name = 2;</code> 1205 */ 1206 public boolean hasShortName() { 1207 return ((bitField0_ & 0x00000002) == 0x00000002); 1208 } 1209 /** 1210 * <code>required int32 short_name = 2;</code> 1211 */ 1212 public int getShortName() { 1213 return shortName_; 1214 } 1215 /** 1216 * <code>required int32 short_name = 2;</code> 1217 */ 1218 public Builder setShortName(int value) { 1219 bitField0_ |= 0x00000002; 1220 shortName_ = value; 1221 1222 return this; 1223 } 1224 /** 1225 * <code>required int32 short_name = 2;</code> 1226 */ 1227 public Builder clearShortName() { 1228 bitField0_ = (bitField0_ & ~0x00000002); 1229 shortName_ = 0; 1230 1231 return this; 1232 } 1233 1234 // optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE]; 1235 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; 1236 /** 1237 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 1238 */ 1239 public boolean hasKind() { 1240 return ((bitField0_ & 0x00000004) == 0x00000004); 1241 } 1242 /** 1243 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 1244 */ 1245 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind() { 1246 return kind_; 1247 } 1248 /** 1249 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 1250 */ 1251 public Builder setKind(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind value) { 1252 if (value == null) { 1253 throw new NullPointerException(); 1254 } 1255 bitField0_ |= 0x00000004; 1256 kind_ = value; 1257 1258 return this; 1259 } 1260 /** 1261 * <code>optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];</code> 1262 */ 1263 public Builder clearKind() { 1264 bitField0_ = (bitField0_ & ~0x00000004); 1265 kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; 1266 1267 return this; 1268 } 1269 1270 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName) 1271 } 1272 1273 static { 1274 defaultInstance = new QualifiedName(true); 1275 defaultInstance.initFields(); 1276 } 1277 1278 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName) 1279 } 1280 1281 // repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1; 1282 public static final int QUALIFIED_NAME_FIELD_NUMBER = 1; 1283 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName> qualifiedName_; 1284 /** 1285 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1286 */ 1287 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName> getQualifiedNameList() { 1288 return qualifiedName_; 1289 } 1290 /** 1291 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1292 */ 1293 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedNameOrBuilder> 1294 getQualifiedNameOrBuilderList() { 1295 return qualifiedName_; 1296 } 1297 /** 1298 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1299 */ 1300 public int getQualifiedNameCount() { 1301 return qualifiedName_.size(); 1302 } 1303 /** 1304 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1305 */ 1306 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedName(int index) { 1307 return qualifiedName_.get(index); 1308 } 1309 /** 1310 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1311 */ 1312 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedNameOrBuilder getQualifiedNameOrBuilder( 1313 int index) { 1314 return qualifiedName_.get(index); 1315 } 1316 1317 private void initFields() { 1318 qualifiedName_ = java.util.Collections.emptyList(); 1319 } 1320 private byte memoizedIsInitialized = -1; 1321 public final boolean isInitialized() { 1322 byte isInitialized = memoizedIsInitialized; 1323 if (isInitialized != -1) return isInitialized == 1; 1324 1325 for (int i = 0; i < getQualifiedNameCount(); i++) { 1326 if (!getQualifiedName(i).isInitialized()) { 1327 memoizedIsInitialized = 0; 1328 return false; 1329 } 1330 } 1331 memoizedIsInitialized = 1; 1332 return true; 1333 } 1334 1335 public void writeTo(com.google.protobuf.CodedOutputStream output) 1336 throws java.io.IOException { 1337 getSerializedSize(); 1338 for (int i = 0; i < qualifiedName_.size(); i++) { 1339 output.writeMessage(1, qualifiedName_.get(i)); 1340 } 1341 } 1342 1343 private int memoizedSerializedSize = -1; 1344 public int getSerializedSize() { 1345 int size = memoizedSerializedSize; 1346 if (size != -1) return size; 1347 1348 size = 0; 1349 for (int i = 0; i < qualifiedName_.size(); i++) { 1350 size += com.google.protobuf.CodedOutputStream 1351 .computeMessageSize(1, qualifiedName_.get(i)); 1352 } 1353 memoizedSerializedSize = size; 1354 return size; 1355 } 1356 1357 private static final long serialVersionUID = 0L; 1358 @java.lang.Override 1359 protected java.lang.Object writeReplace() 1360 throws java.io.ObjectStreamException { 1361 return super.writeReplace(); 1362 } 1363 1364 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( 1365 com.google.protobuf.ByteString data) 1366 throws com.google.protobuf.InvalidProtocolBufferException { 1367 return PARSER.parseFrom(data); 1368 } 1369 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( 1370 com.google.protobuf.ByteString data, 1371 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1372 throws com.google.protobuf.InvalidProtocolBufferException { 1373 return PARSER.parseFrom(data, extensionRegistry); 1374 } 1375 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom(byte[] data) 1376 throws com.google.protobuf.InvalidProtocolBufferException { 1377 return PARSER.parseFrom(data); 1378 } 1379 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( 1380 byte[] data, 1381 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1382 throws com.google.protobuf.InvalidProtocolBufferException { 1383 return PARSER.parseFrom(data, extensionRegistry); 1384 } 1385 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom(java.io.InputStream input) 1386 throws java.io.IOException { 1387 return PARSER.parseFrom(input); 1388 } 1389 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( 1390 java.io.InputStream input, 1391 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1392 throws java.io.IOException { 1393 return PARSER.parseFrom(input, extensionRegistry); 1394 } 1395 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseDelimitedFrom(java.io.InputStream input) 1396 throws java.io.IOException { 1397 return PARSER.parseDelimitedFrom(input); 1398 } 1399 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseDelimitedFrom( 1400 java.io.InputStream input, 1401 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1402 throws java.io.IOException { 1403 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1404 } 1405 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( 1406 com.google.protobuf.CodedInputStream input) 1407 throws java.io.IOException { 1408 return PARSER.parseFrom(input); 1409 } 1410 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( 1411 com.google.protobuf.CodedInputStream input, 1412 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1413 throws java.io.IOException { 1414 return PARSER.parseFrom(input, extensionRegistry); 1415 } 1416 1417 public static Builder newBuilder() { return Builder.create(); } 1418 public Builder newBuilderForType() { return newBuilder(); } 1419 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable prototype) { 1420 return newBuilder().mergeFrom(prototype); 1421 } 1422 public Builder toBuilder() { return newBuilder(this); } 1423 1424 /** 1425 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.QualifiedNameTable} 1426 */ 1427 public static final class Builder extends 1428 com.google.protobuf.GeneratedMessageLite.Builder< 1429 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable, Builder> 1430 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTableOrBuilder { 1431 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.newBuilder() 1432 private Builder() { 1433 maybeForceBuilderInitialization(); 1434 } 1435 1436 private void maybeForceBuilderInitialization() { 1437 } 1438 private static Builder create() { 1439 return new Builder(); 1440 } 1441 1442 public Builder clear() { 1443 super.clear(); 1444 qualifiedName_ = java.util.Collections.emptyList(); 1445 bitField0_ = (bitField0_ & ~0x00000001); 1446 return this; 1447 } 1448 1449 public Builder clone() { 1450 return create().mergeFrom(buildPartial()); 1451 } 1452 1453 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable getDefaultInstanceForType() { 1454 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.getDefaultInstance(); 1455 } 1456 1457 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable build() { 1458 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable result = buildPartial(); 1459 if (!result.isInitialized()) { 1460 throw newUninitializedMessageException(result); 1461 } 1462 return result; 1463 } 1464 1465 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable buildPartial() { 1466 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable(this); 1467 int from_bitField0_ = bitField0_; 1468 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1469 qualifiedName_ = java.util.Collections.unmodifiableList(qualifiedName_); 1470 bitField0_ = (bitField0_ & ~0x00000001); 1471 } 1472 result.qualifiedName_ = qualifiedName_; 1473 return result; 1474 } 1475 1476 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable other) { 1477 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.getDefaultInstance()) return this; 1478 if (!other.qualifiedName_.isEmpty()) { 1479 if (qualifiedName_.isEmpty()) { 1480 qualifiedName_ = other.qualifiedName_; 1481 bitField0_ = (bitField0_ & ~0x00000001); 1482 } else { 1483 ensureQualifiedNameIsMutable(); 1484 qualifiedName_.addAll(other.qualifiedName_); 1485 } 1486 1487 } 1488 return this; 1489 } 1490 1491 public final boolean isInitialized() { 1492 for (int i = 0; i < getQualifiedNameCount(); i++) { 1493 if (!getQualifiedName(i).isInitialized()) { 1494 1495 return false; 1496 } 1497 } 1498 return true; 1499 } 1500 1501 public Builder mergeFrom( 1502 com.google.protobuf.CodedInputStream input, 1503 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1504 throws java.io.IOException { 1505 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parsedMessage = null; 1506 try { 1507 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1508 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1509 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable) e.getUnfinishedMessage(); 1510 throw e; 1511 } finally { 1512 if (parsedMessage != null) { 1513 mergeFrom(parsedMessage); 1514 } 1515 } 1516 return this; 1517 } 1518 private int bitField0_; 1519 1520 // repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1; 1521 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName> qualifiedName_ = 1522 java.util.Collections.emptyList(); 1523 private void ensureQualifiedNameIsMutable() { 1524 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 1525 qualifiedName_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName>(qualifiedName_); 1526 bitField0_ |= 0x00000001; 1527 } 1528 } 1529 1530 /** 1531 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1532 */ 1533 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName> getQualifiedNameList() { 1534 return java.util.Collections.unmodifiableList(qualifiedName_); 1535 } 1536 /** 1537 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1538 */ 1539 public int getQualifiedNameCount() { 1540 return qualifiedName_.size(); 1541 } 1542 /** 1543 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1544 */ 1545 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedName(int index) { 1546 return qualifiedName_.get(index); 1547 } 1548 /** 1549 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1550 */ 1551 public Builder setQualifiedName( 1552 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName value) { 1553 if (value == null) { 1554 throw new NullPointerException(); 1555 } 1556 ensureQualifiedNameIsMutable(); 1557 qualifiedName_.set(index, value); 1558 1559 return this; 1560 } 1561 /** 1562 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1563 */ 1564 public Builder setQualifiedName( 1565 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) { 1566 ensureQualifiedNameIsMutable(); 1567 qualifiedName_.set(index, builderForValue.build()); 1568 1569 return this; 1570 } 1571 /** 1572 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1573 */ 1574 public Builder addQualifiedName(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName value) { 1575 if (value == null) { 1576 throw new NullPointerException(); 1577 } 1578 ensureQualifiedNameIsMutable(); 1579 qualifiedName_.add(value); 1580 1581 return this; 1582 } 1583 /** 1584 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1585 */ 1586 public Builder addQualifiedName( 1587 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName value) { 1588 if (value == null) { 1589 throw new NullPointerException(); 1590 } 1591 ensureQualifiedNameIsMutable(); 1592 qualifiedName_.add(index, value); 1593 1594 return this; 1595 } 1596 /** 1597 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1598 */ 1599 public Builder addQualifiedName( 1600 org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) { 1601 ensureQualifiedNameIsMutable(); 1602 qualifiedName_.add(builderForValue.build()); 1603 1604 return this; 1605 } 1606 /** 1607 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1608 */ 1609 public Builder addQualifiedName( 1610 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) { 1611 ensureQualifiedNameIsMutable(); 1612 qualifiedName_.add(index, builderForValue.build()); 1613 1614 return this; 1615 } 1616 /** 1617 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1618 */ 1619 public Builder addAllQualifiedName( 1620 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName> values) { 1621 ensureQualifiedNameIsMutable(); 1622 super.addAll(values, qualifiedName_); 1623 1624 return this; 1625 } 1626 /** 1627 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1628 */ 1629 public Builder clearQualifiedName() { 1630 qualifiedName_ = java.util.Collections.emptyList(); 1631 bitField0_ = (bitField0_ & ~0x00000001); 1632 1633 return this; 1634 } 1635 /** 1636 * <code>repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualified_name = 1;</code> 1637 */ 1638 public Builder removeQualifiedName(int index) { 1639 ensureQualifiedNameIsMutable(); 1640 qualifiedName_.remove(index); 1641 1642 return this; 1643 } 1644 1645 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable) 1646 } 1647 1648 static { 1649 defaultInstance = new QualifiedNameTable(true); 1650 defaultInstance.initFields(); 1651 } 1652 1653 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable) 1654 } 1655 1656 public interface TypeOrBuilder 1657 extends com.google.protobuf.MessageLiteOrBuilder { 1658 1659 // required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1; 1660 /** 1661 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 1662 */ 1663 boolean hasConstructor(); 1664 /** 1665 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 1666 */ 1667 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getConstructor(); 1668 1669 // repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2; 1670 /** 1671 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 1672 */ 1673 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument> 1674 getArgumentList(); 1675 /** 1676 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 1677 */ 1678 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getArgument(int index); 1679 /** 1680 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 1681 */ 1682 int getArgumentCount(); 1683 1684 // optional bool nullable = 3 [default = false]; 1685 /** 1686 * <code>optional bool nullable = 3 [default = false];</code> 1687 */ 1688 boolean hasNullable(); 1689 /** 1690 * <code>optional bool nullable = 3 [default = false];</code> 1691 */ 1692 boolean getNullable(); 1693 } 1694 /** 1695 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Type} 1696 */ 1697 public static final class Type extends 1698 com.google.protobuf.GeneratedMessageLite 1699 implements TypeOrBuilder { 1700 // Use Type.newBuilder() to construct. 1701 private Type(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1702 super(builder); 1703 1704 } 1705 private Type(boolean noInit) {} 1706 1707 private static final Type defaultInstance; 1708 public static Type getDefaultInstance() { 1709 return defaultInstance; 1710 } 1711 1712 public Type getDefaultInstanceForType() { 1713 return defaultInstance; 1714 } 1715 1716 private Type( 1717 com.google.protobuf.CodedInputStream input, 1718 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1719 throws com.google.protobuf.InvalidProtocolBufferException { 1720 initFields(); 1721 int mutable_bitField0_ = 0; 1722 try { 1723 boolean done = false; 1724 while (!done) { 1725 int tag = input.readTag(); 1726 switch (tag) { 1727 case 0: 1728 done = true; 1729 break; 1730 default: { 1731 if (!parseUnknownField(input, 1732 extensionRegistry, tag)) { 1733 done = true; 1734 } 1735 break; 1736 } 1737 case 10: { 1738 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Builder subBuilder = null; 1739 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1740 subBuilder = constructor_.toBuilder(); 1741 } 1742 constructor_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.PARSER, extensionRegistry); 1743 if (subBuilder != null) { 1744 subBuilder.mergeFrom(constructor_); 1745 constructor_ = subBuilder.buildPartial(); 1746 } 1747 bitField0_ |= 0x00000001; 1748 break; 1749 } 1750 case 18: { 1751 if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 1752 argument_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument>(); 1753 mutable_bitField0_ |= 0x00000002; 1754 } 1755 argument_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.PARSER, extensionRegistry)); 1756 break; 1757 } 1758 case 24: { 1759 bitField0_ |= 0x00000002; 1760 nullable_ = input.readBool(); 1761 break; 1762 } 1763 } 1764 } 1765 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1766 throw e.setUnfinishedMessage(this); 1767 } catch (java.io.IOException e) { 1768 throw new com.google.protobuf.InvalidProtocolBufferException( 1769 e.getMessage()).setUnfinishedMessage(this); 1770 } finally { 1771 if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { 1772 argument_ = java.util.Collections.unmodifiableList(argument_); 1773 } 1774 makeExtensionsImmutable(); 1775 } 1776 } 1777 public static com.google.protobuf.Parser<Type> PARSER = 1778 new com.google.protobuf.AbstractParser<Type>() { 1779 public Type parsePartialFrom( 1780 com.google.protobuf.CodedInputStream input, 1781 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1782 throws com.google.protobuf.InvalidProtocolBufferException { 1783 return new Type(input, extensionRegistry); 1784 } 1785 }; 1786 1787 @java.lang.Override 1788 public com.google.protobuf.Parser<Type> getParserForType() { 1789 return PARSER; 1790 } 1791 1792 public interface ConstructorOrBuilder 1793 extends com.google.protobuf.MessageLiteOrBuilder { 1794 1795 // optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS]; 1796 /** 1797 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 1798 */ 1799 boolean hasKind(); 1800 /** 1801 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 1802 */ 1803 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind getKind(); 1804 1805 // required int32 id = 2; 1806 /** 1807 * <code>required int32 id = 2;</code> 1808 * 1809 * <pre> 1810 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 1811 * </pre> 1812 */ 1813 boolean hasId(); 1814 /** 1815 * <code>required int32 id = 2;</code> 1816 * 1817 * <pre> 1818 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 1819 * </pre> 1820 */ 1821 int getId(); 1822 } 1823 /** 1824 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Type.Constructor} 1825 */ 1826 public static final class Constructor extends 1827 com.google.protobuf.GeneratedMessageLite 1828 implements ConstructorOrBuilder { 1829 // Use Constructor.newBuilder() to construct. 1830 private Constructor(com.google.protobuf.GeneratedMessageLite.Builder builder) { 1831 super(builder); 1832 1833 } 1834 private Constructor(boolean noInit) {} 1835 1836 private static final Constructor defaultInstance; 1837 public static Constructor getDefaultInstance() { 1838 return defaultInstance; 1839 } 1840 1841 public Constructor getDefaultInstanceForType() { 1842 return defaultInstance; 1843 } 1844 1845 private Constructor( 1846 com.google.protobuf.CodedInputStream input, 1847 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1848 throws com.google.protobuf.InvalidProtocolBufferException { 1849 initFields(); 1850 int mutable_bitField0_ = 0; 1851 try { 1852 boolean done = false; 1853 while (!done) { 1854 int tag = input.readTag(); 1855 switch (tag) { 1856 case 0: 1857 done = true; 1858 break; 1859 default: { 1860 if (!parseUnknownField(input, 1861 extensionRegistry, tag)) { 1862 done = true; 1863 } 1864 break; 1865 } 1866 case 8: { 1867 int rawValue = input.readEnum(); 1868 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.valueOf(rawValue); 1869 if (value != null) { 1870 bitField0_ |= 0x00000001; 1871 kind_ = value; 1872 } 1873 break; 1874 } 1875 case 16: { 1876 bitField0_ |= 0x00000002; 1877 id_ = input.readInt32(); 1878 break; 1879 } 1880 } 1881 } 1882 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1883 throw e.setUnfinishedMessage(this); 1884 } catch (java.io.IOException e) { 1885 throw new com.google.protobuf.InvalidProtocolBufferException( 1886 e.getMessage()).setUnfinishedMessage(this); 1887 } finally { 1888 makeExtensionsImmutable(); 1889 } 1890 } 1891 public static com.google.protobuf.Parser<Constructor> PARSER = 1892 new com.google.protobuf.AbstractParser<Constructor>() { 1893 public Constructor parsePartialFrom( 1894 com.google.protobuf.CodedInputStream input, 1895 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1896 throws com.google.protobuf.InvalidProtocolBufferException { 1897 return new Constructor(input, extensionRegistry); 1898 } 1899 }; 1900 1901 @java.lang.Override 1902 public com.google.protobuf.Parser<Constructor> getParserForType() { 1903 return PARSER; 1904 } 1905 1906 /** 1907 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind} 1908 */ 1909 public enum Kind 1910 implements com.google.protobuf.Internal.EnumLite { 1911 /** 1912 * <code>CLASS = 0;</code> 1913 */ 1914 CLASS(0, 0), 1915 /** 1916 * <code>TYPE_PARAMETER = 1;</code> 1917 */ 1918 TYPE_PARAMETER(1, 1), 1919 ; 1920 1921 /** 1922 * <code>CLASS = 0;</code> 1923 */ 1924 public static final int CLASS_VALUE = 0; 1925 /** 1926 * <code>TYPE_PARAMETER = 1;</code> 1927 */ 1928 public static final int TYPE_PARAMETER_VALUE = 1; 1929 1930 1931 public final int getNumber() { return value; } 1932 1933 public static Kind valueOf(int value) { 1934 switch (value) { 1935 case 0: return CLASS; 1936 case 1: return TYPE_PARAMETER; 1937 default: return null; 1938 } 1939 } 1940 1941 public static com.google.protobuf.Internal.EnumLiteMap<Kind> 1942 internalGetValueMap() { 1943 return internalValueMap; 1944 } 1945 private static com.google.protobuf.Internal.EnumLiteMap<Kind> 1946 internalValueMap = 1947 new com.google.protobuf.Internal.EnumLiteMap<Kind>() { 1948 public Kind findValueByNumber(int number) { 1949 return Kind.valueOf(number); 1950 } 1951 }; 1952 1953 private final int value; 1954 1955 private Kind(int index, int value) { 1956 this.value = value; 1957 } 1958 1959 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind) 1960 } 1961 1962 private int bitField0_; 1963 // optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS]; 1964 public static final int KIND_FIELD_NUMBER = 1; 1965 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind kind_; 1966 /** 1967 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 1968 */ 1969 public boolean hasKind() { 1970 return ((bitField0_ & 0x00000001) == 0x00000001); 1971 } 1972 /** 1973 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 1974 */ 1975 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind getKind() { 1976 return kind_; 1977 } 1978 1979 // required int32 id = 2; 1980 public static final int ID_FIELD_NUMBER = 2; 1981 private int id_; 1982 /** 1983 * <code>required int32 id = 2;</code> 1984 * 1985 * <pre> 1986 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 1987 * </pre> 1988 */ 1989 public boolean hasId() { 1990 return ((bitField0_ & 0x00000002) == 0x00000002); 1991 } 1992 /** 1993 * <code>required int32 id = 2;</code> 1994 * 1995 * <pre> 1996 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 1997 * </pre> 1998 */ 1999 public int getId() { 2000 return id_; 2001 } 2002 2003 private void initFields() { 2004 kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; 2005 id_ = 0; 2006 } 2007 private byte memoizedIsInitialized = -1; 2008 public final boolean isInitialized() { 2009 byte isInitialized = memoizedIsInitialized; 2010 if (isInitialized != -1) return isInitialized == 1; 2011 2012 if (!hasId()) { 2013 memoizedIsInitialized = 0; 2014 return false; 2015 } 2016 memoizedIsInitialized = 1; 2017 return true; 2018 } 2019 2020 public void writeTo(com.google.protobuf.CodedOutputStream output) 2021 throws java.io.IOException { 2022 getSerializedSize(); 2023 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2024 output.writeEnum(1, kind_.getNumber()); 2025 } 2026 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2027 output.writeInt32(2, id_); 2028 } 2029 } 2030 2031 private int memoizedSerializedSize = -1; 2032 public int getSerializedSize() { 2033 int size = memoizedSerializedSize; 2034 if (size != -1) return size; 2035 2036 size = 0; 2037 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2038 size += com.google.protobuf.CodedOutputStream 2039 .computeEnumSize(1, kind_.getNumber()); 2040 } 2041 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2042 size += com.google.protobuf.CodedOutputStream 2043 .computeInt32Size(2, id_); 2044 } 2045 memoizedSerializedSize = size; 2046 return size; 2047 } 2048 2049 private static final long serialVersionUID = 0L; 2050 @java.lang.Override 2051 protected java.lang.Object writeReplace() 2052 throws java.io.ObjectStreamException { 2053 return super.writeReplace(); 2054 } 2055 2056 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( 2057 com.google.protobuf.ByteString data) 2058 throws com.google.protobuf.InvalidProtocolBufferException { 2059 return PARSER.parseFrom(data); 2060 } 2061 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( 2062 com.google.protobuf.ByteString data, 2063 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2064 throws com.google.protobuf.InvalidProtocolBufferException { 2065 return PARSER.parseFrom(data, extensionRegistry); 2066 } 2067 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom(byte[] data) 2068 throws com.google.protobuf.InvalidProtocolBufferException { 2069 return PARSER.parseFrom(data); 2070 } 2071 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( 2072 byte[] data, 2073 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2074 throws com.google.protobuf.InvalidProtocolBufferException { 2075 return PARSER.parseFrom(data, extensionRegistry); 2076 } 2077 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom(java.io.InputStream input) 2078 throws java.io.IOException { 2079 return PARSER.parseFrom(input); 2080 } 2081 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( 2082 java.io.InputStream input, 2083 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2084 throws java.io.IOException { 2085 return PARSER.parseFrom(input, extensionRegistry); 2086 } 2087 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseDelimitedFrom(java.io.InputStream input) 2088 throws java.io.IOException { 2089 return PARSER.parseDelimitedFrom(input); 2090 } 2091 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseDelimitedFrom( 2092 java.io.InputStream input, 2093 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2094 throws java.io.IOException { 2095 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2096 } 2097 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( 2098 com.google.protobuf.CodedInputStream input) 2099 throws java.io.IOException { 2100 return PARSER.parseFrom(input); 2101 } 2102 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( 2103 com.google.protobuf.CodedInputStream input, 2104 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2105 throws java.io.IOException { 2106 return PARSER.parseFrom(input, extensionRegistry); 2107 } 2108 2109 public static Builder newBuilder() { return Builder.create(); } 2110 public Builder newBuilderForType() { return newBuilder(); } 2111 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor prototype) { 2112 return newBuilder().mergeFrom(prototype); 2113 } 2114 public Builder toBuilder() { return newBuilder(this); } 2115 2116 /** 2117 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Type.Constructor} 2118 */ 2119 public static final class Builder extends 2120 com.google.protobuf.GeneratedMessageLite.Builder< 2121 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor, Builder> 2122 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ConstructorOrBuilder { 2123 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.newBuilder() 2124 private Builder() { 2125 maybeForceBuilderInitialization(); 2126 } 2127 2128 private void maybeForceBuilderInitialization() { 2129 } 2130 private static Builder create() { 2131 return new Builder(); 2132 } 2133 2134 public Builder clear() { 2135 super.clear(); 2136 kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; 2137 bitField0_ = (bitField0_ & ~0x00000001); 2138 id_ = 0; 2139 bitField0_ = (bitField0_ & ~0x00000002); 2140 return this; 2141 } 2142 2143 public Builder clone() { 2144 return create().mergeFrom(buildPartial()); 2145 } 2146 2147 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getDefaultInstanceForType() { 2148 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); 2149 } 2150 2151 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor build() { 2152 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor result = buildPartial(); 2153 if (!result.isInitialized()) { 2154 throw newUninitializedMessageException(result); 2155 } 2156 return result; 2157 } 2158 2159 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor buildPartial() { 2160 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor(this); 2161 int from_bitField0_ = bitField0_; 2162 int to_bitField0_ = 0; 2163 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2164 to_bitField0_ |= 0x00000001; 2165 } 2166 result.kind_ = kind_; 2167 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2168 to_bitField0_ |= 0x00000002; 2169 } 2170 result.id_ = id_; 2171 result.bitField0_ = to_bitField0_; 2172 return result; 2173 } 2174 2175 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor other) { 2176 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance()) return this; 2177 if (other.hasKind()) { 2178 setKind(other.getKind()); 2179 } 2180 if (other.hasId()) { 2181 setId(other.getId()); 2182 } 2183 return this; 2184 } 2185 2186 public final boolean isInitialized() { 2187 if (!hasId()) { 2188 2189 return false; 2190 } 2191 return true; 2192 } 2193 2194 public Builder mergeFrom( 2195 com.google.protobuf.CodedInputStream input, 2196 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2197 throws java.io.IOException { 2198 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parsedMessage = null; 2199 try { 2200 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2201 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2202 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor) e.getUnfinishedMessage(); 2203 throw e; 2204 } finally { 2205 if (parsedMessage != null) { 2206 mergeFrom(parsedMessage); 2207 } 2208 } 2209 return this; 2210 } 2211 private int bitField0_; 2212 2213 // optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS]; 2214 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; 2215 /** 2216 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 2217 */ 2218 public boolean hasKind() { 2219 return ((bitField0_ & 0x00000001) == 0x00000001); 2220 } 2221 /** 2222 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 2223 */ 2224 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind getKind() { 2225 return kind_; 2226 } 2227 /** 2228 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 2229 */ 2230 public Builder setKind(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind value) { 2231 if (value == null) { 2232 throw new NullPointerException(); 2233 } 2234 bitField0_ |= 0x00000001; 2235 kind_ = value; 2236 2237 return this; 2238 } 2239 /** 2240 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS];</code> 2241 */ 2242 public Builder clearKind() { 2243 bitField0_ = (bitField0_ & ~0x00000001); 2244 kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; 2245 2246 return this; 2247 } 2248 2249 // required int32 id = 2; 2250 private int id_ ; 2251 /** 2252 * <code>required int32 id = 2;</code> 2253 * 2254 * <pre> 2255 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 2256 * </pre> 2257 */ 2258 public boolean hasId() { 2259 return ((bitField0_ & 0x00000002) == 0x00000002); 2260 } 2261 /** 2262 * <code>required int32 id = 2;</code> 2263 * 2264 * <pre> 2265 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 2266 * </pre> 2267 */ 2268 public int getId() { 2269 return id_; 2270 } 2271 /** 2272 * <code>required int32 id = 2;</code> 2273 * 2274 * <pre> 2275 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 2276 * </pre> 2277 */ 2278 public Builder setId(int value) { 2279 bitField0_ |= 0x00000002; 2280 id_ = value; 2281 2282 return this; 2283 } 2284 /** 2285 * <code>required int32 id = 2;</code> 2286 * 2287 * <pre> 2288 * CLASS - fqName id, TYPE_PARAMETER - type parameter id 2289 * </pre> 2290 */ 2291 public Builder clearId() { 2292 bitField0_ = (bitField0_ & ~0x00000002); 2293 id_ = 0; 2294 2295 return this; 2296 } 2297 2298 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Type.Constructor) 2299 } 2300 2301 static { 2302 defaultInstance = new Constructor(true); 2303 defaultInstance.initFields(); 2304 } 2305 2306 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Type.Constructor) 2307 } 2308 2309 public interface ArgumentOrBuilder 2310 extends com.google.protobuf.MessageLiteOrBuilder { 2311 2312 // optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV]; 2313 /** 2314 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2315 */ 2316 boolean hasProjection(); 2317 /** 2318 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2319 */ 2320 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection getProjection(); 2321 2322 // required .org.jetbrains.jet.descriptors.serialization.Type type = 2; 2323 /** 2324 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2325 */ 2326 boolean hasType(); 2327 /** 2328 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2329 */ 2330 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType(); 2331 } 2332 /** 2333 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Type.Argument} 2334 */ 2335 public static final class Argument extends 2336 com.google.protobuf.GeneratedMessageLite 2337 implements ArgumentOrBuilder { 2338 // Use Argument.newBuilder() to construct. 2339 private Argument(com.google.protobuf.GeneratedMessageLite.Builder builder) { 2340 super(builder); 2341 2342 } 2343 private Argument(boolean noInit) {} 2344 2345 private static final Argument defaultInstance; 2346 public static Argument getDefaultInstance() { 2347 return defaultInstance; 2348 } 2349 2350 public Argument getDefaultInstanceForType() { 2351 return defaultInstance; 2352 } 2353 2354 private Argument( 2355 com.google.protobuf.CodedInputStream input, 2356 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2357 throws com.google.protobuf.InvalidProtocolBufferException { 2358 initFields(); 2359 int mutable_bitField0_ = 0; 2360 try { 2361 boolean done = false; 2362 while (!done) { 2363 int tag = input.readTag(); 2364 switch (tag) { 2365 case 0: 2366 done = true; 2367 break; 2368 default: { 2369 if (!parseUnknownField(input, 2370 extensionRegistry, tag)) { 2371 done = true; 2372 } 2373 break; 2374 } 2375 case 8: { 2376 int rawValue = input.readEnum(); 2377 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.valueOf(rawValue); 2378 if (value != null) { 2379 bitField0_ |= 0x00000001; 2380 projection_ = value; 2381 } 2382 break; 2383 } 2384 case 18: { 2385 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = null; 2386 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2387 subBuilder = type_.toBuilder(); 2388 } 2389 type_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry); 2390 if (subBuilder != null) { 2391 subBuilder.mergeFrom(type_); 2392 type_ = subBuilder.buildPartial(); 2393 } 2394 bitField0_ |= 0x00000002; 2395 break; 2396 } 2397 } 2398 } 2399 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2400 throw e.setUnfinishedMessage(this); 2401 } catch (java.io.IOException e) { 2402 throw new com.google.protobuf.InvalidProtocolBufferException( 2403 e.getMessage()).setUnfinishedMessage(this); 2404 } finally { 2405 makeExtensionsImmutable(); 2406 } 2407 } 2408 public static com.google.protobuf.Parser<Argument> PARSER = 2409 new com.google.protobuf.AbstractParser<Argument>() { 2410 public Argument parsePartialFrom( 2411 com.google.protobuf.CodedInputStream input, 2412 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2413 throws com.google.protobuf.InvalidProtocolBufferException { 2414 return new Argument(input, extensionRegistry); 2415 } 2416 }; 2417 2418 @java.lang.Override 2419 public com.google.protobuf.Parser<Argument> getParserForType() { 2420 return PARSER; 2421 } 2422 2423 /** 2424 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection} 2425 */ 2426 public enum Projection 2427 implements com.google.protobuf.Internal.EnumLite { 2428 /** 2429 * <code>IN = 0;</code> 2430 */ 2431 IN(0, 0), 2432 /** 2433 * <code>OUT = 1;</code> 2434 */ 2435 OUT(1, 1), 2436 /** 2437 * <code>INV = 2;</code> 2438 */ 2439 INV(2, 2), 2440 ; 2441 2442 /** 2443 * <code>IN = 0;</code> 2444 */ 2445 public static final int IN_VALUE = 0; 2446 /** 2447 * <code>OUT = 1;</code> 2448 */ 2449 public static final int OUT_VALUE = 1; 2450 /** 2451 * <code>INV = 2;</code> 2452 */ 2453 public static final int INV_VALUE = 2; 2454 2455 2456 public final int getNumber() { return value; } 2457 2458 public static Projection valueOf(int value) { 2459 switch (value) { 2460 case 0: return IN; 2461 case 1: return OUT; 2462 case 2: return INV; 2463 default: return null; 2464 } 2465 } 2466 2467 public static com.google.protobuf.Internal.EnumLiteMap<Projection> 2468 internalGetValueMap() { 2469 return internalValueMap; 2470 } 2471 private static com.google.protobuf.Internal.EnumLiteMap<Projection> 2472 internalValueMap = 2473 new com.google.protobuf.Internal.EnumLiteMap<Projection>() { 2474 public Projection findValueByNumber(int number) { 2475 return Projection.valueOf(number); 2476 } 2477 }; 2478 2479 private final int value; 2480 2481 private Projection(int index, int value) { 2482 this.value = value; 2483 } 2484 2485 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection) 2486 } 2487 2488 private int bitField0_; 2489 // optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV]; 2490 public static final int PROJECTION_FIELD_NUMBER = 1; 2491 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection projection_; 2492 /** 2493 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2494 */ 2495 public boolean hasProjection() { 2496 return ((bitField0_ & 0x00000001) == 0x00000001); 2497 } 2498 /** 2499 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2500 */ 2501 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection getProjection() { 2502 return projection_; 2503 } 2504 2505 // required .org.jetbrains.jet.descriptors.serialization.Type type = 2; 2506 public static final int TYPE_FIELD_NUMBER = 2; 2507 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_; 2508 /** 2509 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2510 */ 2511 public boolean hasType() { 2512 return ((bitField0_ & 0x00000002) == 0x00000002); 2513 } 2514 /** 2515 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2516 */ 2517 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { 2518 return type_; 2519 } 2520 2521 private void initFields() { 2522 projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; 2523 type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 2524 } 2525 private byte memoizedIsInitialized = -1; 2526 public final boolean isInitialized() { 2527 byte isInitialized = memoizedIsInitialized; 2528 if (isInitialized != -1) return isInitialized == 1; 2529 2530 if (!hasType()) { 2531 memoizedIsInitialized = 0; 2532 return false; 2533 } 2534 if (!getType().isInitialized()) { 2535 memoizedIsInitialized = 0; 2536 return false; 2537 } 2538 memoizedIsInitialized = 1; 2539 return true; 2540 } 2541 2542 public void writeTo(com.google.protobuf.CodedOutputStream output) 2543 throws java.io.IOException { 2544 getSerializedSize(); 2545 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2546 output.writeEnum(1, projection_.getNumber()); 2547 } 2548 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2549 output.writeMessage(2, type_); 2550 } 2551 } 2552 2553 private int memoizedSerializedSize = -1; 2554 public int getSerializedSize() { 2555 int size = memoizedSerializedSize; 2556 if (size != -1) return size; 2557 2558 size = 0; 2559 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2560 size += com.google.protobuf.CodedOutputStream 2561 .computeEnumSize(1, projection_.getNumber()); 2562 } 2563 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2564 size += com.google.protobuf.CodedOutputStream 2565 .computeMessageSize(2, type_); 2566 } 2567 memoizedSerializedSize = size; 2568 return size; 2569 } 2570 2571 private static final long serialVersionUID = 0L; 2572 @java.lang.Override 2573 protected java.lang.Object writeReplace() 2574 throws java.io.ObjectStreamException { 2575 return super.writeReplace(); 2576 } 2577 2578 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( 2579 com.google.protobuf.ByteString data) 2580 throws com.google.protobuf.InvalidProtocolBufferException { 2581 return PARSER.parseFrom(data); 2582 } 2583 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( 2584 com.google.protobuf.ByteString data, 2585 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2586 throws com.google.protobuf.InvalidProtocolBufferException { 2587 return PARSER.parseFrom(data, extensionRegistry); 2588 } 2589 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom(byte[] data) 2590 throws com.google.protobuf.InvalidProtocolBufferException { 2591 return PARSER.parseFrom(data); 2592 } 2593 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( 2594 byte[] data, 2595 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2596 throws com.google.protobuf.InvalidProtocolBufferException { 2597 return PARSER.parseFrom(data, extensionRegistry); 2598 } 2599 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom(java.io.InputStream input) 2600 throws java.io.IOException { 2601 return PARSER.parseFrom(input); 2602 } 2603 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( 2604 java.io.InputStream input, 2605 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2606 throws java.io.IOException { 2607 return PARSER.parseFrom(input, extensionRegistry); 2608 } 2609 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseDelimitedFrom(java.io.InputStream input) 2610 throws java.io.IOException { 2611 return PARSER.parseDelimitedFrom(input); 2612 } 2613 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseDelimitedFrom( 2614 java.io.InputStream input, 2615 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2616 throws java.io.IOException { 2617 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2618 } 2619 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( 2620 com.google.protobuf.CodedInputStream input) 2621 throws java.io.IOException { 2622 return PARSER.parseFrom(input); 2623 } 2624 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( 2625 com.google.protobuf.CodedInputStream input, 2626 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2627 throws java.io.IOException { 2628 return PARSER.parseFrom(input, extensionRegistry); 2629 } 2630 2631 public static Builder newBuilder() { return Builder.create(); } 2632 public Builder newBuilderForType() { return newBuilder(); } 2633 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument prototype) { 2634 return newBuilder().mergeFrom(prototype); 2635 } 2636 public Builder toBuilder() { return newBuilder(this); } 2637 2638 /** 2639 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Type.Argument} 2640 */ 2641 public static final class Builder extends 2642 com.google.protobuf.GeneratedMessageLite.Builder< 2643 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument, Builder> 2644 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ArgumentOrBuilder { 2645 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.newBuilder() 2646 private Builder() { 2647 maybeForceBuilderInitialization(); 2648 } 2649 2650 private void maybeForceBuilderInitialization() { 2651 } 2652 private static Builder create() { 2653 return new Builder(); 2654 } 2655 2656 public Builder clear() { 2657 super.clear(); 2658 projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; 2659 bitField0_ = (bitField0_ & ~0x00000001); 2660 type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 2661 bitField0_ = (bitField0_ & ~0x00000002); 2662 return this; 2663 } 2664 2665 public Builder clone() { 2666 return create().mergeFrom(buildPartial()); 2667 } 2668 2669 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getDefaultInstanceForType() { 2670 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.getDefaultInstance(); 2671 } 2672 2673 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument build() { 2674 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument result = buildPartial(); 2675 if (!result.isInitialized()) { 2676 throw newUninitializedMessageException(result); 2677 } 2678 return result; 2679 } 2680 2681 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument buildPartial() { 2682 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument(this); 2683 int from_bitField0_ = bitField0_; 2684 int to_bitField0_ = 0; 2685 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2686 to_bitField0_ |= 0x00000001; 2687 } 2688 result.projection_ = projection_; 2689 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 2690 to_bitField0_ |= 0x00000002; 2691 } 2692 result.type_ = type_; 2693 result.bitField0_ = to_bitField0_; 2694 return result; 2695 } 2696 2697 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument other) { 2698 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.getDefaultInstance()) return this; 2699 if (other.hasProjection()) { 2700 setProjection(other.getProjection()); 2701 } 2702 if (other.hasType()) { 2703 mergeType(other.getType()); 2704 } 2705 return this; 2706 } 2707 2708 public final boolean isInitialized() { 2709 if (!hasType()) { 2710 2711 return false; 2712 } 2713 if (!getType().isInitialized()) { 2714 2715 return false; 2716 } 2717 return true; 2718 } 2719 2720 public Builder mergeFrom( 2721 com.google.protobuf.CodedInputStream input, 2722 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2723 throws java.io.IOException { 2724 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parsedMessage = null; 2725 try { 2726 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2727 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2728 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument) e.getUnfinishedMessage(); 2729 throw e; 2730 } finally { 2731 if (parsedMessage != null) { 2732 mergeFrom(parsedMessage); 2733 } 2734 } 2735 return this; 2736 } 2737 private int bitField0_; 2738 2739 // optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV]; 2740 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; 2741 /** 2742 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2743 */ 2744 public boolean hasProjection() { 2745 return ((bitField0_ & 0x00000001) == 0x00000001); 2746 } 2747 /** 2748 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2749 */ 2750 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection getProjection() { 2751 return projection_; 2752 } 2753 /** 2754 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2755 */ 2756 public Builder setProjection(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection value) { 2757 if (value == null) { 2758 throw new NullPointerException(); 2759 } 2760 bitField0_ |= 0x00000001; 2761 projection_ = value; 2762 2763 return this; 2764 } 2765 /** 2766 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV];</code> 2767 */ 2768 public Builder clearProjection() { 2769 bitField0_ = (bitField0_ & ~0x00000001); 2770 projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; 2771 2772 return this; 2773 } 2774 2775 // required .org.jetbrains.jet.descriptors.serialization.Type type = 2; 2776 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 2777 /** 2778 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2779 */ 2780 public boolean hasType() { 2781 return ((bitField0_ & 0x00000002) == 0x00000002); 2782 } 2783 /** 2784 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2785 */ 2786 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { 2787 return type_; 2788 } 2789 /** 2790 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2791 */ 2792 public Builder setType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 2793 if (value == null) { 2794 throw new NullPointerException(); 2795 } 2796 type_ = value; 2797 2798 bitField0_ |= 0x00000002; 2799 return this; 2800 } 2801 /** 2802 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2803 */ 2804 public Builder setType( 2805 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 2806 type_ = builderForValue.build(); 2807 2808 bitField0_ |= 0x00000002; 2809 return this; 2810 } 2811 /** 2812 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2813 */ 2814 public Builder mergeType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 2815 if (((bitField0_ & 0x00000002) == 0x00000002) && 2816 type_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { 2817 type_ = 2818 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(type_).mergeFrom(value).buildPartial(); 2819 } else { 2820 type_ = value; 2821 } 2822 2823 bitField0_ |= 0x00000002; 2824 return this; 2825 } 2826 /** 2827 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 2;</code> 2828 */ 2829 public Builder clearType() { 2830 type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 2831 2832 bitField0_ = (bitField0_ & ~0x00000002); 2833 return this; 2834 } 2835 2836 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Type.Argument) 2837 } 2838 2839 static { 2840 defaultInstance = new Argument(true); 2841 defaultInstance.initFields(); 2842 } 2843 2844 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Type.Argument) 2845 } 2846 2847 private int bitField0_; 2848 // required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1; 2849 public static final int CONSTRUCTOR_FIELD_NUMBER = 1; 2850 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor constructor_; 2851 /** 2852 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 2853 */ 2854 public boolean hasConstructor() { 2855 return ((bitField0_ & 0x00000001) == 0x00000001); 2856 } 2857 /** 2858 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 2859 */ 2860 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getConstructor() { 2861 return constructor_; 2862 } 2863 2864 // repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2; 2865 public static final int ARGUMENT_FIELD_NUMBER = 2; 2866 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument> argument_; 2867 /** 2868 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 2869 */ 2870 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument> getArgumentList() { 2871 return argument_; 2872 } 2873 /** 2874 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 2875 */ 2876 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ArgumentOrBuilder> 2877 getArgumentOrBuilderList() { 2878 return argument_; 2879 } 2880 /** 2881 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 2882 */ 2883 public int getArgumentCount() { 2884 return argument_.size(); 2885 } 2886 /** 2887 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 2888 */ 2889 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getArgument(int index) { 2890 return argument_.get(index); 2891 } 2892 /** 2893 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 2894 */ 2895 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ArgumentOrBuilder getArgumentOrBuilder( 2896 int index) { 2897 return argument_.get(index); 2898 } 2899 2900 // optional bool nullable = 3 [default = false]; 2901 public static final int NULLABLE_FIELD_NUMBER = 3; 2902 private boolean nullable_; 2903 /** 2904 * <code>optional bool nullable = 3 [default = false];</code> 2905 */ 2906 public boolean hasNullable() { 2907 return ((bitField0_ & 0x00000002) == 0x00000002); 2908 } 2909 /** 2910 * <code>optional bool nullable = 3 [default = false];</code> 2911 */ 2912 public boolean getNullable() { 2913 return nullable_; 2914 } 2915 2916 private void initFields() { 2917 constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); 2918 argument_ = java.util.Collections.emptyList(); 2919 nullable_ = false; 2920 } 2921 private byte memoizedIsInitialized = -1; 2922 public final boolean isInitialized() { 2923 byte isInitialized = memoizedIsInitialized; 2924 if (isInitialized != -1) return isInitialized == 1; 2925 2926 if (!hasConstructor()) { 2927 memoizedIsInitialized = 0; 2928 return false; 2929 } 2930 if (!getConstructor().isInitialized()) { 2931 memoizedIsInitialized = 0; 2932 return false; 2933 } 2934 for (int i = 0; i < getArgumentCount(); i++) { 2935 if (!getArgument(i).isInitialized()) { 2936 memoizedIsInitialized = 0; 2937 return false; 2938 } 2939 } 2940 memoizedIsInitialized = 1; 2941 return true; 2942 } 2943 2944 public void writeTo(com.google.protobuf.CodedOutputStream output) 2945 throws java.io.IOException { 2946 getSerializedSize(); 2947 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2948 output.writeMessage(1, constructor_); 2949 } 2950 for (int i = 0; i < argument_.size(); i++) { 2951 output.writeMessage(2, argument_.get(i)); 2952 } 2953 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2954 output.writeBool(3, nullable_); 2955 } 2956 } 2957 2958 private int memoizedSerializedSize = -1; 2959 public int getSerializedSize() { 2960 int size = memoizedSerializedSize; 2961 if (size != -1) return size; 2962 2963 size = 0; 2964 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2965 size += com.google.protobuf.CodedOutputStream 2966 .computeMessageSize(1, constructor_); 2967 } 2968 for (int i = 0; i < argument_.size(); i++) { 2969 size += com.google.protobuf.CodedOutputStream 2970 .computeMessageSize(2, argument_.get(i)); 2971 } 2972 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2973 size += com.google.protobuf.CodedOutputStream 2974 .computeBoolSize(3, nullable_); 2975 } 2976 memoizedSerializedSize = size; 2977 return size; 2978 } 2979 2980 private static final long serialVersionUID = 0L; 2981 @java.lang.Override 2982 protected java.lang.Object writeReplace() 2983 throws java.io.ObjectStreamException { 2984 return super.writeReplace(); 2985 } 2986 2987 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( 2988 com.google.protobuf.ByteString data) 2989 throws com.google.protobuf.InvalidProtocolBufferException { 2990 return PARSER.parseFrom(data); 2991 } 2992 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( 2993 com.google.protobuf.ByteString data, 2994 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2995 throws com.google.protobuf.InvalidProtocolBufferException { 2996 return PARSER.parseFrom(data, extensionRegistry); 2997 } 2998 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom(byte[] data) 2999 throws com.google.protobuf.InvalidProtocolBufferException { 3000 return PARSER.parseFrom(data); 3001 } 3002 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( 3003 byte[] data, 3004 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3005 throws com.google.protobuf.InvalidProtocolBufferException { 3006 return PARSER.parseFrom(data, extensionRegistry); 3007 } 3008 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom(java.io.InputStream input) 3009 throws java.io.IOException { 3010 return PARSER.parseFrom(input); 3011 } 3012 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( 3013 java.io.InputStream input, 3014 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3015 throws java.io.IOException { 3016 return PARSER.parseFrom(input, extensionRegistry); 3017 } 3018 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseDelimitedFrom(java.io.InputStream input) 3019 throws java.io.IOException { 3020 return PARSER.parseDelimitedFrom(input); 3021 } 3022 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseDelimitedFrom( 3023 java.io.InputStream input, 3024 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3025 throws java.io.IOException { 3026 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3027 } 3028 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( 3029 com.google.protobuf.CodedInputStream input) 3030 throws java.io.IOException { 3031 return PARSER.parseFrom(input); 3032 } 3033 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( 3034 com.google.protobuf.CodedInputStream input, 3035 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3036 throws java.io.IOException { 3037 return PARSER.parseFrom(input, extensionRegistry); 3038 } 3039 3040 public static Builder newBuilder() { return Builder.create(); } 3041 public Builder newBuilderForType() { return newBuilder(); } 3042 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type prototype) { 3043 return newBuilder().mergeFrom(prototype); 3044 } 3045 public Builder toBuilder() { return newBuilder(this); } 3046 3047 /** 3048 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Type} 3049 */ 3050 public static final class Builder extends 3051 com.google.protobuf.GeneratedMessageLite.Builder< 3052 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type, Builder> 3053 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder { 3054 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder() 3055 private Builder() { 3056 maybeForceBuilderInitialization(); 3057 } 3058 3059 private void maybeForceBuilderInitialization() { 3060 } 3061 private static Builder create() { 3062 return new Builder(); 3063 } 3064 3065 public Builder clear() { 3066 super.clear(); 3067 constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); 3068 bitField0_ = (bitField0_ & ~0x00000001); 3069 argument_ = java.util.Collections.emptyList(); 3070 bitField0_ = (bitField0_ & ~0x00000002); 3071 nullable_ = false; 3072 bitField0_ = (bitField0_ & ~0x00000004); 3073 return this; 3074 } 3075 3076 public Builder clone() { 3077 return create().mergeFrom(buildPartial()); 3078 } 3079 3080 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getDefaultInstanceForType() { 3081 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 3082 } 3083 3084 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type build() { 3085 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type result = buildPartial(); 3086 if (!result.isInitialized()) { 3087 throw newUninitializedMessageException(result); 3088 } 3089 return result; 3090 } 3091 3092 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type buildPartial() { 3093 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type(this); 3094 int from_bitField0_ = bitField0_; 3095 int to_bitField0_ = 0; 3096 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 3097 to_bitField0_ |= 0x00000001; 3098 } 3099 result.constructor_ = constructor_; 3100 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3101 argument_ = java.util.Collections.unmodifiableList(argument_); 3102 bitField0_ = (bitField0_ & ~0x00000002); 3103 } 3104 result.argument_ = argument_; 3105 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 3106 to_bitField0_ |= 0x00000002; 3107 } 3108 result.nullable_ = nullable_; 3109 result.bitField0_ = to_bitField0_; 3110 return result; 3111 } 3112 3113 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type other) { 3114 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) return this; 3115 if (other.hasConstructor()) { 3116 mergeConstructor(other.getConstructor()); 3117 } 3118 if (!other.argument_.isEmpty()) { 3119 if (argument_.isEmpty()) { 3120 argument_ = other.argument_; 3121 bitField0_ = (bitField0_ & ~0x00000002); 3122 } else { 3123 ensureArgumentIsMutable(); 3124 argument_.addAll(other.argument_); 3125 } 3126 3127 } 3128 if (other.hasNullable()) { 3129 setNullable(other.getNullable()); 3130 } 3131 return this; 3132 } 3133 3134 public final boolean isInitialized() { 3135 if (!hasConstructor()) { 3136 3137 return false; 3138 } 3139 if (!getConstructor().isInitialized()) { 3140 3141 return false; 3142 } 3143 for (int i = 0; i < getArgumentCount(); i++) { 3144 if (!getArgument(i).isInitialized()) { 3145 3146 return false; 3147 } 3148 } 3149 return true; 3150 } 3151 3152 public Builder mergeFrom( 3153 com.google.protobuf.CodedInputStream input, 3154 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3155 throws java.io.IOException { 3156 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parsedMessage = null; 3157 try { 3158 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3159 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3160 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type) e.getUnfinishedMessage(); 3161 throw e; 3162 } finally { 3163 if (parsedMessage != null) { 3164 mergeFrom(parsedMessage); 3165 } 3166 } 3167 return this; 3168 } 3169 private int bitField0_; 3170 3171 // required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1; 3172 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); 3173 /** 3174 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 3175 */ 3176 public boolean hasConstructor() { 3177 return ((bitField0_ & 0x00000001) == 0x00000001); 3178 } 3179 /** 3180 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 3181 */ 3182 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getConstructor() { 3183 return constructor_; 3184 } 3185 /** 3186 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 3187 */ 3188 public Builder setConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor value) { 3189 if (value == null) { 3190 throw new NullPointerException(); 3191 } 3192 constructor_ = value; 3193 3194 bitField0_ |= 0x00000001; 3195 return this; 3196 } 3197 /** 3198 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 3199 */ 3200 public Builder setConstructor( 3201 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Builder builderForValue) { 3202 constructor_ = builderForValue.build(); 3203 3204 bitField0_ |= 0x00000001; 3205 return this; 3206 } 3207 /** 3208 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 3209 */ 3210 public Builder mergeConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor value) { 3211 if (((bitField0_ & 0x00000001) == 0x00000001) && 3212 constructor_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance()) { 3213 constructor_ = 3214 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.newBuilder(constructor_).mergeFrom(value).buildPartial(); 3215 } else { 3216 constructor_ = value; 3217 } 3218 3219 bitField0_ |= 0x00000001; 3220 return this; 3221 } 3222 /** 3223 * <code>required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1;</code> 3224 */ 3225 public Builder clearConstructor() { 3226 constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); 3227 3228 bitField0_ = (bitField0_ & ~0x00000001); 3229 return this; 3230 } 3231 3232 // repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2; 3233 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument> argument_ = 3234 java.util.Collections.emptyList(); 3235 private void ensureArgumentIsMutable() { 3236 if (!((bitField0_ & 0x00000002) == 0x00000002)) { 3237 argument_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument>(argument_); 3238 bitField0_ |= 0x00000002; 3239 } 3240 } 3241 3242 /** 3243 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3244 */ 3245 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument> getArgumentList() { 3246 return java.util.Collections.unmodifiableList(argument_); 3247 } 3248 /** 3249 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3250 */ 3251 public int getArgumentCount() { 3252 return argument_.size(); 3253 } 3254 /** 3255 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3256 */ 3257 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getArgument(int index) { 3258 return argument_.get(index); 3259 } 3260 /** 3261 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3262 */ 3263 public Builder setArgument( 3264 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument value) { 3265 if (value == null) { 3266 throw new NullPointerException(); 3267 } 3268 ensureArgumentIsMutable(); 3269 argument_.set(index, value); 3270 3271 return this; 3272 } 3273 /** 3274 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3275 */ 3276 public Builder setArgument( 3277 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder builderForValue) { 3278 ensureArgumentIsMutable(); 3279 argument_.set(index, builderForValue.build()); 3280 3281 return this; 3282 } 3283 /** 3284 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3285 */ 3286 public Builder addArgument(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument value) { 3287 if (value == null) { 3288 throw new NullPointerException(); 3289 } 3290 ensureArgumentIsMutable(); 3291 argument_.add(value); 3292 3293 return this; 3294 } 3295 /** 3296 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3297 */ 3298 public Builder addArgument( 3299 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument value) { 3300 if (value == null) { 3301 throw new NullPointerException(); 3302 } 3303 ensureArgumentIsMutable(); 3304 argument_.add(index, value); 3305 3306 return this; 3307 } 3308 /** 3309 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3310 */ 3311 public Builder addArgument( 3312 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder builderForValue) { 3313 ensureArgumentIsMutable(); 3314 argument_.add(builderForValue.build()); 3315 3316 return this; 3317 } 3318 /** 3319 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3320 */ 3321 public Builder addArgument( 3322 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder builderForValue) { 3323 ensureArgumentIsMutable(); 3324 argument_.add(index, builderForValue.build()); 3325 3326 return this; 3327 } 3328 /** 3329 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3330 */ 3331 public Builder addAllArgument( 3332 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument> values) { 3333 ensureArgumentIsMutable(); 3334 super.addAll(values, argument_); 3335 3336 return this; 3337 } 3338 /** 3339 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3340 */ 3341 public Builder clearArgument() { 3342 argument_ = java.util.Collections.emptyList(); 3343 bitField0_ = (bitField0_ & ~0x00000002); 3344 3345 return this; 3346 } 3347 /** 3348 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument argument = 2;</code> 3349 */ 3350 public Builder removeArgument(int index) { 3351 ensureArgumentIsMutable(); 3352 argument_.remove(index); 3353 3354 return this; 3355 } 3356 3357 // optional bool nullable = 3 [default = false]; 3358 private boolean nullable_ ; 3359 /** 3360 * <code>optional bool nullable = 3 [default = false];</code> 3361 */ 3362 public boolean hasNullable() { 3363 return ((bitField0_ & 0x00000004) == 0x00000004); 3364 } 3365 /** 3366 * <code>optional bool nullable = 3 [default = false];</code> 3367 */ 3368 public boolean getNullable() { 3369 return nullable_; 3370 } 3371 /** 3372 * <code>optional bool nullable = 3 [default = false];</code> 3373 */ 3374 public Builder setNullable(boolean value) { 3375 bitField0_ |= 0x00000004; 3376 nullable_ = value; 3377 3378 return this; 3379 } 3380 /** 3381 * <code>optional bool nullable = 3 [default = false];</code> 3382 */ 3383 public Builder clearNullable() { 3384 bitField0_ = (bitField0_ & ~0x00000004); 3385 nullable_ = false; 3386 3387 return this; 3388 } 3389 3390 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Type) 3391 } 3392 3393 static { 3394 defaultInstance = new Type(true); 3395 defaultInstance.initFields(); 3396 } 3397 3398 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Type) 3399 } 3400 3401 public interface TypeParameterOrBuilder 3402 extends com.google.protobuf.MessageLiteOrBuilder { 3403 3404 // required int32 id = 1; 3405 /** 3406 * <code>required int32 id = 1;</code> 3407 */ 3408 boolean hasId(); 3409 /** 3410 * <code>required int32 id = 1;</code> 3411 */ 3412 int getId(); 3413 3414 // required int32 name = 2; 3415 /** 3416 * <code>required int32 name = 2;</code> 3417 */ 3418 boolean hasName(); 3419 /** 3420 * <code>required int32 name = 2;</code> 3421 */ 3422 int getName(); 3423 3424 // optional bool reified = 3 [default = false]; 3425 /** 3426 * <code>optional bool reified = 3 [default = false];</code> 3427 */ 3428 boolean hasReified(); 3429 /** 3430 * <code>optional bool reified = 3 [default = false];</code> 3431 */ 3432 boolean getReified(); 3433 3434 // optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV]; 3435 /** 3436 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 3437 */ 3438 boolean hasVariance(); 3439 /** 3440 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 3441 */ 3442 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance getVariance(); 3443 3444 // repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5; 3445 /** 3446 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3447 */ 3448 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> 3449 getUpperBoundList(); 3450 /** 3451 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3452 */ 3453 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getUpperBound(int index); 3454 /** 3455 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3456 */ 3457 int getUpperBoundCount(); 3458 } 3459 /** 3460 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.TypeParameter} 3461 */ 3462 public static final class TypeParameter extends 3463 com.google.protobuf.GeneratedMessageLite 3464 implements TypeParameterOrBuilder { 3465 // Use TypeParameter.newBuilder() to construct. 3466 private TypeParameter(com.google.protobuf.GeneratedMessageLite.Builder builder) { 3467 super(builder); 3468 3469 } 3470 private TypeParameter(boolean noInit) {} 3471 3472 private static final TypeParameter defaultInstance; 3473 public static TypeParameter getDefaultInstance() { 3474 return defaultInstance; 3475 } 3476 3477 public TypeParameter getDefaultInstanceForType() { 3478 return defaultInstance; 3479 } 3480 3481 private TypeParameter( 3482 com.google.protobuf.CodedInputStream input, 3483 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3484 throws com.google.protobuf.InvalidProtocolBufferException { 3485 initFields(); 3486 int mutable_bitField0_ = 0; 3487 try { 3488 boolean done = false; 3489 while (!done) { 3490 int tag = input.readTag(); 3491 switch (tag) { 3492 case 0: 3493 done = true; 3494 break; 3495 default: { 3496 if (!parseUnknownField(input, 3497 extensionRegistry, tag)) { 3498 done = true; 3499 } 3500 break; 3501 } 3502 case 8: { 3503 bitField0_ |= 0x00000001; 3504 id_ = input.readInt32(); 3505 break; 3506 } 3507 case 16: { 3508 bitField0_ |= 0x00000002; 3509 name_ = input.readInt32(); 3510 break; 3511 } 3512 case 24: { 3513 bitField0_ |= 0x00000004; 3514 reified_ = input.readBool(); 3515 break; 3516 } 3517 case 32: { 3518 int rawValue = input.readEnum(); 3519 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.valueOf(rawValue); 3520 if (value != null) { 3521 bitField0_ |= 0x00000008; 3522 variance_ = value; 3523 } 3524 break; 3525 } 3526 case 42: { 3527 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3528 upperBound_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type>(); 3529 mutable_bitField0_ |= 0x00000010; 3530 } 3531 upperBound_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry)); 3532 break; 3533 } 3534 } 3535 } 3536 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3537 throw e.setUnfinishedMessage(this); 3538 } catch (java.io.IOException e) { 3539 throw new com.google.protobuf.InvalidProtocolBufferException( 3540 e.getMessage()).setUnfinishedMessage(this); 3541 } finally { 3542 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 3543 upperBound_ = java.util.Collections.unmodifiableList(upperBound_); 3544 } 3545 makeExtensionsImmutable(); 3546 } 3547 } 3548 public static com.google.protobuf.Parser<TypeParameter> PARSER = 3549 new com.google.protobuf.AbstractParser<TypeParameter>() { 3550 public TypeParameter parsePartialFrom( 3551 com.google.protobuf.CodedInputStream input, 3552 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3553 throws com.google.protobuf.InvalidProtocolBufferException { 3554 return new TypeParameter(input, extensionRegistry); 3555 } 3556 }; 3557 3558 @java.lang.Override 3559 public com.google.protobuf.Parser<TypeParameter> getParserForType() { 3560 return PARSER; 3561 } 3562 3563 /** 3564 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance} 3565 */ 3566 public enum Variance 3567 implements com.google.protobuf.Internal.EnumLite { 3568 /** 3569 * <code>IN = 0;</code> 3570 */ 3571 IN(0, 0), 3572 /** 3573 * <code>OUT = 1;</code> 3574 */ 3575 OUT(1, 1), 3576 /** 3577 * <code>INV = 2;</code> 3578 */ 3579 INV(2, 2), 3580 ; 3581 3582 /** 3583 * <code>IN = 0;</code> 3584 */ 3585 public static final int IN_VALUE = 0; 3586 /** 3587 * <code>OUT = 1;</code> 3588 */ 3589 public static final int OUT_VALUE = 1; 3590 /** 3591 * <code>INV = 2;</code> 3592 */ 3593 public static final int INV_VALUE = 2; 3594 3595 3596 public final int getNumber() { return value; } 3597 3598 public static Variance valueOf(int value) { 3599 switch (value) { 3600 case 0: return IN; 3601 case 1: return OUT; 3602 case 2: return INV; 3603 default: return null; 3604 } 3605 } 3606 3607 public static com.google.protobuf.Internal.EnumLiteMap<Variance> 3608 internalGetValueMap() { 3609 return internalValueMap; 3610 } 3611 private static com.google.protobuf.Internal.EnumLiteMap<Variance> 3612 internalValueMap = 3613 new com.google.protobuf.Internal.EnumLiteMap<Variance>() { 3614 public Variance findValueByNumber(int number) { 3615 return Variance.valueOf(number); 3616 } 3617 }; 3618 3619 private final int value; 3620 3621 private Variance(int index, int value) { 3622 this.value = value; 3623 } 3624 3625 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance) 3626 } 3627 3628 private int bitField0_; 3629 // required int32 id = 1; 3630 public static final int ID_FIELD_NUMBER = 1; 3631 private int id_; 3632 /** 3633 * <code>required int32 id = 1;</code> 3634 */ 3635 public boolean hasId() { 3636 return ((bitField0_ & 0x00000001) == 0x00000001); 3637 } 3638 /** 3639 * <code>required int32 id = 1;</code> 3640 */ 3641 public int getId() { 3642 return id_; 3643 } 3644 3645 // required int32 name = 2; 3646 public static final int NAME_FIELD_NUMBER = 2; 3647 private int name_; 3648 /** 3649 * <code>required int32 name = 2;</code> 3650 */ 3651 public boolean hasName() { 3652 return ((bitField0_ & 0x00000002) == 0x00000002); 3653 } 3654 /** 3655 * <code>required int32 name = 2;</code> 3656 */ 3657 public int getName() { 3658 return name_; 3659 } 3660 3661 // optional bool reified = 3 [default = false]; 3662 public static final int REIFIED_FIELD_NUMBER = 3; 3663 private boolean reified_; 3664 /** 3665 * <code>optional bool reified = 3 [default = false];</code> 3666 */ 3667 public boolean hasReified() { 3668 return ((bitField0_ & 0x00000004) == 0x00000004); 3669 } 3670 /** 3671 * <code>optional bool reified = 3 [default = false];</code> 3672 */ 3673 public boolean getReified() { 3674 return reified_; 3675 } 3676 3677 // optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV]; 3678 public static final int VARIANCE_FIELD_NUMBER = 4; 3679 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance variance_; 3680 /** 3681 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 3682 */ 3683 public boolean hasVariance() { 3684 return ((bitField0_ & 0x00000008) == 0x00000008); 3685 } 3686 /** 3687 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 3688 */ 3689 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance getVariance() { 3690 return variance_; 3691 } 3692 3693 // repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5; 3694 public static final int UPPER_BOUND_FIELD_NUMBER = 5; 3695 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> upperBound_; 3696 /** 3697 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3698 */ 3699 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> getUpperBoundList() { 3700 return upperBound_; 3701 } 3702 /** 3703 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3704 */ 3705 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder> 3706 getUpperBoundOrBuilderList() { 3707 return upperBound_; 3708 } 3709 /** 3710 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3711 */ 3712 public int getUpperBoundCount() { 3713 return upperBound_.size(); 3714 } 3715 /** 3716 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3717 */ 3718 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getUpperBound(int index) { 3719 return upperBound_.get(index); 3720 } 3721 /** 3722 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 3723 */ 3724 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder getUpperBoundOrBuilder( 3725 int index) { 3726 return upperBound_.get(index); 3727 } 3728 3729 private void initFields() { 3730 id_ = 0; 3731 name_ = 0; 3732 reified_ = false; 3733 variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; 3734 upperBound_ = java.util.Collections.emptyList(); 3735 } 3736 private byte memoizedIsInitialized = -1; 3737 public final boolean isInitialized() { 3738 byte isInitialized = memoizedIsInitialized; 3739 if (isInitialized != -1) return isInitialized == 1; 3740 3741 if (!hasId()) { 3742 memoizedIsInitialized = 0; 3743 return false; 3744 } 3745 if (!hasName()) { 3746 memoizedIsInitialized = 0; 3747 return false; 3748 } 3749 for (int i = 0; i < getUpperBoundCount(); i++) { 3750 if (!getUpperBound(i).isInitialized()) { 3751 memoizedIsInitialized = 0; 3752 return false; 3753 } 3754 } 3755 memoizedIsInitialized = 1; 3756 return true; 3757 } 3758 3759 public void writeTo(com.google.protobuf.CodedOutputStream output) 3760 throws java.io.IOException { 3761 getSerializedSize(); 3762 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3763 output.writeInt32(1, id_); 3764 } 3765 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3766 output.writeInt32(2, name_); 3767 } 3768 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3769 output.writeBool(3, reified_); 3770 } 3771 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3772 output.writeEnum(4, variance_.getNumber()); 3773 } 3774 for (int i = 0; i < upperBound_.size(); i++) { 3775 output.writeMessage(5, upperBound_.get(i)); 3776 } 3777 } 3778 3779 private int memoizedSerializedSize = -1; 3780 public int getSerializedSize() { 3781 int size = memoizedSerializedSize; 3782 if (size != -1) return size; 3783 3784 size = 0; 3785 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3786 size += com.google.protobuf.CodedOutputStream 3787 .computeInt32Size(1, id_); 3788 } 3789 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3790 size += com.google.protobuf.CodedOutputStream 3791 .computeInt32Size(2, name_); 3792 } 3793 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3794 size += com.google.protobuf.CodedOutputStream 3795 .computeBoolSize(3, reified_); 3796 } 3797 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3798 size += com.google.protobuf.CodedOutputStream 3799 .computeEnumSize(4, variance_.getNumber()); 3800 } 3801 for (int i = 0; i < upperBound_.size(); i++) { 3802 size += com.google.protobuf.CodedOutputStream 3803 .computeMessageSize(5, upperBound_.get(i)); 3804 } 3805 memoizedSerializedSize = size; 3806 return size; 3807 } 3808 3809 private static final long serialVersionUID = 0L; 3810 @java.lang.Override 3811 protected java.lang.Object writeReplace() 3812 throws java.io.ObjectStreamException { 3813 return super.writeReplace(); 3814 } 3815 3816 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( 3817 com.google.protobuf.ByteString data) 3818 throws com.google.protobuf.InvalidProtocolBufferException { 3819 return PARSER.parseFrom(data); 3820 } 3821 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( 3822 com.google.protobuf.ByteString data, 3823 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3824 throws com.google.protobuf.InvalidProtocolBufferException { 3825 return PARSER.parseFrom(data, extensionRegistry); 3826 } 3827 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom(byte[] data) 3828 throws com.google.protobuf.InvalidProtocolBufferException { 3829 return PARSER.parseFrom(data); 3830 } 3831 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( 3832 byte[] data, 3833 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3834 throws com.google.protobuf.InvalidProtocolBufferException { 3835 return PARSER.parseFrom(data, extensionRegistry); 3836 } 3837 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom(java.io.InputStream input) 3838 throws java.io.IOException { 3839 return PARSER.parseFrom(input); 3840 } 3841 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( 3842 java.io.InputStream input, 3843 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3844 throws java.io.IOException { 3845 return PARSER.parseFrom(input, extensionRegistry); 3846 } 3847 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseDelimitedFrom(java.io.InputStream input) 3848 throws java.io.IOException { 3849 return PARSER.parseDelimitedFrom(input); 3850 } 3851 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseDelimitedFrom( 3852 java.io.InputStream input, 3853 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3854 throws java.io.IOException { 3855 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3856 } 3857 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( 3858 com.google.protobuf.CodedInputStream input) 3859 throws java.io.IOException { 3860 return PARSER.parseFrom(input); 3861 } 3862 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( 3863 com.google.protobuf.CodedInputStream input, 3864 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3865 throws java.io.IOException { 3866 return PARSER.parseFrom(input, extensionRegistry); 3867 } 3868 3869 public static Builder newBuilder() { return Builder.create(); } 3870 public Builder newBuilderForType() { return newBuilder(); } 3871 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter prototype) { 3872 return newBuilder().mergeFrom(prototype); 3873 } 3874 public Builder toBuilder() { return newBuilder(this); } 3875 3876 /** 3877 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.TypeParameter} 3878 */ 3879 public static final class Builder extends 3880 com.google.protobuf.GeneratedMessageLite.Builder< 3881 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter, Builder> 3882 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder { 3883 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.newBuilder() 3884 private Builder() { 3885 maybeForceBuilderInitialization(); 3886 } 3887 3888 private void maybeForceBuilderInitialization() { 3889 } 3890 private static Builder create() { 3891 return new Builder(); 3892 } 3893 3894 public Builder clear() { 3895 super.clear(); 3896 id_ = 0; 3897 bitField0_ = (bitField0_ & ~0x00000001); 3898 name_ = 0; 3899 bitField0_ = (bitField0_ & ~0x00000002); 3900 reified_ = false; 3901 bitField0_ = (bitField0_ & ~0x00000004); 3902 variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; 3903 bitField0_ = (bitField0_ & ~0x00000008); 3904 upperBound_ = java.util.Collections.emptyList(); 3905 bitField0_ = (bitField0_ & ~0x00000010); 3906 return this; 3907 } 3908 3909 public Builder clone() { 3910 return create().mergeFrom(buildPartial()); 3911 } 3912 3913 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getDefaultInstanceForType() { 3914 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.getDefaultInstance(); 3915 } 3916 3917 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter build() { 3918 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter result = buildPartial(); 3919 if (!result.isInitialized()) { 3920 throw newUninitializedMessageException(result); 3921 } 3922 return result; 3923 } 3924 3925 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter buildPartial() { 3926 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter(this); 3927 int from_bitField0_ = bitField0_; 3928 int to_bitField0_ = 0; 3929 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 3930 to_bitField0_ |= 0x00000001; 3931 } 3932 result.id_ = id_; 3933 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 3934 to_bitField0_ |= 0x00000002; 3935 } 3936 result.name_ = name_; 3937 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 3938 to_bitField0_ |= 0x00000004; 3939 } 3940 result.reified_ = reified_; 3941 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 3942 to_bitField0_ |= 0x00000008; 3943 } 3944 result.variance_ = variance_; 3945 if (((bitField0_ & 0x00000010) == 0x00000010)) { 3946 upperBound_ = java.util.Collections.unmodifiableList(upperBound_); 3947 bitField0_ = (bitField0_ & ~0x00000010); 3948 } 3949 result.upperBound_ = upperBound_; 3950 result.bitField0_ = to_bitField0_; 3951 return result; 3952 } 3953 3954 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter other) { 3955 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.getDefaultInstance()) return this; 3956 if (other.hasId()) { 3957 setId(other.getId()); 3958 } 3959 if (other.hasName()) { 3960 setName(other.getName()); 3961 } 3962 if (other.hasReified()) { 3963 setReified(other.getReified()); 3964 } 3965 if (other.hasVariance()) { 3966 setVariance(other.getVariance()); 3967 } 3968 if (!other.upperBound_.isEmpty()) { 3969 if (upperBound_.isEmpty()) { 3970 upperBound_ = other.upperBound_; 3971 bitField0_ = (bitField0_ & ~0x00000010); 3972 } else { 3973 ensureUpperBoundIsMutable(); 3974 upperBound_.addAll(other.upperBound_); 3975 } 3976 3977 } 3978 return this; 3979 } 3980 3981 public final boolean isInitialized() { 3982 if (!hasId()) { 3983 3984 return false; 3985 } 3986 if (!hasName()) { 3987 3988 return false; 3989 } 3990 for (int i = 0; i < getUpperBoundCount(); i++) { 3991 if (!getUpperBound(i).isInitialized()) { 3992 3993 return false; 3994 } 3995 } 3996 return true; 3997 } 3998 3999 public Builder mergeFrom( 4000 com.google.protobuf.CodedInputStream input, 4001 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4002 throws java.io.IOException { 4003 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parsedMessage = null; 4004 try { 4005 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 4006 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4007 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter) e.getUnfinishedMessage(); 4008 throw e; 4009 } finally { 4010 if (parsedMessage != null) { 4011 mergeFrom(parsedMessage); 4012 } 4013 } 4014 return this; 4015 } 4016 private int bitField0_; 4017 4018 // required int32 id = 1; 4019 private int id_ ; 4020 /** 4021 * <code>required int32 id = 1;</code> 4022 */ 4023 public boolean hasId() { 4024 return ((bitField0_ & 0x00000001) == 0x00000001); 4025 } 4026 /** 4027 * <code>required int32 id = 1;</code> 4028 */ 4029 public int getId() { 4030 return id_; 4031 } 4032 /** 4033 * <code>required int32 id = 1;</code> 4034 */ 4035 public Builder setId(int value) { 4036 bitField0_ |= 0x00000001; 4037 id_ = value; 4038 4039 return this; 4040 } 4041 /** 4042 * <code>required int32 id = 1;</code> 4043 */ 4044 public Builder clearId() { 4045 bitField0_ = (bitField0_ & ~0x00000001); 4046 id_ = 0; 4047 4048 return this; 4049 } 4050 4051 // required int32 name = 2; 4052 private int name_ ; 4053 /** 4054 * <code>required int32 name = 2;</code> 4055 */ 4056 public boolean hasName() { 4057 return ((bitField0_ & 0x00000002) == 0x00000002); 4058 } 4059 /** 4060 * <code>required int32 name = 2;</code> 4061 */ 4062 public int getName() { 4063 return name_; 4064 } 4065 /** 4066 * <code>required int32 name = 2;</code> 4067 */ 4068 public Builder setName(int value) { 4069 bitField0_ |= 0x00000002; 4070 name_ = value; 4071 4072 return this; 4073 } 4074 /** 4075 * <code>required int32 name = 2;</code> 4076 */ 4077 public Builder clearName() { 4078 bitField0_ = (bitField0_ & ~0x00000002); 4079 name_ = 0; 4080 4081 return this; 4082 } 4083 4084 // optional bool reified = 3 [default = false]; 4085 private boolean reified_ ; 4086 /** 4087 * <code>optional bool reified = 3 [default = false];</code> 4088 */ 4089 public boolean hasReified() { 4090 return ((bitField0_ & 0x00000004) == 0x00000004); 4091 } 4092 /** 4093 * <code>optional bool reified = 3 [default = false];</code> 4094 */ 4095 public boolean getReified() { 4096 return reified_; 4097 } 4098 /** 4099 * <code>optional bool reified = 3 [default = false];</code> 4100 */ 4101 public Builder setReified(boolean value) { 4102 bitField0_ |= 0x00000004; 4103 reified_ = value; 4104 4105 return this; 4106 } 4107 /** 4108 * <code>optional bool reified = 3 [default = false];</code> 4109 */ 4110 public Builder clearReified() { 4111 bitField0_ = (bitField0_ & ~0x00000004); 4112 reified_ = false; 4113 4114 return this; 4115 } 4116 4117 // optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV]; 4118 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; 4119 /** 4120 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 4121 */ 4122 public boolean hasVariance() { 4123 return ((bitField0_ & 0x00000008) == 0x00000008); 4124 } 4125 /** 4126 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 4127 */ 4128 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance getVariance() { 4129 return variance_; 4130 } 4131 /** 4132 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 4133 */ 4134 public Builder setVariance(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance value) { 4135 if (value == null) { 4136 throw new NullPointerException(); 4137 } 4138 bitField0_ |= 0x00000008; 4139 variance_ = value; 4140 4141 return this; 4142 } 4143 /** 4144 * <code>optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV];</code> 4145 */ 4146 public Builder clearVariance() { 4147 bitField0_ = (bitField0_ & ~0x00000008); 4148 variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; 4149 4150 return this; 4151 } 4152 4153 // repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5; 4154 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> upperBound_ = 4155 java.util.Collections.emptyList(); 4156 private void ensureUpperBoundIsMutable() { 4157 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 4158 upperBound_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type>(upperBound_); 4159 bitField0_ |= 0x00000010; 4160 } 4161 } 4162 4163 /** 4164 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4165 */ 4166 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> getUpperBoundList() { 4167 return java.util.Collections.unmodifiableList(upperBound_); 4168 } 4169 /** 4170 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4171 */ 4172 public int getUpperBoundCount() { 4173 return upperBound_.size(); 4174 } 4175 /** 4176 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4177 */ 4178 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getUpperBound(int index) { 4179 return upperBound_.get(index); 4180 } 4181 /** 4182 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4183 */ 4184 public Builder setUpperBound( 4185 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 4186 if (value == null) { 4187 throw new NullPointerException(); 4188 } 4189 ensureUpperBoundIsMutable(); 4190 upperBound_.set(index, value); 4191 4192 return this; 4193 } 4194 /** 4195 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4196 */ 4197 public Builder setUpperBound( 4198 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 4199 ensureUpperBoundIsMutable(); 4200 upperBound_.set(index, builderForValue.build()); 4201 4202 return this; 4203 } 4204 /** 4205 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4206 */ 4207 public Builder addUpperBound(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 4208 if (value == null) { 4209 throw new NullPointerException(); 4210 } 4211 ensureUpperBoundIsMutable(); 4212 upperBound_.add(value); 4213 4214 return this; 4215 } 4216 /** 4217 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4218 */ 4219 public Builder addUpperBound( 4220 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 4221 if (value == null) { 4222 throw new NullPointerException(); 4223 } 4224 ensureUpperBoundIsMutable(); 4225 upperBound_.add(index, value); 4226 4227 return this; 4228 } 4229 /** 4230 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4231 */ 4232 public Builder addUpperBound( 4233 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 4234 ensureUpperBoundIsMutable(); 4235 upperBound_.add(builderForValue.build()); 4236 4237 return this; 4238 } 4239 /** 4240 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4241 */ 4242 public Builder addUpperBound( 4243 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 4244 ensureUpperBoundIsMutable(); 4245 upperBound_.add(index, builderForValue.build()); 4246 4247 return this; 4248 } 4249 /** 4250 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4251 */ 4252 public Builder addAllUpperBound( 4253 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> values) { 4254 ensureUpperBoundIsMutable(); 4255 super.addAll(values, upperBound_); 4256 4257 return this; 4258 } 4259 /** 4260 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4261 */ 4262 public Builder clearUpperBound() { 4263 upperBound_ = java.util.Collections.emptyList(); 4264 bitField0_ = (bitField0_ & ~0x00000010); 4265 4266 return this; 4267 } 4268 /** 4269 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type upper_bound = 5;</code> 4270 */ 4271 public Builder removeUpperBound(int index) { 4272 ensureUpperBoundIsMutable(); 4273 upperBound_.remove(index); 4274 4275 return this; 4276 } 4277 4278 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.TypeParameter) 4279 } 4280 4281 static { 4282 defaultInstance = new TypeParameter(true); 4283 defaultInstance.initFields(); 4284 } 4285 4286 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.TypeParameter) 4287 } 4288 4289 public interface ClassOrBuilder 4290 extends com.google.protobuf.MessageLiteOrBuilder { 4291 4292 // optional int32 flags = 1 [default = 0]; 4293 /** 4294 * <code>optional int32 flags = 1 [default = 0];</code> 4295 * 4296 * <pre> 4297 * 4298 *Visibility 4299 *Modality 4300 *has_annotation 4301 *ClassKind 4302 *is_inner 4303 * </pre> 4304 */ 4305 boolean hasFlags(); 4306 /** 4307 * <code>optional int32 flags = 1 [default = 0];</code> 4308 * 4309 * <pre> 4310 * 4311 *Visibility 4312 *Modality 4313 *has_annotation 4314 *ClassKind 4315 *is_inner 4316 * </pre> 4317 */ 4318 int getFlags(); 4319 4320 // optional string extra_visibility = 2; 4321 /** 4322 * <code>optional string extra_visibility = 2;</code> 4323 * 4324 * <pre> 4325 * for things like java-specific visibilities 4326 * </pre> 4327 */ 4328 boolean hasExtraVisibility(); 4329 /** 4330 * <code>optional string extra_visibility = 2;</code> 4331 * 4332 * <pre> 4333 * for things like java-specific visibilities 4334 * </pre> 4335 */ 4336 java.lang.String getExtraVisibility(); 4337 /** 4338 * <code>optional string extra_visibility = 2;</code> 4339 * 4340 * <pre> 4341 * for things like java-specific visibilities 4342 * </pre> 4343 */ 4344 com.google.protobuf.ByteString 4345 getExtraVisibilityBytes(); 4346 4347 // required int32 fq_name = 3; 4348 /** 4349 * <code>required int32 fq_name = 3;</code> 4350 */ 4351 boolean hasFqName(); 4352 /** 4353 * <code>required int32 fq_name = 3;</code> 4354 */ 4355 int getFqName(); 4356 4357 // optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4; 4358 /** 4359 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 4360 * 4361 * <pre> 4362 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 4363 * </pre> 4364 */ 4365 boolean hasClassObject(); 4366 /** 4367 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 4368 * 4369 * <pre> 4370 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 4371 * </pre> 4372 */ 4373 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject getClassObject(); 4374 4375 // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5; 4376 /** 4377 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 4378 */ 4379 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> 4380 getTypeParameterList(); 4381 /** 4382 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 4383 */ 4384 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameter(int index); 4385 /** 4386 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 4387 */ 4388 int getTypeParameterCount(); 4389 4390 // repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6; 4391 /** 4392 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 4393 */ 4394 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> 4395 getSupertypeList(); 4396 /** 4397 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 4398 */ 4399 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getSupertype(int index); 4400 /** 4401 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 4402 */ 4403 int getSupertypeCount(); 4404 4405 // repeated int32 nested_class_name = 7; 4406 /** 4407 * <code>repeated int32 nested_class_name = 7;</code> 4408 * 4409 * <pre> 4410 * we store only names, because the actual information must reside in the corresponding .class files, 4411 * to be obtainable through reflection at runtime 4412 * </pre> 4413 */ 4414 java.util.List<java.lang.Integer> getNestedClassNameList(); 4415 /** 4416 * <code>repeated int32 nested_class_name = 7;</code> 4417 * 4418 * <pre> 4419 * we store only names, because the actual information must reside in the corresponding .class files, 4420 * to be obtainable through reflection at runtime 4421 * </pre> 4422 */ 4423 int getNestedClassNameCount(); 4424 /** 4425 * <code>repeated int32 nested_class_name = 7;</code> 4426 * 4427 * <pre> 4428 * we store only names, because the actual information must reside in the corresponding .class files, 4429 * to be obtainable through reflection at runtime 4430 * </pre> 4431 */ 4432 int getNestedClassName(int index); 4433 4434 // repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11; 4435 /** 4436 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 4437 */ 4438 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> 4439 getMemberList(); 4440 /** 4441 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 4442 */ 4443 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMember(int index); 4444 /** 4445 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 4446 */ 4447 int getMemberCount(); 4448 4449 // repeated int32 enum_entry = 12; 4450 /** 4451 * <code>repeated int32 enum_entry = 12;</code> 4452 */ 4453 java.util.List<java.lang.Integer> getEnumEntryList(); 4454 /** 4455 * <code>repeated int32 enum_entry = 12;</code> 4456 */ 4457 int getEnumEntryCount(); 4458 /** 4459 * <code>repeated int32 enum_entry = 12;</code> 4460 */ 4461 int getEnumEntry(int index); 4462 4463 // optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13; 4464 /** 4465 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 4466 * 4467 * <pre> 4468 * This field is present if and only if the class has a primary constructor 4469 * </pre> 4470 */ 4471 boolean hasPrimaryConstructor(); 4472 /** 4473 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 4474 * 4475 * <pre> 4476 * This field is present if and only if the class has a primary constructor 4477 * </pre> 4478 */ 4479 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor getPrimaryConstructor(); 4480 } 4481 /** 4482 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Class} 4483 */ 4484 public static final class Class extends 4485 com.google.protobuf.GeneratedMessageLite 4486 implements ClassOrBuilder { 4487 // Use Class.newBuilder() to construct. 4488 private Class(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4489 super(builder); 4490 4491 } 4492 private Class(boolean noInit) {} 4493 4494 private static final Class defaultInstance; 4495 public static Class getDefaultInstance() { 4496 return defaultInstance; 4497 } 4498 4499 public Class getDefaultInstanceForType() { 4500 return defaultInstance; 4501 } 4502 4503 private Class( 4504 com.google.protobuf.CodedInputStream input, 4505 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4506 throws com.google.protobuf.InvalidProtocolBufferException { 4507 initFields(); 4508 int mutable_bitField0_ = 0; 4509 try { 4510 boolean done = false; 4511 while (!done) { 4512 int tag = input.readTag(); 4513 switch (tag) { 4514 case 0: 4515 done = true; 4516 break; 4517 default: { 4518 if (!parseUnknownField(input, 4519 extensionRegistry, tag)) { 4520 done = true; 4521 } 4522 break; 4523 } 4524 case 8: { 4525 bitField0_ |= 0x00000001; 4526 flags_ = input.readInt32(); 4527 break; 4528 } 4529 case 18: { 4530 bitField0_ |= 0x00000002; 4531 extraVisibility_ = input.readBytes(); 4532 break; 4533 } 4534 case 24: { 4535 bitField0_ |= 0x00000004; 4536 fqName_ = input.readInt32(); 4537 break; 4538 } 4539 case 34: { 4540 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.Builder subBuilder = null; 4541 if (((bitField0_ & 0x00000008) == 0x00000008)) { 4542 subBuilder = classObject_.toBuilder(); 4543 } 4544 classObject_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.PARSER, extensionRegistry); 4545 if (subBuilder != null) { 4546 subBuilder.mergeFrom(classObject_); 4547 classObject_ = subBuilder.buildPartial(); 4548 } 4549 bitField0_ |= 0x00000008; 4550 break; 4551 } 4552 case 42: { 4553 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4554 typeParameter_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter>(); 4555 mutable_bitField0_ |= 0x00000010; 4556 } 4557 typeParameter_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.PARSER, extensionRegistry)); 4558 break; 4559 } 4560 case 50: { 4561 if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 4562 supertype_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type>(); 4563 mutable_bitField0_ |= 0x00000020; 4564 } 4565 supertype_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry)); 4566 break; 4567 } 4568 case 56: { 4569 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 4570 nestedClassName_ = new java.util.ArrayList<java.lang.Integer>(); 4571 mutable_bitField0_ |= 0x00000040; 4572 } 4573 nestedClassName_.add(input.readInt32()); 4574 break; 4575 } 4576 case 58: { 4577 int length = input.readRawVarint32(); 4578 int limit = input.pushLimit(length); 4579 if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { 4580 nestedClassName_ = new java.util.ArrayList<java.lang.Integer>(); 4581 mutable_bitField0_ |= 0x00000040; 4582 } 4583 while (input.getBytesUntilLimit() > 0) { 4584 nestedClassName_.add(input.readInt32()); 4585 } 4586 input.popLimit(limit); 4587 break; 4588 } 4589 case 90: { 4590 if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 4591 member_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable>(); 4592 mutable_bitField0_ |= 0x00000080; 4593 } 4594 member_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.PARSER, extensionRegistry)); 4595 break; 4596 } 4597 case 96: { 4598 if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 4599 enumEntry_ = new java.util.ArrayList<java.lang.Integer>(); 4600 mutable_bitField0_ |= 0x00000100; 4601 } 4602 enumEntry_.add(input.readInt32()); 4603 break; 4604 } 4605 case 98: { 4606 int length = input.readRawVarint32(); 4607 int limit = input.pushLimit(length); 4608 if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { 4609 enumEntry_ = new java.util.ArrayList<java.lang.Integer>(); 4610 mutable_bitField0_ |= 0x00000100; 4611 } 4612 while (input.getBytesUntilLimit() > 0) { 4613 enumEntry_.add(input.readInt32()); 4614 } 4615 input.popLimit(limit); 4616 break; 4617 } 4618 case 106: { 4619 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.Builder subBuilder = null; 4620 if (((bitField0_ & 0x00000010) == 0x00000010)) { 4621 subBuilder = primaryConstructor_.toBuilder(); 4622 } 4623 primaryConstructor_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.PARSER, extensionRegistry); 4624 if (subBuilder != null) { 4625 subBuilder.mergeFrom(primaryConstructor_); 4626 primaryConstructor_ = subBuilder.buildPartial(); 4627 } 4628 bitField0_ |= 0x00000010; 4629 break; 4630 } 4631 } 4632 } 4633 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4634 throw e.setUnfinishedMessage(this); 4635 } catch (java.io.IOException e) { 4636 throw new com.google.protobuf.InvalidProtocolBufferException( 4637 e.getMessage()).setUnfinishedMessage(this); 4638 } finally { 4639 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4640 typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); 4641 } 4642 if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { 4643 supertype_ = java.util.Collections.unmodifiableList(supertype_); 4644 } 4645 if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { 4646 nestedClassName_ = java.util.Collections.unmodifiableList(nestedClassName_); 4647 } 4648 if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 4649 member_ = java.util.Collections.unmodifiableList(member_); 4650 } 4651 if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 4652 enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); 4653 } 4654 makeExtensionsImmutable(); 4655 } 4656 } 4657 public static com.google.protobuf.Parser<Class> PARSER = 4658 new com.google.protobuf.AbstractParser<Class>() { 4659 public Class parsePartialFrom( 4660 com.google.protobuf.CodedInputStream input, 4661 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4662 throws com.google.protobuf.InvalidProtocolBufferException { 4663 return new Class(input, extensionRegistry); 4664 } 4665 }; 4666 4667 @java.lang.Override 4668 public com.google.protobuf.Parser<Class> getParserForType() { 4669 return PARSER; 4670 } 4671 4672 /** 4673 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Class.Kind} 4674 */ 4675 public enum Kind 4676 implements com.google.protobuf.Internal.EnumLite { 4677 /** 4678 * <code>CLASS = 0;</code> 4679 * 4680 * <pre> 4681 * 3 bits 4682 * </pre> 4683 */ 4684 CLASS(0, 0), 4685 /** 4686 * <code>TRAIT = 1;</code> 4687 */ 4688 TRAIT(1, 1), 4689 /** 4690 * <code>ENUM_CLASS = 2;</code> 4691 */ 4692 ENUM_CLASS(2, 2), 4693 /** 4694 * <code>ENUM_ENTRY = 3;</code> 4695 */ 4696 ENUM_ENTRY(3, 3), 4697 /** 4698 * <code>ANNOTATION_CLASS = 4;</code> 4699 */ 4700 ANNOTATION_CLASS(4, 4), 4701 /** 4702 * <code>OBJECT = 5;</code> 4703 */ 4704 OBJECT(5, 5), 4705 /** 4706 * <code>CLASS_OBJECT = 6;</code> 4707 */ 4708 CLASS_OBJECT(6, 6), 4709 ; 4710 4711 /** 4712 * <code>CLASS = 0;</code> 4713 * 4714 * <pre> 4715 * 3 bits 4716 * </pre> 4717 */ 4718 public static final int CLASS_VALUE = 0; 4719 /** 4720 * <code>TRAIT = 1;</code> 4721 */ 4722 public static final int TRAIT_VALUE = 1; 4723 /** 4724 * <code>ENUM_CLASS = 2;</code> 4725 */ 4726 public static final int ENUM_CLASS_VALUE = 2; 4727 /** 4728 * <code>ENUM_ENTRY = 3;</code> 4729 */ 4730 public static final int ENUM_ENTRY_VALUE = 3; 4731 /** 4732 * <code>ANNOTATION_CLASS = 4;</code> 4733 */ 4734 public static final int ANNOTATION_CLASS_VALUE = 4; 4735 /** 4736 * <code>OBJECT = 5;</code> 4737 */ 4738 public static final int OBJECT_VALUE = 5; 4739 /** 4740 * <code>CLASS_OBJECT = 6;</code> 4741 */ 4742 public static final int CLASS_OBJECT_VALUE = 6; 4743 4744 4745 public final int getNumber() { return value; } 4746 4747 public static Kind valueOf(int value) { 4748 switch (value) { 4749 case 0: return CLASS; 4750 case 1: return TRAIT; 4751 case 2: return ENUM_CLASS; 4752 case 3: return ENUM_ENTRY; 4753 case 4: return ANNOTATION_CLASS; 4754 case 5: return OBJECT; 4755 case 6: return CLASS_OBJECT; 4756 default: return null; 4757 } 4758 } 4759 4760 public static com.google.protobuf.Internal.EnumLiteMap<Kind> 4761 internalGetValueMap() { 4762 return internalValueMap; 4763 } 4764 private static com.google.protobuf.Internal.EnumLiteMap<Kind> 4765 internalValueMap = 4766 new com.google.protobuf.Internal.EnumLiteMap<Kind>() { 4767 public Kind findValueByNumber(int number) { 4768 return Kind.valueOf(number); 4769 } 4770 }; 4771 4772 private final int value; 4773 4774 private Kind(int index, int value) { 4775 this.value = value; 4776 } 4777 4778 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Class.Kind) 4779 } 4780 4781 public interface ClassObjectOrBuilder 4782 extends com.google.protobuf.MessageLiteOrBuilder { 4783 4784 // optional .org.jetbrains.jet.descriptors.serialization.Class data = 1; 4785 /** 4786 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 4787 * 4788 * <pre> 4789 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 4790 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 4791 * </pre> 4792 */ 4793 boolean hasData(); 4794 /** 4795 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 4796 * 4797 * <pre> 4798 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 4799 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 4800 * </pre> 4801 */ 4802 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class getData(); 4803 } 4804 /** 4805 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Class.ClassObject} 4806 */ 4807 public static final class ClassObject extends 4808 com.google.protobuf.GeneratedMessageLite 4809 implements ClassObjectOrBuilder { 4810 // Use ClassObject.newBuilder() to construct. 4811 private ClassObject(com.google.protobuf.GeneratedMessageLite.Builder builder) { 4812 super(builder); 4813 4814 } 4815 private ClassObject(boolean noInit) {} 4816 4817 private static final ClassObject defaultInstance; 4818 public static ClassObject getDefaultInstance() { 4819 return defaultInstance; 4820 } 4821 4822 public ClassObject getDefaultInstanceForType() { 4823 return defaultInstance; 4824 } 4825 4826 private ClassObject( 4827 com.google.protobuf.CodedInputStream input, 4828 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4829 throws com.google.protobuf.InvalidProtocolBufferException { 4830 initFields(); 4831 int mutable_bitField0_ = 0; 4832 try { 4833 boolean done = false; 4834 while (!done) { 4835 int tag = input.readTag(); 4836 switch (tag) { 4837 case 0: 4838 done = true; 4839 break; 4840 default: { 4841 if (!parseUnknownField(input, 4842 extensionRegistry, tag)) { 4843 done = true; 4844 } 4845 break; 4846 } 4847 case 10: { 4848 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.Builder subBuilder = null; 4849 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4850 subBuilder = data_.toBuilder(); 4851 } 4852 data_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PARSER, extensionRegistry); 4853 if (subBuilder != null) { 4854 subBuilder.mergeFrom(data_); 4855 data_ = subBuilder.buildPartial(); 4856 } 4857 bitField0_ |= 0x00000001; 4858 break; 4859 } 4860 } 4861 } 4862 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4863 throw e.setUnfinishedMessage(this); 4864 } catch (java.io.IOException e) { 4865 throw new com.google.protobuf.InvalidProtocolBufferException( 4866 e.getMessage()).setUnfinishedMessage(this); 4867 } finally { 4868 makeExtensionsImmutable(); 4869 } 4870 } 4871 public static com.google.protobuf.Parser<ClassObject> PARSER = 4872 new com.google.protobuf.AbstractParser<ClassObject>() { 4873 public ClassObject parsePartialFrom( 4874 com.google.protobuf.CodedInputStream input, 4875 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4876 throws com.google.protobuf.InvalidProtocolBufferException { 4877 return new ClassObject(input, extensionRegistry); 4878 } 4879 }; 4880 4881 @java.lang.Override 4882 public com.google.protobuf.Parser<ClassObject> getParserForType() { 4883 return PARSER; 4884 } 4885 4886 private int bitField0_; 4887 // optional .org.jetbrains.jet.descriptors.serialization.Class data = 1; 4888 public static final int DATA_FIELD_NUMBER = 1; 4889 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class data_; 4890 /** 4891 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 4892 * 4893 * <pre> 4894 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 4895 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 4896 * </pre> 4897 */ 4898 public boolean hasData() { 4899 return ((bitField0_ & 0x00000001) == 0x00000001); 4900 } 4901 /** 4902 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 4903 * 4904 * <pre> 4905 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 4906 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 4907 * </pre> 4908 */ 4909 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class getData() { 4910 return data_; 4911 } 4912 4913 private void initFields() { 4914 data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance(); 4915 } 4916 private byte memoizedIsInitialized = -1; 4917 public final boolean isInitialized() { 4918 byte isInitialized = memoizedIsInitialized; 4919 if (isInitialized != -1) return isInitialized == 1; 4920 4921 if (hasData()) { 4922 if (!getData().isInitialized()) { 4923 memoizedIsInitialized = 0; 4924 return false; 4925 } 4926 } 4927 memoizedIsInitialized = 1; 4928 return true; 4929 } 4930 4931 public void writeTo(com.google.protobuf.CodedOutputStream output) 4932 throws java.io.IOException { 4933 getSerializedSize(); 4934 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4935 output.writeMessage(1, data_); 4936 } 4937 } 4938 4939 private int memoizedSerializedSize = -1; 4940 public int getSerializedSize() { 4941 int size = memoizedSerializedSize; 4942 if (size != -1) return size; 4943 4944 size = 0; 4945 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4946 size += com.google.protobuf.CodedOutputStream 4947 .computeMessageSize(1, data_); 4948 } 4949 memoizedSerializedSize = size; 4950 return size; 4951 } 4952 4953 private static final long serialVersionUID = 0L; 4954 @java.lang.Override 4955 protected java.lang.Object writeReplace() 4956 throws java.io.ObjectStreamException { 4957 return super.writeReplace(); 4958 } 4959 4960 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom( 4961 com.google.protobuf.ByteString data) 4962 throws com.google.protobuf.InvalidProtocolBufferException { 4963 return PARSER.parseFrom(data); 4964 } 4965 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom( 4966 com.google.protobuf.ByteString data, 4967 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4968 throws com.google.protobuf.InvalidProtocolBufferException { 4969 return PARSER.parseFrom(data, extensionRegistry); 4970 } 4971 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom(byte[] data) 4972 throws com.google.protobuf.InvalidProtocolBufferException { 4973 return PARSER.parseFrom(data); 4974 } 4975 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom( 4976 byte[] data, 4977 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4978 throws com.google.protobuf.InvalidProtocolBufferException { 4979 return PARSER.parseFrom(data, extensionRegistry); 4980 } 4981 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom(java.io.InputStream input) 4982 throws java.io.IOException { 4983 return PARSER.parseFrom(input); 4984 } 4985 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom( 4986 java.io.InputStream input, 4987 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4988 throws java.io.IOException { 4989 return PARSER.parseFrom(input, extensionRegistry); 4990 } 4991 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseDelimitedFrom(java.io.InputStream input) 4992 throws java.io.IOException { 4993 return PARSER.parseDelimitedFrom(input); 4994 } 4995 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseDelimitedFrom( 4996 java.io.InputStream input, 4997 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4998 throws java.io.IOException { 4999 return PARSER.parseDelimitedFrom(input, extensionRegistry); 5000 } 5001 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom( 5002 com.google.protobuf.CodedInputStream input) 5003 throws java.io.IOException { 5004 return PARSER.parseFrom(input); 5005 } 5006 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parseFrom( 5007 com.google.protobuf.CodedInputStream input, 5008 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5009 throws java.io.IOException { 5010 return PARSER.parseFrom(input, extensionRegistry); 5011 } 5012 5013 public static Builder newBuilder() { return Builder.create(); } 5014 public Builder newBuilderForType() { return newBuilder(); } 5015 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject prototype) { 5016 return newBuilder().mergeFrom(prototype); 5017 } 5018 public Builder toBuilder() { return newBuilder(this); } 5019 5020 /** 5021 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Class.ClassObject} 5022 */ 5023 public static final class Builder extends 5024 com.google.protobuf.GeneratedMessageLite.Builder< 5025 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject, Builder> 5026 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObjectOrBuilder { 5027 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.newBuilder() 5028 private Builder() { 5029 maybeForceBuilderInitialization(); 5030 } 5031 5032 private void maybeForceBuilderInitialization() { 5033 } 5034 private static Builder create() { 5035 return new Builder(); 5036 } 5037 5038 public Builder clear() { 5039 super.clear(); 5040 data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance(); 5041 bitField0_ = (bitField0_ & ~0x00000001); 5042 return this; 5043 } 5044 5045 public Builder clone() { 5046 return create().mergeFrom(buildPartial()); 5047 } 5048 5049 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject getDefaultInstanceForType() { 5050 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance(); 5051 } 5052 5053 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject build() { 5054 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject result = buildPartial(); 5055 if (!result.isInitialized()) { 5056 throw newUninitializedMessageException(result); 5057 } 5058 return result; 5059 } 5060 5061 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject buildPartial() { 5062 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject(this); 5063 int from_bitField0_ = bitField0_; 5064 int to_bitField0_ = 0; 5065 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5066 to_bitField0_ |= 0x00000001; 5067 } 5068 result.data_ = data_; 5069 result.bitField0_ = to_bitField0_; 5070 return result; 5071 } 5072 5073 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject other) { 5074 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance()) return this; 5075 if (other.hasData()) { 5076 mergeData(other.getData()); 5077 } 5078 return this; 5079 } 5080 5081 public final boolean isInitialized() { 5082 if (hasData()) { 5083 if (!getData().isInitialized()) { 5084 5085 return false; 5086 } 5087 } 5088 return true; 5089 } 5090 5091 public Builder mergeFrom( 5092 com.google.protobuf.CodedInputStream input, 5093 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5094 throws java.io.IOException { 5095 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject parsedMessage = null; 5096 try { 5097 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5098 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5099 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject) e.getUnfinishedMessage(); 5100 throw e; 5101 } finally { 5102 if (parsedMessage != null) { 5103 mergeFrom(parsedMessage); 5104 } 5105 } 5106 return this; 5107 } 5108 private int bitField0_; 5109 5110 // optional .org.jetbrains.jet.descriptors.serialization.Class data = 1; 5111 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance(); 5112 /** 5113 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 5114 * 5115 * <pre> 5116 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 5117 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 5118 * </pre> 5119 */ 5120 public boolean hasData() { 5121 return ((bitField0_ & 0x00000001) == 0x00000001); 5122 } 5123 /** 5124 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 5125 * 5126 * <pre> 5127 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 5128 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 5129 * </pre> 5130 */ 5131 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class getData() { 5132 return data_; 5133 } 5134 /** 5135 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 5136 * 5137 * <pre> 5138 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 5139 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 5140 * </pre> 5141 */ 5142 public Builder setData(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class value) { 5143 if (value == null) { 5144 throw new NullPointerException(); 5145 } 5146 data_ = value; 5147 5148 bitField0_ |= 0x00000001; 5149 return this; 5150 } 5151 /** 5152 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 5153 * 5154 * <pre> 5155 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 5156 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 5157 * </pre> 5158 */ 5159 public Builder setData( 5160 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.Builder builderForValue) { 5161 data_ = builderForValue.build(); 5162 5163 bitField0_ |= 0x00000001; 5164 return this; 5165 } 5166 /** 5167 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 5168 * 5169 * <pre> 5170 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 5171 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 5172 * </pre> 5173 */ 5174 public Builder mergeData(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class value) { 5175 if (((bitField0_ & 0x00000001) == 0x00000001) && 5176 data_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance()) { 5177 data_ = 5178 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.newBuilder(data_).mergeFrom(value).buildPartial(); 5179 } else { 5180 data_ = value; 5181 } 5182 5183 bitField0_ |= 0x00000001; 5184 return this; 5185 } 5186 /** 5187 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class data = 1;</code> 5188 * 5189 * <pre> 5190 * If this field is present, it contains serialized data for a synthetic class object, for which there's no class file. 5191 * Otherwise class object was compiled to a separate class file and serialized data can be found in the annotation on that class 5192 * </pre> 5193 */ 5194 public Builder clearData() { 5195 data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance(); 5196 5197 bitField0_ = (bitField0_ & ~0x00000001); 5198 return this; 5199 } 5200 5201 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Class.ClassObject) 5202 } 5203 5204 static { 5205 defaultInstance = new ClassObject(true); 5206 defaultInstance.initFields(); 5207 } 5208 5209 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Class.ClassObject) 5210 } 5211 5212 public interface PrimaryConstructorOrBuilder 5213 extends com.google.protobuf.MessageLiteOrBuilder { 5214 5215 // optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1; 5216 /** 5217 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5218 * 5219 * <pre> 5220 * If this field is present, it contains serialized data for the primary constructor. 5221 * Otherwise it's default and can be created manually upon deserialization 5222 * </pre> 5223 */ 5224 boolean hasData(); 5225 /** 5226 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5227 * 5228 * <pre> 5229 * If this field is present, it contains serialized data for the primary constructor. 5230 * Otherwise it's default and can be created manually upon deserialization 5231 * </pre> 5232 */ 5233 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getData(); 5234 } 5235 /** 5236 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor} 5237 */ 5238 public static final class PrimaryConstructor extends 5239 com.google.protobuf.GeneratedMessageLite 5240 implements PrimaryConstructorOrBuilder { 5241 // Use PrimaryConstructor.newBuilder() to construct. 5242 private PrimaryConstructor(com.google.protobuf.GeneratedMessageLite.Builder builder) { 5243 super(builder); 5244 5245 } 5246 private PrimaryConstructor(boolean noInit) {} 5247 5248 private static final PrimaryConstructor defaultInstance; 5249 public static PrimaryConstructor getDefaultInstance() { 5250 return defaultInstance; 5251 } 5252 5253 public PrimaryConstructor getDefaultInstanceForType() { 5254 return defaultInstance; 5255 } 5256 5257 private PrimaryConstructor( 5258 com.google.protobuf.CodedInputStream input, 5259 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5260 throws com.google.protobuf.InvalidProtocolBufferException { 5261 initFields(); 5262 int mutable_bitField0_ = 0; 5263 try { 5264 boolean done = false; 5265 while (!done) { 5266 int tag = input.readTag(); 5267 switch (tag) { 5268 case 0: 5269 done = true; 5270 break; 5271 default: { 5272 if (!parseUnknownField(input, 5273 extensionRegistry, tag)) { 5274 done = true; 5275 } 5276 break; 5277 } 5278 case 10: { 5279 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder subBuilder = null; 5280 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5281 subBuilder = data_.toBuilder(); 5282 } 5283 data_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.PARSER, extensionRegistry); 5284 if (subBuilder != null) { 5285 subBuilder.mergeFrom(data_); 5286 data_ = subBuilder.buildPartial(); 5287 } 5288 bitField0_ |= 0x00000001; 5289 break; 5290 } 5291 } 5292 } 5293 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5294 throw e.setUnfinishedMessage(this); 5295 } catch (java.io.IOException e) { 5296 throw new com.google.protobuf.InvalidProtocolBufferException( 5297 e.getMessage()).setUnfinishedMessage(this); 5298 } finally { 5299 makeExtensionsImmutable(); 5300 } 5301 } 5302 public static com.google.protobuf.Parser<PrimaryConstructor> PARSER = 5303 new com.google.protobuf.AbstractParser<PrimaryConstructor>() { 5304 public PrimaryConstructor parsePartialFrom( 5305 com.google.protobuf.CodedInputStream input, 5306 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5307 throws com.google.protobuf.InvalidProtocolBufferException { 5308 return new PrimaryConstructor(input, extensionRegistry); 5309 } 5310 }; 5311 5312 @java.lang.Override 5313 public com.google.protobuf.Parser<PrimaryConstructor> getParserForType() { 5314 return PARSER; 5315 } 5316 5317 private int bitField0_; 5318 // optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1; 5319 public static final int DATA_FIELD_NUMBER = 1; 5320 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable data_; 5321 /** 5322 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5323 * 5324 * <pre> 5325 * If this field is present, it contains serialized data for the primary constructor. 5326 * Otherwise it's default and can be created manually upon deserialization 5327 * </pre> 5328 */ 5329 public boolean hasData() { 5330 return ((bitField0_ & 0x00000001) == 0x00000001); 5331 } 5332 /** 5333 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5334 * 5335 * <pre> 5336 * If this field is present, it contains serialized data for the primary constructor. 5337 * Otherwise it's default and can be created manually upon deserialization 5338 * </pre> 5339 */ 5340 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getData() { 5341 return data_; 5342 } 5343 5344 private void initFields() { 5345 data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); 5346 } 5347 private byte memoizedIsInitialized = -1; 5348 public final boolean isInitialized() { 5349 byte isInitialized = memoizedIsInitialized; 5350 if (isInitialized != -1) return isInitialized == 1; 5351 5352 if (hasData()) { 5353 if (!getData().isInitialized()) { 5354 memoizedIsInitialized = 0; 5355 return false; 5356 } 5357 } 5358 memoizedIsInitialized = 1; 5359 return true; 5360 } 5361 5362 public void writeTo(com.google.protobuf.CodedOutputStream output) 5363 throws java.io.IOException { 5364 getSerializedSize(); 5365 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5366 output.writeMessage(1, data_); 5367 } 5368 } 5369 5370 private int memoizedSerializedSize = -1; 5371 public int getSerializedSize() { 5372 int size = memoizedSerializedSize; 5373 if (size != -1) return size; 5374 5375 size = 0; 5376 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5377 size += com.google.protobuf.CodedOutputStream 5378 .computeMessageSize(1, data_); 5379 } 5380 memoizedSerializedSize = size; 5381 return size; 5382 } 5383 5384 private static final long serialVersionUID = 0L; 5385 @java.lang.Override 5386 protected java.lang.Object writeReplace() 5387 throws java.io.ObjectStreamException { 5388 return super.writeReplace(); 5389 } 5390 5391 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom( 5392 com.google.protobuf.ByteString data) 5393 throws com.google.protobuf.InvalidProtocolBufferException { 5394 return PARSER.parseFrom(data); 5395 } 5396 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom( 5397 com.google.protobuf.ByteString data, 5398 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5399 throws com.google.protobuf.InvalidProtocolBufferException { 5400 return PARSER.parseFrom(data, extensionRegistry); 5401 } 5402 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom(byte[] data) 5403 throws com.google.protobuf.InvalidProtocolBufferException { 5404 return PARSER.parseFrom(data); 5405 } 5406 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom( 5407 byte[] data, 5408 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5409 throws com.google.protobuf.InvalidProtocolBufferException { 5410 return PARSER.parseFrom(data, extensionRegistry); 5411 } 5412 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom(java.io.InputStream input) 5413 throws java.io.IOException { 5414 return PARSER.parseFrom(input); 5415 } 5416 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom( 5417 java.io.InputStream input, 5418 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5419 throws java.io.IOException { 5420 return PARSER.parseFrom(input, extensionRegistry); 5421 } 5422 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseDelimitedFrom(java.io.InputStream input) 5423 throws java.io.IOException { 5424 return PARSER.parseDelimitedFrom(input); 5425 } 5426 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseDelimitedFrom( 5427 java.io.InputStream input, 5428 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5429 throws java.io.IOException { 5430 return PARSER.parseDelimitedFrom(input, extensionRegistry); 5431 } 5432 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom( 5433 com.google.protobuf.CodedInputStream input) 5434 throws java.io.IOException { 5435 return PARSER.parseFrom(input); 5436 } 5437 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parseFrom( 5438 com.google.protobuf.CodedInputStream input, 5439 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5440 throws java.io.IOException { 5441 return PARSER.parseFrom(input, extensionRegistry); 5442 } 5443 5444 public static Builder newBuilder() { return Builder.create(); } 5445 public Builder newBuilderForType() { return newBuilder(); } 5446 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor prototype) { 5447 return newBuilder().mergeFrom(prototype); 5448 } 5449 public Builder toBuilder() { return newBuilder(this); } 5450 5451 /** 5452 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor} 5453 */ 5454 public static final class Builder extends 5455 com.google.protobuf.GeneratedMessageLite.Builder< 5456 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor, Builder> 5457 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructorOrBuilder { 5458 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.newBuilder() 5459 private Builder() { 5460 maybeForceBuilderInitialization(); 5461 } 5462 5463 private void maybeForceBuilderInitialization() { 5464 } 5465 private static Builder create() { 5466 return new Builder(); 5467 } 5468 5469 public Builder clear() { 5470 super.clear(); 5471 data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); 5472 bitField0_ = (bitField0_ & ~0x00000001); 5473 return this; 5474 } 5475 5476 public Builder clone() { 5477 return create().mergeFrom(buildPartial()); 5478 } 5479 5480 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor getDefaultInstanceForType() { 5481 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); 5482 } 5483 5484 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor build() { 5485 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor result = buildPartial(); 5486 if (!result.isInitialized()) { 5487 throw newUninitializedMessageException(result); 5488 } 5489 return result; 5490 } 5491 5492 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor buildPartial() { 5493 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor(this); 5494 int from_bitField0_ = bitField0_; 5495 int to_bitField0_ = 0; 5496 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 5497 to_bitField0_ |= 0x00000001; 5498 } 5499 result.data_ = data_; 5500 result.bitField0_ = to_bitField0_; 5501 return result; 5502 } 5503 5504 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor other) { 5505 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance()) return this; 5506 if (other.hasData()) { 5507 mergeData(other.getData()); 5508 } 5509 return this; 5510 } 5511 5512 public final boolean isInitialized() { 5513 if (hasData()) { 5514 if (!getData().isInitialized()) { 5515 5516 return false; 5517 } 5518 } 5519 return true; 5520 } 5521 5522 public Builder mergeFrom( 5523 com.google.protobuf.CodedInputStream input, 5524 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5525 throws java.io.IOException { 5526 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor parsedMessage = null; 5527 try { 5528 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5529 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5530 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor) e.getUnfinishedMessage(); 5531 throw e; 5532 } finally { 5533 if (parsedMessage != null) { 5534 mergeFrom(parsedMessage); 5535 } 5536 } 5537 return this; 5538 } 5539 private int bitField0_; 5540 5541 // optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1; 5542 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); 5543 /** 5544 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5545 * 5546 * <pre> 5547 * If this field is present, it contains serialized data for the primary constructor. 5548 * Otherwise it's default and can be created manually upon deserialization 5549 * </pre> 5550 */ 5551 public boolean hasData() { 5552 return ((bitField0_ & 0x00000001) == 0x00000001); 5553 } 5554 /** 5555 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5556 * 5557 * <pre> 5558 * If this field is present, it contains serialized data for the primary constructor. 5559 * Otherwise it's default and can be created manually upon deserialization 5560 * </pre> 5561 */ 5562 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getData() { 5563 return data_; 5564 } 5565 /** 5566 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5567 * 5568 * <pre> 5569 * If this field is present, it contains serialized data for the primary constructor. 5570 * Otherwise it's default and can be created manually upon deserialization 5571 * </pre> 5572 */ 5573 public Builder setData(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 5574 if (value == null) { 5575 throw new NullPointerException(); 5576 } 5577 data_ = value; 5578 5579 bitField0_ |= 0x00000001; 5580 return this; 5581 } 5582 /** 5583 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5584 * 5585 * <pre> 5586 * If this field is present, it contains serialized data for the primary constructor. 5587 * Otherwise it's default and can be created manually upon deserialization 5588 * </pre> 5589 */ 5590 public Builder setData( 5591 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 5592 data_ = builderForValue.build(); 5593 5594 bitField0_ |= 0x00000001; 5595 return this; 5596 } 5597 /** 5598 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5599 * 5600 * <pre> 5601 * If this field is present, it contains serialized data for the primary constructor. 5602 * Otherwise it's default and can be created manually upon deserialization 5603 * </pre> 5604 */ 5605 public Builder mergeData(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 5606 if (((bitField0_ & 0x00000001) == 0x00000001) && 5607 data_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance()) { 5608 data_ = 5609 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.newBuilder(data_).mergeFrom(value).buildPartial(); 5610 } else { 5611 data_ = value; 5612 } 5613 5614 bitField0_ |= 0x00000001; 5615 return this; 5616 } 5617 /** 5618 * <code>optional .org.jetbrains.jet.descriptors.serialization.Callable data = 1;</code> 5619 * 5620 * <pre> 5621 * If this field is present, it contains serialized data for the primary constructor. 5622 * Otherwise it's default and can be created manually upon deserialization 5623 * </pre> 5624 */ 5625 public Builder clearData() { 5626 data_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); 5627 5628 bitField0_ = (bitField0_ & ~0x00000001); 5629 return this; 5630 } 5631 5632 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor) 5633 } 5634 5635 static { 5636 defaultInstance = new PrimaryConstructor(true); 5637 defaultInstance.initFields(); 5638 } 5639 5640 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor) 5641 } 5642 5643 private int bitField0_; 5644 // optional int32 flags = 1 [default = 0]; 5645 public static final int FLAGS_FIELD_NUMBER = 1; 5646 private int flags_; 5647 /** 5648 * <code>optional int32 flags = 1 [default = 0];</code> 5649 * 5650 * <pre> 5651 * 5652 *Visibility 5653 *Modality 5654 *has_annotation 5655 *ClassKind 5656 *is_inner 5657 * </pre> 5658 */ 5659 public boolean hasFlags() { 5660 return ((bitField0_ & 0x00000001) == 0x00000001); 5661 } 5662 /** 5663 * <code>optional int32 flags = 1 [default = 0];</code> 5664 * 5665 * <pre> 5666 * 5667 *Visibility 5668 *Modality 5669 *has_annotation 5670 *ClassKind 5671 *is_inner 5672 * </pre> 5673 */ 5674 public int getFlags() { 5675 return flags_; 5676 } 5677 5678 // optional string extra_visibility = 2; 5679 public static final int EXTRA_VISIBILITY_FIELD_NUMBER = 2; 5680 private java.lang.Object extraVisibility_; 5681 /** 5682 * <code>optional string extra_visibility = 2;</code> 5683 * 5684 * <pre> 5685 * for things like java-specific visibilities 5686 * </pre> 5687 */ 5688 public boolean hasExtraVisibility() { 5689 return ((bitField0_ & 0x00000002) == 0x00000002); 5690 } 5691 /** 5692 * <code>optional string extra_visibility = 2;</code> 5693 * 5694 * <pre> 5695 * for things like java-specific visibilities 5696 * </pre> 5697 */ 5698 public java.lang.String getExtraVisibility() { 5699 java.lang.Object ref = extraVisibility_; 5700 if (ref instanceof java.lang.String) { 5701 return (java.lang.String) ref; 5702 } else { 5703 com.google.protobuf.ByteString bs = 5704 (com.google.protobuf.ByteString) ref; 5705 java.lang.String s = bs.toStringUtf8(); 5706 if (bs.isValidUtf8()) { 5707 extraVisibility_ = s; 5708 } 5709 return s; 5710 } 5711 } 5712 /** 5713 * <code>optional string extra_visibility = 2;</code> 5714 * 5715 * <pre> 5716 * for things like java-specific visibilities 5717 * </pre> 5718 */ 5719 public com.google.protobuf.ByteString 5720 getExtraVisibilityBytes() { 5721 java.lang.Object ref = extraVisibility_; 5722 if (ref instanceof java.lang.String) { 5723 com.google.protobuf.ByteString b = 5724 com.google.protobuf.ByteString.copyFromUtf8( 5725 (java.lang.String) ref); 5726 extraVisibility_ = b; 5727 return b; 5728 } else { 5729 return (com.google.protobuf.ByteString) ref; 5730 } 5731 } 5732 5733 // required int32 fq_name = 3; 5734 public static final int FQ_NAME_FIELD_NUMBER = 3; 5735 private int fqName_; 5736 /** 5737 * <code>required int32 fq_name = 3;</code> 5738 */ 5739 public boolean hasFqName() { 5740 return ((bitField0_ & 0x00000004) == 0x00000004); 5741 } 5742 /** 5743 * <code>required int32 fq_name = 3;</code> 5744 */ 5745 public int getFqName() { 5746 return fqName_; 5747 } 5748 5749 // optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4; 5750 public static final int CLASS_OBJECT_FIELD_NUMBER = 4; 5751 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject classObject_; 5752 /** 5753 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 5754 * 5755 * <pre> 5756 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 5757 * </pre> 5758 */ 5759 public boolean hasClassObject() { 5760 return ((bitField0_ & 0x00000008) == 0x00000008); 5761 } 5762 /** 5763 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 5764 * 5765 * <pre> 5766 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 5767 * </pre> 5768 */ 5769 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject getClassObject() { 5770 return classObject_; 5771 } 5772 5773 // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5; 5774 public static final int TYPE_PARAMETER_FIELD_NUMBER = 5; 5775 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> typeParameter_; 5776 /** 5777 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 5778 */ 5779 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> getTypeParameterList() { 5780 return typeParameter_; 5781 } 5782 /** 5783 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 5784 */ 5785 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder> 5786 getTypeParameterOrBuilderList() { 5787 return typeParameter_; 5788 } 5789 /** 5790 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 5791 */ 5792 public int getTypeParameterCount() { 5793 return typeParameter_.size(); 5794 } 5795 /** 5796 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 5797 */ 5798 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { 5799 return typeParameter_.get(index); 5800 } 5801 /** 5802 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 5803 */ 5804 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( 5805 int index) { 5806 return typeParameter_.get(index); 5807 } 5808 5809 // repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6; 5810 public static final int SUPERTYPE_FIELD_NUMBER = 6; 5811 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> supertype_; 5812 /** 5813 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 5814 */ 5815 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> getSupertypeList() { 5816 return supertype_; 5817 } 5818 /** 5819 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 5820 */ 5821 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder> 5822 getSupertypeOrBuilderList() { 5823 return supertype_; 5824 } 5825 /** 5826 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 5827 */ 5828 public int getSupertypeCount() { 5829 return supertype_.size(); 5830 } 5831 /** 5832 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 5833 */ 5834 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getSupertype(int index) { 5835 return supertype_.get(index); 5836 } 5837 /** 5838 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 5839 */ 5840 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder getSupertypeOrBuilder( 5841 int index) { 5842 return supertype_.get(index); 5843 } 5844 5845 // repeated int32 nested_class_name = 7; 5846 public static final int NESTED_CLASS_NAME_FIELD_NUMBER = 7; 5847 private java.util.List<java.lang.Integer> nestedClassName_; 5848 /** 5849 * <code>repeated int32 nested_class_name = 7;</code> 5850 * 5851 * <pre> 5852 * we store only names, because the actual information must reside in the corresponding .class files, 5853 * to be obtainable through reflection at runtime 5854 * </pre> 5855 */ 5856 public java.util.List<java.lang.Integer> 5857 getNestedClassNameList() { 5858 return nestedClassName_; 5859 } 5860 /** 5861 * <code>repeated int32 nested_class_name = 7;</code> 5862 * 5863 * <pre> 5864 * we store only names, because the actual information must reside in the corresponding .class files, 5865 * to be obtainable through reflection at runtime 5866 * </pre> 5867 */ 5868 public int getNestedClassNameCount() { 5869 return nestedClassName_.size(); 5870 } 5871 /** 5872 * <code>repeated int32 nested_class_name = 7;</code> 5873 * 5874 * <pre> 5875 * we store only names, because the actual information must reside in the corresponding .class files, 5876 * to be obtainable through reflection at runtime 5877 * </pre> 5878 */ 5879 public int getNestedClassName(int index) { 5880 return nestedClassName_.get(index); 5881 } 5882 5883 // repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11; 5884 public static final int MEMBER_FIELD_NUMBER = 11; 5885 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> member_; 5886 /** 5887 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 5888 */ 5889 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> getMemberList() { 5890 return member_; 5891 } 5892 /** 5893 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 5894 */ 5895 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder> 5896 getMemberOrBuilderList() { 5897 return member_; 5898 } 5899 /** 5900 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 5901 */ 5902 public int getMemberCount() { 5903 return member_.size(); 5904 } 5905 /** 5906 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 5907 */ 5908 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMember(int index) { 5909 return member_.get(index); 5910 } 5911 /** 5912 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 5913 */ 5914 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder getMemberOrBuilder( 5915 int index) { 5916 return member_.get(index); 5917 } 5918 5919 // repeated int32 enum_entry = 12; 5920 public static final int ENUM_ENTRY_FIELD_NUMBER = 12; 5921 private java.util.List<java.lang.Integer> enumEntry_; 5922 /** 5923 * <code>repeated int32 enum_entry = 12;</code> 5924 */ 5925 public java.util.List<java.lang.Integer> 5926 getEnumEntryList() { 5927 return enumEntry_; 5928 } 5929 /** 5930 * <code>repeated int32 enum_entry = 12;</code> 5931 */ 5932 public int getEnumEntryCount() { 5933 return enumEntry_.size(); 5934 } 5935 /** 5936 * <code>repeated int32 enum_entry = 12;</code> 5937 */ 5938 public int getEnumEntry(int index) { 5939 return enumEntry_.get(index); 5940 } 5941 5942 // optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13; 5943 public static final int PRIMARY_CONSTRUCTOR_FIELD_NUMBER = 13; 5944 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor primaryConstructor_; 5945 /** 5946 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 5947 * 5948 * <pre> 5949 * This field is present if and only if the class has a primary constructor 5950 * </pre> 5951 */ 5952 public boolean hasPrimaryConstructor() { 5953 return ((bitField0_ & 0x00000010) == 0x00000010); 5954 } 5955 /** 5956 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 5957 * 5958 * <pre> 5959 * This field is present if and only if the class has a primary constructor 5960 * </pre> 5961 */ 5962 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor getPrimaryConstructor() { 5963 return primaryConstructor_; 5964 } 5965 5966 private void initFields() { 5967 flags_ = 0; 5968 extraVisibility_ = ""; 5969 fqName_ = 0; 5970 classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance(); 5971 typeParameter_ = java.util.Collections.emptyList(); 5972 supertype_ = java.util.Collections.emptyList(); 5973 nestedClassName_ = java.util.Collections.emptyList(); 5974 member_ = java.util.Collections.emptyList(); 5975 enumEntry_ = java.util.Collections.emptyList(); 5976 primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); 5977 } 5978 private byte memoizedIsInitialized = -1; 5979 public final boolean isInitialized() { 5980 byte isInitialized = memoizedIsInitialized; 5981 if (isInitialized != -1) return isInitialized == 1; 5982 5983 if (!hasFqName()) { 5984 memoizedIsInitialized = 0; 5985 return false; 5986 } 5987 if (hasClassObject()) { 5988 if (!getClassObject().isInitialized()) { 5989 memoizedIsInitialized = 0; 5990 return false; 5991 } 5992 } 5993 for (int i = 0; i < getTypeParameterCount(); i++) { 5994 if (!getTypeParameter(i).isInitialized()) { 5995 memoizedIsInitialized = 0; 5996 return false; 5997 } 5998 } 5999 for (int i = 0; i < getSupertypeCount(); i++) { 6000 if (!getSupertype(i).isInitialized()) { 6001 memoizedIsInitialized = 0; 6002 return false; 6003 } 6004 } 6005 for (int i = 0; i < getMemberCount(); i++) { 6006 if (!getMember(i).isInitialized()) { 6007 memoizedIsInitialized = 0; 6008 return false; 6009 } 6010 } 6011 if (hasPrimaryConstructor()) { 6012 if (!getPrimaryConstructor().isInitialized()) { 6013 memoizedIsInitialized = 0; 6014 return false; 6015 } 6016 } 6017 memoizedIsInitialized = 1; 6018 return true; 6019 } 6020 6021 public void writeTo(com.google.protobuf.CodedOutputStream output) 6022 throws java.io.IOException { 6023 getSerializedSize(); 6024 if (((bitField0_ & 0x00000001) == 0x00000001)) { 6025 output.writeInt32(1, flags_); 6026 } 6027 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6028 output.writeBytes(2, getExtraVisibilityBytes()); 6029 } 6030 if (((bitField0_ & 0x00000004) == 0x00000004)) { 6031 output.writeInt32(3, fqName_); 6032 } 6033 if (((bitField0_ & 0x00000008) == 0x00000008)) { 6034 output.writeMessage(4, classObject_); 6035 } 6036 for (int i = 0; i < typeParameter_.size(); i++) { 6037 output.writeMessage(5, typeParameter_.get(i)); 6038 } 6039 for (int i = 0; i < supertype_.size(); i++) { 6040 output.writeMessage(6, supertype_.get(i)); 6041 } 6042 for (int i = 0; i < nestedClassName_.size(); i++) { 6043 output.writeInt32(7, nestedClassName_.get(i)); 6044 } 6045 for (int i = 0; i < member_.size(); i++) { 6046 output.writeMessage(11, member_.get(i)); 6047 } 6048 for (int i = 0; i < enumEntry_.size(); i++) { 6049 output.writeInt32(12, enumEntry_.get(i)); 6050 } 6051 if (((bitField0_ & 0x00000010) == 0x00000010)) { 6052 output.writeMessage(13, primaryConstructor_); 6053 } 6054 } 6055 6056 private int memoizedSerializedSize = -1; 6057 public int getSerializedSize() { 6058 int size = memoizedSerializedSize; 6059 if (size != -1) return size; 6060 6061 size = 0; 6062 if (((bitField0_ & 0x00000001) == 0x00000001)) { 6063 size += com.google.protobuf.CodedOutputStream 6064 .computeInt32Size(1, flags_); 6065 } 6066 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6067 size += com.google.protobuf.CodedOutputStream 6068 .computeBytesSize(2, getExtraVisibilityBytes()); 6069 } 6070 if (((bitField0_ & 0x00000004) == 0x00000004)) { 6071 size += com.google.protobuf.CodedOutputStream 6072 .computeInt32Size(3, fqName_); 6073 } 6074 if (((bitField0_ & 0x00000008) == 0x00000008)) { 6075 size += com.google.protobuf.CodedOutputStream 6076 .computeMessageSize(4, classObject_); 6077 } 6078 for (int i = 0; i < typeParameter_.size(); i++) { 6079 size += com.google.protobuf.CodedOutputStream 6080 .computeMessageSize(5, typeParameter_.get(i)); 6081 } 6082 for (int i = 0; i < supertype_.size(); i++) { 6083 size += com.google.protobuf.CodedOutputStream 6084 .computeMessageSize(6, supertype_.get(i)); 6085 } 6086 { 6087 int dataSize = 0; 6088 for (int i = 0; i < nestedClassName_.size(); i++) { 6089 dataSize += com.google.protobuf.CodedOutputStream 6090 .computeInt32SizeNoTag(nestedClassName_.get(i)); 6091 } 6092 size += dataSize; 6093 size += 1 * getNestedClassNameList().size(); 6094 } 6095 for (int i = 0; i < member_.size(); i++) { 6096 size += com.google.protobuf.CodedOutputStream 6097 .computeMessageSize(11, member_.get(i)); 6098 } 6099 { 6100 int dataSize = 0; 6101 for (int i = 0; i < enumEntry_.size(); i++) { 6102 dataSize += com.google.protobuf.CodedOutputStream 6103 .computeInt32SizeNoTag(enumEntry_.get(i)); 6104 } 6105 size += dataSize; 6106 size += 1 * getEnumEntryList().size(); 6107 } 6108 if (((bitField0_ & 0x00000010) == 0x00000010)) { 6109 size += com.google.protobuf.CodedOutputStream 6110 .computeMessageSize(13, primaryConstructor_); 6111 } 6112 memoizedSerializedSize = size; 6113 return size; 6114 } 6115 6116 private static final long serialVersionUID = 0L; 6117 @java.lang.Override 6118 protected java.lang.Object writeReplace() 6119 throws java.io.ObjectStreamException { 6120 return super.writeReplace(); 6121 } 6122 6123 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( 6124 com.google.protobuf.ByteString data) 6125 throws com.google.protobuf.InvalidProtocolBufferException { 6126 return PARSER.parseFrom(data); 6127 } 6128 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( 6129 com.google.protobuf.ByteString data, 6130 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6131 throws com.google.protobuf.InvalidProtocolBufferException { 6132 return PARSER.parseFrom(data, extensionRegistry); 6133 } 6134 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom(byte[] data) 6135 throws com.google.protobuf.InvalidProtocolBufferException { 6136 return PARSER.parseFrom(data); 6137 } 6138 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( 6139 byte[] data, 6140 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6141 throws com.google.protobuf.InvalidProtocolBufferException { 6142 return PARSER.parseFrom(data, extensionRegistry); 6143 } 6144 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom(java.io.InputStream input) 6145 throws java.io.IOException { 6146 return PARSER.parseFrom(input); 6147 } 6148 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( 6149 java.io.InputStream input, 6150 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6151 throws java.io.IOException { 6152 return PARSER.parseFrom(input, extensionRegistry); 6153 } 6154 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseDelimitedFrom(java.io.InputStream input) 6155 throws java.io.IOException { 6156 return PARSER.parseDelimitedFrom(input); 6157 } 6158 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseDelimitedFrom( 6159 java.io.InputStream input, 6160 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6161 throws java.io.IOException { 6162 return PARSER.parseDelimitedFrom(input, extensionRegistry); 6163 } 6164 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( 6165 com.google.protobuf.CodedInputStream input) 6166 throws java.io.IOException { 6167 return PARSER.parseFrom(input); 6168 } 6169 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( 6170 com.google.protobuf.CodedInputStream input, 6171 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6172 throws java.io.IOException { 6173 return PARSER.parseFrom(input, extensionRegistry); 6174 } 6175 6176 public static Builder newBuilder() { return Builder.create(); } 6177 public Builder newBuilderForType() { return newBuilder(); } 6178 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class prototype) { 6179 return newBuilder().mergeFrom(prototype); 6180 } 6181 public Builder toBuilder() { return newBuilder(this); } 6182 6183 /** 6184 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Class} 6185 */ 6186 public static final class Builder extends 6187 com.google.protobuf.GeneratedMessageLite.Builder< 6188 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class, Builder> 6189 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.ClassOrBuilder { 6190 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.newBuilder() 6191 private Builder() { 6192 maybeForceBuilderInitialization(); 6193 } 6194 6195 private void maybeForceBuilderInitialization() { 6196 } 6197 private static Builder create() { 6198 return new Builder(); 6199 } 6200 6201 public Builder clear() { 6202 super.clear(); 6203 flags_ = 0; 6204 bitField0_ = (bitField0_ & ~0x00000001); 6205 extraVisibility_ = ""; 6206 bitField0_ = (bitField0_ & ~0x00000002); 6207 fqName_ = 0; 6208 bitField0_ = (bitField0_ & ~0x00000004); 6209 classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance(); 6210 bitField0_ = (bitField0_ & ~0x00000008); 6211 typeParameter_ = java.util.Collections.emptyList(); 6212 bitField0_ = (bitField0_ & ~0x00000010); 6213 supertype_ = java.util.Collections.emptyList(); 6214 bitField0_ = (bitField0_ & ~0x00000020); 6215 nestedClassName_ = java.util.Collections.emptyList(); 6216 bitField0_ = (bitField0_ & ~0x00000040); 6217 member_ = java.util.Collections.emptyList(); 6218 bitField0_ = (bitField0_ & ~0x00000080); 6219 enumEntry_ = java.util.Collections.emptyList(); 6220 bitField0_ = (bitField0_ & ~0x00000100); 6221 primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); 6222 bitField0_ = (bitField0_ & ~0x00000200); 6223 return this; 6224 } 6225 6226 public Builder clone() { 6227 return create().mergeFrom(buildPartial()); 6228 } 6229 6230 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class getDefaultInstanceForType() { 6231 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance(); 6232 } 6233 6234 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class build() { 6235 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class result = buildPartial(); 6236 if (!result.isInitialized()) { 6237 throw newUninitializedMessageException(result); 6238 } 6239 return result; 6240 } 6241 6242 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class buildPartial() { 6243 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class(this); 6244 int from_bitField0_ = bitField0_; 6245 int to_bitField0_ = 0; 6246 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 6247 to_bitField0_ |= 0x00000001; 6248 } 6249 result.flags_ = flags_; 6250 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 6251 to_bitField0_ |= 0x00000002; 6252 } 6253 result.extraVisibility_ = extraVisibility_; 6254 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 6255 to_bitField0_ |= 0x00000004; 6256 } 6257 result.fqName_ = fqName_; 6258 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 6259 to_bitField0_ |= 0x00000008; 6260 } 6261 result.classObject_ = classObject_; 6262 if (((bitField0_ & 0x00000010) == 0x00000010)) { 6263 typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); 6264 bitField0_ = (bitField0_ & ~0x00000010); 6265 } 6266 result.typeParameter_ = typeParameter_; 6267 if (((bitField0_ & 0x00000020) == 0x00000020)) { 6268 supertype_ = java.util.Collections.unmodifiableList(supertype_); 6269 bitField0_ = (bitField0_ & ~0x00000020); 6270 } 6271 result.supertype_ = supertype_; 6272 if (((bitField0_ & 0x00000040) == 0x00000040)) { 6273 nestedClassName_ = java.util.Collections.unmodifiableList(nestedClassName_); 6274 bitField0_ = (bitField0_ & ~0x00000040); 6275 } 6276 result.nestedClassName_ = nestedClassName_; 6277 if (((bitField0_ & 0x00000080) == 0x00000080)) { 6278 member_ = java.util.Collections.unmodifiableList(member_); 6279 bitField0_ = (bitField0_ & ~0x00000080); 6280 } 6281 result.member_ = member_; 6282 if (((bitField0_ & 0x00000100) == 0x00000100)) { 6283 enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); 6284 bitField0_ = (bitField0_ & ~0x00000100); 6285 } 6286 result.enumEntry_ = enumEntry_; 6287 if (((from_bitField0_ & 0x00000200) == 0x00000200)) { 6288 to_bitField0_ |= 0x00000010; 6289 } 6290 result.primaryConstructor_ = primaryConstructor_; 6291 result.bitField0_ = to_bitField0_; 6292 return result; 6293 } 6294 6295 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class other) { 6296 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance()) return this; 6297 if (other.hasFlags()) { 6298 setFlags(other.getFlags()); 6299 } 6300 if (other.hasExtraVisibility()) { 6301 bitField0_ |= 0x00000002; 6302 extraVisibility_ = other.extraVisibility_; 6303 6304 } 6305 if (other.hasFqName()) { 6306 setFqName(other.getFqName()); 6307 } 6308 if (other.hasClassObject()) { 6309 mergeClassObject(other.getClassObject()); 6310 } 6311 if (!other.typeParameter_.isEmpty()) { 6312 if (typeParameter_.isEmpty()) { 6313 typeParameter_ = other.typeParameter_; 6314 bitField0_ = (bitField0_ & ~0x00000010); 6315 } else { 6316 ensureTypeParameterIsMutable(); 6317 typeParameter_.addAll(other.typeParameter_); 6318 } 6319 6320 } 6321 if (!other.supertype_.isEmpty()) { 6322 if (supertype_.isEmpty()) { 6323 supertype_ = other.supertype_; 6324 bitField0_ = (bitField0_ & ~0x00000020); 6325 } else { 6326 ensureSupertypeIsMutable(); 6327 supertype_.addAll(other.supertype_); 6328 } 6329 6330 } 6331 if (!other.nestedClassName_.isEmpty()) { 6332 if (nestedClassName_.isEmpty()) { 6333 nestedClassName_ = other.nestedClassName_; 6334 bitField0_ = (bitField0_ & ~0x00000040); 6335 } else { 6336 ensureNestedClassNameIsMutable(); 6337 nestedClassName_.addAll(other.nestedClassName_); 6338 } 6339 6340 } 6341 if (!other.member_.isEmpty()) { 6342 if (member_.isEmpty()) { 6343 member_ = other.member_; 6344 bitField0_ = (bitField0_ & ~0x00000080); 6345 } else { 6346 ensureMemberIsMutable(); 6347 member_.addAll(other.member_); 6348 } 6349 6350 } 6351 if (!other.enumEntry_.isEmpty()) { 6352 if (enumEntry_.isEmpty()) { 6353 enumEntry_ = other.enumEntry_; 6354 bitField0_ = (bitField0_ & ~0x00000100); 6355 } else { 6356 ensureEnumEntryIsMutable(); 6357 enumEntry_.addAll(other.enumEntry_); 6358 } 6359 6360 } 6361 if (other.hasPrimaryConstructor()) { 6362 mergePrimaryConstructor(other.getPrimaryConstructor()); 6363 } 6364 return this; 6365 } 6366 6367 public final boolean isInitialized() { 6368 if (!hasFqName()) { 6369 6370 return false; 6371 } 6372 if (hasClassObject()) { 6373 if (!getClassObject().isInitialized()) { 6374 6375 return false; 6376 } 6377 } 6378 for (int i = 0; i < getTypeParameterCount(); i++) { 6379 if (!getTypeParameter(i).isInitialized()) { 6380 6381 return false; 6382 } 6383 } 6384 for (int i = 0; i < getSupertypeCount(); i++) { 6385 if (!getSupertype(i).isInitialized()) { 6386 6387 return false; 6388 } 6389 } 6390 for (int i = 0; i < getMemberCount(); i++) { 6391 if (!getMember(i).isInitialized()) { 6392 6393 return false; 6394 } 6395 } 6396 if (hasPrimaryConstructor()) { 6397 if (!getPrimaryConstructor().isInitialized()) { 6398 6399 return false; 6400 } 6401 } 6402 return true; 6403 } 6404 6405 public Builder mergeFrom( 6406 com.google.protobuf.CodedInputStream input, 6407 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6408 throws java.io.IOException { 6409 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parsedMessage = null; 6410 try { 6411 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 6412 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6413 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class) e.getUnfinishedMessage(); 6414 throw e; 6415 } finally { 6416 if (parsedMessage != null) { 6417 mergeFrom(parsedMessage); 6418 } 6419 } 6420 return this; 6421 } 6422 private int bitField0_; 6423 6424 // optional int32 flags = 1 [default = 0]; 6425 private int flags_ ; 6426 /** 6427 * <code>optional int32 flags = 1 [default = 0];</code> 6428 * 6429 * <pre> 6430 * 6431 *Visibility 6432 *Modality 6433 *has_annotation 6434 *ClassKind 6435 *is_inner 6436 * </pre> 6437 */ 6438 public boolean hasFlags() { 6439 return ((bitField0_ & 0x00000001) == 0x00000001); 6440 } 6441 /** 6442 * <code>optional int32 flags = 1 [default = 0];</code> 6443 * 6444 * <pre> 6445 * 6446 *Visibility 6447 *Modality 6448 *has_annotation 6449 *ClassKind 6450 *is_inner 6451 * </pre> 6452 */ 6453 public int getFlags() { 6454 return flags_; 6455 } 6456 /** 6457 * <code>optional int32 flags = 1 [default = 0];</code> 6458 * 6459 * <pre> 6460 * 6461 *Visibility 6462 *Modality 6463 *has_annotation 6464 *ClassKind 6465 *is_inner 6466 * </pre> 6467 */ 6468 public Builder setFlags(int value) { 6469 bitField0_ |= 0x00000001; 6470 flags_ = value; 6471 6472 return this; 6473 } 6474 /** 6475 * <code>optional int32 flags = 1 [default = 0];</code> 6476 * 6477 * <pre> 6478 * 6479 *Visibility 6480 *Modality 6481 *has_annotation 6482 *ClassKind 6483 *is_inner 6484 * </pre> 6485 */ 6486 public Builder clearFlags() { 6487 bitField0_ = (bitField0_ & ~0x00000001); 6488 flags_ = 0; 6489 6490 return this; 6491 } 6492 6493 // optional string extra_visibility = 2; 6494 private java.lang.Object extraVisibility_ = ""; 6495 /** 6496 * <code>optional string extra_visibility = 2;</code> 6497 * 6498 * <pre> 6499 * for things like java-specific visibilities 6500 * </pre> 6501 */ 6502 public boolean hasExtraVisibility() { 6503 return ((bitField0_ & 0x00000002) == 0x00000002); 6504 } 6505 /** 6506 * <code>optional string extra_visibility = 2;</code> 6507 * 6508 * <pre> 6509 * for things like java-specific visibilities 6510 * </pre> 6511 */ 6512 public java.lang.String getExtraVisibility() { 6513 java.lang.Object ref = extraVisibility_; 6514 if (!(ref instanceof java.lang.String)) { 6515 java.lang.String s = ((com.google.protobuf.ByteString) ref) 6516 .toStringUtf8(); 6517 extraVisibility_ = s; 6518 return s; 6519 } else { 6520 return (java.lang.String) ref; 6521 } 6522 } 6523 /** 6524 * <code>optional string extra_visibility = 2;</code> 6525 * 6526 * <pre> 6527 * for things like java-specific visibilities 6528 * </pre> 6529 */ 6530 public com.google.protobuf.ByteString 6531 getExtraVisibilityBytes() { 6532 java.lang.Object ref = extraVisibility_; 6533 if (ref instanceof String) { 6534 com.google.protobuf.ByteString b = 6535 com.google.protobuf.ByteString.copyFromUtf8( 6536 (java.lang.String) ref); 6537 extraVisibility_ = b; 6538 return b; 6539 } else { 6540 return (com.google.protobuf.ByteString) ref; 6541 } 6542 } 6543 /** 6544 * <code>optional string extra_visibility = 2;</code> 6545 * 6546 * <pre> 6547 * for things like java-specific visibilities 6548 * </pre> 6549 */ 6550 public Builder setExtraVisibility( 6551 java.lang.String value) { 6552 if (value == null) { 6553 throw new NullPointerException(); 6554 } 6555 bitField0_ |= 0x00000002; 6556 extraVisibility_ = value; 6557 6558 return this; 6559 } 6560 /** 6561 * <code>optional string extra_visibility = 2;</code> 6562 * 6563 * <pre> 6564 * for things like java-specific visibilities 6565 * </pre> 6566 */ 6567 public Builder clearExtraVisibility() { 6568 bitField0_ = (bitField0_ & ~0x00000002); 6569 extraVisibility_ = getDefaultInstance().getExtraVisibility(); 6570 6571 return this; 6572 } 6573 /** 6574 * <code>optional string extra_visibility = 2;</code> 6575 * 6576 * <pre> 6577 * for things like java-specific visibilities 6578 * </pre> 6579 */ 6580 public Builder setExtraVisibilityBytes( 6581 com.google.protobuf.ByteString value) { 6582 if (value == null) { 6583 throw new NullPointerException(); 6584 } 6585 bitField0_ |= 0x00000002; 6586 extraVisibility_ = value; 6587 6588 return this; 6589 } 6590 6591 // required int32 fq_name = 3; 6592 private int fqName_ ; 6593 /** 6594 * <code>required int32 fq_name = 3;</code> 6595 */ 6596 public boolean hasFqName() { 6597 return ((bitField0_ & 0x00000004) == 0x00000004); 6598 } 6599 /** 6600 * <code>required int32 fq_name = 3;</code> 6601 */ 6602 public int getFqName() { 6603 return fqName_; 6604 } 6605 /** 6606 * <code>required int32 fq_name = 3;</code> 6607 */ 6608 public Builder setFqName(int value) { 6609 bitField0_ |= 0x00000004; 6610 fqName_ = value; 6611 6612 return this; 6613 } 6614 /** 6615 * <code>required int32 fq_name = 3;</code> 6616 */ 6617 public Builder clearFqName() { 6618 bitField0_ = (bitField0_ & ~0x00000004); 6619 fqName_ = 0; 6620 6621 return this; 6622 } 6623 6624 // optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4; 6625 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance(); 6626 /** 6627 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 6628 * 6629 * <pre> 6630 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 6631 * </pre> 6632 */ 6633 public boolean hasClassObject() { 6634 return ((bitField0_ & 0x00000008) == 0x00000008); 6635 } 6636 /** 6637 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 6638 * 6639 * <pre> 6640 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 6641 * </pre> 6642 */ 6643 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject getClassObject() { 6644 return classObject_; 6645 } 6646 /** 6647 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 6648 * 6649 * <pre> 6650 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 6651 * </pre> 6652 */ 6653 public Builder setClassObject(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject value) { 6654 if (value == null) { 6655 throw new NullPointerException(); 6656 } 6657 classObject_ = value; 6658 6659 bitField0_ |= 0x00000008; 6660 return this; 6661 } 6662 /** 6663 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 6664 * 6665 * <pre> 6666 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 6667 * </pre> 6668 */ 6669 public Builder setClassObject( 6670 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.Builder builderForValue) { 6671 classObject_ = builderForValue.build(); 6672 6673 bitField0_ |= 0x00000008; 6674 return this; 6675 } 6676 /** 6677 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 6678 * 6679 * <pre> 6680 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 6681 * </pre> 6682 */ 6683 public Builder mergeClassObject(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject value) { 6684 if (((bitField0_ & 0x00000008) == 0x00000008) && 6685 classObject_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance()) { 6686 classObject_ = 6687 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.newBuilder(classObject_).mergeFrom(value).buildPartial(); 6688 } else { 6689 classObject_ = value; 6690 } 6691 6692 bitField0_ |= 0x00000008; 6693 return this; 6694 } 6695 /** 6696 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.ClassObject class_object = 4;</code> 6697 * 6698 * <pre> 6699 * This field is present if and only if the class has a class object. Its proto should be found either here or in the separate file 6700 * </pre> 6701 */ 6702 public Builder clearClassObject() { 6703 classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.ClassObject.getDefaultInstance(); 6704 6705 bitField0_ = (bitField0_ & ~0x00000008); 6706 return this; 6707 } 6708 6709 // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5; 6710 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> typeParameter_ = 6711 java.util.Collections.emptyList(); 6712 private void ensureTypeParameterIsMutable() { 6713 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 6714 typeParameter_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter>(typeParameter_); 6715 bitField0_ |= 0x00000010; 6716 } 6717 } 6718 6719 /** 6720 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6721 */ 6722 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> getTypeParameterList() { 6723 return java.util.Collections.unmodifiableList(typeParameter_); 6724 } 6725 /** 6726 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6727 */ 6728 public int getTypeParameterCount() { 6729 return typeParameter_.size(); 6730 } 6731 /** 6732 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6733 */ 6734 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { 6735 return typeParameter_.get(index); 6736 } 6737 /** 6738 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6739 */ 6740 public Builder setTypeParameter( 6741 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { 6742 if (value == null) { 6743 throw new NullPointerException(); 6744 } 6745 ensureTypeParameterIsMutable(); 6746 typeParameter_.set(index, value); 6747 6748 return this; 6749 } 6750 /** 6751 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6752 */ 6753 public Builder setTypeParameter( 6754 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { 6755 ensureTypeParameterIsMutable(); 6756 typeParameter_.set(index, builderForValue.build()); 6757 6758 return this; 6759 } 6760 /** 6761 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6762 */ 6763 public Builder addTypeParameter(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { 6764 if (value == null) { 6765 throw new NullPointerException(); 6766 } 6767 ensureTypeParameterIsMutable(); 6768 typeParameter_.add(value); 6769 6770 return this; 6771 } 6772 /** 6773 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6774 */ 6775 public Builder addTypeParameter( 6776 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { 6777 if (value == null) { 6778 throw new NullPointerException(); 6779 } 6780 ensureTypeParameterIsMutable(); 6781 typeParameter_.add(index, value); 6782 6783 return this; 6784 } 6785 /** 6786 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6787 */ 6788 public Builder addTypeParameter( 6789 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { 6790 ensureTypeParameterIsMutable(); 6791 typeParameter_.add(builderForValue.build()); 6792 6793 return this; 6794 } 6795 /** 6796 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6797 */ 6798 public Builder addTypeParameter( 6799 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { 6800 ensureTypeParameterIsMutable(); 6801 typeParameter_.add(index, builderForValue.build()); 6802 6803 return this; 6804 } 6805 /** 6806 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6807 */ 6808 public Builder addAllTypeParameter( 6809 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> values) { 6810 ensureTypeParameterIsMutable(); 6811 super.addAll(values, typeParameter_); 6812 6813 return this; 6814 } 6815 /** 6816 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6817 */ 6818 public Builder clearTypeParameter() { 6819 typeParameter_ = java.util.Collections.emptyList(); 6820 bitField0_ = (bitField0_ & ~0x00000010); 6821 6822 return this; 6823 } 6824 /** 6825 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 5;</code> 6826 */ 6827 public Builder removeTypeParameter(int index) { 6828 ensureTypeParameterIsMutable(); 6829 typeParameter_.remove(index); 6830 6831 return this; 6832 } 6833 6834 // repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6; 6835 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> supertype_ = 6836 java.util.Collections.emptyList(); 6837 private void ensureSupertypeIsMutable() { 6838 if (!((bitField0_ & 0x00000020) == 0x00000020)) { 6839 supertype_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type>(supertype_); 6840 bitField0_ |= 0x00000020; 6841 } 6842 } 6843 6844 /** 6845 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6846 */ 6847 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> getSupertypeList() { 6848 return java.util.Collections.unmodifiableList(supertype_); 6849 } 6850 /** 6851 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6852 */ 6853 public int getSupertypeCount() { 6854 return supertype_.size(); 6855 } 6856 /** 6857 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6858 */ 6859 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getSupertype(int index) { 6860 return supertype_.get(index); 6861 } 6862 /** 6863 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6864 */ 6865 public Builder setSupertype( 6866 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 6867 if (value == null) { 6868 throw new NullPointerException(); 6869 } 6870 ensureSupertypeIsMutable(); 6871 supertype_.set(index, value); 6872 6873 return this; 6874 } 6875 /** 6876 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6877 */ 6878 public Builder setSupertype( 6879 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 6880 ensureSupertypeIsMutable(); 6881 supertype_.set(index, builderForValue.build()); 6882 6883 return this; 6884 } 6885 /** 6886 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6887 */ 6888 public Builder addSupertype(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 6889 if (value == null) { 6890 throw new NullPointerException(); 6891 } 6892 ensureSupertypeIsMutable(); 6893 supertype_.add(value); 6894 6895 return this; 6896 } 6897 /** 6898 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6899 */ 6900 public Builder addSupertype( 6901 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 6902 if (value == null) { 6903 throw new NullPointerException(); 6904 } 6905 ensureSupertypeIsMutable(); 6906 supertype_.add(index, value); 6907 6908 return this; 6909 } 6910 /** 6911 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6912 */ 6913 public Builder addSupertype( 6914 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 6915 ensureSupertypeIsMutable(); 6916 supertype_.add(builderForValue.build()); 6917 6918 return this; 6919 } 6920 /** 6921 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6922 */ 6923 public Builder addSupertype( 6924 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 6925 ensureSupertypeIsMutable(); 6926 supertype_.add(index, builderForValue.build()); 6927 6928 return this; 6929 } 6930 /** 6931 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6932 */ 6933 public Builder addAllSupertype( 6934 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type> values) { 6935 ensureSupertypeIsMutable(); 6936 super.addAll(values, supertype_); 6937 6938 return this; 6939 } 6940 /** 6941 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6942 */ 6943 public Builder clearSupertype() { 6944 supertype_ = java.util.Collections.emptyList(); 6945 bitField0_ = (bitField0_ & ~0x00000020); 6946 6947 return this; 6948 } 6949 /** 6950 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Type supertype = 6;</code> 6951 */ 6952 public Builder removeSupertype(int index) { 6953 ensureSupertypeIsMutable(); 6954 supertype_.remove(index); 6955 6956 return this; 6957 } 6958 6959 // repeated int32 nested_class_name = 7; 6960 private java.util.List<java.lang.Integer> nestedClassName_ = java.util.Collections.emptyList(); 6961 private void ensureNestedClassNameIsMutable() { 6962 if (!((bitField0_ & 0x00000040) == 0x00000040)) { 6963 nestedClassName_ = new java.util.ArrayList<java.lang.Integer>(nestedClassName_); 6964 bitField0_ |= 0x00000040; 6965 } 6966 } 6967 /** 6968 * <code>repeated int32 nested_class_name = 7;</code> 6969 * 6970 * <pre> 6971 * we store only names, because the actual information must reside in the corresponding .class files, 6972 * to be obtainable through reflection at runtime 6973 * </pre> 6974 */ 6975 public java.util.List<java.lang.Integer> 6976 getNestedClassNameList() { 6977 return java.util.Collections.unmodifiableList(nestedClassName_); 6978 } 6979 /** 6980 * <code>repeated int32 nested_class_name = 7;</code> 6981 * 6982 * <pre> 6983 * we store only names, because the actual information must reside in the corresponding .class files, 6984 * to be obtainable through reflection at runtime 6985 * </pre> 6986 */ 6987 public int getNestedClassNameCount() { 6988 return nestedClassName_.size(); 6989 } 6990 /** 6991 * <code>repeated int32 nested_class_name = 7;</code> 6992 * 6993 * <pre> 6994 * we store only names, because the actual information must reside in the corresponding .class files, 6995 * to be obtainable through reflection at runtime 6996 * </pre> 6997 */ 6998 public int getNestedClassName(int index) { 6999 return nestedClassName_.get(index); 7000 } 7001 /** 7002 * <code>repeated int32 nested_class_name = 7;</code> 7003 * 7004 * <pre> 7005 * we store only names, because the actual information must reside in the corresponding .class files, 7006 * to be obtainable through reflection at runtime 7007 * </pre> 7008 */ 7009 public Builder setNestedClassName( 7010 int index, int value) { 7011 ensureNestedClassNameIsMutable(); 7012 nestedClassName_.set(index, value); 7013 7014 return this; 7015 } 7016 /** 7017 * <code>repeated int32 nested_class_name = 7;</code> 7018 * 7019 * <pre> 7020 * we store only names, because the actual information must reside in the corresponding .class files, 7021 * to be obtainable through reflection at runtime 7022 * </pre> 7023 */ 7024 public Builder addNestedClassName(int value) { 7025 ensureNestedClassNameIsMutable(); 7026 nestedClassName_.add(value); 7027 7028 return this; 7029 } 7030 /** 7031 * <code>repeated int32 nested_class_name = 7;</code> 7032 * 7033 * <pre> 7034 * we store only names, because the actual information must reside in the corresponding .class files, 7035 * to be obtainable through reflection at runtime 7036 * </pre> 7037 */ 7038 public Builder addAllNestedClassName( 7039 java.lang.Iterable<? extends java.lang.Integer> values) { 7040 ensureNestedClassNameIsMutable(); 7041 super.addAll(values, nestedClassName_); 7042 7043 return this; 7044 } 7045 /** 7046 * <code>repeated int32 nested_class_name = 7;</code> 7047 * 7048 * <pre> 7049 * we store only names, because the actual information must reside in the corresponding .class files, 7050 * to be obtainable through reflection at runtime 7051 * </pre> 7052 */ 7053 public Builder clearNestedClassName() { 7054 nestedClassName_ = java.util.Collections.emptyList(); 7055 bitField0_ = (bitField0_ & ~0x00000040); 7056 7057 return this; 7058 } 7059 7060 // repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11; 7061 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> member_ = 7062 java.util.Collections.emptyList(); 7063 private void ensureMemberIsMutable() { 7064 if (!((bitField0_ & 0x00000080) == 0x00000080)) { 7065 member_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable>(member_); 7066 bitField0_ |= 0x00000080; 7067 } 7068 } 7069 7070 /** 7071 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7072 */ 7073 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> getMemberList() { 7074 return java.util.Collections.unmodifiableList(member_); 7075 } 7076 /** 7077 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7078 */ 7079 public int getMemberCount() { 7080 return member_.size(); 7081 } 7082 /** 7083 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7084 */ 7085 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMember(int index) { 7086 return member_.get(index); 7087 } 7088 /** 7089 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7090 */ 7091 public Builder setMember( 7092 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 7093 if (value == null) { 7094 throw new NullPointerException(); 7095 } 7096 ensureMemberIsMutable(); 7097 member_.set(index, value); 7098 7099 return this; 7100 } 7101 /** 7102 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7103 */ 7104 public Builder setMember( 7105 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 7106 ensureMemberIsMutable(); 7107 member_.set(index, builderForValue.build()); 7108 7109 return this; 7110 } 7111 /** 7112 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7113 */ 7114 public Builder addMember(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 7115 if (value == null) { 7116 throw new NullPointerException(); 7117 } 7118 ensureMemberIsMutable(); 7119 member_.add(value); 7120 7121 return this; 7122 } 7123 /** 7124 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7125 */ 7126 public Builder addMember( 7127 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 7128 if (value == null) { 7129 throw new NullPointerException(); 7130 } 7131 ensureMemberIsMutable(); 7132 member_.add(index, value); 7133 7134 return this; 7135 } 7136 /** 7137 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7138 */ 7139 public Builder addMember( 7140 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 7141 ensureMemberIsMutable(); 7142 member_.add(builderForValue.build()); 7143 7144 return this; 7145 } 7146 /** 7147 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7148 */ 7149 public Builder addMember( 7150 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 7151 ensureMemberIsMutable(); 7152 member_.add(index, builderForValue.build()); 7153 7154 return this; 7155 } 7156 /** 7157 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7158 */ 7159 public Builder addAllMember( 7160 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> values) { 7161 ensureMemberIsMutable(); 7162 super.addAll(values, member_); 7163 7164 return this; 7165 } 7166 /** 7167 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7168 */ 7169 public Builder clearMember() { 7170 member_ = java.util.Collections.emptyList(); 7171 bitField0_ = (bitField0_ & ~0x00000080); 7172 7173 return this; 7174 } 7175 /** 7176 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 11;</code> 7177 */ 7178 public Builder removeMember(int index) { 7179 ensureMemberIsMutable(); 7180 member_.remove(index); 7181 7182 return this; 7183 } 7184 7185 // repeated int32 enum_entry = 12; 7186 private java.util.List<java.lang.Integer> enumEntry_ = java.util.Collections.emptyList(); 7187 private void ensureEnumEntryIsMutable() { 7188 if (!((bitField0_ & 0x00000100) == 0x00000100)) { 7189 enumEntry_ = new java.util.ArrayList<java.lang.Integer>(enumEntry_); 7190 bitField0_ |= 0x00000100; 7191 } 7192 } 7193 /** 7194 * <code>repeated int32 enum_entry = 12;</code> 7195 */ 7196 public java.util.List<java.lang.Integer> 7197 getEnumEntryList() { 7198 return java.util.Collections.unmodifiableList(enumEntry_); 7199 } 7200 /** 7201 * <code>repeated int32 enum_entry = 12;</code> 7202 */ 7203 public int getEnumEntryCount() { 7204 return enumEntry_.size(); 7205 } 7206 /** 7207 * <code>repeated int32 enum_entry = 12;</code> 7208 */ 7209 public int getEnumEntry(int index) { 7210 return enumEntry_.get(index); 7211 } 7212 /** 7213 * <code>repeated int32 enum_entry = 12;</code> 7214 */ 7215 public Builder setEnumEntry( 7216 int index, int value) { 7217 ensureEnumEntryIsMutable(); 7218 enumEntry_.set(index, value); 7219 7220 return this; 7221 } 7222 /** 7223 * <code>repeated int32 enum_entry = 12;</code> 7224 */ 7225 public Builder addEnumEntry(int value) { 7226 ensureEnumEntryIsMutable(); 7227 enumEntry_.add(value); 7228 7229 return this; 7230 } 7231 /** 7232 * <code>repeated int32 enum_entry = 12;</code> 7233 */ 7234 public Builder addAllEnumEntry( 7235 java.lang.Iterable<? extends java.lang.Integer> values) { 7236 ensureEnumEntryIsMutable(); 7237 super.addAll(values, enumEntry_); 7238 7239 return this; 7240 } 7241 /** 7242 * <code>repeated int32 enum_entry = 12;</code> 7243 */ 7244 public Builder clearEnumEntry() { 7245 enumEntry_ = java.util.Collections.emptyList(); 7246 bitField0_ = (bitField0_ & ~0x00000100); 7247 7248 return this; 7249 } 7250 7251 // optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13; 7252 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); 7253 /** 7254 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 7255 * 7256 * <pre> 7257 * This field is present if and only if the class has a primary constructor 7258 * </pre> 7259 */ 7260 public boolean hasPrimaryConstructor() { 7261 return ((bitField0_ & 0x00000200) == 0x00000200); 7262 } 7263 /** 7264 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 7265 * 7266 * <pre> 7267 * This field is present if and only if the class has a primary constructor 7268 * </pre> 7269 */ 7270 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor getPrimaryConstructor() { 7271 return primaryConstructor_; 7272 } 7273 /** 7274 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 7275 * 7276 * <pre> 7277 * This field is present if and only if the class has a primary constructor 7278 * </pre> 7279 */ 7280 public Builder setPrimaryConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor value) { 7281 if (value == null) { 7282 throw new NullPointerException(); 7283 } 7284 primaryConstructor_ = value; 7285 7286 bitField0_ |= 0x00000200; 7287 return this; 7288 } 7289 /** 7290 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 7291 * 7292 * <pre> 7293 * This field is present if and only if the class has a primary constructor 7294 * </pre> 7295 */ 7296 public Builder setPrimaryConstructor( 7297 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.Builder builderForValue) { 7298 primaryConstructor_ = builderForValue.build(); 7299 7300 bitField0_ |= 0x00000200; 7301 return this; 7302 } 7303 /** 7304 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 7305 * 7306 * <pre> 7307 * This field is present if and only if the class has a primary constructor 7308 * </pre> 7309 */ 7310 public Builder mergePrimaryConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor value) { 7311 if (((bitField0_ & 0x00000200) == 0x00000200) && 7312 primaryConstructor_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance()) { 7313 primaryConstructor_ = 7314 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.newBuilder(primaryConstructor_).mergeFrom(value).buildPartial(); 7315 } else { 7316 primaryConstructor_ = value; 7317 } 7318 7319 bitField0_ |= 0x00000200; 7320 return this; 7321 } 7322 /** 7323 * <code>optional .org.jetbrains.jet.descriptors.serialization.Class.PrimaryConstructor primary_constructor = 13;</code> 7324 * 7325 * <pre> 7326 * This field is present if and only if the class has a primary constructor 7327 * </pre> 7328 */ 7329 public Builder clearPrimaryConstructor() { 7330 primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); 7331 7332 bitField0_ = (bitField0_ & ~0x00000200); 7333 return this; 7334 } 7335 7336 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Class) 7337 } 7338 7339 static { 7340 defaultInstance = new Class(true); 7341 defaultInstance.initFields(); 7342 } 7343 7344 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Class) 7345 } 7346 7347 public interface PackageOrBuilder 7348 extends com.google.protobuf.MessageLiteOrBuilder { 7349 7350 // repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1; 7351 /** 7352 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7353 */ 7354 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> 7355 getMemberList(); 7356 /** 7357 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7358 */ 7359 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMember(int index); 7360 /** 7361 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7362 */ 7363 int getMemberCount(); 7364 } 7365 /** 7366 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Package} 7367 */ 7368 public static final class Package extends 7369 com.google.protobuf.GeneratedMessageLite 7370 implements PackageOrBuilder { 7371 // Use Package.newBuilder() to construct. 7372 private Package(com.google.protobuf.GeneratedMessageLite.Builder builder) { 7373 super(builder); 7374 7375 } 7376 private Package(boolean noInit) {} 7377 7378 private static final Package defaultInstance; 7379 public static Package getDefaultInstance() { 7380 return defaultInstance; 7381 } 7382 7383 public Package getDefaultInstanceForType() { 7384 return defaultInstance; 7385 } 7386 7387 private Package( 7388 com.google.protobuf.CodedInputStream input, 7389 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7390 throws com.google.protobuf.InvalidProtocolBufferException { 7391 initFields(); 7392 int mutable_bitField0_ = 0; 7393 try { 7394 boolean done = false; 7395 while (!done) { 7396 int tag = input.readTag(); 7397 switch (tag) { 7398 case 0: 7399 done = true; 7400 break; 7401 default: { 7402 if (!parseUnknownField(input, 7403 extensionRegistry, tag)) { 7404 done = true; 7405 } 7406 break; 7407 } 7408 case 10: { 7409 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 7410 member_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable>(); 7411 mutable_bitField0_ |= 0x00000001; 7412 } 7413 member_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.PARSER, extensionRegistry)); 7414 break; 7415 } 7416 } 7417 } 7418 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7419 throw e.setUnfinishedMessage(this); 7420 } catch (java.io.IOException e) { 7421 throw new com.google.protobuf.InvalidProtocolBufferException( 7422 e.getMessage()).setUnfinishedMessage(this); 7423 } finally { 7424 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 7425 member_ = java.util.Collections.unmodifiableList(member_); 7426 } 7427 makeExtensionsImmutable(); 7428 } 7429 } 7430 public static com.google.protobuf.Parser<Package> PARSER = 7431 new com.google.protobuf.AbstractParser<Package>() { 7432 public Package parsePartialFrom( 7433 com.google.protobuf.CodedInputStream input, 7434 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7435 throws com.google.protobuf.InvalidProtocolBufferException { 7436 return new Package(input, extensionRegistry); 7437 } 7438 }; 7439 7440 @java.lang.Override 7441 public com.google.protobuf.Parser<Package> getParserForType() { 7442 return PARSER; 7443 } 7444 7445 // repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1; 7446 public static final int MEMBER_FIELD_NUMBER = 1; 7447 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> member_; 7448 /** 7449 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7450 */ 7451 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> getMemberList() { 7452 return member_; 7453 } 7454 /** 7455 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7456 */ 7457 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder> 7458 getMemberOrBuilderList() { 7459 return member_; 7460 } 7461 /** 7462 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7463 */ 7464 public int getMemberCount() { 7465 return member_.size(); 7466 } 7467 /** 7468 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7469 */ 7470 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMember(int index) { 7471 return member_.get(index); 7472 } 7473 /** 7474 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7475 */ 7476 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder getMemberOrBuilder( 7477 int index) { 7478 return member_.get(index); 7479 } 7480 7481 private void initFields() { 7482 member_ = java.util.Collections.emptyList(); 7483 } 7484 private byte memoizedIsInitialized = -1; 7485 public final boolean isInitialized() { 7486 byte isInitialized = memoizedIsInitialized; 7487 if (isInitialized != -1) return isInitialized == 1; 7488 7489 for (int i = 0; i < getMemberCount(); i++) { 7490 if (!getMember(i).isInitialized()) { 7491 memoizedIsInitialized = 0; 7492 return false; 7493 } 7494 } 7495 memoizedIsInitialized = 1; 7496 return true; 7497 } 7498 7499 public void writeTo(com.google.protobuf.CodedOutputStream output) 7500 throws java.io.IOException { 7501 getSerializedSize(); 7502 for (int i = 0; i < member_.size(); i++) { 7503 output.writeMessage(1, member_.get(i)); 7504 } 7505 } 7506 7507 private int memoizedSerializedSize = -1; 7508 public int getSerializedSize() { 7509 int size = memoizedSerializedSize; 7510 if (size != -1) return size; 7511 7512 size = 0; 7513 for (int i = 0; i < member_.size(); i++) { 7514 size += com.google.protobuf.CodedOutputStream 7515 .computeMessageSize(1, member_.get(i)); 7516 } 7517 memoizedSerializedSize = size; 7518 return size; 7519 } 7520 7521 private static final long serialVersionUID = 0L; 7522 @java.lang.Override 7523 protected java.lang.Object writeReplace() 7524 throws java.io.ObjectStreamException { 7525 return super.writeReplace(); 7526 } 7527 7528 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom( 7529 com.google.protobuf.ByteString data) 7530 throws com.google.protobuf.InvalidProtocolBufferException { 7531 return PARSER.parseFrom(data); 7532 } 7533 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom( 7534 com.google.protobuf.ByteString data, 7535 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7536 throws com.google.protobuf.InvalidProtocolBufferException { 7537 return PARSER.parseFrom(data, extensionRegistry); 7538 } 7539 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom(byte[] data) 7540 throws com.google.protobuf.InvalidProtocolBufferException { 7541 return PARSER.parseFrom(data); 7542 } 7543 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom( 7544 byte[] data, 7545 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7546 throws com.google.protobuf.InvalidProtocolBufferException { 7547 return PARSER.parseFrom(data, extensionRegistry); 7548 } 7549 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom(java.io.InputStream input) 7550 throws java.io.IOException { 7551 return PARSER.parseFrom(input); 7552 } 7553 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom( 7554 java.io.InputStream input, 7555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7556 throws java.io.IOException { 7557 return PARSER.parseFrom(input, extensionRegistry); 7558 } 7559 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseDelimitedFrom(java.io.InputStream input) 7560 throws java.io.IOException { 7561 return PARSER.parseDelimitedFrom(input); 7562 } 7563 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseDelimitedFrom( 7564 java.io.InputStream input, 7565 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7566 throws java.io.IOException { 7567 return PARSER.parseDelimitedFrom(input, extensionRegistry); 7568 } 7569 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom( 7570 com.google.protobuf.CodedInputStream input) 7571 throws java.io.IOException { 7572 return PARSER.parseFrom(input); 7573 } 7574 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parseFrom( 7575 com.google.protobuf.CodedInputStream input, 7576 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7577 throws java.io.IOException { 7578 return PARSER.parseFrom(input, extensionRegistry); 7579 } 7580 7581 public static Builder newBuilder() { return Builder.create(); } 7582 public Builder newBuilderForType() { return newBuilder(); } 7583 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package prototype) { 7584 return newBuilder().mergeFrom(prototype); 7585 } 7586 public Builder toBuilder() { return newBuilder(this); } 7587 7588 /** 7589 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Package} 7590 */ 7591 public static final class Builder extends 7592 com.google.protobuf.GeneratedMessageLite.Builder< 7593 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package, Builder> 7594 implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.PackageOrBuilder { 7595 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package.newBuilder() 7596 private Builder() { 7597 maybeForceBuilderInitialization(); 7598 } 7599 7600 private void maybeForceBuilderInitialization() { 7601 } 7602 private static Builder create() { 7603 return new Builder(); 7604 } 7605 7606 public Builder clear() { 7607 super.clear(); 7608 member_ = java.util.Collections.emptyList(); 7609 bitField0_ = (bitField0_ & ~0x00000001); 7610 return this; 7611 } 7612 7613 public Builder clone() { 7614 return create().mergeFrom(buildPartial()); 7615 } 7616 7617 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package getDefaultInstanceForType() { 7618 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package.getDefaultInstance(); 7619 } 7620 7621 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package build() { 7622 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package result = buildPartial(); 7623 if (!result.isInitialized()) { 7624 throw newUninitializedMessageException(result); 7625 } 7626 return result; 7627 } 7628 7629 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package buildPartial() { 7630 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package(this); 7631 int from_bitField0_ = bitField0_; 7632 if (((bitField0_ & 0x00000001) == 0x00000001)) { 7633 member_ = java.util.Collections.unmodifiableList(member_); 7634 bitField0_ = (bitField0_ & ~0x00000001); 7635 } 7636 result.member_ = member_; 7637 return result; 7638 } 7639 7640 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package other) { 7641 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package.getDefaultInstance()) return this; 7642 if (!other.member_.isEmpty()) { 7643 if (member_.isEmpty()) { 7644 member_ = other.member_; 7645 bitField0_ = (bitField0_ & ~0x00000001); 7646 } else { 7647 ensureMemberIsMutable(); 7648 member_.addAll(other.member_); 7649 } 7650 7651 } 7652 return this; 7653 } 7654 7655 public final boolean isInitialized() { 7656 for (int i = 0; i < getMemberCount(); i++) { 7657 if (!getMember(i).isInitialized()) { 7658 7659 return false; 7660 } 7661 } 7662 return true; 7663 } 7664 7665 public Builder mergeFrom( 7666 com.google.protobuf.CodedInputStream input, 7667 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7668 throws java.io.IOException { 7669 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package parsedMessage = null; 7670 try { 7671 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 7672 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7673 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Package) e.getUnfinishedMessage(); 7674 throw e; 7675 } finally { 7676 if (parsedMessage != null) { 7677 mergeFrom(parsedMessage); 7678 } 7679 } 7680 return this; 7681 } 7682 private int bitField0_; 7683 7684 // repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1; 7685 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> member_ = 7686 java.util.Collections.emptyList(); 7687 private void ensureMemberIsMutable() { 7688 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 7689 member_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable>(member_); 7690 bitField0_ |= 0x00000001; 7691 } 7692 } 7693 7694 /** 7695 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7696 */ 7697 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> getMemberList() { 7698 return java.util.Collections.unmodifiableList(member_); 7699 } 7700 /** 7701 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7702 */ 7703 public int getMemberCount() { 7704 return member_.size(); 7705 } 7706 /** 7707 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7708 */ 7709 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMember(int index) { 7710 return member_.get(index); 7711 } 7712 /** 7713 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7714 */ 7715 public Builder setMember( 7716 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 7717 if (value == null) { 7718 throw new NullPointerException(); 7719 } 7720 ensureMemberIsMutable(); 7721 member_.set(index, value); 7722 7723 return this; 7724 } 7725 /** 7726 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7727 */ 7728 public Builder setMember( 7729 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 7730 ensureMemberIsMutable(); 7731 member_.set(index, builderForValue.build()); 7732 7733 return this; 7734 } 7735 /** 7736 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7737 */ 7738 public Builder addMember(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 7739 if (value == null) { 7740 throw new NullPointerException(); 7741 } 7742 ensureMemberIsMutable(); 7743 member_.add(value); 7744 7745 return this; 7746 } 7747 /** 7748 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7749 */ 7750 public Builder addMember( 7751 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { 7752 if (value == null) { 7753 throw new NullPointerException(); 7754 } 7755 ensureMemberIsMutable(); 7756 member_.add(index, value); 7757 7758 return this; 7759 } 7760 /** 7761 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7762 */ 7763 public Builder addMember( 7764 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 7765 ensureMemberIsMutable(); 7766 member_.add(builderForValue.build()); 7767 7768 return this; 7769 } 7770 /** 7771 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7772 */ 7773 public Builder addMember( 7774 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { 7775 ensureMemberIsMutable(); 7776 member_.add(index, builderForValue.build()); 7777 7778 return this; 7779 } 7780 /** 7781 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7782 */ 7783 public Builder addAllMember( 7784 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable> values) { 7785 ensureMemberIsMutable(); 7786 super.addAll(values, member_); 7787 7788 return this; 7789 } 7790 /** 7791 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7792 */ 7793 public Builder clearMember() { 7794 member_ = java.util.Collections.emptyList(); 7795 bitField0_ = (bitField0_ & ~0x00000001); 7796 7797 return this; 7798 } 7799 /** 7800 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable member = 1;</code> 7801 */ 7802 public Builder removeMember(int index) { 7803 ensureMemberIsMutable(); 7804 member_.remove(index); 7805 7806 return this; 7807 } 7808 7809 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Package) 7810 } 7811 7812 static { 7813 defaultInstance = new Package(true); 7814 defaultInstance.initFields(); 7815 } 7816 7817 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Package) 7818 } 7819 7820 public interface CallableOrBuilder extends 7821 com.google.protobuf.GeneratedMessageLite. 7822 ExtendableMessageOrBuilder<Callable> { 7823 7824 // optional int32 flags = 1; 7825 /** 7826 * <code>optional int32 flags = 1;</code> 7827 * 7828 * <pre> 7829 * 7830 *Visibility 7831 *Modality 7832 *has_annotations 7833 *CallableKind 7834 *MemberKind 7835 *hasGetter 7836 *hasSetter 7837 * </pre> 7838 */ 7839 boolean hasFlags(); 7840 /** 7841 * <code>optional int32 flags = 1;</code> 7842 * 7843 * <pre> 7844 * 7845 *Visibility 7846 *Modality 7847 *has_annotations 7848 *CallableKind 7849 *MemberKind 7850 *hasGetter 7851 *hasSetter 7852 * </pre> 7853 */ 7854 int getFlags(); 7855 7856 // optional string extra_visibility = 2; 7857 /** 7858 * <code>optional string extra_visibility = 2;</code> 7859 * 7860 * <pre> 7861 * for things like java-specific visibilities 7862 * </pre> 7863 */ 7864 boolean hasExtraVisibility(); 7865 /** 7866 * <code>optional string extra_visibility = 2;</code> 7867 * 7868 * <pre> 7869 * for things like java-specific visibilities 7870 * </pre> 7871 */ 7872 java.lang.String getExtraVisibility(); 7873 /** 7874 * <code>optional string extra_visibility = 2;</code> 7875 * 7876 * <pre> 7877 * for things like java-specific visibilities 7878 * </pre> 7879 */ 7880 com.google.protobuf.ByteString 7881 getExtraVisibilityBytes(); 7882 7883 // optional int32 getter_flags = 9; 7884 /** 7885 * <code>optional int32 getter_flags = 9;</code> 7886 * 7887 * <pre> 7888 * 7889 *isNotDefault 7890 *Visibility 7891 *Modality 7892 *has_annotations 7893 * </pre> 7894 */ 7895 boolean hasGetterFlags(); 7896 /** 7897 * <code>optional int32 getter_flags = 9;</code> 7898 * 7899 * <pre> 7900 * 7901 *isNotDefault 7902 *Visibility 7903 *Modality 7904 *has_annotations 7905 * </pre> 7906 */ 7907 int getGetterFlags(); 7908 7909 // optional int32 setter_flags = 10; 7910 /** 7911 * <code>optional int32 setter_flags = 10;</code> 7912 */ 7913 boolean hasSetterFlags(); 7914 /** 7915 * <code>optional int32 setter_flags = 10;</code> 7916 */ 7917 int getSetterFlags(); 7918 7919 // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4; 7920 /** 7921 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 7922 */ 7923 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> 7924 getTypeParameterList(); 7925 /** 7926 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 7927 */ 7928 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameter(int index); 7929 /** 7930 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 7931 */ 7932 int getTypeParameterCount(); 7933 7934 // optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5; 7935 /** 7936 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 7937 */ 7938 boolean hasReceiverType(); 7939 /** 7940 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 7941 */ 7942 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReceiverType(); 7943 7944 // required int32 name = 6; 7945 /** 7946 * <code>required int32 name = 6;</code> 7947 */ 7948 boolean hasName(); 7949 /** 7950 * <code>required int32 name = 6;</code> 7951 */ 7952 int getName(); 7953 7954 // repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7; 7955 /** 7956 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 7957 * 7958 * <pre> 7959 * Value parameters for functions and constructors, or setter value parameter for properties 7960 * </pre> 7961 */ 7962 java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter> 7963 getValueParameterList(); 7964 /** 7965 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 7966 * 7967 * <pre> 7968 * Value parameters for functions and constructors, or setter value parameter for properties 7969 * </pre> 7970 */ 7971 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getValueParameter(int index); 7972 /** 7973 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 7974 * 7975 * <pre> 7976 * Value parameters for functions and constructors, or setter value parameter for properties 7977 * </pre> 7978 */ 7979 int getValueParameterCount(); 7980 7981 // required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8; 7982 /** 7983 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 7984 */ 7985 boolean hasReturnType(); 7986 /** 7987 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 7988 */ 7989 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReturnType(); 7990 } 7991 /** 7992 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Callable} 7993 */ 7994 public static final class Callable extends 7995 com.google.protobuf.GeneratedMessageLite.ExtendableMessage< 7996 Callable> implements CallableOrBuilder { 7997 // Use Callable.newBuilder() to construct. 7998 private Callable(com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable, ?> builder) { 7999 super(builder); 8000 8001 } 8002 private Callable(boolean noInit) {} 8003 8004 private static final Callable defaultInstance; 8005 public static Callable getDefaultInstance() { 8006 return defaultInstance; 8007 } 8008 8009 public Callable getDefaultInstanceForType() { 8010 return defaultInstance; 8011 } 8012 8013 private Callable( 8014 com.google.protobuf.CodedInputStream input, 8015 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8016 throws com.google.protobuf.InvalidProtocolBufferException { 8017 initFields(); 8018 int mutable_bitField0_ = 0; 8019 try { 8020 boolean done = false; 8021 while (!done) { 8022 int tag = input.readTag(); 8023 switch (tag) { 8024 case 0: 8025 done = true; 8026 break; 8027 default: { 8028 if (!parseUnknownField(input, 8029 extensionRegistry, tag)) { 8030 done = true; 8031 } 8032 break; 8033 } 8034 case 8: { 8035 bitField0_ |= 0x00000001; 8036 flags_ = input.readInt32(); 8037 break; 8038 } 8039 case 18: { 8040 bitField0_ |= 0x00000002; 8041 extraVisibility_ = input.readBytes(); 8042 break; 8043 } 8044 case 34: { 8045 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 8046 typeParameter_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter>(); 8047 mutable_bitField0_ |= 0x00000010; 8048 } 8049 typeParameter_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.PARSER, extensionRegistry)); 8050 break; 8051 } 8052 case 42: { 8053 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = null; 8054 if (((bitField0_ & 0x00000010) == 0x00000010)) { 8055 subBuilder = receiverType_.toBuilder(); 8056 } 8057 receiverType_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry); 8058 if (subBuilder != null) { 8059 subBuilder.mergeFrom(receiverType_); 8060 receiverType_ = subBuilder.buildPartial(); 8061 } 8062 bitField0_ |= 0x00000010; 8063 break; 8064 } 8065 case 48: { 8066 bitField0_ |= 0x00000020; 8067 name_ = input.readInt32(); 8068 break; 8069 } 8070 case 58: { 8071 if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 8072 valueParameter_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter>(); 8073 mutable_bitField0_ |= 0x00000080; 8074 } 8075 valueParameter_.add(input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.PARSER, extensionRegistry)); 8076 break; 8077 } 8078 case 66: { 8079 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = null; 8080 if (((bitField0_ & 0x00000040) == 0x00000040)) { 8081 subBuilder = returnType_.toBuilder(); 8082 } 8083 returnType_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry); 8084 if (subBuilder != null) { 8085 subBuilder.mergeFrom(returnType_); 8086 returnType_ = subBuilder.buildPartial(); 8087 } 8088 bitField0_ |= 0x00000040; 8089 break; 8090 } 8091 case 72: { 8092 bitField0_ |= 0x00000004; 8093 getterFlags_ = input.readInt32(); 8094 break; 8095 } 8096 case 80: { 8097 bitField0_ |= 0x00000008; 8098 setterFlags_ = input.readInt32(); 8099 break; 8100 } 8101 } 8102 } 8103 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8104 throw e.setUnfinishedMessage(this); 8105 } catch (java.io.IOException e) { 8106 throw new com.google.protobuf.InvalidProtocolBufferException( 8107 e.getMessage()).setUnfinishedMessage(this); 8108 } finally { 8109 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 8110 typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); 8111 } 8112 if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { 8113 valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); 8114 } 8115 makeExtensionsImmutable(); 8116 } 8117 } 8118 public static com.google.protobuf.Parser<Callable> PARSER = 8119 new com.google.protobuf.AbstractParser<Callable>() { 8120 public Callable parsePartialFrom( 8121 com.google.protobuf.CodedInputStream input, 8122 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8123 throws com.google.protobuf.InvalidProtocolBufferException { 8124 return new Callable(input, extensionRegistry); 8125 } 8126 }; 8127 8128 @java.lang.Override 8129 public com.google.protobuf.Parser<Callable> getParserForType() { 8130 return PARSER; 8131 } 8132 8133 /** 8134 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Callable.MemberKind} 8135 */ 8136 public enum MemberKind 8137 implements com.google.protobuf.Internal.EnumLite { 8138 /** 8139 * <code>DECLARATION = 0;</code> 8140 * 8141 * <pre> 8142 * 2 bits 8143 * </pre> 8144 */ 8145 DECLARATION(0, 0), 8146 /** 8147 * <code>FAKE_OVERRIDE = 1;</code> 8148 */ 8149 FAKE_OVERRIDE(1, 1), 8150 /** 8151 * <code>DELEGATION = 2;</code> 8152 */ 8153 DELEGATION(2, 2), 8154 /** 8155 * <code>SYNTHESIZED = 3;</code> 8156 */ 8157 SYNTHESIZED(3, 3), 8158 ; 8159 8160 /** 8161 * <code>DECLARATION = 0;</code> 8162 * 8163 * <pre> 8164 * 2 bits 8165 * </pre> 8166 */ 8167 public static final int DECLARATION_VALUE = 0; 8168 /** 8169 * <code>FAKE_OVERRIDE = 1;</code> 8170 */ 8171 public static final int FAKE_OVERRIDE_VALUE = 1; 8172 /** 8173 * <code>DELEGATION = 2;</code> 8174 */ 8175 public static final int DELEGATION_VALUE = 2; 8176 /** 8177 * <code>SYNTHESIZED = 3;</code> 8178 */ 8179 public static final int SYNTHESIZED_VALUE = 3; 8180 8181 8182 public final int getNumber() { return value; } 8183 8184 public static MemberKind valueOf(int value) { 8185 switch (value) { 8186 case 0: return DECLARATION; 8187 case 1: return FAKE_OVERRIDE; 8188 case 2: return DELEGATION; 8189 case 3: return SYNTHESIZED; 8190 default: return null; 8191 } 8192 } 8193 8194 public static com.google.protobuf.Internal.EnumLiteMap<MemberKind> 8195 internalGetValueMap() { 8196 return internalValueMap; 8197 } 8198 private static com.google.protobuf.Internal.EnumLiteMap<MemberKind> 8199 internalValueMap = 8200 new com.google.protobuf.Internal.EnumLiteMap<MemberKind>() { 8201 public MemberKind findValueByNumber(int number) { 8202 return MemberKind.valueOf(number); 8203 } 8204 }; 8205 8206 private final int value; 8207 8208 private MemberKind(int index, int value) { 8209 this.value = value; 8210 } 8211 8212 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Callable.MemberKind) 8213 } 8214 8215 /** 8216 * Protobuf enum {@code org.jetbrains.jet.descriptors.serialization.Callable.CallableKind} 8217 */ 8218 public enum CallableKind 8219 implements com.google.protobuf.Internal.EnumLite { 8220 /** 8221 * <code>FUN = 0;</code> 8222 * 8223 * <pre> 8224 * 2 bits 8225 * </pre> 8226 */ 8227 FUN(0, 0), 8228 /** 8229 * <code>VAL = 1;</code> 8230 */ 8231 VAL(1, 1), 8232 /** 8233 * <code>VAR = 2;</code> 8234 */ 8235 VAR(2, 2), 8236 /** 8237 * <code>CONSTRUCTOR = 3;</code> 8238 */ 8239 CONSTRUCTOR(3, 3), 8240 ; 8241 8242 /** 8243 * <code>FUN = 0;</code> 8244 * 8245 * <pre> 8246 * 2 bits 8247 * </pre> 8248 */ 8249 public static final int FUN_VALUE = 0; 8250 /** 8251 * <code>VAL = 1;</code> 8252 */ 8253 public static final int VAL_VALUE = 1; 8254 /** 8255 * <code>VAR = 2;</code> 8256 */ 8257 public static final int VAR_VALUE = 2; 8258 /** 8259 * <code>CONSTRUCTOR = 3;</code> 8260 */ 8261 public static final int CONSTRUCTOR_VALUE = 3; 8262 8263 8264 public final int getNumber() { return value; } 8265 8266 public static CallableKind valueOf(int value) { 8267 switch (value) { 8268 case 0: return FUN; 8269 case 1: return VAL; 8270 case 2: return VAR; 8271 case 3: return CONSTRUCTOR; 8272 default: return null; 8273 } 8274 } 8275 8276 public static com.google.protobuf.Internal.EnumLiteMap<CallableKind> 8277 internalGetValueMap() { 8278 return internalValueMap; 8279 } 8280 private static com.google.protobuf.Internal.EnumLiteMap<CallableKind> 8281 internalValueMap = 8282 new com.google.protobuf.Internal.EnumLiteMap<CallableKind>() { 8283 public CallableKind findValueByNumber(int number) { 8284 return CallableKind.valueOf(number); 8285 } 8286 }; 8287 8288 private final int value; 8289 8290 private CallableKind(int index, int value) { 8291 this.value = value; 8292 } 8293 8294 // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Callable.CallableKind) 8295 } 8296 8297 public interface ValueParameterOrBuilder extends 8298 com.google.protobuf.GeneratedMessageLite. 8299 ExtendableMessageOrBuilder<ValueParameter> { 8300 8301 // optional int32 flags = 1; 8302 /** 8303 * <code>optional int32 flags = 1;</code> 8304 * 8305 * <pre> 8306 * 8307 *declaresDefault 8308 *has_annotations 8309 * </pre> 8310 */ 8311 boolean hasFlags(); 8312 /** 8313 * <code>optional int32 flags = 1;</code> 8314 * 8315 * <pre> 8316 * 8317 *declaresDefault 8318 *has_annotations 8319 * </pre> 8320 */ 8321 int getFlags(); 8322 8323 // required int32 name = 2; 8324 /** 8325 * <code>required int32 name = 2;</code> 8326 */ 8327 boolean hasName(); 8328 /** 8329 * <code>required int32 name = 2;</code> 8330 */ 8331 int getName(); 8332 8333 // required .org.jetbrains.jet.descriptors.serialization.Type type = 3; 8334 /** 8335 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8336 */ 8337 boolean hasType(); 8338 /** 8339 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8340 */ 8341 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType(); 8342 8343 // optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4; 8344 /** 8345 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8346 */ 8347 boolean hasVarargElementType(); 8348 /** 8349 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8350 */ 8351 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getVarargElementType(); 8352 } 8353 /** 8354 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter} 8355 */ 8356 public static final class ValueParameter extends 8357 com.google.protobuf.GeneratedMessageLite.ExtendableMessage< 8358 ValueParameter> implements ValueParameterOrBuilder { 8359 // Use ValueParameter.newBuilder() to construct. 8360 private ValueParameter(com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter, ?> builder) { 8361 super(builder); 8362 8363 } 8364 private ValueParameter(boolean noInit) {} 8365 8366 private static final ValueParameter defaultInstance; 8367 public static ValueParameter getDefaultInstance() { 8368 return defaultInstance; 8369 } 8370 8371 public ValueParameter getDefaultInstanceForType() { 8372 return defaultInstance; 8373 } 8374 8375 private ValueParameter( 8376 com.google.protobuf.CodedInputStream input, 8377 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8378 throws com.google.protobuf.InvalidProtocolBufferException { 8379 initFields(); 8380 int mutable_bitField0_ = 0; 8381 try { 8382 boolean done = false; 8383 while (!done) { 8384 int tag = input.readTag(); 8385 switch (tag) { 8386 case 0: 8387 done = true; 8388 break; 8389 default: { 8390 if (!parseUnknownField(input, 8391 extensionRegistry, tag)) { 8392 done = true; 8393 } 8394 break; 8395 } 8396 case 8: { 8397 bitField0_ |= 0x00000001; 8398 flags_ = input.readInt32(); 8399 break; 8400 } 8401 case 16: { 8402 bitField0_ |= 0x00000002; 8403 name_ = input.readInt32(); 8404 break; 8405 } 8406 case 26: { 8407 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = null; 8408 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8409 subBuilder = type_.toBuilder(); 8410 } 8411 type_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry); 8412 if (subBuilder != null) { 8413 subBuilder.mergeFrom(type_); 8414 type_ = subBuilder.buildPartial(); 8415 } 8416 bitField0_ |= 0x00000004; 8417 break; 8418 } 8419 case 34: { 8420 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = null; 8421 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8422 subBuilder = varargElementType_.toBuilder(); 8423 } 8424 varargElementType_ = input.readMessage(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.PARSER, extensionRegistry); 8425 if (subBuilder != null) { 8426 subBuilder.mergeFrom(varargElementType_); 8427 varargElementType_ = subBuilder.buildPartial(); 8428 } 8429 bitField0_ |= 0x00000008; 8430 break; 8431 } 8432 } 8433 } 8434 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8435 throw e.setUnfinishedMessage(this); 8436 } catch (java.io.IOException e) { 8437 throw new com.google.protobuf.InvalidProtocolBufferException( 8438 e.getMessage()).setUnfinishedMessage(this); 8439 } finally { 8440 makeExtensionsImmutable(); 8441 } 8442 } 8443 public static com.google.protobuf.Parser<ValueParameter> PARSER = 8444 new com.google.protobuf.AbstractParser<ValueParameter>() { 8445 public ValueParameter parsePartialFrom( 8446 com.google.protobuf.CodedInputStream input, 8447 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8448 throws com.google.protobuf.InvalidProtocolBufferException { 8449 return new ValueParameter(input, extensionRegistry); 8450 } 8451 }; 8452 8453 @java.lang.Override 8454 public com.google.protobuf.Parser<ValueParameter> getParserForType() { 8455 return PARSER; 8456 } 8457 8458 private int bitField0_; 8459 // optional int32 flags = 1; 8460 public static final int FLAGS_FIELD_NUMBER = 1; 8461 private int flags_; 8462 /** 8463 * <code>optional int32 flags = 1;</code> 8464 * 8465 * <pre> 8466 * 8467 *declaresDefault 8468 *has_annotations 8469 * </pre> 8470 */ 8471 public boolean hasFlags() { 8472 return ((bitField0_ & 0x00000001) == 0x00000001); 8473 } 8474 /** 8475 * <code>optional int32 flags = 1;</code> 8476 * 8477 * <pre> 8478 * 8479 *declaresDefault 8480 *has_annotations 8481 * </pre> 8482 */ 8483 public int getFlags() { 8484 return flags_; 8485 } 8486 8487 // required int32 name = 2; 8488 public static final int NAME_FIELD_NUMBER = 2; 8489 private int name_; 8490 /** 8491 * <code>required int32 name = 2;</code> 8492 */ 8493 public boolean hasName() { 8494 return ((bitField0_ & 0x00000002) == 0x00000002); 8495 } 8496 /** 8497 * <code>required int32 name = 2;</code> 8498 */ 8499 public int getName() { 8500 return name_; 8501 } 8502 8503 // required .org.jetbrains.jet.descriptors.serialization.Type type = 3; 8504 public static final int TYPE_FIELD_NUMBER = 3; 8505 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_; 8506 /** 8507 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8508 */ 8509 public boolean hasType() { 8510 return ((bitField0_ & 0x00000004) == 0x00000004); 8511 } 8512 /** 8513 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8514 */ 8515 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { 8516 return type_; 8517 } 8518 8519 // optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4; 8520 public static final int VARARG_ELEMENT_TYPE_FIELD_NUMBER = 4; 8521 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type varargElementType_; 8522 /** 8523 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8524 */ 8525 public boolean hasVarargElementType() { 8526 return ((bitField0_ & 0x00000008) == 0x00000008); 8527 } 8528 /** 8529 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8530 */ 8531 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getVarargElementType() { 8532 return varargElementType_; 8533 } 8534 8535 private void initFields() { 8536 flags_ = 0; 8537 name_ = 0; 8538 type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8539 varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8540 } 8541 private byte memoizedIsInitialized = -1; 8542 public final boolean isInitialized() { 8543 byte isInitialized = memoizedIsInitialized; 8544 if (isInitialized != -1) return isInitialized == 1; 8545 8546 if (!hasName()) { 8547 memoizedIsInitialized = 0; 8548 return false; 8549 } 8550 if (!hasType()) { 8551 memoizedIsInitialized = 0; 8552 return false; 8553 } 8554 if (!getType().isInitialized()) { 8555 memoizedIsInitialized = 0; 8556 return false; 8557 } 8558 if (hasVarargElementType()) { 8559 if (!getVarargElementType().isInitialized()) { 8560 memoizedIsInitialized = 0; 8561 return false; 8562 } 8563 } 8564 if (!extensionsAreInitialized()) { 8565 memoizedIsInitialized = 0; 8566 return false; 8567 } 8568 memoizedIsInitialized = 1; 8569 return true; 8570 } 8571 8572 public void writeTo(com.google.protobuf.CodedOutputStream output) 8573 throws java.io.IOException { 8574 getSerializedSize(); 8575 com.google.protobuf.GeneratedMessageLite 8576 .ExtendableMessage<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter>.ExtensionWriter extensionWriter = 8577 newExtensionWriter(); 8578 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8579 output.writeInt32(1, flags_); 8580 } 8581 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8582 output.writeInt32(2, name_); 8583 } 8584 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8585 output.writeMessage(3, type_); 8586 } 8587 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8588 output.writeMessage(4, varargElementType_); 8589 } 8590 extensionWriter.writeUntil(200, output); 8591 } 8592 8593 private int memoizedSerializedSize = -1; 8594 public int getSerializedSize() { 8595 int size = memoizedSerializedSize; 8596 if (size != -1) return size; 8597 8598 size = 0; 8599 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8600 size += com.google.protobuf.CodedOutputStream 8601 .computeInt32Size(1, flags_); 8602 } 8603 if (((bitField0_ & 0x00000002) == 0x00000002)) { 8604 size += com.google.protobuf.CodedOutputStream 8605 .computeInt32Size(2, name_); 8606 } 8607 if (((bitField0_ & 0x00000004) == 0x00000004)) { 8608 size += com.google.protobuf.CodedOutputStream 8609 .computeMessageSize(3, type_); 8610 } 8611 if (((bitField0_ & 0x00000008) == 0x00000008)) { 8612 size += com.google.protobuf.CodedOutputStream 8613 .computeMessageSize(4, varargElementType_); 8614 } 8615 size += extensionsSerializedSize(); 8616 memoizedSerializedSize = size; 8617 return size; 8618 } 8619 8620 private static final long serialVersionUID = 0L; 8621 @java.lang.Override 8622 protected java.lang.Object writeReplace() 8623 throws java.io.ObjectStreamException { 8624 return super.writeReplace(); 8625 } 8626 8627 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( 8628 com.google.protobuf.ByteString data) 8629 throws com.google.protobuf.InvalidProtocolBufferException { 8630 return PARSER.parseFrom(data); 8631 } 8632 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( 8633 com.google.protobuf.ByteString data, 8634 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8635 throws com.google.protobuf.InvalidProtocolBufferException { 8636 return PARSER.parseFrom(data, extensionRegistry); 8637 } 8638 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom(byte[] data) 8639 throws com.google.protobuf.InvalidProtocolBufferException { 8640 return PARSER.parseFrom(data); 8641 } 8642 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( 8643 byte[] data, 8644 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8645 throws com.google.protobuf.InvalidProtocolBufferException { 8646 return PARSER.parseFrom(data, extensionRegistry); 8647 } 8648 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom(java.io.InputStream input) 8649 throws java.io.IOException { 8650 return PARSER.parseFrom(input); 8651 } 8652 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( 8653 java.io.InputStream input, 8654 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8655 throws java.io.IOException { 8656 return PARSER.parseFrom(input, extensionRegistry); 8657 } 8658 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseDelimitedFrom(java.io.InputStream input) 8659 throws java.io.IOException { 8660 return PARSER.parseDelimitedFrom(input); 8661 } 8662 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseDelimitedFrom( 8663 java.io.InputStream input, 8664 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8665 throws java.io.IOException { 8666 return PARSER.parseDelimitedFrom(input, extensionRegistry); 8667 } 8668 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( 8669 com.google.protobuf.CodedInputStream input) 8670 throws java.io.IOException { 8671 return PARSER.parseFrom(input); 8672 } 8673 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( 8674 com.google.protobuf.CodedInputStream input, 8675 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8676 throws java.io.IOException { 8677 return PARSER.parseFrom(input, extensionRegistry); 8678 } 8679 8680 public static Builder newBuilder() { return Builder.create(); } 8681 public Builder newBuilderForType() { return newBuilder(); } 8682 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter prototype) { 8683 return newBuilder().mergeFrom(prototype); 8684 } 8685 public Builder toBuilder() { return newBuilder(this); } 8686 8687 /** 8688 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter} 8689 */ 8690 public static final class Builder extends 8691 com.google.protobuf.GeneratedMessageLite.ExtendableBuilder< 8692 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter, Builder> implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameterOrBuilder { 8693 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.newBuilder() 8694 private Builder() { 8695 maybeForceBuilderInitialization(); 8696 } 8697 8698 private void maybeForceBuilderInitialization() { 8699 } 8700 private static Builder create() { 8701 return new Builder(); 8702 } 8703 8704 public Builder clear() { 8705 super.clear(); 8706 flags_ = 0; 8707 bitField0_ = (bitField0_ & ~0x00000001); 8708 name_ = 0; 8709 bitField0_ = (bitField0_ & ~0x00000002); 8710 type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8711 bitField0_ = (bitField0_ & ~0x00000004); 8712 varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8713 bitField0_ = (bitField0_ & ~0x00000008); 8714 return this; 8715 } 8716 8717 public Builder clone() { 8718 return create().mergeFrom(buildPartial()); 8719 } 8720 8721 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getDefaultInstanceForType() { 8722 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.getDefaultInstance(); 8723 } 8724 8725 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter build() { 8726 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter result = buildPartial(); 8727 if (!result.isInitialized()) { 8728 throw newUninitializedMessageException(result); 8729 } 8730 return result; 8731 } 8732 8733 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter buildPartial() { 8734 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter(this); 8735 int from_bitField0_ = bitField0_; 8736 int to_bitField0_ = 0; 8737 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 8738 to_bitField0_ |= 0x00000001; 8739 } 8740 result.flags_ = flags_; 8741 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 8742 to_bitField0_ |= 0x00000002; 8743 } 8744 result.name_ = name_; 8745 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 8746 to_bitField0_ |= 0x00000004; 8747 } 8748 result.type_ = type_; 8749 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 8750 to_bitField0_ |= 0x00000008; 8751 } 8752 result.varargElementType_ = varargElementType_; 8753 result.bitField0_ = to_bitField0_; 8754 return result; 8755 } 8756 8757 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter other) { 8758 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.getDefaultInstance()) return this; 8759 if (other.hasFlags()) { 8760 setFlags(other.getFlags()); 8761 } 8762 if (other.hasName()) { 8763 setName(other.getName()); 8764 } 8765 if (other.hasType()) { 8766 mergeType(other.getType()); 8767 } 8768 if (other.hasVarargElementType()) { 8769 mergeVarargElementType(other.getVarargElementType()); 8770 } 8771 this.mergeExtensionFields(other); 8772 return this; 8773 } 8774 8775 public final boolean isInitialized() { 8776 if (!hasName()) { 8777 8778 return false; 8779 } 8780 if (!hasType()) { 8781 8782 return false; 8783 } 8784 if (!getType().isInitialized()) { 8785 8786 return false; 8787 } 8788 if (hasVarargElementType()) { 8789 if (!getVarargElementType().isInitialized()) { 8790 8791 return false; 8792 } 8793 } 8794 if (!extensionsAreInitialized()) { 8795 8796 return false; 8797 } 8798 return true; 8799 } 8800 8801 public Builder mergeFrom( 8802 com.google.protobuf.CodedInputStream input, 8803 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8804 throws java.io.IOException { 8805 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parsedMessage = null; 8806 try { 8807 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8808 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8809 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter) e.getUnfinishedMessage(); 8810 throw e; 8811 } finally { 8812 if (parsedMessage != null) { 8813 mergeFrom(parsedMessage); 8814 } 8815 } 8816 return this; 8817 } 8818 private int bitField0_; 8819 8820 // optional int32 flags = 1; 8821 private int flags_ ; 8822 /** 8823 * <code>optional int32 flags = 1;</code> 8824 * 8825 * <pre> 8826 * 8827 *declaresDefault 8828 *has_annotations 8829 * </pre> 8830 */ 8831 public boolean hasFlags() { 8832 return ((bitField0_ & 0x00000001) == 0x00000001); 8833 } 8834 /** 8835 * <code>optional int32 flags = 1;</code> 8836 * 8837 * <pre> 8838 * 8839 *declaresDefault 8840 *has_annotations 8841 * </pre> 8842 */ 8843 public int getFlags() { 8844 return flags_; 8845 } 8846 /** 8847 * <code>optional int32 flags = 1;</code> 8848 * 8849 * <pre> 8850 * 8851 *declaresDefault 8852 *has_annotations 8853 * </pre> 8854 */ 8855 public Builder setFlags(int value) { 8856 bitField0_ |= 0x00000001; 8857 flags_ = value; 8858 8859 return this; 8860 } 8861 /** 8862 * <code>optional int32 flags = 1;</code> 8863 * 8864 * <pre> 8865 * 8866 *declaresDefault 8867 *has_annotations 8868 * </pre> 8869 */ 8870 public Builder clearFlags() { 8871 bitField0_ = (bitField0_ & ~0x00000001); 8872 flags_ = 0; 8873 8874 return this; 8875 } 8876 8877 // required int32 name = 2; 8878 private int name_ ; 8879 /** 8880 * <code>required int32 name = 2;</code> 8881 */ 8882 public boolean hasName() { 8883 return ((bitField0_ & 0x00000002) == 0x00000002); 8884 } 8885 /** 8886 * <code>required int32 name = 2;</code> 8887 */ 8888 public int getName() { 8889 return name_; 8890 } 8891 /** 8892 * <code>required int32 name = 2;</code> 8893 */ 8894 public Builder setName(int value) { 8895 bitField0_ |= 0x00000002; 8896 name_ = value; 8897 8898 return this; 8899 } 8900 /** 8901 * <code>required int32 name = 2;</code> 8902 */ 8903 public Builder clearName() { 8904 bitField0_ = (bitField0_ & ~0x00000002); 8905 name_ = 0; 8906 8907 return this; 8908 } 8909 8910 // required .org.jetbrains.jet.descriptors.serialization.Type type = 3; 8911 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8912 /** 8913 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8914 */ 8915 public boolean hasType() { 8916 return ((bitField0_ & 0x00000004) == 0x00000004); 8917 } 8918 /** 8919 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8920 */ 8921 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { 8922 return type_; 8923 } 8924 /** 8925 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8926 */ 8927 public Builder setType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 8928 if (value == null) { 8929 throw new NullPointerException(); 8930 } 8931 type_ = value; 8932 8933 bitField0_ |= 0x00000004; 8934 return this; 8935 } 8936 /** 8937 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8938 */ 8939 public Builder setType( 8940 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 8941 type_ = builderForValue.build(); 8942 8943 bitField0_ |= 0x00000004; 8944 return this; 8945 } 8946 /** 8947 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8948 */ 8949 public Builder mergeType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 8950 if (((bitField0_ & 0x00000004) == 0x00000004) && 8951 type_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { 8952 type_ = 8953 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(type_).mergeFrom(value).buildPartial(); 8954 } else { 8955 type_ = value; 8956 } 8957 8958 bitField0_ |= 0x00000004; 8959 return this; 8960 } 8961 /** 8962 * <code>required .org.jetbrains.jet.descriptors.serialization.Type type = 3;</code> 8963 */ 8964 public Builder clearType() { 8965 type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8966 8967 bitField0_ = (bitField0_ & ~0x00000004); 8968 return this; 8969 } 8970 8971 // optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4; 8972 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 8973 /** 8974 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8975 */ 8976 public boolean hasVarargElementType() { 8977 return ((bitField0_ & 0x00000008) == 0x00000008); 8978 } 8979 /** 8980 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8981 */ 8982 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getVarargElementType() { 8983 return varargElementType_; 8984 } 8985 /** 8986 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8987 */ 8988 public Builder setVarargElementType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 8989 if (value == null) { 8990 throw new NullPointerException(); 8991 } 8992 varargElementType_ = value; 8993 8994 bitField0_ |= 0x00000008; 8995 return this; 8996 } 8997 /** 8998 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 8999 */ 9000 public Builder setVarargElementType( 9001 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 9002 varargElementType_ = builderForValue.build(); 9003 9004 bitField0_ |= 0x00000008; 9005 return this; 9006 } 9007 /** 9008 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 9009 */ 9010 public Builder mergeVarargElementType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 9011 if (((bitField0_ & 0x00000008) == 0x00000008) && 9012 varargElementType_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { 9013 varargElementType_ = 9014 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(varargElementType_).mergeFrom(value).buildPartial(); 9015 } else { 9016 varargElementType_ = value; 9017 } 9018 9019 bitField0_ |= 0x00000008; 9020 return this; 9021 } 9022 /** 9023 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type vararg_element_type = 4;</code> 9024 */ 9025 public Builder clearVarargElementType() { 9026 varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 9027 9028 bitField0_ = (bitField0_ & ~0x00000008); 9029 return this; 9030 } 9031 9032 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter) 9033 } 9034 9035 static { 9036 defaultInstance = new ValueParameter(true); 9037 defaultInstance.initFields(); 9038 } 9039 9040 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter) 9041 } 9042 9043 private int bitField0_; 9044 // optional int32 flags = 1; 9045 public static final int FLAGS_FIELD_NUMBER = 1; 9046 private int flags_; 9047 /** 9048 * <code>optional int32 flags = 1;</code> 9049 * 9050 * <pre> 9051 * 9052 *Visibility 9053 *Modality 9054 *has_annotations 9055 *CallableKind 9056 *MemberKind 9057 *hasGetter 9058 *hasSetter 9059 * </pre> 9060 */ 9061 public boolean hasFlags() { 9062 return ((bitField0_ & 0x00000001) == 0x00000001); 9063 } 9064 /** 9065 * <code>optional int32 flags = 1;</code> 9066 * 9067 * <pre> 9068 * 9069 *Visibility 9070 *Modality 9071 *has_annotations 9072 *CallableKind 9073 *MemberKind 9074 *hasGetter 9075 *hasSetter 9076 * </pre> 9077 */ 9078 public int getFlags() { 9079 return flags_; 9080 } 9081 9082 // optional string extra_visibility = 2; 9083 public static final int EXTRA_VISIBILITY_FIELD_NUMBER = 2; 9084 private java.lang.Object extraVisibility_; 9085 /** 9086 * <code>optional string extra_visibility = 2;</code> 9087 * 9088 * <pre> 9089 * for things like java-specific visibilities 9090 * </pre> 9091 */ 9092 public boolean hasExtraVisibility() { 9093 return ((bitField0_ & 0x00000002) == 0x00000002); 9094 } 9095 /** 9096 * <code>optional string extra_visibility = 2;</code> 9097 * 9098 * <pre> 9099 * for things like java-specific visibilities 9100 * </pre> 9101 */ 9102 public java.lang.String getExtraVisibility() { 9103 java.lang.Object ref = extraVisibility_; 9104 if (ref instanceof java.lang.String) { 9105 return (java.lang.String) ref; 9106 } else { 9107 com.google.protobuf.ByteString bs = 9108 (com.google.protobuf.ByteString) ref; 9109 java.lang.String s = bs.toStringUtf8(); 9110 if (bs.isValidUtf8()) { 9111 extraVisibility_ = s; 9112 } 9113 return s; 9114 } 9115 } 9116 /** 9117 * <code>optional string extra_visibility = 2;</code> 9118 * 9119 * <pre> 9120 * for things like java-specific visibilities 9121 * </pre> 9122 */ 9123 public com.google.protobuf.ByteString 9124 getExtraVisibilityBytes() { 9125 java.lang.Object ref = extraVisibility_; 9126 if (ref instanceof java.lang.String) { 9127 com.google.protobuf.ByteString b = 9128 com.google.protobuf.ByteString.copyFromUtf8( 9129 (java.lang.String) ref); 9130 extraVisibility_ = b; 9131 return b; 9132 } else { 9133 return (com.google.protobuf.ByteString) ref; 9134 } 9135 } 9136 9137 // optional int32 getter_flags = 9; 9138 public static final int GETTER_FLAGS_FIELD_NUMBER = 9; 9139 private int getterFlags_; 9140 /** 9141 * <code>optional int32 getter_flags = 9;</code> 9142 * 9143 * <pre> 9144 * 9145 *isNotDefault 9146 *Visibility 9147 *Modality 9148 *has_annotations 9149 * </pre> 9150 */ 9151 public boolean hasGetterFlags() { 9152 return ((bitField0_ & 0x00000004) == 0x00000004); 9153 } 9154 /** 9155 * <code>optional int32 getter_flags = 9;</code> 9156 * 9157 * <pre> 9158 * 9159 *isNotDefault 9160 *Visibility 9161 *Modality 9162 *has_annotations 9163 * </pre> 9164 */ 9165 public int getGetterFlags() { 9166 return getterFlags_; 9167 } 9168 9169 // optional int32 setter_flags = 10; 9170 public static final int SETTER_FLAGS_FIELD_NUMBER = 10; 9171 private int setterFlags_; 9172 /** 9173 * <code>optional int32 setter_flags = 10;</code> 9174 */ 9175 public boolean hasSetterFlags() { 9176 return ((bitField0_ & 0x00000008) == 0x00000008); 9177 } 9178 /** 9179 * <code>optional int32 setter_flags = 10;</code> 9180 */ 9181 public int getSetterFlags() { 9182 return setterFlags_; 9183 } 9184 9185 // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4; 9186 public static final int TYPE_PARAMETER_FIELD_NUMBER = 4; 9187 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> typeParameter_; 9188 /** 9189 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 9190 */ 9191 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> getTypeParameterList() { 9192 return typeParameter_; 9193 } 9194 /** 9195 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 9196 */ 9197 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder> 9198 getTypeParameterOrBuilderList() { 9199 return typeParameter_; 9200 } 9201 /** 9202 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 9203 */ 9204 public int getTypeParameterCount() { 9205 return typeParameter_.size(); 9206 } 9207 /** 9208 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 9209 */ 9210 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { 9211 return typeParameter_.get(index); 9212 } 9213 /** 9214 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 9215 */ 9216 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( 9217 int index) { 9218 return typeParameter_.get(index); 9219 } 9220 9221 // optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5; 9222 public static final int RECEIVER_TYPE_FIELD_NUMBER = 5; 9223 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type receiverType_; 9224 /** 9225 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 9226 */ 9227 public boolean hasReceiverType() { 9228 return ((bitField0_ & 0x00000010) == 0x00000010); 9229 } 9230 /** 9231 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 9232 */ 9233 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReceiverType() { 9234 return receiverType_; 9235 } 9236 9237 // required int32 name = 6; 9238 public static final int NAME_FIELD_NUMBER = 6; 9239 private int name_; 9240 /** 9241 * <code>required int32 name = 6;</code> 9242 */ 9243 public boolean hasName() { 9244 return ((bitField0_ & 0x00000020) == 0x00000020); 9245 } 9246 /** 9247 * <code>required int32 name = 6;</code> 9248 */ 9249 public int getName() { 9250 return name_; 9251 } 9252 9253 // repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7; 9254 public static final int VALUE_PARAMETER_FIELD_NUMBER = 7; 9255 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter> valueParameter_; 9256 /** 9257 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 9258 * 9259 * <pre> 9260 * Value parameters for functions and constructors, or setter value parameter for properties 9261 * </pre> 9262 */ 9263 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter> getValueParameterList() { 9264 return valueParameter_; 9265 } 9266 /** 9267 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 9268 * 9269 * <pre> 9270 * Value parameters for functions and constructors, or setter value parameter for properties 9271 * </pre> 9272 */ 9273 public java.util.List<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameterOrBuilder> 9274 getValueParameterOrBuilderList() { 9275 return valueParameter_; 9276 } 9277 /** 9278 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 9279 * 9280 * <pre> 9281 * Value parameters for functions and constructors, or setter value parameter for properties 9282 * </pre> 9283 */ 9284 public int getValueParameterCount() { 9285 return valueParameter_.size(); 9286 } 9287 /** 9288 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 9289 * 9290 * <pre> 9291 * Value parameters for functions and constructors, or setter value parameter for properties 9292 * </pre> 9293 */ 9294 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getValueParameter(int index) { 9295 return valueParameter_.get(index); 9296 } 9297 /** 9298 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 9299 * 9300 * <pre> 9301 * Value parameters for functions and constructors, or setter value parameter for properties 9302 * </pre> 9303 */ 9304 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameterOrBuilder getValueParameterOrBuilder( 9305 int index) { 9306 return valueParameter_.get(index); 9307 } 9308 9309 // required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8; 9310 public static final int RETURN_TYPE_FIELD_NUMBER = 8; 9311 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type returnType_; 9312 /** 9313 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 9314 */ 9315 public boolean hasReturnType() { 9316 return ((bitField0_ & 0x00000040) == 0x00000040); 9317 } 9318 /** 9319 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 9320 */ 9321 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReturnType() { 9322 return returnType_; 9323 } 9324 9325 private void initFields() { 9326 flags_ = 0; 9327 extraVisibility_ = ""; 9328 getterFlags_ = 0; 9329 setterFlags_ = 0; 9330 typeParameter_ = java.util.Collections.emptyList(); 9331 receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 9332 name_ = 0; 9333 valueParameter_ = java.util.Collections.emptyList(); 9334 returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 9335 } 9336 private byte memoizedIsInitialized = -1; 9337 public final boolean isInitialized() { 9338 byte isInitialized = memoizedIsInitialized; 9339 if (isInitialized != -1) return isInitialized == 1; 9340 9341 if (!hasName()) { 9342 memoizedIsInitialized = 0; 9343 return false; 9344 } 9345 if (!hasReturnType()) { 9346 memoizedIsInitialized = 0; 9347 return false; 9348 } 9349 for (int i = 0; i < getTypeParameterCount(); i++) { 9350 if (!getTypeParameter(i).isInitialized()) { 9351 memoizedIsInitialized = 0; 9352 return false; 9353 } 9354 } 9355 if (hasReceiverType()) { 9356 if (!getReceiverType().isInitialized()) { 9357 memoizedIsInitialized = 0; 9358 return false; 9359 } 9360 } 9361 for (int i = 0; i < getValueParameterCount(); i++) { 9362 if (!getValueParameter(i).isInitialized()) { 9363 memoizedIsInitialized = 0; 9364 return false; 9365 } 9366 } 9367 if (!getReturnType().isInitialized()) { 9368 memoizedIsInitialized = 0; 9369 return false; 9370 } 9371 if (!extensionsAreInitialized()) { 9372 memoizedIsInitialized = 0; 9373 return false; 9374 } 9375 memoizedIsInitialized = 1; 9376 return true; 9377 } 9378 9379 public void writeTo(com.google.protobuf.CodedOutputStream output) 9380 throws java.io.IOException { 9381 getSerializedSize(); 9382 com.google.protobuf.GeneratedMessageLite 9383 .ExtendableMessage<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable>.ExtensionWriter extensionWriter = 9384 newExtensionWriter(); 9385 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9386 output.writeInt32(1, flags_); 9387 } 9388 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9389 output.writeBytes(2, getExtraVisibilityBytes()); 9390 } 9391 for (int i = 0; i < typeParameter_.size(); i++) { 9392 output.writeMessage(4, typeParameter_.get(i)); 9393 } 9394 if (((bitField0_ & 0x00000010) == 0x00000010)) { 9395 output.writeMessage(5, receiverType_); 9396 } 9397 if (((bitField0_ & 0x00000020) == 0x00000020)) { 9398 output.writeInt32(6, name_); 9399 } 9400 for (int i = 0; i < valueParameter_.size(); i++) { 9401 output.writeMessage(7, valueParameter_.get(i)); 9402 } 9403 if (((bitField0_ & 0x00000040) == 0x00000040)) { 9404 output.writeMessage(8, returnType_); 9405 } 9406 if (((bitField0_ & 0x00000004) == 0x00000004)) { 9407 output.writeInt32(9, getterFlags_); 9408 } 9409 if (((bitField0_ & 0x00000008) == 0x00000008)) { 9410 output.writeInt32(10, setterFlags_); 9411 } 9412 extensionWriter.writeUntil(200, output); 9413 } 9414 9415 private int memoizedSerializedSize = -1; 9416 public int getSerializedSize() { 9417 int size = memoizedSerializedSize; 9418 if (size != -1) return size; 9419 9420 size = 0; 9421 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9422 size += com.google.protobuf.CodedOutputStream 9423 .computeInt32Size(1, flags_); 9424 } 9425 if (((bitField0_ & 0x00000002) == 0x00000002)) { 9426 size += com.google.protobuf.CodedOutputStream 9427 .computeBytesSize(2, getExtraVisibilityBytes()); 9428 } 9429 for (int i = 0; i < typeParameter_.size(); i++) { 9430 size += com.google.protobuf.CodedOutputStream 9431 .computeMessageSize(4, typeParameter_.get(i)); 9432 } 9433 if (((bitField0_ & 0x00000010) == 0x00000010)) { 9434 size += com.google.protobuf.CodedOutputStream 9435 .computeMessageSize(5, receiverType_); 9436 } 9437 if (((bitField0_ & 0x00000020) == 0x00000020)) { 9438 size += com.google.protobuf.CodedOutputStream 9439 .computeInt32Size(6, name_); 9440 } 9441 for (int i = 0; i < valueParameter_.size(); i++) { 9442 size += com.google.protobuf.CodedOutputStream 9443 .computeMessageSize(7, valueParameter_.get(i)); 9444 } 9445 if (((bitField0_ & 0x00000040) == 0x00000040)) { 9446 size += com.google.protobuf.CodedOutputStream 9447 .computeMessageSize(8, returnType_); 9448 } 9449 if (((bitField0_ & 0x00000004) == 0x00000004)) { 9450 size += com.google.protobuf.CodedOutputStream 9451 .computeInt32Size(9, getterFlags_); 9452 } 9453 if (((bitField0_ & 0x00000008) == 0x00000008)) { 9454 size += com.google.protobuf.CodedOutputStream 9455 .computeInt32Size(10, setterFlags_); 9456 } 9457 size += extensionsSerializedSize(); 9458 memoizedSerializedSize = size; 9459 return size; 9460 } 9461 9462 private static final long serialVersionUID = 0L; 9463 @java.lang.Override 9464 protected java.lang.Object writeReplace() 9465 throws java.io.ObjectStreamException { 9466 return super.writeReplace(); 9467 } 9468 9469 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( 9470 com.google.protobuf.ByteString data) 9471 throws com.google.protobuf.InvalidProtocolBufferException { 9472 return PARSER.parseFrom(data); 9473 } 9474 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( 9475 com.google.protobuf.ByteString data, 9476 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9477 throws com.google.protobuf.InvalidProtocolBufferException { 9478 return PARSER.parseFrom(data, extensionRegistry); 9479 } 9480 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom(byte[] data) 9481 throws com.google.protobuf.InvalidProtocolBufferException { 9482 return PARSER.parseFrom(data); 9483 } 9484 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( 9485 byte[] data, 9486 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9487 throws com.google.protobuf.InvalidProtocolBufferException { 9488 return PARSER.parseFrom(data, extensionRegistry); 9489 } 9490 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom(java.io.InputStream input) 9491 throws java.io.IOException { 9492 return PARSER.parseFrom(input); 9493 } 9494 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( 9495 java.io.InputStream input, 9496 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9497 throws java.io.IOException { 9498 return PARSER.parseFrom(input, extensionRegistry); 9499 } 9500 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseDelimitedFrom(java.io.InputStream input) 9501 throws java.io.IOException { 9502 return PARSER.parseDelimitedFrom(input); 9503 } 9504 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseDelimitedFrom( 9505 java.io.InputStream input, 9506 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9507 throws java.io.IOException { 9508 return PARSER.parseDelimitedFrom(input, extensionRegistry); 9509 } 9510 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( 9511 com.google.protobuf.CodedInputStream input) 9512 throws java.io.IOException { 9513 return PARSER.parseFrom(input); 9514 } 9515 public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( 9516 com.google.protobuf.CodedInputStream input, 9517 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9518 throws java.io.IOException { 9519 return PARSER.parseFrom(input, extensionRegistry); 9520 } 9521 9522 public static Builder newBuilder() { return Builder.create(); } 9523 public Builder newBuilderForType() { return newBuilder(); } 9524 public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable prototype) { 9525 return newBuilder().mergeFrom(prototype); 9526 } 9527 public Builder toBuilder() { return newBuilder(this); } 9528 9529 /** 9530 * Protobuf type {@code org.jetbrains.jet.descriptors.serialization.Callable} 9531 */ 9532 public static final class Builder extends 9533 com.google.protobuf.GeneratedMessageLite.ExtendableBuilder< 9534 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable, Builder> implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder { 9535 // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.newBuilder() 9536 private Builder() { 9537 maybeForceBuilderInitialization(); 9538 } 9539 9540 private void maybeForceBuilderInitialization() { 9541 } 9542 private static Builder create() { 9543 return new Builder(); 9544 } 9545 9546 public Builder clear() { 9547 super.clear(); 9548 flags_ = 0; 9549 bitField0_ = (bitField0_ & ~0x00000001); 9550 extraVisibility_ = ""; 9551 bitField0_ = (bitField0_ & ~0x00000002); 9552 getterFlags_ = 0; 9553 bitField0_ = (bitField0_ & ~0x00000004); 9554 setterFlags_ = 0; 9555 bitField0_ = (bitField0_ & ~0x00000008); 9556 typeParameter_ = java.util.Collections.emptyList(); 9557 bitField0_ = (bitField0_ & ~0x00000010); 9558 receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 9559 bitField0_ = (bitField0_ & ~0x00000020); 9560 name_ = 0; 9561 bitField0_ = (bitField0_ & ~0x00000040); 9562 valueParameter_ = java.util.Collections.emptyList(); 9563 bitField0_ = (bitField0_ & ~0x00000080); 9564 returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 9565 bitField0_ = (bitField0_ & ~0x00000100); 9566 return this; 9567 } 9568 9569 public Builder clone() { 9570 return create().mergeFrom(buildPartial()); 9571 } 9572 9573 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getDefaultInstanceForType() { 9574 return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); 9575 } 9576 9577 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable build() { 9578 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable result = buildPartial(); 9579 if (!result.isInitialized()) { 9580 throw newUninitializedMessageException(result); 9581 } 9582 return result; 9583 } 9584 9585 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable buildPartial() { 9586 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable(this); 9587 int from_bitField0_ = bitField0_; 9588 int to_bitField0_ = 0; 9589 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 9590 to_bitField0_ |= 0x00000001; 9591 } 9592 result.flags_ = flags_; 9593 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 9594 to_bitField0_ |= 0x00000002; 9595 } 9596 result.extraVisibility_ = extraVisibility_; 9597 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 9598 to_bitField0_ |= 0x00000004; 9599 } 9600 result.getterFlags_ = getterFlags_; 9601 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 9602 to_bitField0_ |= 0x00000008; 9603 } 9604 result.setterFlags_ = setterFlags_; 9605 if (((bitField0_ & 0x00000010) == 0x00000010)) { 9606 typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); 9607 bitField0_ = (bitField0_ & ~0x00000010); 9608 } 9609 result.typeParameter_ = typeParameter_; 9610 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 9611 to_bitField0_ |= 0x00000010; 9612 } 9613 result.receiverType_ = receiverType_; 9614 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 9615 to_bitField0_ |= 0x00000020; 9616 } 9617 result.name_ = name_; 9618 if (((bitField0_ & 0x00000080) == 0x00000080)) { 9619 valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); 9620 bitField0_ = (bitField0_ & ~0x00000080); 9621 } 9622 result.valueParameter_ = valueParameter_; 9623 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 9624 to_bitField0_ |= 0x00000040; 9625 } 9626 result.returnType_ = returnType_; 9627 result.bitField0_ = to_bitField0_; 9628 return result; 9629 } 9630 9631 public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable other) { 9632 if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance()) return this; 9633 if (other.hasFlags()) { 9634 setFlags(other.getFlags()); 9635 } 9636 if (other.hasExtraVisibility()) { 9637 bitField0_ |= 0x00000002; 9638 extraVisibility_ = other.extraVisibility_; 9639 9640 } 9641 if (other.hasGetterFlags()) { 9642 setGetterFlags(other.getGetterFlags()); 9643 } 9644 if (other.hasSetterFlags()) { 9645 setSetterFlags(other.getSetterFlags()); 9646 } 9647 if (!other.typeParameter_.isEmpty()) { 9648 if (typeParameter_.isEmpty()) { 9649 typeParameter_ = other.typeParameter_; 9650 bitField0_ = (bitField0_ & ~0x00000010); 9651 } else { 9652 ensureTypeParameterIsMutable(); 9653 typeParameter_.addAll(other.typeParameter_); 9654 } 9655 9656 } 9657 if (other.hasReceiverType()) { 9658 mergeReceiverType(other.getReceiverType()); 9659 } 9660 if (other.hasName()) { 9661 setName(other.getName()); 9662 } 9663 if (!other.valueParameter_.isEmpty()) { 9664 if (valueParameter_.isEmpty()) { 9665 valueParameter_ = other.valueParameter_; 9666 bitField0_ = (bitField0_ & ~0x00000080); 9667 } else { 9668 ensureValueParameterIsMutable(); 9669 valueParameter_.addAll(other.valueParameter_); 9670 } 9671 9672 } 9673 if (other.hasReturnType()) { 9674 mergeReturnType(other.getReturnType()); 9675 } 9676 this.mergeExtensionFields(other); 9677 return this; 9678 } 9679 9680 public final boolean isInitialized() { 9681 if (!hasName()) { 9682 9683 return false; 9684 } 9685 if (!hasReturnType()) { 9686 9687 return false; 9688 } 9689 for (int i = 0; i < getTypeParameterCount(); i++) { 9690 if (!getTypeParameter(i).isInitialized()) { 9691 9692 return false; 9693 } 9694 } 9695 if (hasReceiverType()) { 9696 if (!getReceiverType().isInitialized()) { 9697 9698 return false; 9699 } 9700 } 9701 for (int i = 0; i < getValueParameterCount(); i++) { 9702 if (!getValueParameter(i).isInitialized()) { 9703 9704 return false; 9705 } 9706 } 9707 if (!getReturnType().isInitialized()) { 9708 9709 return false; 9710 } 9711 if (!extensionsAreInitialized()) { 9712 9713 return false; 9714 } 9715 return true; 9716 } 9717 9718 public Builder mergeFrom( 9719 com.google.protobuf.CodedInputStream input, 9720 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9721 throws java.io.IOException { 9722 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parsedMessage = null; 9723 try { 9724 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 9725 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9726 parsedMessage = (org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable) e.getUnfinishedMessage(); 9727 throw e; 9728 } finally { 9729 if (parsedMessage != null) { 9730 mergeFrom(parsedMessage); 9731 } 9732 } 9733 return this; 9734 } 9735 private int bitField0_; 9736 9737 // optional int32 flags = 1; 9738 private int flags_ ; 9739 /** 9740 * <code>optional int32 flags = 1;</code> 9741 * 9742 * <pre> 9743 * 9744 *Visibility 9745 *Modality 9746 *has_annotations 9747 *CallableKind 9748 *MemberKind 9749 *hasGetter 9750 *hasSetter 9751 * </pre> 9752 */ 9753 public boolean hasFlags() { 9754 return ((bitField0_ & 0x00000001) == 0x00000001); 9755 } 9756 /** 9757 * <code>optional int32 flags = 1;</code> 9758 * 9759 * <pre> 9760 * 9761 *Visibility 9762 *Modality 9763 *has_annotations 9764 *CallableKind 9765 *MemberKind 9766 *hasGetter 9767 *hasSetter 9768 * </pre> 9769 */ 9770 public int getFlags() { 9771 return flags_; 9772 } 9773 /** 9774 * <code>optional int32 flags = 1;</code> 9775 * 9776 * <pre> 9777 * 9778 *Visibility 9779 *Modality 9780 *has_annotations 9781 *CallableKind 9782 *MemberKind 9783 *hasGetter 9784 *hasSetter 9785 * </pre> 9786 */ 9787 public Builder setFlags(int value) { 9788 bitField0_ |= 0x00000001; 9789 flags_ = value; 9790 9791 return this; 9792 } 9793 /** 9794 * <code>optional int32 flags = 1;</code> 9795 * 9796 * <pre> 9797 * 9798 *Visibility 9799 *Modality 9800 *has_annotations 9801 *CallableKind 9802 *MemberKind 9803 *hasGetter 9804 *hasSetter 9805 * </pre> 9806 */ 9807 public Builder clearFlags() { 9808 bitField0_ = (bitField0_ & ~0x00000001); 9809 flags_ = 0; 9810 9811 return this; 9812 } 9813 9814 // optional string extra_visibility = 2; 9815 private java.lang.Object extraVisibility_ = ""; 9816 /** 9817 * <code>optional string extra_visibility = 2;</code> 9818 * 9819 * <pre> 9820 * for things like java-specific visibilities 9821 * </pre> 9822 */ 9823 public boolean hasExtraVisibility() { 9824 return ((bitField0_ & 0x00000002) == 0x00000002); 9825 } 9826 /** 9827 * <code>optional string extra_visibility = 2;</code> 9828 * 9829 * <pre> 9830 * for things like java-specific visibilities 9831 * </pre> 9832 */ 9833 public java.lang.String getExtraVisibility() { 9834 java.lang.Object ref = extraVisibility_; 9835 if (!(ref instanceof java.lang.String)) { 9836 java.lang.String s = ((com.google.protobuf.ByteString) ref) 9837 .toStringUtf8(); 9838 extraVisibility_ = s; 9839 return s; 9840 } else { 9841 return (java.lang.String) ref; 9842 } 9843 } 9844 /** 9845 * <code>optional string extra_visibility = 2;</code> 9846 * 9847 * <pre> 9848 * for things like java-specific visibilities 9849 * </pre> 9850 */ 9851 public com.google.protobuf.ByteString 9852 getExtraVisibilityBytes() { 9853 java.lang.Object ref = extraVisibility_; 9854 if (ref instanceof String) { 9855 com.google.protobuf.ByteString b = 9856 com.google.protobuf.ByteString.copyFromUtf8( 9857 (java.lang.String) ref); 9858 extraVisibility_ = b; 9859 return b; 9860 } else { 9861 return (com.google.protobuf.ByteString) ref; 9862 } 9863 } 9864 /** 9865 * <code>optional string extra_visibility = 2;</code> 9866 * 9867 * <pre> 9868 * for things like java-specific visibilities 9869 * </pre> 9870 */ 9871 public Builder setExtraVisibility( 9872 java.lang.String value) { 9873 if (value == null) { 9874 throw new NullPointerException(); 9875 } 9876 bitField0_ |= 0x00000002; 9877 extraVisibility_ = value; 9878 9879 return this; 9880 } 9881 /** 9882 * <code>optional string extra_visibility = 2;</code> 9883 * 9884 * <pre> 9885 * for things like java-specific visibilities 9886 * </pre> 9887 */ 9888 public Builder clearExtraVisibility() { 9889 bitField0_ = (bitField0_ & ~0x00000002); 9890 extraVisibility_ = getDefaultInstance().getExtraVisibility(); 9891 9892 return this; 9893 } 9894 /** 9895 * <code>optional string extra_visibility = 2;</code> 9896 * 9897 * <pre> 9898 * for things like java-specific visibilities 9899 * </pre> 9900 */ 9901 public Builder setExtraVisibilityBytes( 9902 com.google.protobuf.ByteString value) { 9903 if (value == null) { 9904 throw new NullPointerException(); 9905 } 9906 bitField0_ |= 0x00000002; 9907 extraVisibility_ = value; 9908 9909 return this; 9910 } 9911 9912 // optional int32 getter_flags = 9; 9913 private int getterFlags_ ; 9914 /** 9915 * <code>optional int32 getter_flags = 9;</code> 9916 * 9917 * <pre> 9918 * 9919 *isNotDefault 9920 *Visibility 9921 *Modality 9922 *has_annotations 9923 * </pre> 9924 */ 9925 public boolean hasGetterFlags() { 9926 return ((bitField0_ & 0x00000004) == 0x00000004); 9927 } 9928 /** 9929 * <code>optional int32 getter_flags = 9;</code> 9930 * 9931 * <pre> 9932 * 9933 *isNotDefault 9934 *Visibility 9935 *Modality 9936 *has_annotations 9937 * </pre> 9938 */ 9939 public int getGetterFlags() { 9940 return getterFlags_; 9941 } 9942 /** 9943 * <code>optional int32 getter_flags = 9;</code> 9944 * 9945 * <pre> 9946 * 9947 *isNotDefault 9948 *Visibility 9949 *Modality 9950 *has_annotations 9951 * </pre> 9952 */ 9953 public Builder setGetterFlags(int value) { 9954 bitField0_ |= 0x00000004; 9955 getterFlags_ = value; 9956 9957 return this; 9958 } 9959 /** 9960 * <code>optional int32 getter_flags = 9;</code> 9961 * 9962 * <pre> 9963 * 9964 *isNotDefault 9965 *Visibility 9966 *Modality 9967 *has_annotations 9968 * </pre> 9969 */ 9970 public Builder clearGetterFlags() { 9971 bitField0_ = (bitField0_ & ~0x00000004); 9972 getterFlags_ = 0; 9973 9974 return this; 9975 } 9976 9977 // optional int32 setter_flags = 10; 9978 private int setterFlags_ ; 9979 /** 9980 * <code>optional int32 setter_flags = 10;</code> 9981 */ 9982 public boolean hasSetterFlags() { 9983 return ((bitField0_ & 0x00000008) == 0x00000008); 9984 } 9985 /** 9986 * <code>optional int32 setter_flags = 10;</code> 9987 */ 9988 public int getSetterFlags() { 9989 return setterFlags_; 9990 } 9991 /** 9992 * <code>optional int32 setter_flags = 10;</code> 9993 */ 9994 public Builder setSetterFlags(int value) { 9995 bitField0_ |= 0x00000008; 9996 setterFlags_ = value; 9997 9998 return this; 9999 } 10000 /** 10001 * <code>optional int32 setter_flags = 10;</code> 10002 */ 10003 public Builder clearSetterFlags() { 10004 bitField0_ = (bitField0_ & ~0x00000008); 10005 setterFlags_ = 0; 10006 10007 return this; 10008 } 10009 10010 // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4; 10011 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> typeParameter_ = 10012 java.util.Collections.emptyList(); 10013 private void ensureTypeParameterIsMutable() { 10014 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 10015 typeParameter_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter>(typeParameter_); 10016 bitField0_ |= 0x00000010; 10017 } 10018 } 10019 10020 /** 10021 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10022 */ 10023 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> getTypeParameterList() { 10024 return java.util.Collections.unmodifiableList(typeParameter_); 10025 } 10026 /** 10027 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10028 */ 10029 public int getTypeParameterCount() { 10030 return typeParameter_.size(); 10031 } 10032 /** 10033 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10034 */ 10035 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { 10036 return typeParameter_.get(index); 10037 } 10038 /** 10039 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10040 */ 10041 public Builder setTypeParameter( 10042 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { 10043 if (value == null) { 10044 throw new NullPointerException(); 10045 } 10046 ensureTypeParameterIsMutable(); 10047 typeParameter_.set(index, value); 10048 10049 return this; 10050 } 10051 /** 10052 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10053 */ 10054 public Builder setTypeParameter( 10055 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { 10056 ensureTypeParameterIsMutable(); 10057 typeParameter_.set(index, builderForValue.build()); 10058 10059 return this; 10060 } 10061 /** 10062 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10063 */ 10064 public Builder addTypeParameter(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { 10065 if (value == null) { 10066 throw new NullPointerException(); 10067 } 10068 ensureTypeParameterIsMutable(); 10069 typeParameter_.add(value); 10070 10071 return this; 10072 } 10073 /** 10074 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10075 */ 10076 public Builder addTypeParameter( 10077 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { 10078 if (value == null) { 10079 throw new NullPointerException(); 10080 } 10081 ensureTypeParameterIsMutable(); 10082 typeParameter_.add(index, value); 10083 10084 return this; 10085 } 10086 /** 10087 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10088 */ 10089 public Builder addTypeParameter( 10090 org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { 10091 ensureTypeParameterIsMutable(); 10092 typeParameter_.add(builderForValue.build()); 10093 10094 return this; 10095 } 10096 /** 10097 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10098 */ 10099 public Builder addTypeParameter( 10100 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { 10101 ensureTypeParameterIsMutable(); 10102 typeParameter_.add(index, builderForValue.build()); 10103 10104 return this; 10105 } 10106 /** 10107 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10108 */ 10109 public Builder addAllTypeParameter( 10110 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter> values) { 10111 ensureTypeParameterIsMutable(); 10112 super.addAll(values, typeParameter_); 10113 10114 return this; 10115 } 10116 /** 10117 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10118 */ 10119 public Builder clearTypeParameter() { 10120 typeParameter_ = java.util.Collections.emptyList(); 10121 bitField0_ = (bitField0_ & ~0x00000010); 10122 10123 return this; 10124 } 10125 /** 10126 * <code>repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter type_parameter = 4;</code> 10127 */ 10128 public Builder removeTypeParameter(int index) { 10129 ensureTypeParameterIsMutable(); 10130 typeParameter_.remove(index); 10131 10132 return this; 10133 } 10134 10135 // optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5; 10136 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 10137 /** 10138 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 10139 */ 10140 public boolean hasReceiverType() { 10141 return ((bitField0_ & 0x00000020) == 0x00000020); 10142 } 10143 /** 10144 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 10145 */ 10146 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReceiverType() { 10147 return receiverType_; 10148 } 10149 /** 10150 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 10151 */ 10152 public Builder setReceiverType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 10153 if (value == null) { 10154 throw new NullPointerException(); 10155 } 10156 receiverType_ = value; 10157 10158 bitField0_ |= 0x00000020; 10159 return this; 10160 } 10161 /** 10162 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 10163 */ 10164 public Builder setReceiverType( 10165 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 10166 receiverType_ = builderForValue.build(); 10167 10168 bitField0_ |= 0x00000020; 10169 return this; 10170 } 10171 /** 10172 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 10173 */ 10174 public Builder mergeReceiverType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 10175 if (((bitField0_ & 0x00000020) == 0x00000020) && 10176 receiverType_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { 10177 receiverType_ = 10178 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(receiverType_).mergeFrom(value).buildPartial(); 10179 } else { 10180 receiverType_ = value; 10181 } 10182 10183 bitField0_ |= 0x00000020; 10184 return this; 10185 } 10186 /** 10187 * <code>optional .org.jetbrains.jet.descriptors.serialization.Type receiver_type = 5;</code> 10188 */ 10189 public Builder clearReceiverType() { 10190 receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 10191 10192 bitField0_ = (bitField0_ & ~0x00000020); 10193 return this; 10194 } 10195 10196 // required int32 name = 6; 10197 private int name_ ; 10198 /** 10199 * <code>required int32 name = 6;</code> 10200 */ 10201 public boolean hasName() { 10202 return ((bitField0_ & 0x00000040) == 0x00000040); 10203 } 10204 /** 10205 * <code>required int32 name = 6;</code> 10206 */ 10207 public int getName() { 10208 return name_; 10209 } 10210 /** 10211 * <code>required int32 name = 6;</code> 10212 */ 10213 public Builder setName(int value) { 10214 bitField0_ |= 0x00000040; 10215 name_ = value; 10216 10217 return this; 10218 } 10219 /** 10220 * <code>required int32 name = 6;</code> 10221 */ 10222 public Builder clearName() { 10223 bitField0_ = (bitField0_ & ~0x00000040); 10224 name_ = 0; 10225 10226 return this; 10227 } 10228 10229 // repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7; 10230 private java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter> valueParameter_ = 10231 java.util.Collections.emptyList(); 10232 private void ensureValueParameterIsMutable() { 10233 if (!((bitField0_ & 0x00000080) == 0x00000080)) { 10234 valueParameter_ = new java.util.ArrayList<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter>(valueParameter_); 10235 bitField0_ |= 0x00000080; 10236 } 10237 } 10238 10239 /** 10240 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10241 * 10242 * <pre> 10243 * Value parameters for functions and constructors, or setter value parameter for properties 10244 * </pre> 10245 */ 10246 public java.util.List<org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter> getValueParameterList() { 10247 return java.util.Collections.unmodifiableList(valueParameter_); 10248 } 10249 /** 10250 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10251 * 10252 * <pre> 10253 * Value parameters for functions and constructors, or setter value parameter for properties 10254 * </pre> 10255 */ 10256 public int getValueParameterCount() { 10257 return valueParameter_.size(); 10258 } 10259 /** 10260 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10261 * 10262 * <pre> 10263 * Value parameters for functions and constructors, or setter value parameter for properties 10264 * </pre> 10265 */ 10266 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getValueParameter(int index) { 10267 return valueParameter_.get(index); 10268 } 10269 /** 10270 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10271 * 10272 * <pre> 10273 * Value parameters for functions and constructors, or setter value parameter for properties 10274 * </pre> 10275 */ 10276 public Builder setValueParameter( 10277 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter value) { 10278 if (value == null) { 10279 throw new NullPointerException(); 10280 } 10281 ensureValueParameterIsMutable(); 10282 valueParameter_.set(index, value); 10283 10284 return this; 10285 } 10286 /** 10287 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10288 * 10289 * <pre> 10290 * Value parameters for functions and constructors, or setter value parameter for properties 10291 * </pre> 10292 */ 10293 public Builder setValueParameter( 10294 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder builderForValue) { 10295 ensureValueParameterIsMutable(); 10296 valueParameter_.set(index, builderForValue.build()); 10297 10298 return this; 10299 } 10300 /** 10301 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10302 * 10303 * <pre> 10304 * Value parameters for functions and constructors, or setter value parameter for properties 10305 * </pre> 10306 */ 10307 public Builder addValueParameter(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter value) { 10308 if (value == null) { 10309 throw new NullPointerException(); 10310 } 10311 ensureValueParameterIsMutable(); 10312 valueParameter_.add(value); 10313 10314 return this; 10315 } 10316 /** 10317 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10318 * 10319 * <pre> 10320 * Value parameters for functions and constructors, or setter value parameter for properties 10321 * </pre> 10322 */ 10323 public Builder addValueParameter( 10324 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter value) { 10325 if (value == null) { 10326 throw new NullPointerException(); 10327 } 10328 ensureValueParameterIsMutable(); 10329 valueParameter_.add(index, value); 10330 10331 return this; 10332 } 10333 /** 10334 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10335 * 10336 * <pre> 10337 * Value parameters for functions and constructors, or setter value parameter for properties 10338 * </pre> 10339 */ 10340 public Builder addValueParameter( 10341 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder builderForValue) { 10342 ensureValueParameterIsMutable(); 10343 valueParameter_.add(builderForValue.build()); 10344 10345 return this; 10346 } 10347 /** 10348 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10349 * 10350 * <pre> 10351 * Value parameters for functions and constructors, or setter value parameter for properties 10352 * </pre> 10353 */ 10354 public Builder addValueParameter( 10355 int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder builderForValue) { 10356 ensureValueParameterIsMutable(); 10357 valueParameter_.add(index, builderForValue.build()); 10358 10359 return this; 10360 } 10361 /** 10362 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10363 * 10364 * <pre> 10365 * Value parameters for functions and constructors, or setter value parameter for properties 10366 * </pre> 10367 */ 10368 public Builder addAllValueParameter( 10369 java.lang.Iterable<? extends org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter> values) { 10370 ensureValueParameterIsMutable(); 10371 super.addAll(values, valueParameter_); 10372 10373 return this; 10374 } 10375 /** 10376 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10377 * 10378 * <pre> 10379 * Value parameters for functions and constructors, or setter value parameter for properties 10380 * </pre> 10381 */ 10382 public Builder clearValueParameter() { 10383 valueParameter_ = java.util.Collections.emptyList(); 10384 bitField0_ = (bitField0_ & ~0x00000080); 10385 10386 return this; 10387 } 10388 /** 10389 * <code>repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter value_parameter = 7;</code> 10390 * 10391 * <pre> 10392 * Value parameters for functions and constructors, or setter value parameter for properties 10393 * </pre> 10394 */ 10395 public Builder removeValueParameter(int index) { 10396 ensureValueParameterIsMutable(); 10397 valueParameter_.remove(index); 10398 10399 return this; 10400 } 10401 10402 // required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8; 10403 private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 10404 /** 10405 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 10406 */ 10407 public boolean hasReturnType() { 10408 return ((bitField0_ & 0x00000100) == 0x00000100); 10409 } 10410 /** 10411 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 10412 */ 10413 public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReturnType() { 10414 return returnType_; 10415 } 10416 /** 10417 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 10418 */ 10419 public Builder setReturnType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 10420 if (value == null) { 10421 throw new NullPointerException(); 10422 } 10423 returnType_ = value; 10424 10425 bitField0_ |= 0x00000100; 10426 return this; 10427 } 10428 /** 10429 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 10430 */ 10431 public Builder setReturnType( 10432 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { 10433 returnType_ = builderForValue.build(); 10434 10435 bitField0_ |= 0x00000100; 10436 return this; 10437 } 10438 /** 10439 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 10440 */ 10441 public Builder mergeReturnType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { 10442 if (((bitField0_ & 0x00000100) == 0x00000100) && 10443 returnType_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { 10444 returnType_ = 10445 org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); 10446 } else { 10447 returnType_ = value; 10448 } 10449 10450 bitField0_ |= 0x00000100; 10451 return this; 10452 } 10453 /** 10454 * <code>required .org.jetbrains.jet.descriptors.serialization.Type return_type = 8;</code> 10455 */ 10456 public Builder clearReturnType() { 10457 returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); 10458 10459 bitField0_ = (bitField0_ & ~0x00000100); 10460 return this; 10461 } 10462 10463 // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Callable) 10464 } 10465 10466 static { 10467 defaultInstance = new Callable(true); 10468 defaultInstance.initFields(); 10469 } 10470 10471 // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Callable) 10472 } 10473 10474 10475 static { 10476 } 10477 10478 // @@protoc_insertion_point(outer_class_scope) 10479 }