diff --git a/compiler/frontend/serialization/src/descriptors.proto b/compiler/frontend/serialization/src/descriptors.proto new file mode 100644 index 00000000000..65604031513 --- /dev/null +++ b/compiler/frontend/serialization/src/descriptors.proto @@ -0,0 +1,194 @@ +/* + * Copyright 2010-2013 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.jetbrains.jet.descriptors.serialization; + +option java_outer_classname = "ProtoBuf"; +option optimize_for = LITE_RUNTIME; // Smaller runtime +option java_generic_services = false; // Less code + +message SimpleNameTable { + repeated string names = 1; +} + +message QualifiedNameTable { + + message QualifiedName { + optional int32 parentQualifiedName = 1 [default = -1]; + required int32 shortName = 2; + optional Kind kind = 3 [default = PACKAGE]; + + enum Kind { + CLASS = 0; + PACKAGE = 1; + } + } + + repeated QualifiedName qualifiedNames = 1; +} + +message Type { + message Constructor { + enum Kind { + CLASS = 0; + TYPE_PARAMETER = 1; + } + + optional Kind kind = 1 [default = CLASS]; + + required int32 id = 2; // CLASS - fqName id, TYPE_PARAMETER - type parameter id + } + + required Constructor constructor = 1; + + message Argument { + enum Projection { + IN = 0; + OUT = 1; + INV = 2; + } + + optional Projection projection = 1 [default = INV]; + required Type type = 2; + } + + repeated Argument arguments = 2; + + optional bool nullable = 3 [default = false]; +} + +message TypeParameter { + required int32 id = 1; + required int32 name = 2; + + optional bool reified = 3 [default = false]; + + enum Variance { + IN = 0; + OUT = 1; + INV = 2; + } + optional Variance variance = 4 [default = INV]; + + repeated Type upperBounds = 5; +} + +message Class { + enum Kind { + // 3 bits + CLASS = 0; + TRAIT = 1; + ENUM_CLASS = 2; + ENUM_ENTRY = 3; + ANNOTATION_CLASS = 4; + OBJECT = 5; + CLASS_OBJECT = 6; + } + + /* + Modality + Visibility + ClassKind + is_inner + */ + optional int32 flags = 1 [default = 0 /*internal final class*/]; + optional string extra_visibility = 2; // for things like java-specific visibilities + + repeated Annotation annotations = 3; + + required int32 name = 4; + + repeated TypeParameter typeParameters = 5; + repeated Type supertypes = 6; + + + message NestedClass { + // ??? visibility, inner, other flags + required int32 name = 1; + } + + repeated NestedClass nestedClasses = 7; + + optional Callable primaryConstructor = 8; + + repeated Callable members = 9; + + optional NestedClass classObject = 10; +} + +message Callable { + enum Kind { + // 2 bits + DECLARATION = 0; + FAKE_OVERRIDE = 1; + DELEGATION = 2; + SYNTHESIZED = 3; + } + + /* + fun/val/var/constructor + Kind + Modality + Visibility + setter::Modality + setter::Visibility + */ + optional int32 flags = 1; + optional string extra_visibility = 2; // for things like java-specific visibilities + + repeated Annotation annotations = 3; + + repeated TypeParameter typeParameters = 4; + + optional Type receiverType = 5; + + required int32 name = 6; + + message ValueParameter { + /* + declaresDefault + */ + optional int32 flags = 1; + required int32 name = 2; + required Type type = 3; + optional Type varargElementType = 4; + + } + + repeated ValueParameter valueParameters = 7; + + required Type returnType = 8; +} + +enum Modality { + // 2 bits + FINAL = 0x00; + OPEN = 0x01; + ABSTRACT = 0x02; +} + +enum Visibility { + // 3 bits + INTERNAL = 0x00; + PRIVATE = 0x01; + PROTECTED = 0x02; + PUBLIC = 0x03; + EXTRA = 0x04; // there's an extra field for the actual visibility +} + +message Annotation { + // TODO ??? +} \ No newline at end of file diff --git a/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/ProtoBuf.java b/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/ProtoBuf.java new file mode 100644 index 00000000000..fcd793675ee --- /dev/null +++ b/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/ProtoBuf.java @@ -0,0 +1,7002 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/frontend/serialization/src/descriptors.proto + +package org.jetbrains.jet.descriptors.serialization; + +public final class ProtoBuf { + private ProtoBuf() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public enum Modality + implements com.google.protobuf.Internal.EnumLite { + FINAL(0, 0), + OPEN(1, 1), + ABSTRACT(2, 2), + ; + + public static final int FINAL_VALUE = 0; + public static final int OPEN_VALUE = 1; + public static final int ABSTRACT_VALUE = 2; + + + public final int getNumber() { return value; } + + public static Modality valueOf(int value) { + switch (value) { + case 0: return FINAL; + case 1: return OPEN; + case 2: return ABSTRACT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Modality findValueByNumber(int number) { + return Modality.valueOf(number); + } + }; + + private final int value; + + private Modality(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Modality) + } + + public enum Visibility + implements com.google.protobuf.Internal.EnumLite { + INTERNAL(0, 0), + PRIVATE(1, 1), + PROTECTED(2, 2), + PUBLIC(3, 3), + EXTRA(4, 4), + ; + + public static final int INTERNAL_VALUE = 0; + public static final int PRIVATE_VALUE = 1; + public static final int PROTECTED_VALUE = 2; + public static final int PUBLIC_VALUE = 3; + public static final int EXTRA_VALUE = 4; + + + public final int getNumber() { return value; } + + public static Visibility valueOf(int value) { + switch (value) { + case 0: return INTERNAL; + case 1: return PRIVATE; + case 2: return PROTECTED; + case 3: return PUBLIC; + case 4: return EXTRA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Visibility findValueByNumber(int number) { + return Visibility.valueOf(number); + } + }; + + private final int value; + + private Visibility(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Visibility) + } + + public interface SimpleNameTableOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // repeated string names = 1; + java.util.List getNamesList(); + int getNamesCount(); + String getNames(int index); + } + public static final class SimpleNameTable extends + com.google.protobuf.GeneratedMessageLite + implements SimpleNameTableOrBuilder { + // Use SimpleNameTable.newBuilder() to construct. + private SimpleNameTable(Builder builder) { + super(builder); + } + private SimpleNameTable(boolean noInit) {} + + private static final SimpleNameTable defaultInstance; + public static SimpleNameTable getDefaultInstance() { + return defaultInstance; + } + + public SimpleNameTable getDefaultInstanceForType() { + return defaultInstance; + } + + // repeated string names = 1; + public static final int NAMES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList names_; + public java.util.List + getNamesList() { + return names_; + } + public int getNamesCount() { + return names_.size(); + } + public String getNames(int index) { + return names_.get(index); + } + + private void initFields() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < names_.size(); i++) { + output.writeBytes(1, names_.getByteString(i)); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(names_.getByteString(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTableOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + names_ = new com.google.protobuf.UnmodifiableLazyStringList( + names_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.names_ = names_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.SimpleNameTable.getDefaultInstance()) return this; + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + + } + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + ensureNamesIsMutable(); + names_.add(input.readBytes()); + break; + } + } + } + } + + private int bitField0_; + + // repeated string names = 1; + private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + bitField0_ |= 0x00000001; + } + } + public java.util.List + getNamesList() { + return java.util.Collections.unmodifiableList(names_); + } + public int getNamesCount() { + return names_.size(); + } + public String getNames(int index) { + return names_.get(index); + } + public Builder setNames( + int index, String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + + return this; + } + public Builder addNames(String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + + return this; + } + public Builder addAllNames( + java.lang.Iterable values) { + ensureNamesIsMutable(); + super.addAll(values, names_); + + return this; + } + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + + return this; + } + void addNames(com.google.protobuf.ByteString value) { + ensureNamesIsMutable(); + names_.add(value); + + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.SimpleNameTable) + } + + static { + defaultInstance = new SimpleNameTable(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.SimpleNameTable) + } + + public interface QualifiedNameTableOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualifiedNames = 1; + java.util.List + getQualifiedNamesList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedNames(int index); + int getQualifiedNamesCount(); + } + public static final class QualifiedNameTable extends + com.google.protobuf.GeneratedMessageLite + implements QualifiedNameTableOrBuilder { + // Use QualifiedNameTable.newBuilder() to construct. + private QualifiedNameTable(Builder builder) { + super(builder); + } + private QualifiedNameTable(boolean noInit) {} + + private static final QualifiedNameTable defaultInstance; + public static QualifiedNameTable getDefaultInstance() { + return defaultInstance; + } + + public QualifiedNameTable getDefaultInstanceForType() { + return defaultInstance; + } + + public interface QualifiedNameOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional int32 parentQualifiedName = 1 [default = -1]; + boolean hasParentQualifiedName(); + int getParentQualifiedName(); + + // required int32 shortName = 2; + boolean hasShortName(); + int getShortName(); + + // optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE]; + boolean hasKind(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind(); + } + public static final class QualifiedName extends + com.google.protobuf.GeneratedMessageLite + implements QualifiedNameOrBuilder { + // Use QualifiedName.newBuilder() to construct. + private QualifiedName(Builder builder) { + super(builder); + } + private QualifiedName(boolean noInit) {} + + private static final QualifiedName defaultInstance; + public static QualifiedName getDefaultInstance() { + return defaultInstance; + } + + public QualifiedName getDefaultInstanceForType() { + return defaultInstance; + } + + public enum Kind + implements com.google.protobuf.Internal.EnumLite { + CLASS(0, 0), + PACKAGE(1, 1), + ; + + public static final int CLASS_VALUE = 0; + public static final int PACKAGE_VALUE = 1; + + + public final int getNumber() { return value; } + + public static Kind valueOf(int value) { + switch (value) { + case 0: return CLASS; + case 1: return PACKAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.valueOf(number); + } + }; + + private final int value; + + private Kind(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind) + } + + private int bitField0_; + // optional int32 parentQualifiedName = 1 [default = -1]; + public static final int PARENTQUALIFIEDNAME_FIELD_NUMBER = 1; + private int parentQualifiedName_; + public boolean hasParentQualifiedName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getParentQualifiedName() { + return parentQualifiedName_; + } + + // required int32 shortName = 2; + public static final int SHORTNAME_FIELD_NUMBER = 2; + private int shortName_; + public boolean hasShortName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getShortName() { + return shortName_; + } + + // optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE]; + public static final int KIND_FIELD_NUMBER = 3; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind kind_; + public boolean hasKind() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind() { + return kind_; + } + + private void initFields() { + parentQualifiedName_ = -1; + shortName_ = 0; + kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasShortName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, parentQualifiedName_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, shortName_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, kind_.getNumber()); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, parentQualifiedName_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, shortName_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kind_.getNumber()); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedNameOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + parentQualifiedName_ = -1; + bitField0_ = (bitField0_ & ~0x00000001); + shortName_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.parentQualifiedName_ = parentQualifiedName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.shortName_ = shortName_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.kind_ = kind_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.getDefaultInstance()) return this; + if (other.hasParentQualifiedName()) { + setParentQualifiedName(other.getParentQualifiedName()); + } + if (other.hasShortName()) { + setShortName(other.getShortName()); + } + if (other.hasKind()) { + setKind(other.getKind()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasShortName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + parentQualifiedName_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + shortName_ = input.readInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + kind_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // optional int32 parentQualifiedName = 1 [default = -1]; + private int parentQualifiedName_ = -1; + public boolean hasParentQualifiedName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getParentQualifiedName() { + return parentQualifiedName_; + } + public Builder setParentQualifiedName(int value) { + bitField0_ |= 0x00000001; + parentQualifiedName_ = value; + + return this; + } + public Builder clearParentQualifiedName() { + bitField0_ = (bitField0_ & ~0x00000001); + parentQualifiedName_ = -1; + + return this; + } + + // required int32 shortName = 2; + private int shortName_ ; + public boolean hasShortName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getShortName() { + return shortName_; + } + public Builder setShortName(int value) { + bitField0_ |= 0x00000002; + shortName_ = value; + + return this; + } + public Builder clearShortName() { + bitField0_ = (bitField0_ & ~0x00000002); + shortName_ = 0; + + return this; + } + + // optional .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE]; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; + public boolean hasKind() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind() { + return kind_; + } + public Builder setKind(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + kind_ = value; + + return this; + } + public Builder clearKind() { + bitField0_ = (bitField0_ & ~0x00000004); + kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName) + } + + static { + defaultInstance = new QualifiedName(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName) + } + + // repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualifiedNames = 1; + public static final int QUALIFIEDNAMES_FIELD_NUMBER = 1; + private java.util.List qualifiedNames_; + public java.util.List getQualifiedNamesList() { + return qualifiedNames_; + } + public java.util.List + getQualifiedNamesOrBuilderList() { + return qualifiedNames_; + } + public int getQualifiedNamesCount() { + return qualifiedNames_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedNames(int index) { + return qualifiedNames_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedNameOrBuilder getQualifiedNamesOrBuilder( + int index) { + return qualifiedNames_.get(index); + } + + private void initFields() { + qualifiedNames_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getQualifiedNamesCount(); i++) { + if (!getQualifiedNames(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < qualifiedNames_.size(); i++) { + output.writeMessage(1, qualifiedNames_.get(i)); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < qualifiedNames_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, qualifiedNames_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTableOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + qualifiedNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + qualifiedNames_ = java.util.Collections.unmodifiableList(qualifiedNames_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.qualifiedNames_ = qualifiedNames_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.getDefaultInstance()) return this; + if (!other.qualifiedNames_.isEmpty()) { + if (qualifiedNames_.isEmpty()) { + qualifiedNames_ = other.qualifiedNames_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQualifiedNamesIsMutable(); + qualifiedNames_.addAll(other.qualifiedNames_); + } + + } + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getQualifiedNamesCount(); i++) { + if (!getQualifiedNames(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addQualifiedNames(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // repeated .org.jetbrains.jet.descriptors.serialization.QualifiedNameTable.QualifiedName qualifiedNames = 1; + private java.util.List qualifiedNames_ = + java.util.Collections.emptyList(); + private void ensureQualifiedNamesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + qualifiedNames_ = new java.util.ArrayList(qualifiedNames_); + bitField0_ |= 0x00000001; + } + } + + public java.util.List getQualifiedNamesList() { + return java.util.Collections.unmodifiableList(qualifiedNames_); + } + public int getQualifiedNamesCount() { + return qualifiedNames_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedNames(int index) { + return qualifiedNames_.get(index); + } + public Builder setQualifiedNames( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualifiedNamesIsMutable(); + qualifiedNames_.set(index, value); + + return this; + } + public Builder setQualifiedNames( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) { + ensureQualifiedNamesIsMutable(); + qualifiedNames_.set(index, builderForValue.build()); + + return this; + } + public Builder addQualifiedNames(org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualifiedNamesIsMutable(); + qualifiedNames_.add(value); + + return this; + } + public Builder addQualifiedNames( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualifiedNamesIsMutable(); + qualifiedNames_.add(index, value); + + return this; + } + public Builder addQualifiedNames( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) { + ensureQualifiedNamesIsMutable(); + qualifiedNames_.add(builderForValue.build()); + + return this; + } + public Builder addQualifiedNames( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) { + ensureQualifiedNamesIsMutable(); + qualifiedNames_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllQualifiedNames( + java.lang.Iterable values) { + ensureQualifiedNamesIsMutable(); + super.addAll(values, qualifiedNames_); + + return this; + } + public Builder clearQualifiedNames() { + qualifiedNames_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + + return this; + } + public Builder removeQualifiedNames(int index) { + ensureQualifiedNamesIsMutable(); + qualifiedNames_.remove(index); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable) + } + + static { + defaultInstance = new QualifiedNameTable(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.QualifiedNameTable) + } + + public interface TypeOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1; + boolean hasConstructor(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getConstructor(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument arguments = 2; + java.util.List + getArgumentsList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getArguments(int index); + int getArgumentsCount(); + + // optional bool nullable = 3 [default = false]; + boolean hasNullable(); + boolean getNullable(); + } + public static final class Type extends + com.google.protobuf.GeneratedMessageLite + implements TypeOrBuilder { + // Use Type.newBuilder() to construct. + private Type(Builder builder) { + super(builder); + } + private Type(boolean noInit) {} + + private static final Type defaultInstance; + public static Type getDefaultInstance() { + return defaultInstance; + } + + public Type getDefaultInstanceForType() { + return defaultInstance; + } + + public interface ConstructorOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS]; + boolean hasKind(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind getKind(); + + // required int32 id = 2; + boolean hasId(); + int getId(); + } + public static final class Constructor extends + com.google.protobuf.GeneratedMessageLite + implements ConstructorOrBuilder { + // Use Constructor.newBuilder() to construct. + private Constructor(Builder builder) { + super(builder); + } + private Constructor(boolean noInit) {} + + private static final Constructor defaultInstance; + public static Constructor getDefaultInstance() { + return defaultInstance; + } + + public Constructor getDefaultInstanceForType() { + return defaultInstance; + } + + public enum Kind + implements com.google.protobuf.Internal.EnumLite { + CLASS(0, 0), + TYPE_PARAMETER(1, 1), + ; + + public static final int CLASS_VALUE = 0; + public static final int TYPE_PARAMETER_VALUE = 1; + + + public final int getNumber() { return value; } + + public static Kind valueOf(int value) { + switch (value) { + case 0: return CLASS; + case 1: return TYPE_PARAMETER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.valueOf(number); + } + }; + + private final int value; + + private Kind(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind) + } + + private int bitField0_; + // optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS]; + public static final int KIND_FIELD_NUMBER = 1; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind kind_; + public boolean hasKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind getKind() { + return kind_; + } + + // required int32 id = 2; + public static final int ID_FIELD_NUMBER = 2; + private int id_; + public boolean hasId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getId() { + return id_; + } + + private void initFields() { + kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; + id_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, kind_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, id_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, kind_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, id_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ConstructorOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.kind_ = kind_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.id_ = id_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance()) return this; + if (other.hasKind()) { + setKind(other.getKind()); + } + if (other.hasId()) { + setId(other.getId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + kind_ = value; + } + break; + } + case 16: { + bitField0_ |= 0x00000002; + id_ = input.readInt32(); + break; + } + } + } + } + + private int bitField0_; + + // optional .org.jetbrains.jet.descriptors.serialization.Type.Constructor.Kind kind = 1 [default = CLASS]; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; + public boolean hasKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind getKind() { + return kind_; + } + public Builder setKind(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + kind_ = value; + + return this; + } + public Builder clearKind() { + bitField0_ = (bitField0_ & ~0x00000001); + kind_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Kind.CLASS; + + return this; + } + + // required int32 id = 2; + private int id_ ; + public boolean hasId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getId() { + return id_; + } + public Builder setId(int value) { + bitField0_ |= 0x00000002; + id_ = value; + + return this; + } + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000002); + id_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Type.Constructor) + } + + static { + defaultInstance = new Constructor(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Type.Constructor) + } + + public interface ArgumentOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV]; + boolean hasProjection(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection getProjection(); + + // required .org.jetbrains.jet.descriptors.serialization.Type type = 2; + boolean hasType(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType(); + } + public static final class Argument extends + com.google.protobuf.GeneratedMessageLite + implements ArgumentOrBuilder { + // Use Argument.newBuilder() to construct. + private Argument(Builder builder) { + super(builder); + } + private Argument(boolean noInit) {} + + private static final Argument defaultInstance; + public static Argument getDefaultInstance() { + return defaultInstance; + } + + public Argument getDefaultInstanceForType() { + return defaultInstance; + } + + public enum Projection + implements com.google.protobuf.Internal.EnumLite { + IN(0, 0), + OUT(1, 1), + INV(2, 2), + ; + + public static final int IN_VALUE = 0; + public static final int OUT_VALUE = 1; + public static final int INV_VALUE = 2; + + + public final int getNumber() { return value; } + + public static Projection valueOf(int value) { + switch (value) { + case 0: return IN; + case 1: return OUT; + case 2: return INV; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Projection findValueByNumber(int number) { + return Projection.valueOf(number); + } + }; + + private final int value; + + private Projection(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection) + } + + private int bitField0_; + // optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV]; + public static final int PROJECTION_FIELD_NUMBER = 1; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection projection_; + public boolean hasProjection() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection getProjection() { + return projection_; + } + + // required .org.jetbrains.jet.descriptors.serialization.Type type = 2; + public static final int TYPE_FIELD_NUMBER = 2; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_; + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { + return type_; + } + + private void initFields() { + projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; + type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + if (!getType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, projection_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, type_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, projection_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, type_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ArgumentOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.projection_ = projection_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.type_ = type_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.getDefaultInstance()) return this; + if (other.hasProjection()) { + setProjection(other.getProjection()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasType()) { + + return false; + } + if (!getType().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + projection_ = value; + } + break; + } + case 18: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + if (hasType()) { + subBuilder.mergeFrom(getType()); + } + input.readMessage(subBuilder, extensionRegistry); + setType(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // optional .org.jetbrains.jet.descriptors.serialization.Type.Argument.Projection projection = 1 [default = INV]; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; + public boolean hasProjection() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection getProjection() { + return projection_; + } + public Builder setProjection(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + projection_ = value; + + return this; + } + public Builder clearProjection() { + bitField0_ = (bitField0_ & ~0x00000001); + projection_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Projection.INV; + + return this; + } + + // required .org.jetbrains.jet.descriptors.serialization.Type type = 2; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { + return type_; + } + public Builder setType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + + bitField0_ |= 0x00000002; + return this; + } + public Builder setType( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + type_ = builderForValue.build(); + + bitField0_ |= 0x00000002; + return this; + } + public Builder mergeType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + type_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { + type_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + + bitField0_ |= 0x00000002; + return this; + } + public Builder clearType() { + type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Type.Argument) + } + + static { + defaultInstance = new Argument(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Type.Argument) + } + + private int bitField0_; + // required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1; + public static final int CONSTRUCTOR_FIELD_NUMBER = 1; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor constructor_; + public boolean hasConstructor() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getConstructor() { + return constructor_; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument arguments = 2; + public static final int ARGUMENTS_FIELD_NUMBER = 2; + private java.util.List arguments_; + public java.util.List getArgumentsList() { + return arguments_; + } + public java.util.List + getArgumentsOrBuilderList() { + return arguments_; + } + public int getArgumentsCount() { + return arguments_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getArguments(int index) { + return arguments_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.ArgumentOrBuilder getArgumentsOrBuilder( + int index) { + return arguments_.get(index); + } + + // optional bool nullable = 3 [default = false]; + public static final int NULLABLE_FIELD_NUMBER = 3; + private boolean nullable_; + public boolean hasNullable() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getNullable() { + return nullable_; + } + + private void initFields() { + constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); + arguments_ = java.util.Collections.emptyList(); + nullable_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasConstructor()) { + memoizedIsInitialized = 0; + return false; + } + if (!getConstructor().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getArgumentsCount(); i++) { + if (!getArguments(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, constructor_); + } + for (int i = 0; i < arguments_.size(); i++) { + output.writeMessage(2, arguments_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(3, nullable_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, constructor_); + } + for (int i = 0; i < arguments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, arguments_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, nullable_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + arguments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + nullable_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.constructor_ = constructor_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + arguments_ = java.util.Collections.unmodifiableList(arguments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.arguments_ = arguments_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.nullable_ = nullable_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) return this; + if (other.hasConstructor()) { + mergeConstructor(other.getConstructor()); + } + if (!other.arguments_.isEmpty()) { + if (arguments_.isEmpty()) { + arguments_ = other.arguments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureArgumentsIsMutable(); + arguments_.addAll(other.arguments_); + } + + } + if (other.hasNullable()) { + setNullable(other.getNullable()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasConstructor()) { + + return false; + } + if (!getConstructor().isInitialized()) { + + return false; + } + for (int i = 0; i < getArgumentsCount(); i++) { + if (!getArguments(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.newBuilder(); + if (hasConstructor()) { + subBuilder.mergeFrom(getConstructor()); + } + input.readMessage(subBuilder, extensionRegistry); + setConstructor(subBuilder.buildPartial()); + break; + } + case 18: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addArguments(subBuilder.buildPartial()); + break; + } + case 24: { + bitField0_ |= 0x00000004; + nullable_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required .org.jetbrains.jet.descriptors.serialization.Type.Constructor constructor = 1; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); + public boolean hasConstructor() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor getConstructor() { + return constructor_; + } + public Builder setConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + constructor_ = value; + + bitField0_ |= 0x00000001; + return this; + } + public Builder setConstructor( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.Builder builderForValue) { + constructor_ = builderForValue.build(); + + bitField0_ |= 0x00000001; + return this; + } + public Builder mergeConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor value) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + constructor_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance()) { + constructor_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.newBuilder(constructor_).mergeFrom(value).buildPartial(); + } else { + constructor_ = value; + } + + bitField0_ |= 0x00000001; + return this; + } + public Builder clearConstructor() { + constructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Constructor.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Type.Argument arguments = 2; + private java.util.List arguments_ = + java.util.Collections.emptyList(); + private void ensureArgumentsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + arguments_ = new java.util.ArrayList(arguments_); + bitField0_ |= 0x00000002; + } + } + + public java.util.List getArgumentsList() { + return java.util.Collections.unmodifiableList(arguments_); + } + public int getArgumentsCount() { + return arguments_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument getArguments(int index) { + return arguments_.get(index); + } + public Builder setArguments( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentsIsMutable(); + arguments_.set(index, value); + + return this; + } + public Builder setArguments( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder builderForValue) { + ensureArgumentsIsMutable(); + arguments_.set(index, builderForValue.build()); + + return this; + } + public Builder addArguments(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentsIsMutable(); + arguments_.add(value); + + return this; + } + public Builder addArguments( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentsIsMutable(); + arguments_.add(index, value); + + return this; + } + public Builder addArguments( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder builderForValue) { + ensureArgumentsIsMutable(); + arguments_.add(builderForValue.build()); + + return this; + } + public Builder addArguments( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Argument.Builder builderForValue) { + ensureArgumentsIsMutable(); + arguments_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllArguments( + java.lang.Iterable values) { + ensureArgumentsIsMutable(); + super.addAll(values, arguments_); + + return this; + } + public Builder clearArguments() { + arguments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + + return this; + } + public Builder removeArguments(int index) { + ensureArgumentsIsMutable(); + arguments_.remove(index); + + return this; + } + + // optional bool nullable = 3 [default = false]; + private boolean nullable_ ; + public boolean hasNullable() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getNullable() { + return nullable_; + } + public Builder setNullable(boolean value) { + bitField0_ |= 0x00000004; + nullable_ = value; + + return this; + } + public Builder clearNullable() { + bitField0_ = (bitField0_ & ~0x00000004); + nullable_ = false; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Type) + } + + static { + defaultInstance = new Type(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Type) + } + + public interface TypeParameterOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required int32 id = 1; + boolean hasId(); + int getId(); + + // required int32 name = 2; + boolean hasName(); + int getName(); + + // optional bool reified = 3 [default = false]; + boolean hasReified(); + boolean getReified(); + + // optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV]; + boolean hasVariance(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance getVariance(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Type upperBounds = 5; + java.util.List + getUpperBoundsList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getUpperBounds(int index); + int getUpperBoundsCount(); + } + public static final class TypeParameter extends + com.google.protobuf.GeneratedMessageLite + implements TypeParameterOrBuilder { + // Use TypeParameter.newBuilder() to construct. + private TypeParameter(Builder builder) { + super(builder); + } + private TypeParameter(boolean noInit) {} + + private static final TypeParameter defaultInstance; + public static TypeParameter getDefaultInstance() { + return defaultInstance; + } + + public TypeParameter getDefaultInstanceForType() { + return defaultInstance; + } + + public enum Variance + implements com.google.protobuf.Internal.EnumLite { + IN(0, 0), + OUT(1, 1), + INV(2, 2), + ; + + public static final int IN_VALUE = 0; + public static final int OUT_VALUE = 1; + public static final int INV_VALUE = 2; + + + public final int getNumber() { return value; } + + public static Variance valueOf(int value) { + switch (value) { + case 0: return IN; + case 1: return OUT; + case 2: return INV; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Variance findValueByNumber(int number) { + return Variance.valueOf(number); + } + }; + + private final int value; + + private Variance(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance) + } + + private int bitField0_; + // required int32 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private int id_; + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getId() { + return id_; + } + + // required int32 name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getName() { + return name_; + } + + // optional bool reified = 3 [default = false]; + public static final int REIFIED_FIELD_NUMBER = 3; + private boolean reified_; + public boolean hasReified() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getReified() { + return reified_; + } + + // optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV]; + public static final int VARIANCE_FIELD_NUMBER = 4; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance variance_; + public boolean hasVariance() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance getVariance() { + return variance_; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Type upperBounds = 5; + public static final int UPPERBOUNDS_FIELD_NUMBER = 5; + private java.util.List upperBounds_; + public java.util.List getUpperBoundsList() { + return upperBounds_; + } + public java.util.List + getUpperBoundsOrBuilderList() { + return upperBounds_; + } + public int getUpperBoundsCount() { + return upperBounds_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getUpperBounds(int index) { + return upperBounds_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder getUpperBoundsOrBuilder( + int index) { + return upperBounds_.get(index); + } + + private void initFields() { + id_ = 0; + name_ = 0; + reified_ = false; + variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; + upperBounds_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getUpperBoundsCount(); i++) { + if (!getUpperBounds(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, reified_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, variance_.getNumber()); + } + for (int i = 0; i < upperBounds_.size(); i++) { + output.writeMessage(5, upperBounds_.get(i)); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, reified_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, variance_.getNumber()); + } + for (int i = 0; i < upperBounds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, upperBounds_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + reified_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; + bitField0_ = (bitField0_ & ~0x00000008); + upperBounds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.reified_ = reified_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.variance_ = variance_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + upperBounds_ = java.util.Collections.unmodifiableList(upperBounds_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.upperBounds_ = upperBounds_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (other.hasReified()) { + setReified(other.getReified()); + } + if (other.hasVariance()) { + setVariance(other.getVariance()); + } + if (!other.upperBounds_.isEmpty()) { + if (upperBounds_.isEmpty()) { + upperBounds_ = other.upperBounds_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureUpperBoundsIsMutable(); + upperBounds_.addAll(other.upperBounds_); + } + + } + return this; + } + + public final boolean isInitialized() { + if (!hasId()) { + + return false; + } + if (!hasName()) { + + return false; + } + for (int i = 0; i < getUpperBoundsCount(); i++) { + if (!getUpperBounds(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + name_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + reified_ = input.readBool(); + break; + } + case 32: { + int rawValue = input.readEnum(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance value = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000008; + variance_ = value; + } + break; + } + case 42: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addUpperBounds(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required int32 id = 1; + private int id_ ; + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getId() { + return id_; + } + public Builder setId(int value) { + bitField0_ |= 0x00000001; + id_ = value; + + return this; + } + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; + + return this; + } + + // required int32 name = 2; + private int name_ ; + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getName() { + return name_; + } + public Builder setName(int value) { + bitField0_ |= 0x00000002; + name_ = value; + + return this; + } + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = 0; + + return this; + } + + // optional bool reified = 3 [default = false]; + private boolean reified_ ; + public boolean hasReified() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getReified() { + return reified_; + } + public Builder setReified(boolean value) { + bitField0_ |= 0x00000004; + reified_ = value; + + return this; + } + public Builder clearReified() { + bitField0_ = (bitField0_ & ~0x00000004); + reified_ = false; + + return this; + } + + // optional .org.jetbrains.jet.descriptors.serialization.TypeParameter.Variance variance = 4 [default = INV]; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; + public boolean hasVariance() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance getVariance() { + return variance_; + } + public Builder setVariance(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + variance_ = value; + + return this; + } + public Builder clearVariance() { + bitField0_ = (bitField0_ & ~0x00000008); + variance_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Variance.INV; + + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Type upperBounds = 5; + private java.util.List upperBounds_ = + java.util.Collections.emptyList(); + private void ensureUpperBoundsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + upperBounds_ = new java.util.ArrayList(upperBounds_); + bitField0_ |= 0x00000010; + } + } + + public java.util.List getUpperBoundsList() { + return java.util.Collections.unmodifiableList(upperBounds_); + } + public int getUpperBoundsCount() { + return upperBounds_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getUpperBounds(int index) { + return upperBounds_.get(index); + } + public Builder setUpperBounds( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpperBoundsIsMutable(); + upperBounds_.set(index, value); + + return this; + } + public Builder setUpperBounds( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + ensureUpperBoundsIsMutable(); + upperBounds_.set(index, builderForValue.build()); + + return this; + } + public Builder addUpperBounds(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpperBoundsIsMutable(); + upperBounds_.add(value); + + return this; + } + public Builder addUpperBounds( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpperBoundsIsMutable(); + upperBounds_.add(index, value); + + return this; + } + public Builder addUpperBounds( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + ensureUpperBoundsIsMutable(); + upperBounds_.add(builderForValue.build()); + + return this; + } + public Builder addUpperBounds( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + ensureUpperBoundsIsMutable(); + upperBounds_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllUpperBounds( + java.lang.Iterable values) { + ensureUpperBoundsIsMutable(); + super.addAll(values, upperBounds_); + + return this; + } + public Builder clearUpperBounds() { + upperBounds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + + return this; + } + public Builder removeUpperBounds(int index) { + ensureUpperBoundsIsMutable(); + upperBounds_.remove(index); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.TypeParameter) + } + + static { + defaultInstance = new TypeParameter(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.TypeParameter) + } + + public interface ClassOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional int32 flags = 1 [default = 0]; + boolean hasFlags(); + int getFlags(); + + // optional string extra_visibility = 2; + boolean hasExtraVisibility(); + String getExtraVisibility(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Annotation annotations = 3; + java.util.List + getAnnotationsList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getAnnotations(int index); + int getAnnotationsCount(); + + // required int32 name = 4; + boolean hasName(); + int getName(); + + // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter typeParameters = 5; + java.util.List + getTypeParametersList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameters(int index); + int getTypeParametersCount(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Type supertypes = 6; + java.util.List + getSupertypesList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getSupertypes(int index); + int getSupertypesCount(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Class.NestedClass nestedClasses = 7; + java.util.List + getNestedClassesList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getNestedClasses(int index); + int getNestedClassesCount(); + + // optional .org.jetbrains.jet.descriptors.serialization.Callable primaryConstructor = 8; + boolean hasPrimaryConstructor(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getPrimaryConstructor(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Callable members = 9; + java.util.List + getMembersList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMembers(int index); + int getMembersCount(); + + // optional .org.jetbrains.jet.descriptors.serialization.Class.NestedClass classObject = 10; + boolean hasClassObject(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getClassObject(); + } + public static final class Class extends + com.google.protobuf.GeneratedMessageLite + implements ClassOrBuilder { + // Use Class.newBuilder() to construct. + private Class(Builder builder) { + super(builder); + } + private Class(boolean noInit) {} + + private static final Class defaultInstance; + public static Class getDefaultInstance() { + return defaultInstance; + } + + public Class getDefaultInstanceForType() { + return defaultInstance; + } + + public enum Kind + implements com.google.protobuf.Internal.EnumLite { + CLASS(0, 0), + TRAIT(1, 1), + ENUM_CLASS(2, 2), + ENUM_ENTRY(3, 3), + ANNOTATION_CLASS(4, 4), + OBJECT(5, 5), + CLASS_OBJECT(6, 6), + ; + + public static final int CLASS_VALUE = 0; + public static final int TRAIT_VALUE = 1; + public static final int ENUM_CLASS_VALUE = 2; + public static final int ENUM_ENTRY_VALUE = 3; + public static final int ANNOTATION_CLASS_VALUE = 4; + public static final int OBJECT_VALUE = 5; + public static final int CLASS_OBJECT_VALUE = 6; + + + public final int getNumber() { return value; } + + public static Kind valueOf(int value) { + switch (value) { + case 0: return CLASS; + case 1: return TRAIT; + case 2: return ENUM_CLASS; + case 3: return ENUM_ENTRY; + case 4: return ANNOTATION_CLASS; + case 5: return OBJECT; + case 6: return CLASS_OBJECT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.valueOf(number); + } + }; + + private final int value; + + private Kind(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Class.Kind) + } + + public interface NestedClassOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required int32 name = 1; + boolean hasName(); + int getName(); + } + public static final class NestedClass extends + com.google.protobuf.GeneratedMessageLite + implements NestedClassOrBuilder { + // Use NestedClass.newBuilder() to construct. + private NestedClass(Builder builder) { + super(builder); + } + private NestedClass(boolean noInit) {} + + private static final NestedClass defaultInstance; + public static NestedClass getDefaultInstance() { + return defaultInstance; + } + + public NestedClass getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // required int32 name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getName() { + return name_; + } + + private void initFields() { + name_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, name_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, name_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClassOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance()) return this; + if (other.hasName()) { + setName(other.getName()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + name_ = input.readInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required int32 name = 1; + private int name_ ; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getName() { + return name_; + } + public Builder setName(int value) { + bitField0_ |= 0x00000001; + name_ = value; + + return this; + } + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Class.NestedClass) + } + + static { + defaultInstance = new NestedClass(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Class.NestedClass) + } + + private int bitField0_; + // optional int32 flags = 1 [default = 0]; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getFlags() { + return flags_; + } + + // optional string extra_visibility = 2; + public static final int EXTRA_VISIBILITY_FIELD_NUMBER = 2; + private java.lang.Object extraVisibility_; + public boolean hasExtraVisibility() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getExtraVisibility() { + java.lang.Object ref = extraVisibility_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + extraVisibility_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getExtraVisibilityBytes() { + java.lang.Object ref = extraVisibility_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + extraVisibility_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Annotation annotations = 3; + public static final int ANNOTATIONS_FIELD_NUMBER = 3; + private java.util.List annotations_; + public java.util.List getAnnotationsList() { + return annotations_; + } + public java.util.List + getAnnotationsOrBuilderList() { + return annotations_; + } + public int getAnnotationsCount() { + return annotations_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.AnnotationOrBuilder getAnnotationsOrBuilder( + int index) { + return annotations_.get(index); + } + + // required int32 name = 4; + public static final int NAME_FIELD_NUMBER = 4; + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getName() { + return name_; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter typeParameters = 5; + public static final int TYPEPARAMETERS_FIELD_NUMBER = 5; + private java.util.List typeParameters_; + public java.util.List getTypeParametersList() { + return typeParameters_; + } + public java.util.List + getTypeParametersOrBuilderList() { + return typeParameters_; + } + public int getTypeParametersCount() { + return typeParameters_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameters(int index) { + return typeParameters_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder getTypeParametersOrBuilder( + int index) { + return typeParameters_.get(index); + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Type supertypes = 6; + public static final int SUPERTYPES_FIELD_NUMBER = 6; + private java.util.List supertypes_; + public java.util.List getSupertypesList() { + return supertypes_; + } + public java.util.List + getSupertypesOrBuilderList() { + return supertypes_; + } + public int getSupertypesCount() { + return supertypes_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getSupertypes(int index) { + return supertypes_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeOrBuilder getSupertypesOrBuilder( + int index) { + return supertypes_.get(index); + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Class.NestedClass nestedClasses = 7; + public static final int NESTEDCLASSES_FIELD_NUMBER = 7; + private java.util.List nestedClasses_; + public java.util.List getNestedClassesList() { + return nestedClasses_; + } + public java.util.List + getNestedClassesOrBuilderList() { + return nestedClasses_; + } + public int getNestedClassesCount() { + return nestedClasses_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getNestedClasses(int index) { + return nestedClasses_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClassOrBuilder getNestedClassesOrBuilder( + int index) { + return nestedClasses_.get(index); + } + + // optional .org.jetbrains.jet.descriptors.serialization.Callable primaryConstructor = 8; + public static final int PRIMARYCONSTRUCTOR_FIELD_NUMBER = 8; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable primaryConstructor_; + public boolean hasPrimaryConstructor() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getPrimaryConstructor() { + return primaryConstructor_; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Callable members = 9; + public static final int MEMBERS_FIELD_NUMBER = 9; + private java.util.List members_; + public java.util.List getMembersList() { + return members_; + } + public java.util.List + getMembersOrBuilderList() { + return members_; + } + public int getMembersCount() { + return members_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMembers(int index) { + return members_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder getMembersOrBuilder( + int index) { + return members_.get(index); + } + + // optional .org.jetbrains.jet.descriptors.serialization.Class.NestedClass classObject = 10; + public static final int CLASSOBJECT_FIELD_NUMBER = 10; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass classObject_; + public boolean hasClassObject() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getClassObject() { + return classObject_; + } + + private void initFields() { + flags_ = 0; + extraVisibility_ = ""; + annotations_ = java.util.Collections.emptyList(); + name_ = 0; + typeParameters_ = java.util.Collections.emptyList(); + supertypes_ = java.util.Collections.emptyList(); + nestedClasses_ = java.util.Collections.emptyList(); + primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); + members_ = java.util.Collections.emptyList(); + classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTypeParametersCount(); i++) { + if (!getTypeParameters(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getSupertypesCount(); i++) { + if (!getSupertypes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getNestedClassesCount(); i++) { + if (!getNestedClasses(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPrimaryConstructor()) { + if (!getPrimaryConstructor().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getMembersCount(); i++) { + if (!getMembers(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasClassObject()) { + if (!getClassObject().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getExtraVisibilityBytes()); + } + for (int i = 0; i < annotations_.size(); i++) { + output.writeMessage(3, annotations_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(4, name_); + } + for (int i = 0; i < typeParameters_.size(); i++) { + output.writeMessage(5, typeParameters_.get(i)); + } + for (int i = 0; i < supertypes_.size(); i++) { + output.writeMessage(6, supertypes_.get(i)); + } + for (int i = 0; i < nestedClasses_.size(); i++) { + output.writeMessage(7, nestedClasses_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(8, primaryConstructor_); + } + for (int i = 0; i < members_.size(); i++) { + output.writeMessage(9, members_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(10, classObject_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getExtraVisibilityBytes()); + } + for (int i = 0; i < annotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, annotations_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, name_); + } + for (int i = 0; i < typeParameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, typeParameters_.get(i)); + } + for (int i = 0; i < supertypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, supertypes_.get(i)); + } + for (int i = 0; i < nestedClasses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, nestedClasses_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, primaryConstructor_); + } + for (int i = 0; i < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, members_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, classObject_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.ClassOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + extraVisibility_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + supertypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + nestedClasses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000080); + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.flags_ = flags_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.extraVisibility_ = extraVisibility_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + annotations_ = java.util.Collections.unmodifiableList(annotations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.annotations_ = annotations_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.name_ = name_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.typeParameters_ = typeParameters_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + supertypes_ = java.util.Collections.unmodifiableList(supertypes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.supertypes_ = supertypes_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + nestedClasses_ = java.util.Collections.unmodifiableList(nestedClasses_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.nestedClasses_ = nestedClasses_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000008; + } + result.primaryConstructor_ = primaryConstructor_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.members_ = members_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000010; + } + result.classObject_ = classObject_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasExtraVisibility()) { + setExtraVisibility(other.getExtraVisibility()); + } + if (!other.annotations_.isEmpty()) { + if (annotations_.isEmpty()) { + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAnnotationsIsMutable(); + annotations_.addAll(other.annotations_); + } + + } + if (other.hasName()) { + setName(other.getName()); + } + if (!other.typeParameters_.isEmpty()) { + if (typeParameters_.isEmpty()) { + typeParameters_ = other.typeParameters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTypeParametersIsMutable(); + typeParameters_.addAll(other.typeParameters_); + } + + } + if (!other.supertypes_.isEmpty()) { + if (supertypes_.isEmpty()) { + supertypes_ = other.supertypes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSupertypesIsMutable(); + supertypes_.addAll(other.supertypes_); + } + + } + if (!other.nestedClasses_.isEmpty()) { + if (nestedClasses_.isEmpty()) { + nestedClasses_ = other.nestedClasses_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureNestedClassesIsMutable(); + nestedClasses_.addAll(other.nestedClasses_); + } + + } + if (other.hasPrimaryConstructor()) { + mergePrimaryConstructor(other.getPrimaryConstructor()); + } + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + + } + if (other.hasClassObject()) { + mergeClassObject(other.getClassObject()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + for (int i = 0; i < getTypeParametersCount(); i++) { + if (!getTypeParameters(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getSupertypesCount(); i++) { + if (!getSupertypes(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getNestedClassesCount(); i++) { + if (!getNestedClasses(i).isInitialized()) { + + return false; + } + } + if (hasPrimaryConstructor()) { + if (!getPrimaryConstructor().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getMembersCount(); i++) { + if (!getMembers(i).isInitialized()) { + + return false; + } + } + if (hasClassObject()) { + if (!getClassObject().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + extraVisibility_ = input.readBytes(); + break; + } + case 26: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addAnnotations(subBuilder.buildPartial()); + break; + } + case 32: { + bitField0_ |= 0x00000008; + name_ = input.readInt32(); + break; + } + case 42: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addTypeParameters(subBuilder.buildPartial()); + break; + } + case 50: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addSupertypes(subBuilder.buildPartial()); + break; + } + case 58: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addNestedClasses(subBuilder.buildPartial()); + break; + } + case 66: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.newBuilder(); + if (hasPrimaryConstructor()) { + subBuilder.mergeFrom(getPrimaryConstructor()); + } + input.readMessage(subBuilder, extensionRegistry); + setPrimaryConstructor(subBuilder.buildPartial()); + break; + } + case 74: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addMembers(subBuilder.buildPartial()); + break; + } + case 82: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.newBuilder(); + if (hasClassObject()) { + subBuilder.mergeFrom(getClassObject()); + } + input.readMessage(subBuilder, extensionRegistry); + setClassObject(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // optional int32 flags = 1 [default = 0]; + private int flags_ ; + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getFlags() { + return flags_; + } + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + + return this; + } + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + + return this; + } + + // optional string extra_visibility = 2; + private java.lang.Object extraVisibility_ = ""; + public boolean hasExtraVisibility() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getExtraVisibility() { + java.lang.Object ref = extraVisibility_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + extraVisibility_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setExtraVisibility(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + extraVisibility_ = value; + + return this; + } + public Builder clearExtraVisibility() { + bitField0_ = (bitField0_ & ~0x00000002); + extraVisibility_ = getDefaultInstance().getExtraVisibility(); + + return this; + } + void setExtraVisibility(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + extraVisibility_ = value; + + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Annotation annotations = 3; + private java.util.List annotations_ = + java.util.Collections.emptyList(); + private void ensureAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + annotations_ = new java.util.ArrayList(annotations_); + bitField0_ |= 0x00000004; + } + } + + public java.util.List getAnnotationsList() { + return java.util.Collections.unmodifiableList(annotations_); + } + public int getAnnotationsCount() { + return annotations_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + public Builder setAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.set(index, value); + + return this; + } + public Builder setAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder builderForValue) { + ensureAnnotationsIsMutable(); + annotations_.set(index, builderForValue.build()); + + return this; + } + public Builder addAnnotations(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(value); + + return this; + } + public Builder addAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(index, value); + + return this; + } + public Builder addAnnotations( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder builderForValue) { + ensureAnnotationsIsMutable(); + annotations_.add(builderForValue.build()); + + return this; + } + public Builder addAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder builderForValue) { + ensureAnnotationsIsMutable(); + annotations_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllAnnotations( + java.lang.Iterable values) { + ensureAnnotationsIsMutable(); + super.addAll(values, annotations_); + + return this; + } + public Builder clearAnnotations() { + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + + return this; + } + public Builder removeAnnotations(int index) { + ensureAnnotationsIsMutable(); + annotations_.remove(index); + + return this; + } + + // required int32 name = 4; + private int name_ ; + public boolean hasName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getName() { + return name_; + } + public Builder setName(int value) { + bitField0_ |= 0x00000008; + name_ = value; + + return this; + } + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000008); + name_ = 0; + + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter typeParameters = 5; + private java.util.List typeParameters_ = + java.util.Collections.emptyList(); + private void ensureTypeParametersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + typeParameters_ = new java.util.ArrayList(typeParameters_); + bitField0_ |= 0x00000010; + } + } + + public java.util.List getTypeParametersList() { + return java.util.Collections.unmodifiableList(typeParameters_); + } + public int getTypeParametersCount() { + return typeParameters_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameters(int index) { + return typeParameters_.get(index); + } + public Builder setTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParametersIsMutable(); + typeParameters_.set(index, value); + + return this; + } + public Builder setTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParametersIsMutable(); + typeParameters_.set(index, builderForValue.build()); + + return this; + } + public Builder addTypeParameters(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParametersIsMutable(); + typeParameters_.add(value); + + return this; + } + public Builder addTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParametersIsMutable(); + typeParameters_.add(index, value); + + return this; + } + public Builder addTypeParameters( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParametersIsMutable(); + typeParameters_.add(builderForValue.build()); + + return this; + } + public Builder addTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParametersIsMutable(); + typeParameters_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllTypeParameters( + java.lang.Iterable values) { + ensureTypeParametersIsMutable(); + super.addAll(values, typeParameters_); + + return this; + } + public Builder clearTypeParameters() { + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + + return this; + } + public Builder removeTypeParameters(int index) { + ensureTypeParametersIsMutable(); + typeParameters_.remove(index); + + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Type supertypes = 6; + private java.util.List supertypes_ = + java.util.Collections.emptyList(); + private void ensureSupertypesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + supertypes_ = new java.util.ArrayList(supertypes_); + bitField0_ |= 0x00000020; + } + } + + public java.util.List getSupertypesList() { + return java.util.Collections.unmodifiableList(supertypes_); + } + public int getSupertypesCount() { + return supertypes_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getSupertypes(int index) { + return supertypes_.get(index); + } + public Builder setSupertypes( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupertypesIsMutable(); + supertypes_.set(index, value); + + return this; + } + public Builder setSupertypes( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + ensureSupertypesIsMutable(); + supertypes_.set(index, builderForValue.build()); + + return this; + } + public Builder addSupertypes(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupertypesIsMutable(); + supertypes_.add(value); + + return this; + } + public Builder addSupertypes( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupertypesIsMutable(); + supertypes_.add(index, value); + + return this; + } + public Builder addSupertypes( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + ensureSupertypesIsMutable(); + supertypes_.add(builderForValue.build()); + + return this; + } + public Builder addSupertypes( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + ensureSupertypesIsMutable(); + supertypes_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllSupertypes( + java.lang.Iterable values) { + ensureSupertypesIsMutable(); + super.addAll(values, supertypes_); + + return this; + } + public Builder clearSupertypes() { + supertypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + + return this; + } + public Builder removeSupertypes(int index) { + ensureSupertypesIsMutable(); + supertypes_.remove(index); + + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Class.NestedClass nestedClasses = 7; + private java.util.List nestedClasses_ = + java.util.Collections.emptyList(); + private void ensureNestedClassesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + nestedClasses_ = new java.util.ArrayList(nestedClasses_); + bitField0_ |= 0x00000040; + } + } + + public java.util.List getNestedClassesList() { + return java.util.Collections.unmodifiableList(nestedClasses_); + } + public int getNestedClassesCount() { + return nestedClasses_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getNestedClasses(int index) { + return nestedClasses_.get(index); + } + public Builder setNestedClasses( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedClassesIsMutable(); + nestedClasses_.set(index, value); + + return this; + } + public Builder setNestedClasses( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.Builder builderForValue) { + ensureNestedClassesIsMutable(); + nestedClasses_.set(index, builderForValue.build()); + + return this; + } + public Builder addNestedClasses(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedClassesIsMutable(); + nestedClasses_.add(value); + + return this; + } + public Builder addNestedClasses( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNestedClassesIsMutable(); + nestedClasses_.add(index, value); + + return this; + } + public Builder addNestedClasses( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.Builder builderForValue) { + ensureNestedClassesIsMutable(); + nestedClasses_.add(builderForValue.build()); + + return this; + } + public Builder addNestedClasses( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.Builder builderForValue) { + ensureNestedClassesIsMutable(); + nestedClasses_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllNestedClasses( + java.lang.Iterable values) { + ensureNestedClassesIsMutable(); + super.addAll(values, nestedClasses_); + + return this; + } + public Builder clearNestedClasses() { + nestedClasses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + + return this; + } + public Builder removeNestedClasses(int index) { + ensureNestedClassesIsMutable(); + nestedClasses_.remove(index); + + return this; + } + + // optional .org.jetbrains.jet.descriptors.serialization.Callable primaryConstructor = 8; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); + public boolean hasPrimaryConstructor() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getPrimaryConstructor() { + return primaryConstructor_; + } + public Builder setPrimaryConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { + if (value == null) { + throw new NullPointerException(); + } + primaryConstructor_ = value; + + bitField0_ |= 0x00000080; + return this; + } + public Builder setPrimaryConstructor( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { + primaryConstructor_ = builderForValue.build(); + + bitField0_ |= 0x00000080; + return this; + } + public Builder mergePrimaryConstructor(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + primaryConstructor_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance()) { + primaryConstructor_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.newBuilder(primaryConstructor_).mergeFrom(value).buildPartial(); + } else { + primaryConstructor_ = value; + } + + bitField0_ |= 0x00000080; + return this; + } + public Builder clearPrimaryConstructor() { + primaryConstructor_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Callable members = 9; + private java.util.List members_ = + java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000100; + } + } + + public java.util.List getMembersList() { + return java.util.Collections.unmodifiableList(members_); + } + public int getMembersCount() { + return members_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getMembers(int index) { + return members_.get(index); + } + public Builder setMembers( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + + return this; + } + public Builder setMembers( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + + return this; + } + public Builder addMembers(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + + return this; + } + public Builder addMembers( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + + return this; + } + public Builder addMembers( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + + return this; + } + public Builder addMembers( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.Builder builderForValue) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllMembers( + java.lang.Iterable values) { + ensureMembersIsMutable(); + super.addAll(values, members_); + + return this; + } + public Builder clearMembers() { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + + return this; + } + public Builder removeMembers(int index) { + ensureMembersIsMutable(); + members_.remove(index); + + return this; + } + + // optional .org.jetbrains.jet.descriptors.serialization.Class.NestedClass classObject = 10; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance(); + public boolean hasClassObject() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass getClassObject() { + return classObject_; + } + public Builder setClassObject(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass value) { + if (value == null) { + throw new NullPointerException(); + } + classObject_ = value; + + bitField0_ |= 0x00000200; + return this; + } + public Builder setClassObject( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.Builder builderForValue) { + classObject_ = builderForValue.build(); + + bitField0_ |= 0x00000200; + return this; + } + public Builder mergeClassObject(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass value) { + if (((bitField0_ & 0x00000200) == 0x00000200) && + classObject_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance()) { + classObject_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.newBuilder(classObject_).mergeFrom(value).buildPartial(); + } else { + classObject_ = value; + } + + bitField0_ |= 0x00000200; + return this; + } + public Builder clearClassObject() { + classObject_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Class.NestedClass.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Class) + } + + static { + defaultInstance = new Class(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Class) + } + + public interface CallableOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional int32 flags = 1; + boolean hasFlags(); + int getFlags(); + + // optional string extra_visibility = 2; + boolean hasExtraVisibility(); + String getExtraVisibility(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Annotation annotations = 3; + java.util.List + getAnnotationsList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getAnnotations(int index); + int getAnnotationsCount(); + + // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter typeParameters = 4; + java.util.List + getTypeParametersList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameters(int index); + int getTypeParametersCount(); + + // optional .org.jetbrains.jet.descriptors.serialization.Type receiverType = 5; + boolean hasReceiverType(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReceiverType(); + + // required int32 name = 6; + boolean hasName(); + int getName(); + + // repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter valueParameters = 7; + java.util.List + getValueParametersList(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getValueParameters(int index); + int getValueParametersCount(); + + // required .org.jetbrains.jet.descriptors.serialization.Type returnType = 8; + boolean hasReturnType(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReturnType(); + } + public static final class Callable extends + com.google.protobuf.GeneratedMessageLite + implements CallableOrBuilder { + // Use Callable.newBuilder() to construct. + private Callable(Builder builder) { + super(builder); + } + private Callable(boolean noInit) {} + + private static final Callable defaultInstance; + public static Callable getDefaultInstance() { + return defaultInstance; + } + + public Callable getDefaultInstanceForType() { + return defaultInstance; + } + + public enum Kind + implements com.google.protobuf.Internal.EnumLite { + DECLARATION(0, 0), + FAKE_OVERRIDE(1, 1), + DELEGATION(2, 2), + SYNTHESIZED(3, 3), + ; + + public static final int DECLARATION_VALUE = 0; + public static final int FAKE_OVERRIDE_VALUE = 1; + public static final int DELEGATION_VALUE = 2; + public static final int SYNTHESIZED_VALUE = 3; + + + public final int getNumber() { return value; } + + public static Kind valueOf(int value) { + switch (value) { + case 0: return DECLARATION; + case 1: return FAKE_OVERRIDE; + case 2: return DELEGATION; + case 3: return SYNTHESIZED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.valueOf(number); + } + }; + + private final int value; + + private Kind(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.jet.descriptors.serialization.Callable.Kind) + } + + public interface ValueParameterOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional int32 flags = 1; + boolean hasFlags(); + int getFlags(); + + // required int32 name = 2; + boolean hasName(); + int getName(); + + // required .org.jetbrains.jet.descriptors.serialization.Type type = 3; + boolean hasType(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType(); + + // optional .org.jetbrains.jet.descriptors.serialization.Type varargElementType = 4; + boolean hasVarargElementType(); + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getVarargElementType(); + } + public static final class ValueParameter extends + com.google.protobuf.GeneratedMessageLite + implements ValueParameterOrBuilder { + // Use ValueParameter.newBuilder() to construct. + private ValueParameter(Builder builder) { + super(builder); + } + private ValueParameter(boolean noInit) {} + + private static final ValueParameter defaultInstance; + public static ValueParameter getDefaultInstance() { + return defaultInstance; + } + + public ValueParameter getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getFlags() { + return flags_; + } + + // required int32 name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getName() { + return name_; + } + + // required .org.jetbrains.jet.descriptors.serialization.Type type = 3; + public static final int TYPE_FIELD_NUMBER = 3; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_; + public boolean hasType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { + return type_; + } + + // optional .org.jetbrains.jet.descriptors.serialization.Type varargElementType = 4; + public static final int VARARGELEMENTTYPE_FIELD_NUMBER = 4; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type varargElementType_; + public boolean hasVarargElementType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getVarargElementType() { + return varargElementType_; + } + + private void initFields() { + flags_ = 0; + name_ = 0; + type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + if (!getType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (hasVarargElementType()) { + if (!getVarargElementType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, type_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, varargElementType_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, type_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, varargElementType_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameterOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000004); + varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.flags_ = flags_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.varargElementType_ = varargElementType_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (other.hasType()) { + mergeType(other.getType()); + } + if (other.hasVarargElementType()) { + mergeVarargElementType(other.getVarargElementType()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasType()) { + + return false; + } + if (!getType().isInitialized()) { + + return false; + } + if (hasVarargElementType()) { + if (!getVarargElementType().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + name_ = input.readInt32(); + break; + } + case 26: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + if (hasType()) { + subBuilder.mergeFrom(getType()); + } + input.readMessage(subBuilder, extensionRegistry); + setType(subBuilder.buildPartial()); + break; + } + case 34: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + if (hasVarargElementType()) { + subBuilder.mergeFrom(getVarargElementType()); + } + input.readMessage(subBuilder, extensionRegistry); + setVarargElementType(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getFlags() { + return flags_; + } + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + + return this; + } + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + + return this; + } + + // required int32 name = 2; + private int name_ ; + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getName() { + return name_; + } + public Builder setName(int value) { + bitField0_ |= 0x00000002; + name_ = value; + + return this; + } + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = 0; + + return this; + } + + // required .org.jetbrains.jet.descriptors.serialization.Type type = 3; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + public boolean hasType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getType() { + return type_; + } + public Builder setType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + + bitField0_ |= 0x00000004; + return this; + } + public Builder setType( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + type_ = builderForValue.build(); + + bitField0_ |= 0x00000004; + return this; + } + public Builder mergeType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + type_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { + type_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + + bitField0_ |= 0x00000004; + return this; + } + public Builder clearType() { + type_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + // optional .org.jetbrains.jet.descriptors.serialization.Type varargElementType = 4; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + public boolean hasVarargElementType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getVarargElementType() { + return varargElementType_; + } + public Builder setVarargElementType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + varargElementType_ = value; + + bitField0_ |= 0x00000008; + return this; + } + public Builder setVarargElementType( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + varargElementType_ = builderForValue.build(); + + bitField0_ |= 0x00000008; + return this; + } + public Builder mergeVarargElementType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + varargElementType_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { + varargElementType_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(varargElementType_).mergeFrom(value).buildPartial(); + } else { + varargElementType_ = value; + } + + bitField0_ |= 0x00000008; + return this; + } + public Builder clearVarargElementType() { + varargElementType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter) + } + + static { + defaultInstance = new ValueParameter(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter) + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getFlags() { + return flags_; + } + + // optional string extra_visibility = 2; + public static final int EXTRA_VISIBILITY_FIELD_NUMBER = 2; + private java.lang.Object extraVisibility_; + public boolean hasExtraVisibility() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getExtraVisibility() { + java.lang.Object ref = extraVisibility_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + extraVisibility_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getExtraVisibilityBytes() { + java.lang.Object ref = extraVisibility_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + extraVisibility_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Annotation annotations = 3; + public static final int ANNOTATIONS_FIELD_NUMBER = 3; + private java.util.List annotations_; + public java.util.List getAnnotationsList() { + return annotations_; + } + public java.util.List + getAnnotationsOrBuilderList() { + return annotations_; + } + public int getAnnotationsCount() { + return annotations_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.AnnotationOrBuilder getAnnotationsOrBuilder( + int index) { + return annotations_.get(index); + } + + // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter typeParameters = 4; + public static final int TYPEPARAMETERS_FIELD_NUMBER = 4; + private java.util.List typeParameters_; + public java.util.List getTypeParametersList() { + return typeParameters_; + } + public java.util.List + getTypeParametersOrBuilderList() { + return typeParameters_; + } + public int getTypeParametersCount() { + return typeParameters_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameters(int index) { + return typeParameters_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameterOrBuilder getTypeParametersOrBuilder( + int index) { + return typeParameters_.get(index); + } + + // optional .org.jetbrains.jet.descriptors.serialization.Type receiverType = 5; + public static final int RECEIVERTYPE_FIELD_NUMBER = 5; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type receiverType_; + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReceiverType() { + return receiverType_; + } + + // required int32 name = 6; + public static final int NAME_FIELD_NUMBER = 6; + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getName() { + return name_; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter valueParameters = 7; + public static final int VALUEPARAMETERS_FIELD_NUMBER = 7; + private java.util.List valueParameters_; + public java.util.List getValueParametersList() { + return valueParameters_; + } + public java.util.List + getValueParametersOrBuilderList() { + return valueParameters_; + } + public int getValueParametersCount() { + return valueParameters_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getValueParameters(int index) { + return valueParameters_.get(index); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameterOrBuilder getValueParametersOrBuilder( + int index) { + return valueParameters_.get(index); + } + + // required .org.jetbrains.jet.descriptors.serialization.Type returnType = 8; + public static final int RETURNTYPE_FIELD_NUMBER = 8; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type returnType_; + public boolean hasReturnType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReturnType() { + return returnType_; + } + + private void initFields() { + flags_ = 0; + extraVisibility_ = ""; + annotations_ = java.util.Collections.emptyList(); + typeParameters_ = java.util.Collections.emptyList(); + receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + name_ = 0; + valueParameters_ = java.util.Collections.emptyList(); + returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReturnType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTypeParametersCount(); i++) { + if (!getTypeParameters(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getValueParametersCount(); i++) { + if (!getValueParameters(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!getReturnType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getExtraVisibilityBytes()); + } + for (int i = 0; i < annotations_.size(); i++) { + output.writeMessage(3, annotations_.get(i)); + } + for (int i = 0; i < typeParameters_.size(); i++) { + output.writeMessage(4, typeParameters_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(5, receiverType_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(6, name_); + } + for (int i = 0; i < valueParameters_.size(); i++) { + output.writeMessage(7, valueParameters_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(8, returnType_); + } + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getExtraVisibilityBytes()); + } + for (int i = 0; i < annotations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, annotations_.get(i)); + } + for (int i = 0; i < typeParameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, typeParameters_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, receiverType_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, name_); + } + for (int i = 0; i < valueParameters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, valueParameters_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, returnType_); + } + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.CallableOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + extraVisibility_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000010); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + valueParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.flags_ = flags_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.extraVisibility_ = extraVisibility_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + annotations_ = java.util.Collections.unmodifiableList(annotations_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.annotations_ = annotations_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.typeParameters_ = typeParameters_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; + } + result.receiverType_ = receiverType_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.name_ = name_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + valueParameters_ = java.util.Collections.unmodifiableList(valueParameters_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.valueParameters_ = valueParameters_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000010; + } + result.returnType_ = returnType_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasExtraVisibility()) { + setExtraVisibility(other.getExtraVisibility()); + } + if (!other.annotations_.isEmpty()) { + if (annotations_.isEmpty()) { + annotations_ = other.annotations_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAnnotationsIsMutable(); + annotations_.addAll(other.annotations_); + } + + } + if (!other.typeParameters_.isEmpty()) { + if (typeParameters_.isEmpty()) { + typeParameters_ = other.typeParameters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTypeParametersIsMutable(); + typeParameters_.addAll(other.typeParameters_); + } + + } + if (other.hasReceiverType()) { + mergeReceiverType(other.getReceiverType()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (!other.valueParameters_.isEmpty()) { + if (valueParameters_.isEmpty()) { + valueParameters_ = other.valueParameters_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureValueParametersIsMutable(); + valueParameters_.addAll(other.valueParameters_); + } + + } + if (other.hasReturnType()) { + mergeReturnType(other.getReturnType()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasReturnType()) { + + return false; + } + for (int i = 0; i < getTypeParametersCount(); i++) { + if (!getTypeParameters(i).isInitialized()) { + + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getValueParametersCount(); i++) { + if (!getValueParameters(i).isInitialized()) { + + return false; + } + } + if (!getReturnType().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + extraVisibility_ = input.readBytes(); + break; + } + case 26: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addAnnotations(subBuilder.buildPartial()); + break; + } + case 34: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addTypeParameters(subBuilder.buildPartial()); + break; + } + case 42: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + if (hasReceiverType()) { + subBuilder.mergeFrom(getReceiverType()); + } + input.readMessage(subBuilder, extensionRegistry); + setReceiverType(subBuilder.buildPartial()); + break; + } + case 48: { + bitField0_ |= 0x00000020; + name_ = input.readInt32(); + break; + } + case 58: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addValueParameters(subBuilder.buildPartial()); + break; + } + case 66: { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder subBuilder = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(); + if (hasReturnType()) { + subBuilder.mergeFrom(getReturnType()); + } + input.readMessage(subBuilder, extensionRegistry); + setReturnType(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getFlags() { + return flags_; + } + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + + return this; + } + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + + return this; + } + + // optional string extra_visibility = 2; + private java.lang.Object extraVisibility_ = ""; + public boolean hasExtraVisibility() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getExtraVisibility() { + java.lang.Object ref = extraVisibility_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + extraVisibility_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setExtraVisibility(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + extraVisibility_ = value; + + return this; + } + public Builder clearExtraVisibility() { + bitField0_ = (bitField0_ & ~0x00000002); + extraVisibility_ = getDefaultInstance().getExtraVisibility(); + + return this; + } + void setExtraVisibility(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + extraVisibility_ = value; + + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Annotation annotations = 3; + private java.util.List annotations_ = + java.util.Collections.emptyList(); + private void ensureAnnotationsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + annotations_ = new java.util.ArrayList(annotations_); + bitField0_ |= 0x00000004; + } + } + + public java.util.List getAnnotationsList() { + return java.util.Collections.unmodifiableList(annotations_); + } + public int getAnnotationsCount() { + return annotations_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getAnnotations(int index) { + return annotations_.get(index); + } + public Builder setAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.set(index, value); + + return this; + } + public Builder setAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder builderForValue) { + ensureAnnotationsIsMutable(); + annotations_.set(index, builderForValue.build()); + + return this; + } + public Builder addAnnotations(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(value); + + return this; + } + public Builder addAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationsIsMutable(); + annotations_.add(index, value); + + return this; + } + public Builder addAnnotations( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder builderForValue) { + ensureAnnotationsIsMutable(); + annotations_.add(builderForValue.build()); + + return this; + } + public Builder addAnnotations( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.Builder builderForValue) { + ensureAnnotationsIsMutable(); + annotations_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllAnnotations( + java.lang.Iterable values) { + ensureAnnotationsIsMutable(); + super.addAll(values, annotations_); + + return this; + } + public Builder clearAnnotations() { + annotations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + + return this; + } + public Builder removeAnnotations(int index) { + ensureAnnotationsIsMutable(); + annotations_.remove(index); + + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.TypeParameter typeParameters = 4; + private java.util.List typeParameters_ = + java.util.Collections.emptyList(); + private void ensureTypeParametersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameters_ = new java.util.ArrayList(typeParameters_); + bitField0_ |= 0x00000008; + } + } + + public java.util.List getTypeParametersList() { + return java.util.Collections.unmodifiableList(typeParameters_); + } + public int getTypeParametersCount() { + return typeParameters_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter getTypeParameters(int index) { + return typeParameters_.get(index); + } + public Builder setTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParametersIsMutable(); + typeParameters_.set(index, value); + + return this; + } + public Builder setTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParametersIsMutable(); + typeParameters_.set(index, builderForValue.build()); + + return this; + } + public Builder addTypeParameters(org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParametersIsMutable(); + typeParameters_.add(value); + + return this; + } + public Builder addTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParametersIsMutable(); + typeParameters_.add(index, value); + + return this; + } + public Builder addTypeParameters( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParametersIsMutable(); + typeParameters_.add(builderForValue.build()); + + return this; + } + public Builder addTypeParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParametersIsMutable(); + typeParameters_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllTypeParameters( + java.lang.Iterable values) { + ensureTypeParametersIsMutable(); + super.addAll(values, typeParameters_); + + return this; + } + public Builder clearTypeParameters() { + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + public Builder removeTypeParameters(int index) { + ensureTypeParametersIsMutable(); + typeParameters_.remove(index); + + return this; + } + + // optional .org.jetbrains.jet.descriptors.serialization.Type receiverType = 5; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReceiverType() { + return receiverType_; + } + public Builder setReceiverType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + receiverType_ = value; + + bitField0_ |= 0x00000010; + return this; + } + public Builder setReceiverType( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + receiverType_ = builderForValue.build(); + + bitField0_ |= 0x00000010; + return this; + } + public Builder mergeReceiverType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + receiverType_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { + receiverType_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(receiverType_).mergeFrom(value).buildPartial(); + } else { + receiverType_ = value; + } + + bitField0_ |= 0x00000010; + return this; + } + public Builder clearReceiverType() { + receiverType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + // required int32 name = 6; + private int name_ ; + public boolean hasName() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getName() { + return name_; + } + public Builder setName(int value) { + bitField0_ |= 0x00000020; + name_ = value; + + return this; + } + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000020); + name_ = 0; + + return this; + } + + // repeated .org.jetbrains.jet.descriptors.serialization.Callable.ValueParameter valueParameters = 7; + private java.util.List valueParameters_ = + java.util.Collections.emptyList(); + private void ensureValueParametersIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + valueParameters_ = new java.util.ArrayList(valueParameters_); + bitField0_ |= 0x00000040; + } + } + + public java.util.List getValueParametersList() { + return java.util.Collections.unmodifiableList(valueParameters_); + } + public int getValueParametersCount() { + return valueParameters_.size(); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter getValueParameters(int index) { + return valueParameters_.get(index); + } + public Builder setValueParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParametersIsMutable(); + valueParameters_.set(index, value); + + return this; + } + public Builder setValueParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder builderForValue) { + ensureValueParametersIsMutable(); + valueParameters_.set(index, builderForValue.build()); + + return this; + } + public Builder addValueParameters(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParametersIsMutable(); + valueParameters_.add(value); + + return this; + } + public Builder addValueParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParametersIsMutable(); + valueParameters_.add(index, value); + + return this; + } + public Builder addValueParameters( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder builderForValue) { + ensureValueParametersIsMutable(); + valueParameters_.add(builderForValue.build()); + + return this; + } + public Builder addValueParameters( + int index, org.jetbrains.jet.descriptors.serialization.ProtoBuf.Callable.ValueParameter.Builder builderForValue) { + ensureValueParametersIsMutable(); + valueParameters_.add(index, builderForValue.build()); + + return this; + } + public Builder addAllValueParameters( + java.lang.Iterable values) { + ensureValueParametersIsMutable(); + super.addAll(values, valueParameters_); + + return this; + } + public Builder clearValueParameters() { + valueParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + + return this; + } + public Builder removeValueParameters(int index) { + ensureValueParametersIsMutable(); + valueParameters_.remove(index); + + return this; + } + + // required .org.jetbrains.jet.descriptors.serialization.Type returnType = 8; + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + public boolean hasReturnType() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type getReturnType() { + return returnType_; + } + public Builder setReturnType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + returnType_ = value; + + bitField0_ |= 0x00000080; + return this; + } + public Builder setReturnType( + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.Builder builderForValue) { + returnType_ = builderForValue.build(); + + bitField0_ |= 0x00000080; + return this; + } + public Builder mergeReturnType(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + returnType_ != org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance()) { + returnType_ = + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); + } else { + returnType_ = value; + } + + bitField0_ |= 0x00000080; + return this; + } + public Builder clearReturnType() { + returnType_ = org.jetbrains.jet.descriptors.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Callable) + } + + static { + defaultInstance = new Callable(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Callable) + } + + public interface AnnotationOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + } + public static final class Annotation extends + com.google.protobuf.GeneratedMessageLite + implements AnnotationOrBuilder { + // Use Annotation.newBuilder() to construct. + private Annotation(Builder builder) { + super(builder); + } + private Annotation(boolean noInit) {} + + private static final Annotation defaultInstance; + public static Annotation getDefaultInstance() { + return defaultInstance; + } + + public Annotation getDefaultInstanceForType() { + return defaultInstance; + } + + private void initFields() { + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation, Builder> + implements org.jetbrains.jet.descriptors.serialization.ProtoBuf.AnnotationOrBuilder { + // Construct using org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation getDefaultInstanceForType() { + return org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.getDefaultInstance(); + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation build() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation buildPartial() { + org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation result = new org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation(this); + return result; + } + + public Builder mergeFrom(org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation other) { + if (other == org.jetbrains.jet.descriptors.serialization.ProtoBuf.Annotation.getDefaultInstance()) return this; + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + } + } + } + + + // @@protoc_insertion_point(builder_scope:org.jetbrains.jet.descriptors.serialization.Annotation) + } + + static { + defaultInstance = new Annotation(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.jet.descriptors.serialization.Annotation) + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +}