From ad735cd7885d978288e2800b47fa7fdc3bca5f71 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 30 Sep 2015 16:41:12 +0300 Subject: [PATCH] Split ProtoBuf.Callable to three messages: constructor, function, property Serialize both at the moment, will drop the old one after bootstrap --- .../serialization/DescriptorSerializer.java | 148 + .../serialization/SerializerExtension.java | 14 +- .../kotlin/serialization/DebugProtoBuf.java | 6889 ++++++++++++++++- core/deserialization/src/descriptors.proto | 82 + .../jetbrains/kotlin/serialization/Flags.java | 98 +- .../kotlin/serialization/ProtoBuf.java | 4662 ++++++++++- .../deserialization/MemberDeserializer.kt | 14 +- .../decompiler/stubBuilder/clsStubBuilding.kt | 8 +- .../jps/incremental/ProtoCompareGenerated.kt | 298 +- .../jps/incremental/protoDifferenceUtils.kt | 133 +- 10 files changed, 12155 insertions(+), 191 deletions(-) diff --git a/compiler/serialization/src/org/jetbrains/kotlin/serialization/DescriptorSerializer.java b/compiler/serialization/src/org/jetbrains/kotlin/serialization/DescriptorSerializer.java index 04737697ae5..c3b07648746 100644 --- a/compiler/serialization/src/org/jetbrains/kotlin/serialization/DescriptorSerializer.java +++ b/compiler/serialization/src/org/jetbrains/kotlin/serialization/DescriptorSerializer.java @@ -129,6 +129,10 @@ public class DescriptorSerializer { } } + for (ConstructorDescriptor descriptor : classDescriptor.getConstructors()) { + builder.addConstructor(constructorProto(descriptor)); + } + for (ConstructorDescriptor constructorDescriptor : getSecondaryConstructors(classDescriptor)) { builder.addSecondaryConstructor(callableProto(constructorDescriptor)); } @@ -138,6 +142,13 @@ public class DescriptorSerializer { CallableMemberDescriptor member = (CallableMemberDescriptor) descriptor; if (member.getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE) continue; builder.addMember(callableProto(member)); + + if (descriptor instanceof PropertyDescriptor) { + builder.addProperty(propertyProto((PropertyDescriptor) descriptor)); + } + else if (descriptor instanceof FunctionDescriptor) { + builder.addFunction(functionProto((FunctionDescriptor) descriptor)); + } } } @@ -161,6 +172,143 @@ public class DescriptorSerializer { return builder; } + @NotNull + public ProtoBuf.Property.Builder propertyProto(@NotNull PropertyDescriptor descriptor) { + ProtoBuf.Property.Builder builder = ProtoBuf.Property.newBuilder(); + + DescriptorSerializer local = createChildSerializer(); + + boolean hasGetter = false; + boolean hasSetter = false; + boolean lateInit = descriptor.isLateInit(); + boolean isConst = descriptor.isConst(); + + ConstantValue compileTimeConstant = descriptor.getCompileTimeInitializer(); + boolean hasConstant = !(compileTimeConstant == null || compileTimeConstant instanceof NullValue); + + boolean hasAnnotations = !descriptor.getAnnotations().getAllAnnotations().isEmpty(); + + int propertyFlags = Flags.getAccessorFlags( + hasAnnotations, + descriptor.getVisibility(), + descriptor.getModality(), + false + ); + + PropertyGetterDescriptor getter = descriptor.getGetter(); + if (getter != null) { + hasGetter = true; + int accessorFlags = getAccessorFlags(getter); + if (accessorFlags != propertyFlags) { + builder.setGetterFlags(accessorFlags); + } + } + + PropertySetterDescriptor setter = descriptor.getSetter(); + if (setter != null) { + hasSetter = true; + int accessorFlags = getAccessorFlags(setter); + if (accessorFlags != propertyFlags) { + builder.setSetterFlags(accessorFlags); + } + + if (!setter.isDefault()) { + for (ValueParameterDescriptor valueParameterDescriptor : setter.getValueParameters()) { + builder.setSetterValueParameter(local.valueParameter(valueParameterDescriptor)); + } + } + } + + builder.setFlags(Flags.getPropertyFlags( + hasAnnotations, + descriptor.getVisibility(), + descriptor.getModality(), + descriptor.getKind(), + descriptor.isVar(), + hasGetter, + hasSetter, + hasConstant, + isConst, + lateInit + )); + + builder.setName(getSimpleNameIndex(descriptor.getName())); + + builder.setReturnType(local.type(descriptor.getType())); + + for (TypeParameterDescriptor typeParameterDescriptor : descriptor.getTypeParameters()) { + builder.addTypeParameter(local.typeParameter(typeParameterDescriptor)); + } + + ReceiverParameterDescriptor receiverParameter = descriptor.getExtensionReceiverParameter(); + if (receiverParameter != null) { + builder.setReceiverType(local.type(receiverParameter.getType())); + } + + extension.serializeProperty(descriptor, builder); + + return builder; + } + + @NotNull + public ProtoBuf.Function.Builder functionProto(@NotNull FunctionDescriptor descriptor) { + ProtoBuf.Function.Builder builder = ProtoBuf.Function.newBuilder(); + + DescriptorSerializer local = createChildSerializer(); + + builder.setFlags(Flags.getFunctionFlags( + hasAnnotations(descriptor), + descriptor.getVisibility(), + descriptor.getModality(), + descriptor.getKind(), + descriptor.isOperator(), + descriptor.isInfix() + )); + + builder.setName(getSimpleNameIndex(descriptor.getName())); + + //noinspection ConstantConditions + builder.setReturnType(local.type(descriptor.getReturnType())); + + for (TypeParameterDescriptor typeParameterDescriptor : descriptor.getTypeParameters()) { + builder.addTypeParameter(local.typeParameter(typeParameterDescriptor)); + } + + ReceiverParameterDescriptor receiverParameter = descriptor.getExtensionReceiverParameter(); + if (receiverParameter != null) { + builder.setReceiverType(local.type(receiverParameter.getType())); + } + + for (ValueParameterDescriptor valueParameterDescriptor : descriptor.getValueParameters()) { + builder.addValueParameter(local.valueParameter(valueParameterDescriptor)); + } + + extension.serializeFunction(descriptor, builder); + + return builder; + } + + @NotNull + public ProtoBuf.Constructor.Builder constructorProto(@NotNull ConstructorDescriptor descriptor) { + ProtoBuf.Constructor.Builder builder = ProtoBuf.Constructor.newBuilder(); + + DescriptorSerializer local = createChildSerializer(); + + builder.setFlags(Flags.getConstructorFlags( + hasAnnotations(descriptor), + descriptor.getVisibility(), + !descriptor.isPrimary() + )); + + for (ValueParameterDescriptor valueParameterDescriptor : descriptor.getValueParameters()) { + builder.addValueParameter(local.valueParameter(valueParameterDescriptor)); + } + + extension.serializeConstructor(descriptor, builder); + + return builder; + } + @NotNull public ProtoBuf.Callable.Builder callableProto(@NotNull CallableMemberDescriptor descriptor) { ProtoBuf.Callable.Builder builder = ProtoBuf.Callable.newBuilder(); diff --git a/compiler/serialization/src/org/jetbrains/kotlin/serialization/SerializerExtension.java b/compiler/serialization/src/org/jetbrains/kotlin/serialization/SerializerExtension.java index bd39ef66a9b..239cebcf914 100644 --- a/compiler/serialization/src/org/jetbrains/kotlin/serialization/SerializerExtension.java +++ b/compiler/serialization/src/org/jetbrains/kotlin/serialization/SerializerExtension.java @@ -17,10 +17,7 @@ package org.jetbrains.kotlin.serialization; import org.jetbrains.annotations.NotNull; -import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor; -import org.jetbrains.kotlin.descriptors.ClassDescriptor; -import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor; -import org.jetbrains.kotlin.descriptors.ValueParameterDescriptor; +import org.jetbrains.kotlin.descriptors.*; import org.jetbrains.kotlin.types.JetType; import java.util.Collection; @@ -35,6 +32,15 @@ public abstract class SerializerExtension { public void serializePackage(@NotNull Collection packageFragments, @NotNull ProtoBuf.Package.Builder proto) { } + public void serializeConstructor(@NotNull ConstructorDescriptor descriptor, @NotNull ProtoBuf.Constructor.Builder proto) { + } + + public void serializeFunction(@NotNull FunctionDescriptor descriptor, @NotNull ProtoBuf.Function.Builder proto) { + } + + public void serializeProperty(@NotNull PropertyDescriptor descriptor, @NotNull ProtoBuf.Property.Builder proto) { + } + public void serializeCallable(@NotNull CallableMemberDescriptor callable, @NotNull ProtoBuf.Callable.Builder proto) { } diff --git a/compiler/tests/org/jetbrains/kotlin/serialization/DebugProtoBuf.java b/compiler/tests/org/jetbrains/kotlin/serialization/DebugProtoBuf.java index de77c853f48..7ed0294b96f 100644 --- a/compiler/tests/org/jetbrains/kotlin/serialization/DebugProtoBuf.java +++ b/compiler/tests/org/jetbrains/kotlin/serialization/DebugProtoBuf.java @@ -8777,6 +8777,81 @@ public final class DebugProtoBuf { */ int getNestedClassName(int index); + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + java.util.List + getConstructorList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getConstructor(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + int getConstructorCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + java.util.List + getConstructorOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index); + + // repeated .org.jetbrains.kotlin.serialization.Function function = 9; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + java.util.List + getFunctionList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getFunction(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + int getFunctionCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + java.util.List + getFunctionOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index); + + // repeated .org.jetbrains.kotlin.serialization.Property property = 10; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + java.util.List + getPropertyList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getProperty(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + int getPropertyCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + java.util.List + getPropertyOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index); + // repeated .org.jetbrains.kotlin.serialization.Callable member = 11; /** * repeated .org.jetbrains.kotlin.serialization.Callable member = 11; @@ -8970,18 +9045,42 @@ public final class DebugProtoBuf { input.popLimit(limit); break; } - case 90: { + case 66: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - member_ = new java.util.ArrayList(); + constructor_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } + constructor_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.PARSER, extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + function_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + function_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.PARSER, extensionRegistry)); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + property_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + property_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.PARSER, extensionRegistry)); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + member_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } member_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable.PARSER, extensionRegistry)); break; } case 96: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { enumEntry_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000400; } enumEntry_.add(input.readInt32()); break; @@ -8989,9 +9088,9 @@ public final class DebugProtoBuf { case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { enumEntry_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000400; } while (input.getBytesUntilLimit() > 0) { enumEntry_.add(input.readInt32()); @@ -9013,9 +9112,9 @@ public final class DebugProtoBuf { break; } case 114: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00001000; } secondaryConstructor_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable.PARSER, extensionRegistry)); break; @@ -9038,12 +9137,21 @@ public final class DebugProtoBuf { nestedClassName_ = java.util.Collections.unmodifiableList(nestedClassName_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - member_ = java.util.Collections.unmodifiableList(member_); + constructor_ = java.util.Collections.unmodifiableList(constructor_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); + function_ = java.util.Collections.unmodifiableList(function_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + property_ = java.util.Collections.unmodifiableList(property_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + member_ = java.util.Collections.unmodifiableList(member_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = java.util.Collections.unmodifiableList(secondaryConstructor_); } this.unknownFields = unknownFields.build(); @@ -9984,6 +10092,114 @@ public final class DebugProtoBuf { } private int nestedClassNameMemoizedSerializedSize = -1; + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + public static final int CONSTRUCTOR_FIELD_NUMBER = 8; + private java.util.List constructor_; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List getConstructorList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List + getConstructorOrBuilderList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public int getConstructorCount() { + return constructor_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getConstructor(int index) { + return constructor_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index) { + return constructor_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 9; + public static final int FUNCTION_FIELD_NUMBER = 9; + private java.util.List function_; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List getFunctionList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List + getFunctionOrBuilderList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getFunction(int index) { + return function_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index) { + return function_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 10; + public static final int PROPERTY_FIELD_NUMBER = 10; + private java.util.List property_; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List getPropertyList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List + getPropertyOrBuilderList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public int getPropertyCount() { + return property_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getProperty(int index) { + return property_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index) { + return property_.get(index); + } + // repeated .org.jetbrains.kotlin.serialization.Callable member = 11; public static final int MEMBER_FIELD_NUMBER = 11; private java.util.List member_; @@ -10121,6 +10337,9 @@ public final class DebugProtoBuf { typeParameter_ = java.util.Collections.emptyList(); supertype_ = java.util.Collections.emptyList(); nestedClassName_ = java.util.Collections.emptyList(); + constructor_ = java.util.Collections.emptyList(); + function_ = java.util.Collections.emptyList(); + property_ = java.util.Collections.emptyList(); member_ = java.util.Collections.emptyList(); enumEntry_ = java.util.Collections.emptyList(); primaryConstructor_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); @@ -10147,6 +10366,24 @@ public final class DebugProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } for (int i = 0; i < getMemberCount(); i++) { if (!getMember(i).isInitialized()) { memoizedIsInitialized = 0; @@ -10201,6 +10438,15 @@ public final class DebugProtoBuf { for (int i = 0; i < nestedClassName_.size(); i++) { output.writeInt32NoTag(nestedClassName_.get(i)); } + for (int i = 0; i < constructor_.size(); i++) { + output.writeMessage(8, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + output.writeMessage(9, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + output.writeMessage(10, property_.get(i)); + } for (int i = 0; i < member_.size(); i++) { output.writeMessage(11, member_.get(i)); } @@ -10261,6 +10507,18 @@ public final class DebugProtoBuf { } nestedClassNameMemoizedSerializedSize = dataSize; } + for (int i = 0; i < constructor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, property_.get(i)); + } for (int i = 0; i < member_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, member_.get(i)); @@ -10398,6 +10656,9 @@ public final class DebugProtoBuf { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTypeParameterFieldBuilder(); getSupertypeFieldBuilder(); + getConstructorFieldBuilder(); + getFunctionFieldBuilder(); + getPropertyFieldBuilder(); getMemberFieldBuilder(); getPrimaryConstructorFieldBuilder(); getSecondaryConstructorFieldBuilder(); @@ -10429,23 +10690,41 @@ public final class DebugProtoBuf { } nestedClassName_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); + if (constructorBuilder_ == null) { + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + constructorBuilder_.clear(); + } + if (functionBuilder_ == null) { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + functionBuilder_.clear(); + } + if (propertyBuilder_ == null) { + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + propertyBuilder_.clear(); + } if (memberBuilder_ == null) { member_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); } else { memberBuilder_.clear(); } enumEntry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); if (primaryConstructorBuilder_ == null) { primaryConstructor_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); } else { primaryConstructorBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); if (secondaryConstructorBuilder_ == null) { secondaryConstructor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } else { secondaryConstructorBuilder_.clear(); } @@ -10512,21 +10791,48 @@ public final class DebugProtoBuf { bitField0_ = (bitField0_ & ~0x00000020); } result.nestedClassName_ = nestedClassName_; - if (memberBuilder_ == null) { + if (constructorBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { - member_ = java.util.Collections.unmodifiableList(member_); + constructor_ = java.util.Collections.unmodifiableList(constructor_); bitField0_ = (bitField0_ & ~0x00000040); } + result.constructor_ = constructor_; + } else { + result.constructor_ = constructorBuilder_.build(); + } + if (functionBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + function_ = java.util.Collections.unmodifiableList(function_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.function_ = function_; + } else { + result.function_ = functionBuilder_.build(); + } + if (propertyBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + property_ = java.util.Collections.unmodifiableList(property_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.property_ = property_; + } else { + result.property_ = propertyBuilder_.build(); + } + if (memberBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + member_ = java.util.Collections.unmodifiableList(member_); + bitField0_ = (bitField0_ & ~0x00000200); + } result.member_ = member_; } else { result.member_ = memberBuilder_.build(); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); } result.enumEntry_ = enumEntry_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000008; } if (primaryConstructorBuilder_ == null) { @@ -10535,9 +10841,9 @@ public final class DebugProtoBuf { result.primaryConstructor_ = primaryConstructorBuilder_.build(); } if (secondaryConstructorBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = java.util.Collections.unmodifiableList(secondaryConstructor_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } result.secondaryConstructor_ = secondaryConstructor_; } else { @@ -10630,11 +10936,89 @@ public final class DebugProtoBuf { } onChanged(); } + if (constructorBuilder_ == null) { + if (!other.constructor_.isEmpty()) { + if (constructor_.isEmpty()) { + constructor_ = other.constructor_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureConstructorIsMutable(); + constructor_.addAll(other.constructor_); + } + onChanged(); + } + } else { + if (!other.constructor_.isEmpty()) { + if (constructorBuilder_.isEmpty()) { + constructorBuilder_.dispose(); + constructorBuilder_ = null; + constructor_ = other.constructor_; + bitField0_ = (bitField0_ & ~0x00000040); + constructorBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getConstructorFieldBuilder() : null; + } else { + constructorBuilder_.addAllMessages(other.constructor_); + } + } + } + if (functionBuilder_ == null) { + if (!other.function_.isEmpty()) { + if (function_.isEmpty()) { + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFunctionIsMutable(); + function_.addAll(other.function_); + } + onChanged(); + } + } else { + if (!other.function_.isEmpty()) { + if (functionBuilder_.isEmpty()) { + functionBuilder_.dispose(); + functionBuilder_ = null; + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000080); + functionBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFunctionFieldBuilder() : null; + } else { + functionBuilder_.addAllMessages(other.function_); + } + } + } + if (propertyBuilder_ == null) { + if (!other.property_.isEmpty()) { + if (property_.isEmpty()) { + property_ = other.property_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensurePropertyIsMutable(); + property_.addAll(other.property_); + } + onChanged(); + } + } else { + if (!other.property_.isEmpty()) { + if (propertyBuilder_.isEmpty()) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + property_ = other.property_; + bitField0_ = (bitField0_ & ~0x00000100); + propertyBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPropertyFieldBuilder() : null; + } else { + propertyBuilder_.addAllMessages(other.property_); + } + } + } if (memberBuilder_ == null) { if (!other.member_.isEmpty()) { if (member_.isEmpty()) { member_ = other.member_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureMemberIsMutable(); member_.addAll(other.member_); @@ -10647,7 +11031,7 @@ public final class DebugProtoBuf { memberBuilder_.dispose(); memberBuilder_ = null; member_ = other.member_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); memberBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMemberFieldBuilder() : null; @@ -10659,7 +11043,7 @@ public final class DebugProtoBuf { if (!other.enumEntry_.isEmpty()) { if (enumEntry_.isEmpty()) { enumEntry_ = other.enumEntry_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureEnumEntryIsMutable(); enumEntry_.addAll(other.enumEntry_); @@ -10673,7 +11057,7 @@ public final class DebugProtoBuf { if (!other.secondaryConstructor_.isEmpty()) { if (secondaryConstructor_.isEmpty()) { secondaryConstructor_ = other.secondaryConstructor_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureSecondaryConstructorIsMutable(); secondaryConstructor_.addAll(other.secondaryConstructor_); @@ -10686,7 +11070,7 @@ public final class DebugProtoBuf { secondaryConstructorBuilder_.dispose(); secondaryConstructorBuilder_ = null; secondaryConstructor_ = other.secondaryConstructor_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); secondaryConstructorBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSecondaryConstructorFieldBuilder() : null; @@ -10717,6 +11101,24 @@ public final class DebugProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + + return false; + } + } for (int i = 0; i < getMemberCount(); i++) { if (!getMember(i).isInitialized()) { @@ -11442,13 +11844,733 @@ public final class DebugProtoBuf { return this; } + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + private java.util.List constructor_ = + java.util.Collections.emptyList(); + private void ensureConstructorIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + constructor_ = new java.util.ArrayList(constructor_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder> constructorBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List getConstructorList() { + if (constructorBuilder_ == null) { + return java.util.Collections.unmodifiableList(constructor_); + } else { + return constructorBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public int getConstructorCount() { + if (constructorBuilder_ == null) { + return constructor_.size(); + } else { + return constructorBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getConstructor(int index) { + if (constructorBuilder_ == null) { + return constructor_.get(index); + } else { + return constructorBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor value) { + if (constructorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.set(index, value); + onChanged(); + } else { + constructorBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder builderForValue) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.set(index, builderForValue.build()); + onChanged(); + } else { + constructorBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor(org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor value) { + if (constructorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(value); + onChanged(); + } else { + constructorBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor value) { + if (constructorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(index, value); + onChanged(); + } else { + constructorBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder builderForValue) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.add(builderForValue.build()); + onChanged(); + } else { + constructorBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder builderForValue) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.add(index, builderForValue.build()); + onChanged(); + } else { + constructorBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addAllConstructor( + java.lang.Iterable values) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + super.addAll(values, constructor_); + onChanged(); + } else { + constructorBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder clearConstructor() { + if (constructorBuilder_ == null) { + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + constructorBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder removeConstructor(int index) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.remove(index); + onChanged(); + } else { + constructorBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder getConstructorBuilder( + int index) { + return getConstructorFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index) { + if (constructorBuilder_ == null) { + return constructor_.get(index); } else { + return constructorBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List + getConstructorOrBuilderList() { + if (constructorBuilder_ != null) { + return constructorBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(constructor_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder addConstructorBuilder() { + return getConstructorFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder addConstructorBuilder( + int index) { + return getConstructorFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List + getConstructorBuilderList() { + return getConstructorFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder> + getConstructorFieldBuilder() { + if (constructorBuilder_ == null) { + constructorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder>( + constructor_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + constructor_ = null; + } + return constructorBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 9; + private java.util.List function_ = + java.util.Collections.emptyList(); + private void ensureFunctionIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + function_ = new java.util.ArrayList(function_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder> functionBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List getFunctionList() { + if (functionBuilder_ == null) { + return java.util.Collections.unmodifiableList(function_); + } else { + return functionBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public int getFunctionCount() { + if (functionBuilder_ == null) { + return function_.size(); + } else { + return functionBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getFunction(int index) { + if (functionBuilder_ == null) { + return function_.get(index); + } else { + return functionBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.set(index, value); + onChanged(); + } else { + functionBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.set(index, builderForValue.build()); + onChanged(); + } else { + functionBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction(org.jetbrains.kotlin.serialization.DebugProtoBuf.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(value); + onChanged(); + } else { + functionBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(index, value); + onChanged(); + } else { + functionBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(builderForValue.build()); + onChanged(); + } else { + functionBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(index, builderForValue.build()); + onChanged(); + } else { + functionBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addAllFunction( + java.lang.Iterable values) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + super.addAll(values, function_); + onChanged(); + } else { + functionBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder clearFunction() { + if (functionBuilder_ == null) { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + functionBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder removeFunction(int index) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.remove(index); + onChanged(); + } else { + functionBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder getFunctionBuilder( + int index) { + return getFunctionFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index) { + if (functionBuilder_ == null) { + return function_.get(index); } else { + return functionBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List + getFunctionOrBuilderList() { + if (functionBuilder_ != null) { + return functionBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(function_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder addFunctionBuilder() { + return getFunctionFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder addFunctionBuilder( + int index) { + return getFunctionFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List + getFunctionBuilderList() { + return getFunctionFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder> + getFunctionFieldBuilder() { + if (functionBuilder_ == null) { + functionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder>( + function_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + function_ = null; + } + return functionBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 10; + private java.util.List property_ = + java.util.Collections.emptyList(); + private void ensurePropertyIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + property_ = new java.util.ArrayList(property_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder> propertyBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List getPropertyList() { + if (propertyBuilder_ == null) { + return java.util.Collections.unmodifiableList(property_); + } else { + return propertyBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public int getPropertyCount() { + if (propertyBuilder_ == null) { + return property_.size(); + } else { + return propertyBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getProperty(int index) { + if (propertyBuilder_ == null) { + return property_.get(index); + } else { + return propertyBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.set(index, value); + onChanged(); + } else { + propertyBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.set(index, builderForValue.build()); + onChanged(); + } else { + propertyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty(org.jetbrains.kotlin.serialization.DebugProtoBuf.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(value); + onChanged(); + } else { + propertyBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(index, value); + onChanged(); + } else { + propertyBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.add(builderForValue.build()); + onChanged(); + } else { + propertyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.add(index, builderForValue.build()); + onChanged(); + } else { + propertyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addAllProperty( + java.lang.Iterable values) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + super.addAll(values, property_); + onChanged(); + } else { + propertyBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + propertyBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder removeProperty(int index) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.remove(index); + onChanged(); + } else { + propertyBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder getPropertyBuilder( + int index) { + return getPropertyFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index) { + if (propertyBuilder_ == null) { + return property_.get(index); } else { + return propertyBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List + getPropertyOrBuilderList() { + if (propertyBuilder_ != null) { + return propertyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(property_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder addPropertyBuilder() { + return getPropertyFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder addPropertyBuilder( + int index) { + return getPropertyFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List + getPropertyBuilderList() { + return getPropertyFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + propertyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder>( + property_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + property_ = null; + } + return propertyBuilder_; + } + // repeated .org.jetbrains.kotlin.serialization.Callable member = 11; private java.util.List member_ = java.util.Collections.emptyList(); private void ensureMemberIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { member_ = new java.util.ArrayList(member_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; } } @@ -11597,7 +12719,7 @@ public final class DebugProtoBuf { public Builder clearMember() { if (memberBuilder_ == null) { member_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { memberBuilder_.clear(); @@ -11674,7 +12796,7 @@ public final class DebugProtoBuf { memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable, org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.CallableOrBuilder>( member_, - ((bitField0_ & 0x00000040) == 0x00000040), + ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); member_ = null; @@ -11685,9 +12807,9 @@ public final class DebugProtoBuf { // repeated int32 enum_entry = 12 [packed = true]; private java.util.List enumEntry_ = java.util.Collections.emptyList(); private void ensureEnumEntryIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { enumEntry_ = new java.util.ArrayList(enumEntry_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; } } /** @@ -11743,7 +12865,7 @@ public final class DebugProtoBuf { */ public Builder clearEnumEntry() { enumEntry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -11760,7 +12882,7 @@ public final class DebugProtoBuf { * */ public boolean hasPrimaryConstructor() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .org.jetbrains.kotlin.serialization.Class.PrimaryConstructor primary_constructor = 13; @@ -11793,7 +12915,7 @@ public final class DebugProtoBuf { } else { primaryConstructorBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return this; } /** @@ -11811,7 +12933,7 @@ public final class DebugProtoBuf { } else { primaryConstructorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return this; } /** @@ -11823,7 +12945,7 @@ public final class DebugProtoBuf { */ public Builder mergePrimaryConstructor(org.jetbrains.kotlin.serialization.DebugProtoBuf.Class.PrimaryConstructor value) { if (primaryConstructorBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && + if (((bitField0_ & 0x00000800) == 0x00000800) && primaryConstructor_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.Class.PrimaryConstructor.getDefaultInstance()) { primaryConstructor_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Class.PrimaryConstructor.newBuilder(primaryConstructor_).mergeFrom(value).buildPartial(); @@ -11834,7 +12956,7 @@ public final class DebugProtoBuf { } else { primaryConstructorBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return this; } /** @@ -11851,7 +12973,7 @@ public final class DebugProtoBuf { } else { primaryConstructorBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); return this; } /** @@ -11862,7 +12984,7 @@ public final class DebugProtoBuf { * */ public org.jetbrains.kotlin.serialization.DebugProtoBuf.Class.PrimaryConstructor.Builder getPrimaryConstructorBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; onChanged(); return getPrimaryConstructorFieldBuilder().getBuilder(); } @@ -11905,9 +13027,9 @@ public final class DebugProtoBuf { private java.util.List secondaryConstructor_ = java.util.Collections.emptyList(); private void ensureSecondaryConstructorIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = new java.util.ArrayList(secondaryConstructor_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; } } @@ -12056,7 +13178,7 @@ public final class DebugProtoBuf { public Builder clearSecondaryConstructor() { if (secondaryConstructorBuilder_ == null) { secondaryConstructor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { secondaryConstructorBuilder_.clear(); @@ -12133,7 +13255,7 @@ public final class DebugProtoBuf { secondaryConstructorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable, org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.CallableOrBuilder>( secondaryConstructor_, - ((bitField0_ & 0x00000200) == 0x00000200), + ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); secondaryConstructor_ = null; @@ -12180,6 +13302,81 @@ public final class DebugProtoBuf { */ org.jetbrains.kotlin.serialization.DebugProtoBuf.CallableOrBuilder getMemberOrBuilder( int index); + + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + java.util.List + getConstructorList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getConstructor(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + int getConstructorCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + java.util.List + getConstructorOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index); + + // repeated .org.jetbrains.kotlin.serialization.Function function = 3; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + java.util.List + getFunctionList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getFunction(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + int getFunctionCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + java.util.List + getFunctionOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index); + + // repeated .org.jetbrains.kotlin.serialization.Property property = 4; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + java.util.List + getPropertyList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getProperty(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + int getPropertyCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + java.util.List + getPropertyOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Package} @@ -12240,6 +13437,30 @@ public final class DebugProtoBuf { member_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable.PARSER, extensionRegistry)); break; } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + constructor_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + function_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + function_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + property_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + property_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.PARSER, extensionRegistry)); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12251,6 +13472,15 @@ public final class DebugProtoBuf { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { member_ = java.util.Collections.unmodifiableList(member_); } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = java.util.Collections.unmodifiableList(constructor_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + function_ = java.util.Collections.unmodifiableList(function_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + property_ = java.util.Collections.unmodifiableList(property_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -12318,8 +13548,119 @@ public final class DebugProtoBuf { return member_.get(index); } + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + public static final int CONSTRUCTOR_FIELD_NUMBER = 2; + private java.util.List constructor_; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List getConstructorList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List + getConstructorOrBuilderList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public int getConstructorCount() { + return constructor_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getConstructor(int index) { + return constructor_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index) { + return constructor_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 3; + public static final int FUNCTION_FIELD_NUMBER = 3; + private java.util.List function_; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List getFunctionList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List + getFunctionOrBuilderList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getFunction(int index) { + return function_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index) { + return function_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 4; + public static final int PROPERTY_FIELD_NUMBER = 4; + private java.util.List property_; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List getPropertyList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List + getPropertyOrBuilderList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public int getPropertyCount() { + return property_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getProperty(int index) { + return property_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index) { + return property_.get(index); + } + private void initFields() { member_ = java.util.Collections.emptyList(); + constructor_ = java.util.Collections.emptyList(); + function_ = java.util.Collections.emptyList(); + property_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -12332,6 +13673,24 @@ public final class DebugProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; @@ -12349,6 +13708,15 @@ public final class DebugProtoBuf { for (int i = 0; i < member_.size(); i++) { output.writeMessage(1, member_.get(i)); } + for (int i = 0; i < constructor_.size(); i++) { + output.writeMessage(2, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + output.writeMessage(3, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + output.writeMessage(4, property_.get(i)); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -12363,6 +13731,18 @@ public final class DebugProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, member_.get(i)); } + for (int i = 0; i < constructor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, property_.get(i)); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -12473,6 +13853,9 @@ public final class DebugProtoBuf { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMemberFieldBuilder(); + getConstructorFieldBuilder(); + getFunctionFieldBuilder(); + getPropertyFieldBuilder(); } } private static Builder create() { @@ -12487,6 +13870,24 @@ public final class DebugProtoBuf { } else { memberBuilder_.clear(); } + if (constructorBuilder_ == null) { + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + constructorBuilder_.clear(); + } + if (functionBuilder_ == null) { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + functionBuilder_.clear(); + } + if (propertyBuilder_ == null) { + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + propertyBuilder_.clear(); + } return this; } @@ -12523,6 +13924,33 @@ public final class DebugProtoBuf { } else { result.member_ = memberBuilder_.build(); } + if (constructorBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = java.util.Collections.unmodifiableList(constructor_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.constructor_ = constructor_; + } else { + result.constructor_ = constructorBuilder_.build(); + } + if (functionBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + function_ = java.util.Collections.unmodifiableList(function_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.function_ = function_; + } else { + result.function_ = functionBuilder_.build(); + } + if (propertyBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + property_ = java.util.Collections.unmodifiableList(property_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.property_ = property_; + } else { + result.property_ = propertyBuilder_.build(); + } onBuilt(); return result; } @@ -12564,6 +13992,84 @@ public final class DebugProtoBuf { } } } + if (constructorBuilder_ == null) { + if (!other.constructor_.isEmpty()) { + if (constructor_.isEmpty()) { + constructor_ = other.constructor_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConstructorIsMutable(); + constructor_.addAll(other.constructor_); + } + onChanged(); + } + } else { + if (!other.constructor_.isEmpty()) { + if (constructorBuilder_.isEmpty()) { + constructorBuilder_.dispose(); + constructorBuilder_ = null; + constructor_ = other.constructor_; + bitField0_ = (bitField0_ & ~0x00000002); + constructorBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getConstructorFieldBuilder() : null; + } else { + constructorBuilder_.addAllMessages(other.constructor_); + } + } + } + if (functionBuilder_ == null) { + if (!other.function_.isEmpty()) { + if (function_.isEmpty()) { + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFunctionIsMutable(); + function_.addAll(other.function_); + } + onChanged(); + } + } else { + if (!other.function_.isEmpty()) { + if (functionBuilder_.isEmpty()) { + functionBuilder_.dispose(); + functionBuilder_ = null; + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000004); + functionBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFunctionFieldBuilder() : null; + } else { + functionBuilder_.addAllMessages(other.function_); + } + } + } + if (propertyBuilder_ == null) { + if (!other.property_.isEmpty()) { + if (property_.isEmpty()) { + property_ = other.property_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePropertyIsMutable(); + property_.addAll(other.property_); + } + onChanged(); + } + } else { + if (!other.property_.isEmpty()) { + if (propertyBuilder_.isEmpty()) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + property_ = other.property_; + bitField0_ = (bitField0_ & ~0x00000008); + propertyBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPropertyFieldBuilder() : null; + } else { + propertyBuilder_.addAllMessages(other.property_); + } + } + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -12576,6 +14082,24 @@ public final class DebugProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + + return false; + } + } if (!extensionsAreInitialized()) { return false; @@ -12842,6 +14366,726 @@ public final class DebugProtoBuf { return memberBuilder_; } + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + private java.util.List constructor_ = + java.util.Collections.emptyList(); + private void ensureConstructorIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = new java.util.ArrayList(constructor_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder> constructorBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List getConstructorList() { + if (constructorBuilder_ == null) { + return java.util.Collections.unmodifiableList(constructor_); + } else { + return constructorBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public int getConstructorCount() { + if (constructorBuilder_ == null) { + return constructor_.size(); + } else { + return constructorBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getConstructor(int index) { + if (constructorBuilder_ == null) { + return constructor_.get(index); + } else { + return constructorBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor value) { + if (constructorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.set(index, value); + onChanged(); + } else { + constructorBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder builderForValue) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.set(index, builderForValue.build()); + onChanged(); + } else { + constructorBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor(org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor value) { + if (constructorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(value); + onChanged(); + } else { + constructorBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor value) { + if (constructorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(index, value); + onChanged(); + } else { + constructorBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder builderForValue) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.add(builderForValue.build()); + onChanged(); + } else { + constructorBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder builderForValue) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.add(index, builderForValue.build()); + onChanged(); + } else { + constructorBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addAllConstructor( + java.lang.Iterable values) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + super.addAll(values, constructor_); + onChanged(); + } else { + constructorBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder clearConstructor() { + if (constructorBuilder_ == null) { + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + constructorBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder removeConstructor(int index) { + if (constructorBuilder_ == null) { + ensureConstructorIsMutable(); + constructor_.remove(index); + onChanged(); + } else { + constructorBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder getConstructorBuilder( + int index) { + return getConstructorFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index) { + if (constructorBuilder_ == null) { + return constructor_.get(index); } else { + return constructorBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List + getConstructorOrBuilderList() { + if (constructorBuilder_ != null) { + return constructorBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(constructor_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder addConstructorBuilder() { + return getConstructorFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder addConstructorBuilder( + int index) { + return getConstructorFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List + getConstructorBuilderList() { + return getConstructorFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder> + getConstructorFieldBuilder() { + if (constructorBuilder_ == null) { + constructorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder>( + constructor_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + constructor_ = null; + } + return constructorBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 3; + private java.util.List function_ = + java.util.Collections.emptyList(); + private void ensureFunctionIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + function_ = new java.util.ArrayList(function_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder> functionBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List getFunctionList() { + if (functionBuilder_ == null) { + return java.util.Collections.unmodifiableList(function_); + } else { + return functionBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public int getFunctionCount() { + if (functionBuilder_ == null) { + return function_.size(); + } else { + return functionBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getFunction(int index) { + if (functionBuilder_ == null) { + return function_.get(index); + } else { + return functionBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.set(index, value); + onChanged(); + } else { + functionBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.set(index, builderForValue.build()); + onChanged(); + } else { + functionBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction(org.jetbrains.kotlin.serialization.DebugProtoBuf.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(value); + onChanged(); + } else { + functionBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function value) { + if (functionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(index, value); + onChanged(); + } else { + functionBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(builderForValue.build()); + onChanged(); + } else { + functionBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder builderForValue) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.add(index, builderForValue.build()); + onChanged(); + } else { + functionBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addAllFunction( + java.lang.Iterable values) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + super.addAll(values, function_); + onChanged(); + } else { + functionBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder clearFunction() { + if (functionBuilder_ == null) { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + functionBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder removeFunction(int index) { + if (functionBuilder_ == null) { + ensureFunctionIsMutable(); + function_.remove(index); + onChanged(); + } else { + functionBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder getFunctionBuilder( + int index) { + return getFunctionFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index) { + if (functionBuilder_ == null) { + return function_.get(index); } else { + return functionBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List + getFunctionOrBuilderList() { + if (functionBuilder_ != null) { + return functionBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(function_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder addFunctionBuilder() { + return getFunctionFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder addFunctionBuilder( + int index) { + return getFunctionFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List + getFunctionBuilderList() { + return getFunctionFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder> + getFunctionFieldBuilder() { + if (functionBuilder_ == null) { + functionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder>( + function_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + function_ = null; + } + return functionBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 4; + private java.util.List property_ = + java.util.Collections.emptyList(); + private void ensurePropertyIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + property_ = new java.util.ArrayList(property_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder> propertyBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List getPropertyList() { + if (propertyBuilder_ == null) { + return java.util.Collections.unmodifiableList(property_); + } else { + return propertyBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public int getPropertyCount() { + if (propertyBuilder_ == null) { + return property_.size(); + } else { + return propertyBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getProperty(int index) { + if (propertyBuilder_ == null) { + return property_.get(index); + } else { + return propertyBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.set(index, value); + onChanged(); + } else { + propertyBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.set(index, builderForValue.build()); + onChanged(); + } else { + propertyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty(org.jetbrains.kotlin.serialization.DebugProtoBuf.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(value); + onChanged(); + } else { + propertyBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(index, value); + onChanged(); + } else { + propertyBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.add(builderForValue.build()); + onChanged(); + } else { + propertyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.add(index, builderForValue.build()); + onChanged(); + } else { + propertyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addAllProperty( + java.lang.Iterable values) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + super.addAll(values, property_); + onChanged(); + } else { + propertyBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + propertyBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder removeProperty(int index) { + if (propertyBuilder_ == null) { + ensurePropertyIsMutable(); + property_.remove(index); + onChanged(); + } else { + propertyBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder getPropertyBuilder( + int index) { + return getPropertyFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index) { + if (propertyBuilder_ == null) { + return property_.get(index); } else { + return propertyBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List + getPropertyOrBuilderList() { + if (propertyBuilder_ != null) { + return propertyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(property_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder addPropertyBuilder() { + return getPropertyFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder addPropertyBuilder( + int index) { + return getPropertyFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List + getPropertyBuilderList() { + return getPropertyFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + propertyBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder>( + property_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + property_ = null; + } + return propertyBuilder_; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Package) } @@ -12853,6 +15097,4415 @@ public final class DebugProtoBuf { // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Package) } + public interface ConstructorOrBuilder extends + com.google.protobuf.GeneratedMessage. + ExtendableMessageOrBuilder { + + // optional int32 flags = 1; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + int getFlags(); + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + java.util.List + getValueParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getValueParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + int getValueParameterCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + java.util.List + getValueParameterOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Constructor} + */ + public static final class Constructor extends + com.google.protobuf.GeneratedMessage.ExtendableMessage< + Constructor> implements ConstructorOrBuilder { + // Use Constructor.newBuilder() to construct. + private Constructor(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Constructor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Constructor defaultInstance; + public static Constructor getDefaultInstance() { + return defaultInstance; + } + + public Constructor getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Constructor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + valueParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Constructor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Constructor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Constructor(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + public int getFlags() { + return flags_; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + public static final int VALUE_PARAMETER_FIELD_NUMBER = 2; + private java.util.List valueParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List getValueParameterList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List + getValueParameterOrBuilderList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public int getValueParameterCount() { + return valueParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getValueParameter(int index) { + return valueParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index) { + return valueParameter_.get(index); + } + + private void initFields() { + flags_ = 0; + valueParameter_ = 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 < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + com.google.protobuf.GeneratedMessage + .ExtendableMessage.ExtensionWriter extensionWriter = + newExtensionWriter(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + output.writeMessage(2, valueParameter_.get(i)); + } + extensionWriter.writeUntil(200, output); + getUnknownFields().writeTo(output); + } + + 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_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, valueParameter_.get(i)); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + 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.kotlin.serialization.DebugProtoBuf.Constructor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Constructor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.ExtendableBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor, Builder> implements org.jetbrains.kotlin.serialization.DebugProtoBuf.ConstructorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Constructor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.Builder.class); + } + + // Construct using org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getValueParameterFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (valueParameterBuilder_ == null) { + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + valueParameterBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor build() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor buildPartial() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor result = new org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.flags_ = flags_; + if (valueParameterBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.valueParameter_ = valueParameter_; + } else { + result.valueParameter_ = valueParameterBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor) { + return mergeFrom((org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor other) { + if (other == org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (valueParameterBuilder_ == null) { + if (!other.valueParameter_.isEmpty()) { + if (valueParameter_.isEmpty()) { + valueParameter_ = other.valueParameter_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValueParameterIsMutable(); + valueParameter_.addAll(other.valueParameter_); + } + onChanged(); + } + } else { + if (!other.valueParameter_.isEmpty()) { + if (valueParameterBuilder_.isEmpty()) { + valueParameterBuilder_.dispose(); + valueParameterBuilder_ = null; + valueParameter_ = other.valueParameter_; + bitField0_ = (bitField0_ & ~0x00000002); + valueParameterBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getValueParameterFieldBuilder() : null; + } else { + valueParameterBuilder_.addAllMessages(other.valueParameter_); + } + } + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + + return false; + } + } + if (!extensionsAreInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.DebugProtoBuf.Constructor) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + onChanged(); + return this; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + onChanged(); + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + private java.util.List valueParameter_ = + java.util.Collections.emptyList(); + private void ensureValueParameterIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = new java.util.ArrayList(valueParameter_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder> valueParameterBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List getValueParameterList() { + if (valueParameterBuilder_ == null) { + return java.util.Collections.unmodifiableList(valueParameter_); + } else { + return valueParameterBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public int getValueParameterCount() { + if (valueParameterBuilder_ == null) { + return valueParameter_.size(); + } else { + return valueParameterBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getValueParameter(int index) { + if (valueParameterBuilder_ == null) { + return valueParameter_.get(index); + } else { + return valueParameterBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (valueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.set(index, value); + onChanged(); + } else { + valueParameterBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.set(index, builderForValue.build()); + onChanged(); + } else { + valueParameterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (valueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(value); + onChanged(); + } else { + valueParameterBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (valueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(index, value); + onChanged(); + } else { + valueParameterBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter( + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.add(builderForValue.build()); + onChanged(); + } else { + valueParameterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.add(index, builderForValue.build()); + onChanged(); + } else { + valueParameterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addAllValueParameter( + java.lang.Iterable values) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + super.addAll(values, valueParameter_); + onChanged(); + } else { + valueParameterBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder clearValueParameter() { + if (valueParameterBuilder_ == null) { + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + valueParameterBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder removeValueParameter(int index) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.remove(index); + onChanged(); + } else { + valueParameterBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder getValueParameterBuilder( + int index) { + return getValueParameterFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index) { + if (valueParameterBuilder_ == null) { + return valueParameter_.get(index); } else { + return valueParameterBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List + getValueParameterOrBuilderList() { + if (valueParameterBuilder_ != null) { + return valueParameterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(valueParameter_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder addValueParameterBuilder() { + return getValueParameterFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder addValueParameterBuilder( + int index) { + return getValueParameterFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List + getValueParameterBuilderList() { + return getValueParameterFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder> + getValueParameterFieldBuilder() { + if (valueParameterBuilder_ == null) { + valueParameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder>( + valueParameter_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + valueParameter_ = null; + } + return valueParameterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Constructor) + } + + static { + defaultInstance = new Constructor(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Constructor) + } + + public interface FunctionOrBuilder extends + com.google.protobuf.GeneratedMessage. + ExtendableMessageOrBuilder { + + // optional int32 flags = 1; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + int getFlags(); + + // required int32 name = 2; + /** + * required int32 name = 2; + */ + boolean hasName(); + /** + * required int32 name = 2; + */ + int getName(); + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + boolean hasReturnType(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReturnType(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReturnTypeOrBuilder(); + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + java.util.List + getTypeParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter getTypeParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + int getTypeParameterCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + java.util.List + getTypeParameterOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index); + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + boolean hasReceiverType(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReceiverType(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReceiverTypeOrBuilder(); + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + java.util.List + getValueParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getValueParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + int getValueParameterCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + java.util.List + getValueParameterOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Function} + */ + public static final class Function extends + com.google.protobuf.GeneratedMessage.ExtendableMessage< + Function> implements FunctionOrBuilder { + // Use Function.newBuilder() to construct. + private Function(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Function(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Function defaultInstance; + public static Function getDefaultInstance() { + return defaultInstance; + } + + public Function getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Function( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + name_ = input.readInt32(); + break; + } + case 26: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = returnType_.toBuilder(); + } + returnType_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(returnType_); + returnType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + typeParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.PARSER, extensionRegistry)); + break; + } + case 42: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = receiverType_.toBuilder(); + } + receiverType_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiverType_); + receiverType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + valueParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Function_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Function_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + public int getFlags() { + return flags_; + } + + // required int32 name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private int name_; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + public static final int RETURN_TYPE_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type returnType_; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReturnType() { + return returnType_; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReturnTypeOrBuilder() { + return returnType_; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + public static final int TYPE_PARAMETER_FIELD_NUMBER = 4; + private java.util.List typeParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterOrBuilderList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + return typeParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter getTypeParameter(int index) { + return typeParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index) { + return typeParameter_.get(index); + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + public static final int RECEIVER_TYPE_FIELD_NUMBER = 5; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type receiverType_; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReceiverType() { + return receiverType_; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReceiverTypeOrBuilder() { + return receiverType_; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + public static final int VALUE_PARAMETER_FIELD_NUMBER = 6; + private java.util.List valueParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List getValueParameterList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List + getValueParameterOrBuilderList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public int getValueParameterCount() { + return valueParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getValueParameter(int index) { + return valueParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index) { + return valueParameter_.get(index); + } + + private void initFields() { + flags_ = 0; + name_ = 0; + returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + typeParameter_ = java.util.Collections.emptyList(); + receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + valueParameter_ = java.util.Collections.emptyList(); + } + 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; + } + if (!getReturnType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + com.google.protobuf.GeneratedMessage + .ExtendableMessage.ExtensionWriter extensionWriter = + newExtensionWriter(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + output.writeMessage(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, receiverType_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + output.writeMessage(6, valueParameter_.get(i)); + } + extensionWriter.writeUntil(200, output); + getUnknownFields().writeTo(output); + } + + 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, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, receiverType_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, valueParameter_.get(i)); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + 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.kotlin.serialization.DebugProtoBuf.Function parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.kotlin.serialization.DebugProtoBuf.Function prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Function} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.ExtendableBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function, Builder> implements org.jetbrains.kotlin.serialization.DebugProtoBuf.FunctionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Function_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Function_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.Builder.class); + } + + // Construct using org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getReturnTypeFieldBuilder(); + getTypeParameterFieldBuilder(); + getReceiverTypeFieldBuilder(); + getValueParameterFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + if (returnTypeBuilder_ == null) { + returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + } else { + returnTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (typeParameterBuilder_ == null) { + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + typeParameterBuilder_.clear(); + } + if (receiverTypeBuilder_ == null) { + receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + } else { + receiverTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (valueParameterBuilder_ == null) { + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + valueParameterBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Function_descriptor; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function build() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Function buildPartial() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function result = new org.jetbrains.kotlin.serialization.DebugProtoBuf.Function(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; + } + if (returnTypeBuilder_ == null) { + result.returnType_ = returnType_; + } else { + result.returnType_ = returnTypeBuilder_.build(); + } + if (typeParameterBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.typeParameter_ = typeParameter_; + } else { + result.typeParameter_ = typeParameterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + if (receiverTypeBuilder_ == null) { + result.receiverType_ = receiverType_; + } else { + result.receiverType_ = receiverTypeBuilder_.build(); + } + if (valueParameterBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.valueParameter_ = valueParameter_; + } else { + result.valueParameter_ = valueParameterBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.DebugProtoBuf.Function) { + return mergeFrom((org.jetbrains.kotlin.serialization.DebugProtoBuf.Function)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.DebugProtoBuf.Function other) { + if (other == org.jetbrains.kotlin.serialization.DebugProtoBuf.Function.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (other.hasReturnType()) { + mergeReturnType(other.getReturnType()); + } + if (typeParameterBuilder_ == null) { + if (!other.typeParameter_.isEmpty()) { + if (typeParameter_.isEmpty()) { + typeParameter_ = other.typeParameter_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTypeParameterIsMutable(); + typeParameter_.addAll(other.typeParameter_); + } + onChanged(); + } + } else { + if (!other.typeParameter_.isEmpty()) { + if (typeParameterBuilder_.isEmpty()) { + typeParameterBuilder_.dispose(); + typeParameterBuilder_ = null; + typeParameter_ = other.typeParameter_; + bitField0_ = (bitField0_ & ~0x00000008); + typeParameterBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTypeParameterFieldBuilder() : null; + } else { + typeParameterBuilder_.addAllMessages(other.typeParameter_); + } + } + } + if (other.hasReceiverType()) { + mergeReceiverType(other.getReceiverType()); + } + if (valueParameterBuilder_ == null) { + if (!other.valueParameter_.isEmpty()) { + if (valueParameter_.isEmpty()) { + valueParameter_ = other.valueParameter_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureValueParameterIsMutable(); + valueParameter_.addAll(other.valueParameter_); + } + onChanged(); + } + } else { + if (!other.valueParameter_.isEmpty()) { + if (valueParameterBuilder_.isEmpty()) { + valueParameterBuilder_.dispose(); + valueParameterBuilder_ = null; + valueParameter_ = other.valueParameter_; + bitField0_ = (bitField0_ & ~0x00000020); + valueParameterBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getValueParameterFieldBuilder() : null; + } else { + valueParameterBuilder_.addAllMessages(other.valueParameter_); + } + } + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasReturnType()) { + + return false; + } + if (!getReturnType().isInitialized()) { + + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + + return false; + } + } + if (!extensionsAreInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Function parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.DebugProtoBuf.Function) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + onChanged(); + return this; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + onChanged(); + return this; + } + + // required int32 name = 2; + private int name_ ; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + /** + * required int32 name = 2; + */ + public Builder setName(int value) { + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * required int32 name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = 0; + onChanged(); + return this; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> returnTypeBuilder_; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReturnType() { + if (returnTypeBuilder_ == null) { + return returnType_; + } else { + return returnTypeBuilder_.getMessage(); + } + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (returnTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + returnType_ = value; + onChanged(); + } else { + returnTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder builderForValue) { + if (returnTypeBuilder_ == null) { + returnType_ = builderForValue.build(); + onChanged(); + } else { + returnTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder mergeReturnType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (returnTypeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + returnType_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance()) { + returnType_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); + } else { + returnType_ = value; + } + onChanged(); + } else { + returnTypeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder clearReturnType() { + if (returnTypeBuilder_ == null) { + returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + onChanged(); + } else { + returnTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder getReturnTypeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReturnTypeFieldBuilder().getBuilder(); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReturnTypeOrBuilder() { + if (returnTypeBuilder_ != null) { + return returnTypeBuilder_.getMessageOrBuilder(); + } else { + return returnType_; + } + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> + getReturnTypeFieldBuilder() { + if (returnTypeBuilder_ == null) { + returnTypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder>( + returnType_, + getParentForChildren(), + isClean()); + returnType_ = null; + } + return returnTypeBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + private java.util.List typeParameter_ = + java.util.Collections.emptyList(); + private void ensureTypeParameterIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(typeParameter_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder> typeParameterBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + if (typeParameterBuilder_ == null) { + return java.util.Collections.unmodifiableList(typeParameter_); + } else { + return typeParameterBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + if (typeParameterBuilder_ == null) { + return typeParameter_.size(); + } else { + return typeParameterBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter getTypeParameter(int index) { + if (typeParameterBuilder_ == null) { + return typeParameter_.get(index); + } else { + return typeParameterBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter value) { + if (typeParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.set(index, value); + onChanged(); + } else { + typeParameterBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder builderForValue) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.set(index, builderForValue.build()); + onChanged(); + } else { + typeParameterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter(org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter value) { + if (typeParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(value); + onChanged(); + } else { + typeParameterBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter value) { + if (typeParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(index, value); + onChanged(); + } else { + typeParameterBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder builderForValue) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.add(builderForValue.build()); + onChanged(); + } else { + typeParameterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder builderForValue) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.add(index, builderForValue.build()); + onChanged(); + } else { + typeParameterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addAllTypeParameter( + java.lang.Iterable values) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + super.addAll(values, typeParameter_); + onChanged(); + } else { + typeParameterBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder clearTypeParameter() { + if (typeParameterBuilder_ == null) { + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + typeParameterBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder removeTypeParameter(int index) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.remove(index); + onChanged(); + } else { + typeParameterBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder getTypeParameterBuilder( + int index) { + return getTypeParameterFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index) { + if (typeParameterBuilder_ == null) { + return typeParameter_.get(index); } else { + return typeParameterBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterOrBuilderList() { + if (typeParameterBuilder_ != null) { + return typeParameterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(typeParameter_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder addTypeParameterBuilder() { + return getTypeParameterFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder addTypeParameterBuilder( + int index) { + return getTypeParameterFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterBuilderList() { + return getTypeParameterFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder> + getTypeParameterFieldBuilder() { + if (typeParameterBuilder_ == null) { + typeParameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder>( + typeParameter_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + typeParameter_ = null; + } + return typeParameterBuilder_; + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> receiverTypeBuilder_; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReceiverType() { + if (receiverTypeBuilder_ == null) { + return receiverType_; + } else { + return receiverTypeBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (receiverTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receiverType_ = value; + onChanged(); + } else { + receiverTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder builderForValue) { + if (receiverTypeBuilder_ == null) { + receiverType_ = builderForValue.build(); + onChanged(); + } else { + receiverTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder mergeReceiverType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (receiverTypeBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + receiverType_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance()) { + receiverType_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.newBuilder(receiverType_).mergeFrom(value).buildPartial(); + } else { + receiverType_ = value; + } + onChanged(); + } else { + receiverTypeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder clearReceiverType() { + if (receiverTypeBuilder_ == null) { + receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + onChanged(); + } else { + receiverTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder getReceiverTypeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReceiverTypeFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReceiverTypeOrBuilder() { + if (receiverTypeBuilder_ != null) { + return receiverTypeBuilder_.getMessageOrBuilder(); + } else { + return receiverType_; + } + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> + getReceiverTypeFieldBuilder() { + if (receiverTypeBuilder_ == null) { + receiverTypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder>( + receiverType_, + getParentForChildren(), + isClean()); + receiverType_ = null; + } + return receiverTypeBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + private java.util.List valueParameter_ = + java.util.Collections.emptyList(); + private void ensureValueParameterIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = new java.util.ArrayList(valueParameter_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder> valueParameterBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List getValueParameterList() { + if (valueParameterBuilder_ == null) { + return java.util.Collections.unmodifiableList(valueParameter_); + } else { + return valueParameterBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public int getValueParameterCount() { + if (valueParameterBuilder_ == null) { + return valueParameter_.size(); + } else { + return valueParameterBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getValueParameter(int index) { + if (valueParameterBuilder_ == null) { + return valueParameter_.get(index); + } else { + return valueParameterBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (valueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.set(index, value); + onChanged(); + } else { + valueParameterBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.set(index, builderForValue.build()); + onChanged(); + } else { + valueParameterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (valueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(value); + onChanged(); + } else { + valueParameterBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (valueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(index, value); + onChanged(); + } else { + valueParameterBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter( + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.add(builderForValue.build()); + onChanged(); + } else { + valueParameterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.add(index, builderForValue.build()); + onChanged(); + } else { + valueParameterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addAllValueParameter( + java.lang.Iterable values) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + super.addAll(values, valueParameter_); + onChanged(); + } else { + valueParameterBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder clearValueParameter() { + if (valueParameterBuilder_ == null) { + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + valueParameterBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder removeValueParameter(int index) { + if (valueParameterBuilder_ == null) { + ensureValueParameterIsMutable(); + valueParameter_.remove(index); + onChanged(); + } else { + valueParameterBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder getValueParameterBuilder( + int index) { + return getValueParameterFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index) { + if (valueParameterBuilder_ == null) { + return valueParameter_.get(index); } else { + return valueParameterBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List + getValueParameterOrBuilderList() { + if (valueParameterBuilder_ != null) { + return valueParameterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(valueParameter_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder addValueParameterBuilder() { + return getValueParameterFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder addValueParameterBuilder( + int index) { + return getValueParameterFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List + getValueParameterBuilderList() { + return getValueParameterFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder> + getValueParameterFieldBuilder() { + if (valueParameterBuilder_ == null) { + valueParameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder>( + valueParameter_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + valueParameter_ = null; + } + return valueParameterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Function) + } + + static { + defaultInstance = new Function(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Function) + } + + public interface PropertyOrBuilder extends + com.google.protobuf.GeneratedMessage. + ExtendableMessageOrBuilder { + + // optional int32 flags = 1; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + int getFlags(); + + // required int32 name = 2; + /** + * required int32 name = 2; + */ + boolean hasName(); + /** + * required int32 name = 2; + */ + int getName(); + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + boolean hasReturnType(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReturnType(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReturnTypeOrBuilder(); + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + java.util.List + getTypeParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter getTypeParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + int getTypeParameterCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + java.util.List + getTypeParameterOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index); + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + boolean hasReceiverType(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReceiverType(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReceiverTypeOrBuilder(); + + // optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + boolean hasSetterValueParameter(); + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getSetterValueParameter(); + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getSetterValueParameterOrBuilder(); + + // optional int32 getter_flags = 7; + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + boolean hasGetterFlags(); + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + int getGetterFlags(); + + // optional int32 setter_flags = 8; + /** + * optional int32 setter_flags = 8; + */ + boolean hasSetterFlags(); + /** + * optional int32 setter_flags = 8; + */ + int getSetterFlags(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Property} + */ + public static final class Property extends + com.google.protobuf.GeneratedMessage.ExtendableMessage< + Property> implements PropertyOrBuilder { + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Property(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Property defaultInstance; + public static Property getDefaultInstance() { + return defaultInstance; + } + + public Property getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Property( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + name_ = input.readInt32(); + break; + } + case 26: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = returnType_.toBuilder(); + } + returnType_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(returnType_); + returnType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + typeParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.PARSER, extensionRegistry)); + break; + } + case 42: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = receiverType_.toBuilder(); + } + receiverType_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiverType_); + receiverType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = setterValueParameter_.toBuilder(); + } + setterValueParameter_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(setterValueParameter_); + setterValueParameter_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 56: { + bitField0_ |= 0x00000020; + getterFlags_ = input.readInt32(); + break; + } + case 64: { + bitField0_ |= 0x00000040; + setterFlags_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Property_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + public int getFlags() { + return flags_; + } + + // required int32 name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private int name_; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + public static final int RETURN_TYPE_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type returnType_; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReturnType() { + return returnType_; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReturnTypeOrBuilder() { + return returnType_; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + public static final int TYPE_PARAMETER_FIELD_NUMBER = 4; + private java.util.List typeParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterOrBuilderList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + return typeParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter getTypeParameter(int index) { + return typeParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index) { + return typeParameter_.get(index); + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + public static final int RECEIVER_TYPE_FIELD_NUMBER = 5; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type receiverType_; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReceiverType() { + return receiverType_; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReceiverTypeOrBuilder() { + return receiverType_; + } + + // optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + public static final int SETTER_VALUE_PARAMETER_FIELD_NUMBER = 6; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter setterValueParameter_; + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public boolean hasSetterValueParameter() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getSetterValueParameter() { + return setterValueParameter_; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getSetterValueParameterOrBuilder() { + return setterValueParameter_; + } + + // optional int32 getter_flags = 7; + public static final int GETTER_FLAGS_FIELD_NUMBER = 7; + private int getterFlags_; + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + public boolean hasGetterFlags() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + public int getGetterFlags() { + return getterFlags_; + } + + // optional int32 setter_flags = 8; + public static final int SETTER_FLAGS_FIELD_NUMBER = 8; + private int setterFlags_; + /** + * optional int32 setter_flags = 8; + */ + public boolean hasSetterFlags() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 setter_flags = 8; + */ + public int getSetterFlags() { + return setterFlags_; + } + + private void initFields() { + flags_ = 0; + name_ = 0; + returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + typeParameter_ = java.util.Collections.emptyList(); + receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + setterValueParameter_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance(); + getterFlags_ = 0; + setterFlags_ = 0; + } + 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; + } + if (!getReturnType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetterValueParameter()) { + if (!getSetterValueParameter().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + com.google.protobuf.GeneratedMessage + .ExtendableMessage.ExtensionWriter extensionWriter = + newExtensionWriter(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + output.writeMessage(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, receiverType_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, setterValueParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt32(7, getterFlags_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(8, setterFlags_); + } + extensionWriter.writeUntil(200, output); + getUnknownFields().writeTo(output); + } + + 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, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, receiverType_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, setterValueParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, getterFlags_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, setterFlags_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + 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.kotlin.serialization.DebugProtoBuf.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.kotlin.serialization.DebugProtoBuf.Property prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Property} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.ExtendableBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property, Builder> implements org.jetbrains.kotlin.serialization.DebugProtoBuf.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Property_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.Builder.class); + } + + // Construct using org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getReturnTypeFieldBuilder(); + getTypeParameterFieldBuilder(); + getReceiverTypeFieldBuilder(); + getSetterValueParameterFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + if (returnTypeBuilder_ == null) { + returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + } else { + returnTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (typeParameterBuilder_ == null) { + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + typeParameterBuilder_.clear(); + } + if (receiverTypeBuilder_ == null) { + receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + } else { + receiverTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (setterValueParameterBuilder_ == null) { + setterValueParameter_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance(); + } else { + setterValueParameterBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + getterFlags_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + setterFlags_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_Property_descriptor; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property build() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Property buildPartial() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property result = new org.jetbrains.kotlin.serialization.DebugProtoBuf.Property(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; + } + if (returnTypeBuilder_ == null) { + result.returnType_ = returnType_; + } else { + result.returnType_ = returnTypeBuilder_.build(); + } + if (typeParameterBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.typeParameter_ = typeParameter_; + } else { + result.typeParameter_ = typeParameterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + if (receiverTypeBuilder_ == null) { + result.receiverType_ = receiverType_; + } else { + result.receiverType_ = receiverTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (setterValueParameterBuilder_ == null) { + result.setterValueParameter_ = setterValueParameter_; + } else { + result.setterValueParameter_ = setterValueParameterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.getterFlags_ = getterFlags_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.setterFlags_ = setterFlags_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.DebugProtoBuf.Property) { + return mergeFrom((org.jetbrains.kotlin.serialization.DebugProtoBuf.Property)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.DebugProtoBuf.Property other) { + if (other == org.jetbrains.kotlin.serialization.DebugProtoBuf.Property.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (other.hasReturnType()) { + mergeReturnType(other.getReturnType()); + } + if (typeParameterBuilder_ == null) { + if (!other.typeParameter_.isEmpty()) { + if (typeParameter_.isEmpty()) { + typeParameter_ = other.typeParameter_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTypeParameterIsMutable(); + typeParameter_.addAll(other.typeParameter_); + } + onChanged(); + } + } else { + if (!other.typeParameter_.isEmpty()) { + if (typeParameterBuilder_.isEmpty()) { + typeParameterBuilder_.dispose(); + typeParameterBuilder_ = null; + typeParameter_ = other.typeParameter_; + bitField0_ = (bitField0_ & ~0x00000008); + typeParameterBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTypeParameterFieldBuilder() : null; + } else { + typeParameterBuilder_.addAllMessages(other.typeParameter_); + } + } + } + if (other.hasReceiverType()) { + mergeReceiverType(other.getReceiverType()); + } + if (other.hasSetterValueParameter()) { + mergeSetterValueParameter(other.getSetterValueParameter()); + } + if (other.hasGetterFlags()) { + setGetterFlags(other.getGetterFlags()); + } + if (other.hasSetterFlags()) { + setSetterFlags(other.getSetterFlags()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasReturnType()) { + + return false; + } + if (!getReturnType().isInitialized()) { + + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + + return false; + } + } + if (hasSetterValueParameter()) { + if (!getSetterValueParameter().isInitialized()) { + + return false; + } + } + if (!extensionsAreInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.DebugProtoBuf.Property parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.DebugProtoBuf.Property) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + onChanged(); + return this; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + onChanged(); + return this; + } + + // required int32 name = 2; + private int name_ ; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + /** + * required int32 name = 2; + */ + public Builder setName(int value) { + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * required int32 name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = 0; + onChanged(); + return this; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> returnTypeBuilder_; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReturnType() { + if (returnTypeBuilder_ == null) { + return returnType_; + } else { + return returnTypeBuilder_.getMessage(); + } + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (returnTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + returnType_ = value; + onChanged(); + } else { + returnTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder builderForValue) { + if (returnTypeBuilder_ == null) { + returnType_ = builderForValue.build(); + onChanged(); + } else { + returnTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder mergeReturnType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (returnTypeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + returnType_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance()) { + returnType_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); + } else { + returnType_ = value; + } + onChanged(); + } else { + returnTypeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder clearReturnType() { + if (returnTypeBuilder_ == null) { + returnType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + onChanged(); + } else { + returnTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder getReturnTypeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReturnTypeFieldBuilder().getBuilder(); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReturnTypeOrBuilder() { + if (returnTypeBuilder_ != null) { + return returnTypeBuilder_.getMessageOrBuilder(); + } else { + return returnType_; + } + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> + getReturnTypeFieldBuilder() { + if (returnTypeBuilder_ == null) { + returnTypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder>( + returnType_, + getParentForChildren(), + isClean()); + returnType_ = null; + } + return returnTypeBuilder_; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + private java.util.List typeParameter_ = + java.util.Collections.emptyList(); + private void ensureTypeParameterIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(typeParameter_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder> typeParameterBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + if (typeParameterBuilder_ == null) { + return java.util.Collections.unmodifiableList(typeParameter_); + } else { + return typeParameterBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + if (typeParameterBuilder_ == null) { + return typeParameter_.size(); + } else { + return typeParameterBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter getTypeParameter(int index) { + if (typeParameterBuilder_ == null) { + return typeParameter_.get(index); + } else { + return typeParameterBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter value) { + if (typeParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.set(index, value); + onChanged(); + } else { + typeParameterBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder builderForValue) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.set(index, builderForValue.build()); + onChanged(); + } else { + typeParameterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter(org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter value) { + if (typeParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(value); + onChanged(); + } else { + typeParameterBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter value) { + if (typeParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(index, value); + onChanged(); + } else { + typeParameterBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder builderForValue) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.add(builderForValue.build()); + onChanged(); + } else { + typeParameterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder builderForValue) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.add(index, builderForValue.build()); + onChanged(); + } else { + typeParameterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addAllTypeParameter( + java.lang.Iterable values) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + super.addAll(values, typeParameter_); + onChanged(); + } else { + typeParameterBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder clearTypeParameter() { + if (typeParameterBuilder_ == null) { + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + typeParameterBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder removeTypeParameter(int index) { + if (typeParameterBuilder_ == null) { + ensureTypeParameterIsMutable(); + typeParameter_.remove(index); + onChanged(); + } else { + typeParameterBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder getTypeParameterBuilder( + int index) { + return getTypeParameterFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index) { + if (typeParameterBuilder_ == null) { + return typeParameter_.get(index); } else { + return typeParameterBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterOrBuilderList() { + if (typeParameterBuilder_ != null) { + return typeParameterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(typeParameter_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder addTypeParameterBuilder() { + return getTypeParameterFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder addTypeParameterBuilder( + int index) { + return getTypeParameterFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterBuilderList() { + return getTypeParameterFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder> + getTypeParameterFieldBuilder() { + if (typeParameterBuilder_ == null) { + typeParameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeParameterOrBuilder>( + typeParameter_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + typeParameter_ = null; + } + return typeParameterBuilder_; + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.Type receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> receiverTypeBuilder_; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type getReceiverType() { + if (receiverTypeBuilder_ == null) { + return receiverType_; + } else { + return receiverTypeBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (receiverTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receiverType_ = value; + onChanged(); + } else { + receiverTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder builderForValue) { + if (receiverTypeBuilder_ == null) { + receiverType_ = builderForValue.build(); + onChanged(); + } else { + receiverTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder mergeReceiverType(org.jetbrains.kotlin.serialization.DebugProtoBuf.Type value) { + if (receiverTypeBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + receiverType_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance()) { + receiverType_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.newBuilder(receiverType_).mergeFrom(value).buildPartial(); + } else { + receiverType_ = value; + } + onChanged(); + } else { + receiverTypeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder clearReceiverType() { + if (receiverTypeBuilder_ == null) { + receiverType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); + onChanged(); + } else { + receiverTypeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder getReceiverTypeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReceiverTypeFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder getReceiverTypeOrBuilder() { + if (receiverTypeBuilder_ != null) { + return receiverTypeBuilder_.getMessageOrBuilder(); + } else { + return receiverType_; + } + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder> + getReceiverTypeFieldBuilder() { + if (receiverTypeBuilder_ == null) { + receiverTypeBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeOrBuilder>( + receiverType_, + getParentForChildren(), + isClean()); + receiverType_ = null; + } + return receiverTypeBuilder_; + } + + // optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter setterValueParameter_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder> setterValueParameterBuilder_; + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public boolean hasSetterValueParameter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter getSetterValueParameter() { + if (setterValueParameterBuilder_ == null) { + return setterValueParameter_; + } else { + return setterValueParameterBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder setSetterValueParameter(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (setterValueParameterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + setterValueParameter_ = value; + onChanged(); + } else { + setterValueParameterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder setSetterValueParameter( + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder builderForValue) { + if (setterValueParameterBuilder_ == null) { + setterValueParameter_ = builderForValue.build(); + onChanged(); + } else { + setterValueParameterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder mergeSetterValueParameter(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter value) { + if (setterValueParameterBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + setterValueParameter_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance()) { + setterValueParameter_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.newBuilder(setterValueParameter_).mergeFrom(value).buildPartial(); + } else { + setterValueParameter_ = value; + } + onChanged(); + } else { + setterValueParameterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder clearSetterValueParameter() { + if (setterValueParameterBuilder_ == null) { + setterValueParameter_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance(); + onChanged(); + } else { + setterValueParameterBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder getSetterValueParameterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSetterValueParameterFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getSetterValueParameterOrBuilder() { + if (setterValueParameterBuilder_ != null) { + return setterValueParameterBuilder_.getMessageOrBuilder(); + } else { + return setterValueParameter_; + } + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder> + getSetterValueParameterFieldBuilder() { + if (setterValueParameterBuilder_ == null) { + setterValueParameterBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder>( + setterValueParameter_, + getParentForChildren(), + isClean()); + setterValueParameter_ = null; + } + return setterValueParameterBuilder_; + } + + // optional int32 getter_flags = 7; + private int getterFlags_ ; + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public boolean hasGetterFlags() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public int getGetterFlags() { + return getterFlags_; + } + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public Builder setGetterFlags(int value) { + bitField0_ |= 0x00000040; + getterFlags_ = value; + onChanged(); + return this; + } + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public Builder clearGetterFlags() { + bitField0_ = (bitField0_ & ~0x00000040); + getterFlags_ = 0; + onChanged(); + return this; + } + + // optional int32 setter_flags = 8; + private int setterFlags_ ; + /** + * optional int32 setter_flags = 8; + */ + public boolean hasSetterFlags() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 setter_flags = 8; + */ + public int getSetterFlags() { + return setterFlags_; + } + /** + * optional int32 setter_flags = 8; + */ + public Builder setSetterFlags(int value) { + bitField0_ |= 0x00000080; + setterFlags_ = value; + onChanged(); + return this; + } + /** + * optional int32 setter_flags = 8; + */ + public Builder clearSetterFlags() { + bitField0_ = (bitField0_ & ~0x00000080); + setterFlags_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Property) + } + + static { + defaultInstance = new Property(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Property) + } + public interface CallableOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder { @@ -15999,6 +22652,21 @@ public final class DebugProtoBuf { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_jetbrains_kotlin_serialization_Package_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_serialization_Constructor_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_serialization_Function_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_serialization_Function_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_serialization_Property_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_serialization_Property_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_org_jetbrains_kotlin_serialization_Callable_descriptor; private static @@ -16068,49 +22736,80 @@ public final class DebugProtoBuf { "eParameter.Variance:\003INV\022=\n\013upper_bound\030" + "\005 \003(\0132(.org.jetbrains.kotlin.serializati" + "on.Type\"$\n\010Variance\022\006\n\002IN\020\000\022\007\n\003OUT\020\001\022\007\n\003", - "INV\020\002\"\325\005\n\005Class\022\020\n\005flags\030\001 \001(\005:\0010\022\025\n\007fq_" + + "INV\020\002\"\233\007\n\005Class\022\020\n\005flags\030\001 \001(\005:\0010\022\025\n\007fq_" + "name\030\003 \002(\005B\004\220\265\030\001\022#\n\025companion_object_nam" + "e\030\004 \001(\005B\004\210\265\030\001\022I\n\016type_parameter\030\005 \003(\01321." + "org.jetbrains.kotlin.serialization.TypeP" + "arameter\022;\n\tsupertype\030\006 \003(\0132(.org.jetbra" + "ins.kotlin.serialization.Type\022!\n\021nested_" + - "class_name\030\007 \003(\005B\006\020\001\210\265\030\001\022<\n\006member\030\013 \003(\013" + - "2,.org.jetbrains.kotlin.serialization.Ca" + - "llable\022\032\n\nenum_entry\030\014 \003(\005B\006\020\001\210\265\030\001\022Y\n\023pr" + - "imary_constructor\030\r \001(\0132<.org.jetbrains.", - "kotlin.serialization.Class.PrimaryConstr" + - "uctor\022K\n\025secondary_constructor\030\016 \003(\0132,.o" + - "rg.jetbrains.kotlin.serialization.Callab" + - "le\032P\n\022PrimaryConstructor\022:\n\004data\030\001 \001(\0132," + + "class_name\030\007 \003(\005B\006\020\001\210\265\030\001\022D\n\013constructor\030" + + "\010 \003(\0132/.org.jetbrains.kotlin.serializati" + + "on.Constructor\022>\n\010function\030\t \003(\0132,.org.j" + + "etbrains.kotlin.serialization.Function\022>", + "\n\010property\030\n \003(\0132,.org.jetbrains.kotlin." + + "serialization.Property\022<\n\006member\030\013 \003(\0132," + ".org.jetbrains.kotlin.serialization.Call" + - "able\"x\n\004Kind\022\t\n\005CLASS\020\000\022\r\n\tINTERFACE\020\001\022\016" + - "\n\nENUM_CLASS\020\002\022\016\n\nENUM_ENTRY\020\003\022\024\n\020ANNOTA" + - "TION_CLASS\020\004\022\n\n\006OBJECT\020\005\022\024\n\020COMPANION_OB" + - "JECT\020\006*\005\010d\020\310\001\"N\n\007Package\022<\n\006member\030\001 \003(\013" + - "2,.org.jetbrains.kotlin.serialization.Ca", - "llable*\005\010d\020\310\001\"\370\002\n\010Callable\022\r\n\005flags\030\001 \001(" + - "\005\022\024\n\014getter_flags\030\t \001(\005\022\024\n\014setter_flags\030" + - "\n \001(\005\022I\n\016type_parameter\030\004 \003(\01321.org.jetb" + - "rains.kotlin.serialization.TypeParameter" + - "\022?\n\rreceiver_type\030\005 \001(\0132(.org.jetbrains." + - "kotlin.serialization.Type\022\022\n\004name\030\006 \002(\005B" + - "\004\210\265\030\001\022K\n\017value_parameter\030\007 \003(\01322.org.jet" + - "brains.kotlin.serialization.ValueParamet" + - "er\022=\n\013return_type\030\010 \002(\0132(.org.jetbrains." + - "kotlin.serialization.Type*\005\010d\020\310\001\"\271\001\n\016Val", - "ueParameter\022\r\n\005flags\030\001 \001(\005\022\022\n\004name\030\002 \002(\005" + - "B\004\210\265\030\001\0226\n\004type\030\003 \002(\0132(.org.jetbrains.kot" + - "lin.serialization.Type\022E\n\023vararg_element" + - "_type\030\004 \001(\0132(.org.jetbrains.kotlin.seria" + - "lization.Type*\005\010d\020\310\001*9\n\010Modality\022\t\n\005FINA" + - "L\020\000\022\010\n\004OPEN\020\001\022\014\n\010ABSTRACT\020\002\022\n\n\006SEALED\020\003*" + - "b\n\nVisibility\022\014\n\010INTERNAL\020\000\022\013\n\007PRIVATE\020\001" + - "\022\r\n\tPROTECTED\020\002\022\n\n\006PUBLIC\020\003\022\023\n\017PRIVATE_T" + - "O_THIS\020\004\022\t\n\005LOCAL\020\005*:\n\014CallableKind\022\007\n\003F" + - "UN\020\000\022\007\n\003VAL\020\001\022\007\n\003VAR\020\002\022\017\n\013CONSTRUCTOR\020\003*", - "Q\n\nMemberKind\022\017\n\013DECLARATION\020\000\022\021\n\rFAKE_O" + - "VERRIDE\020\001\022\016\n\nDELEGATION\020\002\022\017\n\013SYNTHESIZED" + - "\020\003B\022B\rDebugProtoBuf\210\001\000" + "able\022\032\n\nenum_entry\030\014 \003(\005B\006\020\001\210\265\030\001\022Y\n\023prim" + + "ary_constructor\030\r \001(\0132<.org.jetbrains.ko" + + "tlin.serialization.Class.PrimaryConstruc" + + "tor\022K\n\025secondary_constructor\030\016 \003(\0132,.org" + + ".jetbrains.kotlin.serialization.Callable" + + "\032P\n\022PrimaryConstructor\022:\n\004data\030\001 \001(\0132,.o" + + "rg.jetbrains.kotlin.serialization.Callab", + "le\"x\n\004Kind\022\t\n\005CLASS\020\000\022\r\n\tINTERFACE\020\001\022\016\n\n" + + "ENUM_CLASS\020\002\022\016\n\nENUM_ENTRY\020\003\022\024\n\020ANNOTATI" + + "ON_CLASS\020\004\022\n\n\006OBJECT\020\005\022\024\n\020COMPANION_OBJE" + + "CT\020\006*\005\010d\020\310\001\"\224\002\n\007Package\022<\n\006member\030\001 \003(\0132" + + ",.org.jetbrains.kotlin.serialization.Cal" + + "lable\022D\n\013constructor\030\002 \003(\0132/.org.jetbrai" + + "ns.kotlin.serialization.Constructor\022>\n\010f" + + "unction\030\003 \003(\0132,.org.jetbrains.kotlin.ser" + + "ialization.Function\022>\n\010property\030\004 \003(\0132,." + + "org.jetbrains.kotlin.serialization.Prope", + "rty*\005\010d\020\310\001\"p\n\013Constructor\022\r\n\005flags\030\001 \001(\005" + + "\022K\n\017value_parameter\030\002 \003(\01322.org.jetbrain" + + "s.kotlin.serialization.ValueParameter*\005\010" + + "d\020\310\001\"\314\002\n\010Function\022\r\n\005flags\030\001 \001(\005\022\022\n\004name" + + "\030\002 \002(\005B\004\210\265\030\001\022=\n\013return_type\030\003 \002(\0132(.org." + + "jetbrains.kotlin.serialization.Type\022I\n\016t" + + "ype_parameter\030\004 \003(\01321.org.jetbrains.kotl" + + "in.serialization.TypeParameter\022?\n\rreceiv" + + "er_type\030\005 \001(\0132(.org.jetbrains.kotlin.ser" + + "ialization.Type\022K\n\017value_parameter\030\006 \003(\013", + "22.org.jetbrains.kotlin.serialization.Va" + + "lueParameter*\005\010d\020\310\001\"\377\002\n\010Property\022\r\n\005flag" + + "s\030\001 \001(\005\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001\022=\n\013return_ty" + + "pe\030\003 \002(\0132(.org.jetbrains.kotlin.serializ" + + "ation.Type\022I\n\016type_parameter\030\004 \003(\01321.org" + + ".jetbrains.kotlin.serialization.TypePara" + + "meter\022?\n\rreceiver_type\030\005 \001(\0132(.org.jetbr" + + "ains.kotlin.serialization.Type\022R\n\026setter" + + "_value_parameter\030\006 \001(\01322.org.jetbrains.k" + + "otlin.serialization.ValueParameter\022\024\n\014ge", + "tter_flags\030\007 \001(\005\022\024\n\014setter_flags\030\010 \001(\005*\005" + + "\010d\020\310\001\"\370\002\n\010Callable\022\r\n\005flags\030\001 \001(\005\022\024\n\014get" + + "ter_flags\030\t \001(\005\022\024\n\014setter_flags\030\n \001(\005\022I\n" + + "\016type_parameter\030\004 \003(\01321.org.jetbrains.ko" + + "tlin.serialization.TypeParameter\022?\n\rrece" + + "iver_type\030\005 \001(\0132(.org.jetbrains.kotlin.s" + + "erialization.Type\022\022\n\004name\030\006 \002(\005B\004\210\265\030\001\022K\n" + + "\017value_parameter\030\007 \003(\01322.org.jetbrains.k" + + "otlin.serialization.ValueParameter\022=\n\013re" + + "turn_type\030\010 \002(\0132(.org.jetbrains.kotlin.s", + "erialization.Type*\005\010d\020\310\001\"\271\001\n\016ValueParame" + + "ter\022\r\n\005flags\030\001 \001(\005\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001\0226" + + "\n\004type\030\003 \002(\0132(.org.jetbrains.kotlin.seri" + + "alization.Type\022E\n\023vararg_element_type\030\004 " + + "\001(\0132(.org.jetbrains.kotlin.serialization" + + ".Type*\005\010d\020\310\001*9\n\010Modality\022\t\n\005FINAL\020\000\022\010\n\004O" + + "PEN\020\001\022\014\n\010ABSTRACT\020\002\022\n\n\006SEALED\020\003*b\n\nVisib" + + "ility\022\014\n\010INTERNAL\020\000\022\013\n\007PRIVATE\020\001\022\r\n\tPROT" + + "ECTED\020\002\022\n\n\006PUBLIC\020\003\022\023\n\017PRIVATE_TO_THIS\020\004" + + "\022\t\n\005LOCAL\020\005*:\n\014CallableKind\022\007\n\003FUN\020\000\022\007\n\003", + "VAL\020\001\022\007\n\003VAR\020\002\022\017\n\013CONSTRUCTOR\020\003*Q\n\nMembe" + + "rKind\022\017\n\013DECLARATION\020\000\022\021\n\rFAKE_OVERRIDE\020" + + "\001\022\016\n\nDELEGATION\020\002\022\017\n\013SYNTHESIZED\020\003B\022B\rDe" + + "bugProtoBuf\210\001\000" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -16176,7 +22875,7 @@ public final class DebugProtoBuf { internal_static_org_jetbrains_kotlin_serialization_Class_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Class_descriptor, - new java.lang.String[] { "Flags", "FqName", "CompanionObjectName", "TypeParameter", "Supertype", "NestedClassName", "Member", "EnumEntry", "PrimaryConstructor", "SecondaryConstructor", }); + new java.lang.String[] { "Flags", "FqName", "CompanionObjectName", "TypeParameter", "Supertype", "NestedClassName", "Constructor", "Function", "Property", "Member", "EnumEntry", "PrimaryConstructor", "SecondaryConstructor", }); internal_static_org_jetbrains_kotlin_serialization_Class_PrimaryConstructor_descriptor = internal_static_org_jetbrains_kotlin_serialization_Class_descriptor.getNestedTypes().get(0); internal_static_org_jetbrains_kotlin_serialization_Class_PrimaryConstructor_fieldAccessorTable = new @@ -16188,15 +22887,33 @@ public final class DebugProtoBuf { internal_static_org_jetbrains_kotlin_serialization_Package_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Package_descriptor, - new java.lang.String[] { "Member", }); - internal_static_org_jetbrains_kotlin_serialization_Callable_descriptor = + new java.lang.String[] { "Member", "Constructor", "Function", "Property", }); + internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_org_jetbrains_kotlin_serialization_Constructor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor, + new java.lang.String[] { "Flags", "ValueParameter", }); + internal_static_org_jetbrains_kotlin_serialization_Function_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_org_jetbrains_kotlin_serialization_Function_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_serialization_Function_descriptor, + new java.lang.String[] { "Flags", "Name", "ReturnType", "TypeParameter", "ReceiverType", "ValueParameter", }); + internal_static_org_jetbrains_kotlin_serialization_Property_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_org_jetbrains_kotlin_serialization_Property_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_serialization_Property_descriptor, + new java.lang.String[] { "Flags", "Name", "ReturnType", "TypeParameter", "ReceiverType", "SetterValueParameter", "GetterFlags", "SetterFlags", }); + internal_static_org_jetbrains_kotlin_serialization_Callable_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_org_jetbrains_kotlin_serialization_Callable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Callable_descriptor, new java.lang.String[] { "Flags", "GetterFlags", "SetterFlags", "TypeParameter", "ReceiverType", "Name", "ValueParameter", "ReturnType", }); internal_static_org_jetbrains_kotlin_serialization_ValueParameter_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(11); internal_static_org_jetbrains_kotlin_serialization_ValueParameter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_ValueParameter_descriptor, @@ -16217,6 +22934,8 @@ public final class DebugProtoBuf { registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); + registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); + registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); return registry; } }; diff --git a/core/deserialization/src/descriptors.proto b/core/deserialization/src/descriptors.proto index 2dad9a1f082..1d9a273813e 100644 --- a/core/deserialization/src/descriptors.proto +++ b/core/deserialization/src/descriptors.proto @@ -173,6 +173,10 @@ message Class { repeated int32 nested_class_name = 7 [packed = true, (name_id_in_table) = true]; + repeated Constructor constructor = 8; + repeated Function function = 9; + repeated Property property = 10; + repeated Callable member = 11; repeated int32 enum_entry = 12 [packed = true, (name_id_in_table) = true]; @@ -194,6 +198,84 @@ message Class { message Package { repeated Callable member = 1; + repeated Constructor constructor = 2; + repeated Function function = 3; + repeated Property property = 4; + + extensions 100 to 199; +} + +message Constructor { + /* + hasAnnotations + Visibility + isSecondary + */ + optional int32 flags = 1; + + repeated ValueParameter value_parameter = 2; + + extensions 100 to 199; +} + +message Function { + /* + hasAnnotations + Visibility + Modality + MemberKind + isOperator + isInfix + */ + optional int32 flags = 1; + + required int32 name = 2 [(name_id_in_table) = true]; + + required Type return_type = 3; + + repeated TypeParameter type_parameter = 4; + + optional Type receiver_type = 5; + + repeated ValueParameter value_parameter = 6; + + extensions 100 to 199; +} + +message Property { + /* + hasAnnotations + Visibility + Modality + MemberKind + isVar + hasGetter + hasSetter + isConst + lateinit + hasConstant + */ + optional int32 flags = 1; + + required int32 name = 2 [(name_id_in_table) = true]; + + required Type return_type = 3; + + repeated TypeParameter type_parameter = 4; + + optional Type receiver_type = 5; + + optional ValueParameter setter_value_parameter = 6; + + /* + hasAnnotations + Visibility + Modality + isNotDefault + */ + optional int32 getter_flags = 7 /* absent => same as property */; + optional int32 setter_flags = 8 /* absent => same as property */; + extensions 100 to 199; } diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/Flags.java b/core/deserialization/src/org/jetbrains/kotlin/serialization/Flags.java index df1e78dbf7d..1e46a8287a9 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/Flags.java +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/Flags.java @@ -26,34 +26,47 @@ public class Flags { // Common public static final FlagField HAS_ANNOTATIONS = FlagField.booleanFirst(); - public static final FlagField VISIBILITY = FlagField.after(HAS_ANNOTATIONS, ProtoBuf.Visibility.values()); - public static final FlagField MODALITY = FlagField.after(VISIBILITY, ProtoBuf.Modality.values()); // Class public static final FlagField CLASS_KIND = FlagField.after(MODALITY, ProtoBuf.Class.Kind.values()); - public static final FlagField INNER = FlagField.booleanAfter(CLASS_KIND); // Callables public static final FlagField CALLABLE_KIND = FlagField.after(MODALITY, ProtoBuf.CallableKind.values()); - public static final FlagField MEMBER_KIND = FlagField.after(CALLABLE_KIND, ProtoBuf.MemberKind.values()); - public static final FlagField HAS_GETTER = FlagField.booleanAfter(MEMBER_KIND); - public static final FlagField HAS_SETTER = FlagField.booleanAfter(HAS_GETTER); - public static final FlagField HAS_CONSTANT = FlagField.booleanAfter(HAS_SETTER); - public static final FlagField IS_CONST = FlagField.booleanAfter(HAS_CONSTANT); + // Constructors - public static final FlagField LATE_INIT = FlagField.booleanAfter(IS_CONST); + public static final FlagField IS_SECONDARY = FlagField.booleanAfter(VISIBILITY); - public static final FlagField IS_OPERATOR = FlagField.booleanAfter(LATE_INIT); + // Functions + public static final FlagField IS_OPERATOR = FlagField.booleanAfter(MEMBER_KIND); public static final FlagField IS_INFIX = FlagField.booleanAfter(IS_OPERATOR); + // Properties + + public static final FlagField IS_VAR = FlagField.booleanAfter(MEMBER_KIND); + public static final FlagField HAS_GETTER = FlagField.booleanAfter(IS_VAR); + public static final FlagField HAS_SETTER = FlagField.booleanAfter(HAS_GETTER); + public static final FlagField IS_CONST = FlagField.booleanAfter(HAS_SETTER); + public static final FlagField LATE_INIT = FlagField.booleanAfter(IS_CONST); + public static final FlagField HAS_CONSTANT = FlagField.booleanAfter(LATE_INIT); + + // Old callables. TODO: delete + + public static final FlagField OLD_HAS_GETTER = FlagField.booleanAfter(MEMBER_KIND); + public static final FlagField OLD_HAS_SETTER = FlagField.booleanAfter(OLD_HAS_GETTER); + public static final FlagField OLD_HAS_CONSTANT = FlagField.booleanAfter(OLD_HAS_SETTER); + public static final FlagField OLD_IS_CONST = FlagField.booleanAfter(OLD_HAS_CONSTANT); + public static final FlagField OLD_LATE_INIT = FlagField.booleanAfter(OLD_IS_CONST); + public static final FlagField OLD_IS_OPERATOR = FlagField.booleanAfter(OLD_LATE_INIT); + public static final FlagField OLD_IS_INFIX = FlagField.booleanAfter(OLD_IS_OPERATOR); + // Parameters public static final FlagField DECLARES_DEFAULT_VALUE = FlagField.booleanAfter(HAS_ANNOTATIONS); @@ -129,14 +142,67 @@ public class Flags { | VISIBILITY.toFlags(visibility(visibility)) | MEMBER_KIND.toFlags(memberKind(memberKind)) | CALLABLE_KIND.toFlags(callableKind) - | HAS_GETTER.toFlags(hasGetter) - | HAS_SETTER.toFlags(hasSetter) - | HAS_CONSTANT.toFlags(hasConstant) - | LATE_INIT.toFlags(lateInit) - | IS_CONST.toFlags(isConst) + | OLD_HAS_GETTER.toFlags(hasGetter) + | OLD_HAS_SETTER.toFlags(hasSetter) + | OLD_HAS_CONSTANT.toFlags(hasConstant) + | OLD_LATE_INIT.toFlags(lateInit) + | OLD_IS_CONST.toFlags(isConst) + | OLD_IS_OPERATOR.toFlags(isOperator) + | OLD_IS_INFIX.toFlags(isInfix) + ; + } + + public static int getConstructorFlags( + boolean hasAnnotations, + @NotNull Visibility visibility, + boolean isSecondary + ) { + return HAS_ANNOTATIONS.toFlags(hasAnnotations) + | VISIBILITY.toFlags(visibility(visibility)) + | IS_SECONDARY.toFlags(isSecondary) + ; + } + + public static int getFunctionFlags( + boolean hasAnnotations, + @NotNull Visibility visibility, + @NotNull Modality modality, + @NotNull CallableMemberDescriptor.Kind memberKind, + boolean isOperator, + boolean isInfix + ) { + return HAS_ANNOTATIONS.toFlags(hasAnnotations) + | VISIBILITY.toFlags(visibility(visibility)) + | MODALITY.toFlags(modality(modality)) + | MEMBER_KIND.toFlags(memberKind(memberKind)) | IS_OPERATOR.toFlags(isOperator) | IS_INFIX.toFlags(isInfix) - ; + ; + } + + public static int getPropertyFlags( + boolean hasAnnotations, + @NotNull Visibility visibility, + @NotNull Modality modality, + @NotNull CallableMemberDescriptor.Kind memberKind, + boolean isVar, + boolean hasGetter, + boolean hasSetter, + boolean hasConstant, + boolean isConst, + boolean lateInit + ) { + return HAS_ANNOTATIONS.toFlags(hasAnnotations) + | VISIBILITY.toFlags(visibility(visibility)) + | MODALITY.toFlags(modality(modality)) + | MEMBER_KIND.toFlags(memberKind(memberKind)) + | IS_VAR.toFlags(isVar) + | HAS_GETTER.toFlags(hasGetter) + | HAS_SETTER.toFlags(hasSetter) + | IS_CONST.toFlags(isConst) + | LATE_INIT.toFlags(lateInit) + | HAS_CONSTANT.toFlags(hasConstant) + ; } public static int getAccessorFlags( diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java b/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java index d21257b92cd..b79f9a87a2c 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java @@ -6903,6 +6903,51 @@ public final class ProtoBuf { */ int getNestedClassName(int index); + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + java.util.List + getConstructorList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getConstructor(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + int getConstructorCount(); + + // repeated .org.jetbrains.kotlin.serialization.Function function = 9; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + java.util.List + getFunctionList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Function getFunction(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + int getFunctionCount(); + + // repeated .org.jetbrains.kotlin.serialization.Property property = 10; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + java.util.List + getPropertyList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Property getProperty(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + int getPropertyCount(); + // repeated .org.jetbrains.kotlin.serialization.Callable member = 11; /** * repeated .org.jetbrains.kotlin.serialization.Callable member = 11; @@ -7060,18 +7105,42 @@ public final class ProtoBuf { input.popLimit(limit); break; } - case 90: { + case 66: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - member_ = new java.util.ArrayList(); + constructor_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } + constructor_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.PARSER, extensionRegistry)); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + function_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + function_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Function.PARSER, extensionRegistry)); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + property_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + property_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Property.PARSER, extensionRegistry)); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + member_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } member_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Callable.PARSER, extensionRegistry)); break; } case 96: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { enumEntry_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000400; } enumEntry_.add(input.readInt32()); break; @@ -7079,9 +7148,9 @@ public final class ProtoBuf { case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { enumEntry_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; + mutable_bitField0_ |= 0x00000400; } while (input.getBytesUntilLimit() > 0) { enumEntry_.add(input.readInt32()); @@ -7103,9 +7172,9 @@ public final class ProtoBuf { break; } case 114: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; + mutable_bitField0_ |= 0x00001000; } secondaryConstructor_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Callable.PARSER, extensionRegistry)); break; @@ -7128,12 +7197,21 @@ public final class ProtoBuf { nestedClassName_ = java.util.Collections.unmodifiableList(nestedClassName_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - member_ = java.util.Collections.unmodifiableList(member_); + constructor_ = java.util.Collections.unmodifiableList(constructor_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); + function_ = java.util.Collections.unmodifiableList(function_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + property_ = java.util.Collections.unmodifiableList(property_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + member_ = java.util.Collections.unmodifiableList(member_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = java.util.Collections.unmodifiableList(secondaryConstructor_); } makeExtensionsImmutable(); @@ -7867,6 +7945,114 @@ public final class ProtoBuf { } private int nestedClassNameMemoizedSerializedSize = -1; + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + public static final int CONSTRUCTOR_FIELD_NUMBER = 8; + private java.util.List constructor_; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List getConstructorList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List + getConstructorOrBuilderList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public int getConstructorCount() { + return constructor_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getConstructor(int index) { + return constructor_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index) { + return constructor_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 9; + public static final int FUNCTION_FIELD_NUMBER = 9; + private java.util.List function_; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List getFunctionList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List + getFunctionOrBuilderList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Function getFunction(int index) { + return function_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index) { + return function_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 10; + public static final int PROPERTY_FIELD_NUMBER = 10; + private java.util.List property_; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List getPropertyList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List + getPropertyOrBuilderList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public int getPropertyCount() { + return property_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Property getProperty(int index) { + return property_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index) { + return property_.get(index); + } + // repeated .org.jetbrains.kotlin.serialization.Callable member = 11; public static final int MEMBER_FIELD_NUMBER = 11; private java.util.List member_; @@ -7994,6 +8180,9 @@ public final class ProtoBuf { typeParameter_ = java.util.Collections.emptyList(); supertype_ = java.util.Collections.emptyList(); nestedClassName_ = java.util.Collections.emptyList(); + constructor_ = java.util.Collections.emptyList(); + function_ = java.util.Collections.emptyList(); + property_ = java.util.Collections.emptyList(); member_ = java.util.Collections.emptyList(); enumEntry_ = java.util.Collections.emptyList(); primaryConstructor_ = org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); @@ -8020,6 +8209,24 @@ public final class ProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } for (int i = 0; i < getMemberCount(); i++) { if (!getMember(i).isInitialized()) { memoizedIsInitialized = 0; @@ -8074,6 +8281,15 @@ public final class ProtoBuf { for (int i = 0; i < nestedClassName_.size(); i++) { output.writeInt32NoTag(nestedClassName_.get(i)); } + for (int i = 0; i < constructor_.size(); i++) { + output.writeMessage(8, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + output.writeMessage(9, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + output.writeMessage(10, property_.get(i)); + } for (int i = 0; i < member_.size(); i++) { output.writeMessage(11, member_.get(i)); } @@ -8133,6 +8349,18 @@ public final class ProtoBuf { } nestedClassNameMemoizedSerializedSize = dataSize; } + for (int i = 0; i < constructor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, property_.get(i)); + } for (int i = 0; i < member_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, member_.get(i)); @@ -8262,14 +8490,20 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000010); nestedClassName_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); - member_ = java.util.Collections.emptyList(); + constructor_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); - enumEntry_ = java.util.Collections.emptyList(); + function_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); - primaryConstructor_ = org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); + property_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); - secondaryConstructor_ = java.util.Collections.emptyList(); + member_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); + enumEntry_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + primaryConstructor_ = org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000800); + secondaryConstructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); return this; } @@ -8321,22 +8555,37 @@ public final class ProtoBuf { } result.nestedClassName_ = nestedClassName_; if (((bitField0_ & 0x00000040) == 0x00000040)) { - member_ = java.util.Collections.unmodifiableList(member_); + constructor_ = java.util.Collections.unmodifiableList(constructor_); bitField0_ = (bitField0_ & ~0x00000040); } - result.member_ = member_; + result.constructor_ = constructor_; if (((bitField0_ & 0x00000080) == 0x00000080)) { - enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); + function_ = java.util.Collections.unmodifiableList(function_); bitField0_ = (bitField0_ & ~0x00000080); } + result.function_ = function_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + property_ = java.util.Collections.unmodifiableList(property_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.property_ = property_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + member_ = java.util.Collections.unmodifiableList(member_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.member_ = member_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + enumEntry_ = java.util.Collections.unmodifiableList(enumEntry_); + bitField0_ = (bitField0_ & ~0x00000400); + } result.enumEntry_ = enumEntry_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000008; } result.primaryConstructor_ = primaryConstructor_; - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = java.util.Collections.unmodifiableList(secondaryConstructor_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } result.secondaryConstructor_ = secondaryConstructor_; result.bitField0_ = to_bitField0_; @@ -8383,11 +8632,41 @@ public final class ProtoBuf { nestedClassName_.addAll(other.nestedClassName_); } + } + if (!other.constructor_.isEmpty()) { + if (constructor_.isEmpty()) { + constructor_ = other.constructor_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureConstructorIsMutable(); + constructor_.addAll(other.constructor_); + } + + } + if (!other.function_.isEmpty()) { + if (function_.isEmpty()) { + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFunctionIsMutable(); + function_.addAll(other.function_); + } + + } + if (!other.property_.isEmpty()) { + if (property_.isEmpty()) { + property_ = other.property_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensurePropertyIsMutable(); + property_.addAll(other.property_); + } + } if (!other.member_.isEmpty()) { if (member_.isEmpty()) { member_ = other.member_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureMemberIsMutable(); member_.addAll(other.member_); @@ -8397,7 +8676,7 @@ public final class ProtoBuf { if (!other.enumEntry_.isEmpty()) { if (enumEntry_.isEmpty()) { enumEntry_ = other.enumEntry_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureEnumEntryIsMutable(); enumEntry_.addAll(other.enumEntry_); @@ -8410,7 +8689,7 @@ public final class ProtoBuf { if (!other.secondaryConstructor_.isEmpty()) { if (secondaryConstructor_.isEmpty()) { secondaryConstructor_ = other.secondaryConstructor_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureSecondaryConstructorIsMutable(); secondaryConstructor_.addAll(other.secondaryConstructor_); @@ -8438,6 +8717,24 @@ public final class ProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + + return false; + } + } for (int i = 0; i < getMemberCount(); i++) { if (!getMember(i).isInitialized()) { @@ -8933,13 +9230,388 @@ public final class ProtoBuf { return this; } + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + private java.util.List constructor_ = + java.util.Collections.emptyList(); + private void ensureConstructorIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + constructor_ = new java.util.ArrayList(constructor_); + bitField0_ |= 0x00000040; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public java.util.List getConstructorList() { + return java.util.Collections.unmodifiableList(constructor_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public int getConstructorCount() { + return constructor_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getConstructor(int index) { + return constructor_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.Builder builderForValue) { + ensureConstructorIsMutable(); + constructor_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor(org.jetbrains.kotlin.serialization.ProtoBuf.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor( + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.Builder builderForValue) { + ensureConstructorIsMutable(); + constructor_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.Builder builderForValue) { + ensureConstructorIsMutable(); + constructor_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder addAllConstructor( + java.lang.Iterable values) { + ensureConstructorIsMutable(); + super.addAll(values, constructor_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder clearConstructor() { + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 8; + */ + public Builder removeConstructor(int index) { + ensureConstructorIsMutable(); + constructor_.remove(index); + + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 9; + private java.util.List function_ = + java.util.Collections.emptyList(); + private void ensureFunctionIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + function_ = new java.util.ArrayList(function_); + bitField0_ |= 0x00000080; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public java.util.List getFunctionList() { + return java.util.Collections.unmodifiableList(function_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Function getFunction(int index) { + return function_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function.Builder builderForValue) { + ensureFunctionIsMutable(); + function_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction(org.jetbrains.kotlin.serialization.ProtoBuf.Function value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction( + org.jetbrains.kotlin.serialization.ProtoBuf.Function.Builder builderForValue) { + ensureFunctionIsMutable(); + function_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function.Builder builderForValue) { + ensureFunctionIsMutable(); + function_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder addAllFunction( + java.lang.Iterable values) { + ensureFunctionIsMutable(); + super.addAll(values, function_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder clearFunction() { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 9; + */ + public Builder removeFunction(int index) { + ensureFunctionIsMutable(); + function_.remove(index); + + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 10; + private java.util.List property_ = + java.util.Collections.emptyList(); + private void ensurePropertyIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + property_ = new java.util.ArrayList(property_); + bitField0_ |= 0x00000100; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public java.util.List getPropertyList() { + return java.util.Collections.unmodifiableList(property_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public int getPropertyCount() { + return property_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Property getProperty(int index) { + return property_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property.Builder builderForValue) { + ensurePropertyIsMutable(); + property_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty(org.jetbrains.kotlin.serialization.ProtoBuf.Property value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty( + org.jetbrains.kotlin.serialization.ProtoBuf.Property.Builder builderForValue) { + ensurePropertyIsMutable(); + property_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property.Builder builderForValue) { + ensurePropertyIsMutable(); + property_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder addAllProperty( + java.lang.Iterable values) { + ensurePropertyIsMutable(); + super.addAll(values, property_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder clearProperty() { + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 10; + */ + public Builder removeProperty(int index) { + ensurePropertyIsMutable(); + property_.remove(index); + + return this; + } + // repeated .org.jetbrains.kotlin.serialization.Callable member = 11; private java.util.List member_ = java.util.Collections.emptyList(); private void ensureMemberIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { member_ = new java.util.ArrayList(member_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000200; } } @@ -9044,7 +9716,7 @@ public final class ProtoBuf { */ public Builder clearMember() { member_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000200); return this; } @@ -9061,9 +9733,9 @@ public final class ProtoBuf { // repeated int32 enum_entry = 12 [packed = true]; private java.util.List enumEntry_ = java.util.Collections.emptyList(); private void ensureEnumEntryIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { enumEntry_ = new java.util.ArrayList(enumEntry_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000400; } } /** @@ -9119,7 +9791,7 @@ public final class ProtoBuf { */ public Builder clearEnumEntry() { enumEntry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -9134,7 +9806,7 @@ public final class ProtoBuf { * */ public boolean hasPrimaryConstructor() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .org.jetbrains.kotlin.serialization.Class.PrimaryConstructor primary_constructor = 13; @@ -9159,7 +9831,7 @@ public final class ProtoBuf { } primaryConstructor_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return this; } /** @@ -9173,7 +9845,7 @@ public final class ProtoBuf { org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.Builder builderForValue) { primaryConstructor_ = builderForValue.build(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return this; } /** @@ -9184,7 +9856,7 @@ public final class ProtoBuf { * */ public Builder mergePrimaryConstructor(org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor value) { - if (((bitField0_ & 0x00000100) == 0x00000100) && + if (((bitField0_ & 0x00000800) == 0x00000800) && primaryConstructor_ != org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance()) { primaryConstructor_ = org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.newBuilder(primaryConstructor_).mergeFrom(value).buildPartial(); @@ -9192,7 +9864,7 @@ public final class ProtoBuf { primaryConstructor_ = value; } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000800; return this; } /** @@ -9205,7 +9877,7 @@ public final class ProtoBuf { public Builder clearPrimaryConstructor() { primaryConstructor_ = org.jetbrains.kotlin.serialization.ProtoBuf.Class.PrimaryConstructor.getDefaultInstance(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000800); return this; } @@ -9213,9 +9885,9 @@ public final class ProtoBuf { private java.util.List secondaryConstructor_ = java.util.Collections.emptyList(); private void ensureSecondaryConstructorIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { secondaryConstructor_ = new java.util.ArrayList(secondaryConstructor_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00001000; } } @@ -9320,7 +9992,7 @@ public final class ProtoBuf { */ public Builder clearSecondaryConstructor() { secondaryConstructor_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00001000); return this; } @@ -9363,6 +10035,51 @@ public final class ProtoBuf { * repeated .org.jetbrains.kotlin.serialization.Callable member = 1; */ int getMemberCount(); + + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + java.util.List + getConstructorList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getConstructor(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + int getConstructorCount(); + + // repeated .org.jetbrains.kotlin.serialization.Function function = 3; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + java.util.List + getFunctionList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Function getFunction(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + int getFunctionCount(); + + // repeated .org.jetbrains.kotlin.serialization.Property property = 4; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + java.util.List + getPropertyList(); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Property getProperty(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + int getPropertyCount(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Package} @@ -9415,6 +10132,30 @@ public final class ProtoBuf { member_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Callable.PARSER, extensionRegistry)); break; } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + constructor_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + function_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + function_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Function.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + property_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + property_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Property.PARSER, extensionRegistry)); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9426,6 +10167,15 @@ public final class ProtoBuf { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { member_ = java.util.Collections.unmodifiableList(member_); } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = java.util.Collections.unmodifiableList(constructor_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + function_ = java.util.Collections.unmodifiableList(function_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + property_ = java.util.Collections.unmodifiableList(property_); + } makeExtensionsImmutable(); } } @@ -9480,8 +10230,119 @@ public final class ProtoBuf { return member_.get(index); } + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + public static final int CONSTRUCTOR_FIELD_NUMBER = 2; + private java.util.List constructor_; + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List getConstructorList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List + getConstructorOrBuilderList() { + return constructor_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public int getConstructorCount() { + return constructor_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getConstructor(int index) { + return constructor_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ConstructorOrBuilder getConstructorOrBuilder( + int index) { + return constructor_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 3; + public static final int FUNCTION_FIELD_NUMBER = 3; + private java.util.List function_; + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List getFunctionList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List + getFunctionOrBuilderList() { + return function_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Function getFunction(int index) { + return function_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.FunctionOrBuilder getFunctionOrBuilder( + int index) { + return function_.get(index); + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 4; + public static final int PROPERTY_FIELD_NUMBER = 4; + private java.util.List property_; + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List getPropertyList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List + getPropertyOrBuilderList() { + return property_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public int getPropertyCount() { + return property_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Property getProperty(int index) { + return property_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.PropertyOrBuilder getPropertyOrBuilder( + int index) { + return property_.get(index); + } + private void initFields() { member_ = java.util.Collections.emptyList(); + constructor_ = java.util.Collections.emptyList(); + function_ = java.util.Collections.emptyList(); + property_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -9494,6 +10355,24 @@ public final class ProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; @@ -9511,6 +10390,15 @@ public final class ProtoBuf { for (int i = 0; i < member_.size(); i++) { output.writeMessage(1, member_.get(i)); } + for (int i = 0; i < constructor_.size(); i++) { + output.writeMessage(2, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + output.writeMessage(3, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + output.writeMessage(4, property_.get(i)); + } extensionWriter.writeUntil(200, output); } @@ -9524,6 +10412,18 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, member_.get(i)); } + for (int i = 0; i < constructor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, constructor_.get(i)); + } + for (int i = 0; i < function_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, function_.get(i)); + } + for (int i = 0; i < property_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, property_.get(i)); + } size += extensionsSerializedSize(); memoizedSerializedSize = size; return size; @@ -9617,6 +10517,12 @@ public final class ProtoBuf { super.clear(); member_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -9644,6 +10550,21 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000001); } result.member_ = member_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = java.util.Collections.unmodifiableList(constructor_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.constructor_ = constructor_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + function_ = java.util.Collections.unmodifiableList(function_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.function_ = function_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + property_ = java.util.Collections.unmodifiableList(property_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.property_ = property_; return result; } @@ -9658,6 +10579,36 @@ public final class ProtoBuf { member_.addAll(other.member_); } + } + if (!other.constructor_.isEmpty()) { + if (constructor_.isEmpty()) { + constructor_ = other.constructor_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConstructorIsMutable(); + constructor_.addAll(other.constructor_); + } + + } + if (!other.function_.isEmpty()) { + if (function_.isEmpty()) { + function_ = other.function_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFunctionIsMutable(); + function_.addAll(other.function_); + } + + } + if (!other.property_.isEmpty()) { + if (property_.isEmpty()) { + property_ = other.property_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePropertyIsMutable(); + property_.addAll(other.property_); + } + } this.mergeExtensionFields(other); return this; @@ -9670,6 +10621,24 @@ public final class ProtoBuf { return false; } } + for (int i = 0; i < getConstructorCount(); i++) { + if (!getConstructor(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getFunctionCount(); i++) { + if (!getFunction(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getPropertyCount(); i++) { + if (!getProperty(i).isInitialized()) { + + return false; + } + } if (!extensionsAreInitialized()) { return false; @@ -9821,6 +10790,381 @@ public final class ProtoBuf { return this; } + // repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + private java.util.List constructor_ = + java.util.Collections.emptyList(); + private void ensureConstructorIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + constructor_ = new java.util.ArrayList(constructor_); + bitField0_ |= 0x00000002; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public java.util.List getConstructorList() { + return java.util.Collections.unmodifiableList(constructor_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public int getConstructorCount() { + return constructor_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getConstructor(int index) { + return constructor_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder setConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.Builder builderForValue) { + ensureConstructorIsMutable(); + constructor_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor(org.jetbrains.kotlin.serialization.ProtoBuf.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstructorIsMutable(); + constructor_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor( + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.Builder builderForValue) { + ensureConstructorIsMutable(); + constructor_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addConstructor( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.Builder builderForValue) { + ensureConstructorIsMutable(); + constructor_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder addAllConstructor( + java.lang.Iterable values) { + ensureConstructorIsMutable(); + super.addAll(values, constructor_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder clearConstructor() { + constructor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Constructor constructor = 2; + */ + public Builder removeConstructor(int index) { + ensureConstructorIsMutable(); + constructor_.remove(index); + + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.Function function = 3; + private java.util.List function_ = + java.util.Collections.emptyList(); + private void ensureFunctionIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + function_ = new java.util.ArrayList(function_); + bitField0_ |= 0x00000004; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public java.util.List getFunctionList() { + return java.util.Collections.unmodifiableList(function_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public int getFunctionCount() { + return function_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Function getFunction(int index) { + return function_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder setFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function.Builder builderForValue) { + ensureFunctionIsMutable(); + function_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction(org.jetbrains.kotlin.serialization.ProtoBuf.Function value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFunctionIsMutable(); + function_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction( + org.jetbrains.kotlin.serialization.ProtoBuf.Function.Builder builderForValue) { + ensureFunctionIsMutable(); + function_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addFunction( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Function.Builder builderForValue) { + ensureFunctionIsMutable(); + function_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder addAllFunction( + java.lang.Iterable values) { + ensureFunctionIsMutable(); + super.addAll(values, function_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder clearFunction() { + function_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Function function = 3; + */ + public Builder removeFunction(int index) { + ensureFunctionIsMutable(); + function_.remove(index); + + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.Property property = 4; + private java.util.List property_ = + java.util.Collections.emptyList(); + private void ensurePropertyIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + property_ = new java.util.ArrayList(property_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public java.util.List getPropertyList() { + return java.util.Collections.unmodifiableList(property_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public int getPropertyCount() { + return property_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Property getProperty(int index) { + return property_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder setProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property.Builder builderForValue) { + ensurePropertyIsMutable(); + property_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty(org.jetbrains.kotlin.serialization.ProtoBuf.Property value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertyIsMutable(); + property_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty( + org.jetbrains.kotlin.serialization.ProtoBuf.Property.Builder builderForValue) { + ensurePropertyIsMutable(); + property_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addProperty( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.Property.Builder builderForValue) { + ensurePropertyIsMutable(); + property_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder addAllProperty( + java.lang.Iterable values) { + ensurePropertyIsMutable(); + super.addAll(values, property_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder clearProperty() { + property_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.Property property = 4; + */ + public Builder removeProperty(int index) { + ensurePropertyIsMutable(); + property_.remove(index); + + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Package) } @@ -9832,6 +11176,3248 @@ public final class ProtoBuf { // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Package) } + public interface ConstructorOrBuilder extends + com.google.protobuf.GeneratedMessageLite. + ExtendableMessageOrBuilder { + + // optional int32 flags = 1; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + int getFlags(); + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + java.util.List + getValueParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getValueParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + int getValueParameterCount(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Constructor} + */ + public static final class Constructor extends + com.google.protobuf.GeneratedMessageLite.ExtendableMessage< + Constructor> implements ConstructorOrBuilder { + // Use Constructor.newBuilder() to construct. + private Constructor(com.google.protobuf.GeneratedMessageLite.ExtendableBuilder builder) { + super(builder); + + } + private Constructor(boolean noInit) {} + + private static final Constructor defaultInstance; + public static Constructor getDefaultInstance() { + return defaultInstance; + } + + public Constructor getDefaultInstanceForType() { + return defaultInstance; + } + + private Constructor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + valueParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + } + makeExtensionsImmutable(); + } + } + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Constructor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Constructor(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *isSecondary
+     * 
+ */ + public int getFlags() { + return flags_; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + public static final int VALUE_PARAMETER_FIELD_NUMBER = 2; + private java.util.List valueParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List getValueParameterList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List + getValueParameterOrBuilderList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public int getValueParameterCount() { + return valueParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getValueParameter(int index) { + return valueParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index) { + return valueParameter_.get(index); + } + + private void initFields() { + flags_ = 0; + valueParameter_ = 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 < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + com.google.protobuf.GeneratedMessageLite + .ExtendableMessage.ExtensionWriter extensionWriter = + newExtensionWriter(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + output.writeMessage(2, valueParameter_.get(i)); + } + extensionWriter.writeUntil(200, output); + } + + 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_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, valueParameter_.get(i)); + } + size += extensionsSerializedSize(); + 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.kotlin.serialization.ProtoBuf.Constructor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.kotlin.serialization.ProtoBuf.Constructor prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Constructor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.ExtendableBuilder< + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor, Builder> implements org.jetbrains.kotlin.serialization.ProtoBuf.ConstructorOrBuilder { + // Construct using org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor build() { + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Constructor buildPartial() { + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor result = new org.jetbrains.kotlin.serialization.ProtoBuf.Constructor(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.flags_ = flags_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.valueParameter_ = valueParameter_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.ProtoBuf.Constructor other) { + if (other == org.jetbrains.kotlin.serialization.ProtoBuf.Constructor.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (!other.valueParameter_.isEmpty()) { + if (valueParameter_.isEmpty()) { + valueParameter_ = other.valueParameter_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValueParameterIsMutable(); + valueParameter_.addAll(other.valueParameter_); + } + + } + this.mergeExtensionFields(other); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + + return false; + } + } + if (!extensionsAreInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.ProtoBuf.Constructor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.ProtoBuf.Constructor) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + + return this; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *isSecondary
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + private java.util.List valueParameter_ = + java.util.Collections.emptyList(); + private void ensureValueParameterIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + valueParameter_ = new java.util.ArrayList(valueParameter_); + bitField0_ |= 0x00000002; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public java.util.List getValueParameterList() { + return java.util.Collections.unmodifiableList(valueParameter_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public int getValueParameterCount() { + return valueParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getValueParameter(int index) { + return valueParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + ensureValueParameterIsMutable(); + valueParameter_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter( + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + ensureValueParameterIsMutable(); + valueParameter_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + ensureValueParameterIsMutable(); + valueParameter_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder addAllValueParameter( + java.lang.Iterable values) { + ensureValueParameterIsMutable(); + super.addAll(values, valueParameter_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder clearValueParameter() { + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; + */ + public Builder removeValueParameter(int index) { + ensureValueParameterIsMutable(); + valueParameter_.remove(index); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Constructor) + } + + static { + defaultInstance = new Constructor(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Constructor) + } + + public interface FunctionOrBuilder extends + com.google.protobuf.GeneratedMessageLite. + ExtendableMessageOrBuilder { + + // optional int32 flags = 1; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + int getFlags(); + + // required int32 name = 2; + /** + * required int32 name = 2; + */ + boolean hasName(); + /** + * required int32 name = 2; + */ + int getName(); + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + boolean hasReturnType(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Type getReturnType(); + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + java.util.List + getTypeParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter getTypeParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + int getTypeParameterCount(); + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + boolean hasReceiverType(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Type getReceiverType(); + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + java.util.List + getValueParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getValueParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + int getValueParameterCount(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Function} + */ + public static final class Function extends + com.google.protobuf.GeneratedMessageLite.ExtendableMessage< + Function> implements FunctionOrBuilder { + // Use Function.newBuilder() to construct. + private Function(com.google.protobuf.GeneratedMessageLite.ExtendableBuilder builder) { + super(builder); + + } + private Function(boolean noInit) {} + + private static final Function defaultInstance; + public static Function getDefaultInstance() { + return defaultInstance; + } + + public Function getDefaultInstanceForType() { + return defaultInstance; + } + + private Function( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + name_ = input.readInt32(); + break; + } + case 26: { + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = returnType_.toBuilder(); + } + returnType_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(returnType_); + returnType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + typeParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.PARSER, extensionRegistry)); + break; + } + case 42: { + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = receiverType_.toBuilder(); + } + receiverType_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiverType_); + receiverType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + valueParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + } + makeExtensionsImmutable(); + } + } + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Function parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Function(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isOperator
+     *isInfix
+     * 
+ */ + public int getFlags() { + return flags_; + } + + // required int32 name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private int name_; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + public static final int RETURN_TYPE_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type returnType_; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReturnType() { + return returnType_; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + public static final int TYPE_PARAMETER_FIELD_NUMBER = 4; + private java.util.List typeParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterOrBuilderList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + return typeParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { + return typeParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index) { + return typeParameter_.get(index); + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + public static final int RECEIVER_TYPE_FIELD_NUMBER = 5; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type receiverType_; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReceiverType() { + return receiverType_; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + public static final int VALUE_PARAMETER_FIELD_NUMBER = 6; + private java.util.List valueParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List getValueParameterList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List + getValueParameterOrBuilderList() { + return valueParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public int getValueParameterCount() { + return valueParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getValueParameter(int index) { + return valueParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( + int index) { + return valueParameter_.get(index); + } + + private void initFields() { + flags_ = 0; + name_ = 0; + returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + typeParameter_ = java.util.Collections.emptyList(); + receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + valueParameter_ = java.util.Collections.emptyList(); + } + 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; + } + if (!getReturnType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + com.google.protobuf.GeneratedMessageLite + .ExtendableMessage.ExtensionWriter extensionWriter = + newExtensionWriter(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + output.writeMessage(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, receiverType_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + output.writeMessage(6, valueParameter_.get(i)); + } + extensionWriter.writeUntil(200, output); + } + + 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, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, receiverType_); + } + for (int i = 0; i < valueParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, valueParameter_.get(i)); + } + size += extensionsSerializedSize(); + 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.kotlin.serialization.ProtoBuf.Function parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Function parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.kotlin.serialization.ProtoBuf.Function prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Function} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.ExtendableBuilder< + org.jetbrains.kotlin.serialization.ProtoBuf.Function, Builder> implements org.jetbrains.kotlin.serialization.ProtoBuf.FunctionOrBuilder { + // Construct using org.jetbrains.kotlin.serialization.ProtoBuf.Function.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); + returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000004); + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000010); + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Function getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.ProtoBuf.Function.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Function build() { + org.jetbrains.kotlin.serialization.ProtoBuf.Function result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Function buildPartial() { + org.jetbrains.kotlin.serialization.ProtoBuf.Function result = new org.jetbrains.kotlin.serialization.ProtoBuf.Function(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.returnType_ = returnType_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.typeParameter_ = typeParameter_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.receiverType_ = receiverType_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = java.util.Collections.unmodifiableList(valueParameter_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.valueParameter_ = valueParameter_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.ProtoBuf.Function other) { + if (other == org.jetbrains.kotlin.serialization.ProtoBuf.Function.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (other.hasReturnType()) { + mergeReturnType(other.getReturnType()); + } + if (!other.typeParameter_.isEmpty()) { + if (typeParameter_.isEmpty()) { + typeParameter_ = other.typeParameter_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTypeParameterIsMutable(); + typeParameter_.addAll(other.typeParameter_); + } + + } + if (other.hasReceiverType()) { + mergeReceiverType(other.getReceiverType()); + } + if (!other.valueParameter_.isEmpty()) { + if (valueParameter_.isEmpty()) { + valueParameter_ = other.valueParameter_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureValueParameterIsMutable(); + valueParameter_.addAll(other.valueParameter_); + } + + } + this.mergeExtensionFields(other); + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasReturnType()) { + + return false; + } + if (!getReturnType().isInitialized()) { + + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getValueParameterCount(); i++) { + if (!getValueParameter(i).isInitialized()) { + + return false; + } + } + if (!extensionsAreInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.ProtoBuf.Function parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.ProtoBuf.Function) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + + return this; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isOperator
+       *isInfix
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + + return this; + } + + // required int32 name = 2; + private int name_ ; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + /** + * required int32 name = 2; + */ + public Builder setName(int value) { + bitField0_ |= 0x00000002; + name_ = value; + + return this; + } + /** + * required int32 name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = 0; + + return this; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReturnType() { + return returnType_; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + returnType_ = value; + + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType( + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder builderForValue) { + returnType_ = builderForValue.build(); + + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder mergeReturnType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + returnType_ != org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance()) { + returnType_ = + org.jetbrains.kotlin.serialization.ProtoBuf.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); + } else { + returnType_ = value; + } + + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder clearReturnType() { + returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + private java.util.List typeParameter_ = + java.util.Collections.emptyList(); + private void ensureTypeParameterIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(typeParameter_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + return java.util.Collections.unmodifiableList(typeParameter_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + return typeParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { + return typeParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParameterIsMutable(); + typeParameter_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter(org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParameterIsMutable(); + typeParameter_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParameterIsMutable(); + typeParameter_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addAllTypeParameter( + java.lang.Iterable values) { + ensureTypeParameterIsMutable(); + super.addAll(values, typeParameter_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder clearTypeParameter() { + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder removeTypeParameter(int index) { + ensureTypeParameterIsMutable(); + typeParameter_.remove(index); + + return this; + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReceiverType() { + return receiverType_; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + receiverType_ = value; + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType( + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder builderForValue) { + receiverType_ = builderForValue.build(); + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder mergeReceiverType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + receiverType_ != org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance()) { + receiverType_ = + org.jetbrains.kotlin.serialization.ProtoBuf.Type.newBuilder(receiverType_).mergeFrom(value).buildPartial(); + } else { + receiverType_ = value; + } + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder clearReceiverType() { + receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + private java.util.List valueParameter_ = + java.util.Collections.emptyList(); + private void ensureValueParameterIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + valueParameter_ = new java.util.ArrayList(valueParameter_); + bitField0_ |= 0x00000020; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public java.util.List getValueParameterList() { + return java.util.Collections.unmodifiableList(valueParameter_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public int getValueParameterCount() { + return valueParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getValueParameter(int index) { + return valueParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder setValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + ensureValueParameterIsMutable(); + valueParameter_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValueParameterIsMutable(); + valueParameter_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter( + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + ensureValueParameterIsMutable(); + valueParameter_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addValueParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + ensureValueParameterIsMutable(); + valueParameter_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder addAllValueParameter( + java.lang.Iterable values) { + ensureValueParameterIsMutable(); + super.addAll(values, valueParameter_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder clearValueParameter() { + valueParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 6; + */ + public Builder removeValueParameter(int index) { + ensureValueParameterIsMutable(); + valueParameter_.remove(index); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Function) + } + + static { + defaultInstance = new Function(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Function) + } + + public interface PropertyOrBuilder extends + com.google.protobuf.GeneratedMessageLite. + ExtendableMessageOrBuilder { + + // optional int32 flags = 1; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + int getFlags(); + + // required int32 name = 2; + /** + * required int32 name = 2; + */ + boolean hasName(); + /** + * required int32 name = 2; + */ + int getName(); + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + boolean hasReturnType(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Type getReturnType(); + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + java.util.List + getTypeParameterList(); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter getTypeParameter(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + int getTypeParameterCount(); + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + boolean hasReceiverType(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.Type getReceiverType(); + + // optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + boolean hasSetterValueParameter(); + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getSetterValueParameter(); + + // optional int32 getter_flags = 7; + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + boolean hasGetterFlags(); + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + int getGetterFlags(); + + // optional int32 setter_flags = 8; + /** + * optional int32 setter_flags = 8; + */ + boolean hasSetterFlags(); + /** + * optional int32 setter_flags = 8; + */ + int getSetterFlags(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Property} + */ + public static final class Property extends + com.google.protobuf.GeneratedMessageLite.ExtendableMessage< + Property> implements PropertyOrBuilder { + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessageLite.ExtendableBuilder builder) { + super(builder); + + } + private Property(boolean noInit) {} + + private static final Property defaultInstance; + public static Property getDefaultInstance() { + return defaultInstance; + } + + public Property getDefaultInstanceForType() { + return defaultInstance; + } + + private Property( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + flags_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + name_ = input.readInt32(); + break; + } + case 26: { + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = returnType_.toBuilder(); + } + returnType_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(returnType_); + returnType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + typeParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.PARSER, extensionRegistry)); + break; + } + case 42: { + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = receiverType_.toBuilder(); + } + receiverType_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Type.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiverType_); + receiverType_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = setterValueParameter_.toBuilder(); + } + setterValueParameter_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(setterValueParameter_); + setterValueParameter_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 56: { + bitField0_ |= 0x00000020; + getterFlags_ = input.readInt32(); + break; + } + case 64: { + bitField0_ |= 0x00000040; + setterFlags_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + } + makeExtensionsImmutable(); + } + } + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Property(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 flags = 1; + public static final int FLAGS_FIELD_NUMBER = 1; + private int flags_; + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *MemberKind
+     *isVar
+     *hasGetter
+     *hasSetter
+     *isConst
+     *lateinit
+     *hasConstant
+     * 
+ */ + public int getFlags() { + return flags_; + } + + // required int32 name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private int name_; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + public static final int RETURN_TYPE_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type returnType_; + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReturnType() { + return returnType_; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + public static final int TYPE_PARAMETER_FIELD_NUMBER = 4; + private java.util.List typeParameter_; + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List + getTypeParameterOrBuilderList() { + return typeParameter_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + return typeParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { + return typeParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameterOrBuilder getTypeParameterOrBuilder( + int index) { + return typeParameter_.get(index); + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + public static final int RECEIVER_TYPE_FIELD_NUMBER = 5; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type receiverType_; + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReceiverType() { + return receiverType_; + } + + // optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + public static final int SETTER_VALUE_PARAMETER_FIELD_NUMBER = 6; + private org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter setterValueParameter_; + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public boolean hasSetterValueParameter() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getSetterValueParameter() { + return setterValueParameter_; + } + + // optional int32 getter_flags = 7; + public static final int GETTER_FLAGS_FIELD_NUMBER = 7; + private int getterFlags_; + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + public boolean hasGetterFlags() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 getter_flags = 7; + * + *
+     *
+     *hasAnnotations
+     *Visibility
+     *Modality
+     *isNotDefault
+     * 
+ */ + public int getGetterFlags() { + return getterFlags_; + } + + // optional int32 setter_flags = 8; + public static final int SETTER_FLAGS_FIELD_NUMBER = 8; + private int setterFlags_; + /** + * optional int32 setter_flags = 8; + */ + public boolean hasSetterFlags() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 setter_flags = 8; + */ + public int getSetterFlags() { + return setterFlags_; + } + + private void initFields() { + flags_ = 0; + name_ = 0; + returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + typeParameter_ = java.util.Collections.emptyList(); + receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + setterValueParameter_ = org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.getDefaultInstance(); + getterFlags_ = 0; + setterFlags_ = 0; + } + 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; + } + if (!getReturnType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSetterValueParameter()) { + if (!getSetterValueParameter().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!extensionsAreInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + com.google.protobuf.GeneratedMessageLite + .ExtendableMessage.ExtensionWriter extensionWriter = + newExtensionWriter(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, flags_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, name_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + output.writeMessage(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, receiverType_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, setterValueParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt32(7, getterFlags_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(8, setterFlags_); + } + extensionWriter.writeUntil(200, output); + } + + 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, returnType_); + } + for (int i = 0; i < typeParameter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, typeParameter_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, receiverType_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, setterValueParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, getterFlags_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, setterFlags_); + } + size += extensionsSerializedSize(); + 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.kotlin.serialization.ProtoBuf.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.Property parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.jetbrains.kotlin.serialization.ProtoBuf.Property prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.Property} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.ExtendableBuilder< + org.jetbrains.kotlin.serialization.ProtoBuf.Property, Builder> implements org.jetbrains.kotlin.serialization.ProtoBuf.PropertyOrBuilder { + // Construct using org.jetbrains.kotlin.serialization.ProtoBuf.Property.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); + returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000004); + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000010); + setterValueParameter_ = org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000020); + getterFlags_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + setterFlags_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Property getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.ProtoBuf.Property.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Property build() { + org.jetbrains.kotlin.serialization.ProtoBuf.Property result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.Property buildPartial() { + org.jetbrains.kotlin.serialization.ProtoBuf.Property result = new org.jetbrains.kotlin.serialization.ProtoBuf.Property(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.returnType_ = returnType_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = java.util.Collections.unmodifiableList(typeParameter_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.typeParameter_ = typeParameter_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.receiverType_ = receiverType_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.setterValueParameter_ = setterValueParameter_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.getterFlags_ = getterFlags_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.setterFlags_ = setterFlags_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.ProtoBuf.Property other) { + if (other == org.jetbrains.kotlin.serialization.ProtoBuf.Property.getDefaultInstance()) return this; + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasName()) { + setName(other.getName()); + } + if (other.hasReturnType()) { + mergeReturnType(other.getReturnType()); + } + if (!other.typeParameter_.isEmpty()) { + if (typeParameter_.isEmpty()) { + typeParameter_ = other.typeParameter_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTypeParameterIsMutable(); + typeParameter_.addAll(other.typeParameter_); + } + + } + if (other.hasReceiverType()) { + mergeReceiverType(other.getReceiverType()); + } + if (other.hasSetterValueParameter()) { + mergeSetterValueParameter(other.getSetterValueParameter()); + } + if (other.hasGetterFlags()) { + setGetterFlags(other.getGetterFlags()); + } + if (other.hasSetterFlags()) { + setSetterFlags(other.getSetterFlags()); + } + this.mergeExtensionFields(other); + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasReturnType()) { + + return false; + } + if (!getReturnType().isInitialized()) { + + return false; + } + for (int i = 0; i < getTypeParameterCount(); i++) { + if (!getTypeParameter(i).isInitialized()) { + + return false; + } + } + if (hasReceiverType()) { + if (!getReceiverType().isInitialized()) { + + return false; + } + } + if (hasSetterValueParameter()) { + if (!getSetterValueParameter().isInitialized()) { + + return false; + } + } + if (!extensionsAreInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.ProtoBuf.Property parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.ProtoBuf.Property) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 flags = 1; + private int flags_ ; + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000001; + flags_ = value; + + return this; + } + /** + * optional int32 flags = 1; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *MemberKind
+       *isVar
+       *hasGetter
+       *hasSetter
+       *isConst
+       *lateinit
+       *hasConstant
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + + return this; + } + + // required int32 name = 2; + private int name_ ; + /** + * required int32 name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 name = 2; + */ + public int getName() { + return name_; + } + /** + * required int32 name = 2; + */ + public Builder setName(int value) { + bitField0_ |= 0x00000002; + name_ = value; + + return this; + } + /** + * required int32 name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = 0; + + return this; + } + + // required .org.jetbrains.kotlin.serialization.Type return_type = 3; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public boolean hasReturnType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReturnType() { + return returnType_; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + returnType_ = value; + + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder setReturnType( + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder builderForValue) { + returnType_ = builderForValue.build(); + + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder mergeReturnType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + returnType_ != org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance()) { + returnType_ = + org.jetbrains.kotlin.serialization.ProtoBuf.Type.newBuilder(returnType_).mergeFrom(value).buildPartial(); + } else { + returnType_ = value; + } + + bitField0_ |= 0x00000004; + return this; + } + /** + * required .org.jetbrains.kotlin.serialization.Type return_type = 3; + */ + public Builder clearReturnType() { + returnType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + // repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + private java.util.List typeParameter_ = + java.util.Collections.emptyList(); + private void ensureTypeParameterIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + typeParameter_ = new java.util.ArrayList(typeParameter_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public java.util.List getTypeParameterList() { + return java.util.Collections.unmodifiableList(typeParameter_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public int getTypeParameterCount() { + return typeParameter_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter getTypeParameter(int index) { + return typeParameter_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder setTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParameterIsMutable(); + typeParameter_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter(org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypeParameterIsMutable(); + typeParameter_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParameterIsMutable(); + typeParameter_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addTypeParameter( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.TypeParameter.Builder builderForValue) { + ensureTypeParameterIsMutable(); + typeParameter_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder addAllTypeParameter( + java.lang.Iterable values) { + ensureTypeParameterIsMutable(); + super.addAll(values, typeParameter_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder clearTypeParameter() { + typeParameter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.TypeParameter type_parameter = 4; + */ + public Builder removeTypeParameter(int index) { + ensureTypeParameterIsMutable(); + typeParameter_.remove(index); + + return this; + } + + // optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + private org.jetbrains.kotlin.serialization.ProtoBuf.Type receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public boolean hasReceiverType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.Type getReceiverType() { + return receiverType_; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (value == null) { + throw new NullPointerException(); + } + receiverType_ = value; + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder setReceiverType( + org.jetbrains.kotlin.serialization.ProtoBuf.Type.Builder builderForValue) { + receiverType_ = builderForValue.build(); + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder mergeReceiverType(org.jetbrains.kotlin.serialization.ProtoBuf.Type value) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + receiverType_ != org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance()) { + receiverType_ = + org.jetbrains.kotlin.serialization.ProtoBuf.Type.newBuilder(receiverType_).mergeFrom(value).buildPartial(); + } else { + receiverType_ = value; + } + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.Type receiver_type = 5; + */ + public Builder clearReceiverType() { + receiverType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + // optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + private org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter setterValueParameter_ = org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.getDefaultInstance(); + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public boolean hasSetterValueParameter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter getSetterValueParameter() { + return setterValueParameter_; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder setSetterValueParameter(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (value == null) { + throw new NullPointerException(); + } + setterValueParameter_ = value; + + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder setSetterValueParameter( + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.Builder builderForValue) { + setterValueParameter_ = builderForValue.build(); + + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder mergeSetterValueParameter(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter value) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + setterValueParameter_ != org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.getDefaultInstance()) { + setterValueParameter_ = + org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.newBuilder(setterValueParameter_).mergeFrom(value).buildPartial(); + } else { + setterValueParameter_ = value; + } + + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.ValueParameter setter_value_parameter = 6; + */ + public Builder clearSetterValueParameter() { + setterValueParameter_ = org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + // optional int32 getter_flags = 7; + private int getterFlags_ ; + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public boolean hasGetterFlags() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public int getGetterFlags() { + return getterFlags_; + } + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public Builder setGetterFlags(int value) { + bitField0_ |= 0x00000040; + getterFlags_ = value; + + return this; + } + /** + * optional int32 getter_flags = 7; + * + *
+       *
+       *hasAnnotations
+       *Visibility
+       *Modality
+       *isNotDefault
+       * 
+ */ + public Builder clearGetterFlags() { + bitField0_ = (bitField0_ & ~0x00000040); + getterFlags_ = 0; + + return this; + } + + // optional int32 setter_flags = 8; + private int setterFlags_ ; + /** + * optional int32 setter_flags = 8; + */ + public boolean hasSetterFlags() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 setter_flags = 8; + */ + public int getSetterFlags() { + return setterFlags_; + } + /** + * optional int32 setter_flags = 8; + */ + public Builder setSetterFlags(int value) { + bitField0_ |= 0x00000080; + setterFlags_ = value; + + return this; + } + /** + * optional int32 setter_flags = 8; + */ + public Builder clearSetterFlags() { + bitField0_ = (bitField0_ & ~0x00000080); + setterFlags_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Property) + } + + static { + defaultInstance = new Property(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.Property) + } + public interface CallableOrBuilder extends com.google.protobuf.GeneratedMessageLite. ExtendableMessageOrBuilder { diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt index 6c11902a307..68d61c370f5 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt @@ -56,13 +56,13 @@ public class MemberDeserializer(private val c: DeserializationContext) { Deserialization.memberKind(Flags.MEMBER_KIND.get(flags)), proto, c.nameResolver, - Flags.LATE_INIT.get(flags), - Flags.IS_CONST.get(flags) + Flags.OLD_LATE_INIT.get(flags), + Flags.OLD_IS_CONST.get(flags) ) val local = c.childContext(property, proto.getTypeParameterList()) - val hasGetter = Flags.HAS_GETTER.get(flags) + val hasGetter = Flags.OLD_HAS_GETTER.get(flags) val receiverAnnotations = if (hasGetter) getReceiverParameterAnnotations(proto, AnnotatedCallableKind.PROPERTY_GETTER) else @@ -99,7 +99,7 @@ public class MemberDeserializer(private val c: DeserializationContext) { null } - val setter = if (Flags.HAS_SETTER.get(flags)) { + val setter = if (Flags.OLD_HAS_SETTER.get(flags)) { val setterFlags = proto.getSetterFlags() val isNotDefault = proto.hasSetterFlags() && Flags.IS_NOT_DEFAULT.get(setterFlags) if (isNotDefault) { @@ -125,7 +125,7 @@ public class MemberDeserializer(private val c: DeserializationContext) { null } - if (Flags.HAS_CONSTANT.get(flags)) { + if (Flags.OLD_HAS_CONSTANT.get(flags)) { property.setCompileTimeInitializer( c.storageManager.createNullableLazyValue { val container = c.containingDeclaration.asProtoContainer()!! @@ -152,8 +152,8 @@ public class MemberDeserializer(private val c: DeserializationContext) { local.typeDeserializer.type(proto.returnType), Deserialization.modality(Flags.MODALITY.get(proto.flags)), Deserialization.visibility(Flags.VISIBILITY.get(proto.flags)), - Flags.IS_OPERATOR.get(proto.flags), - Flags.IS_INFIX.get(proto.flags) + Flags.OLD_IS_OPERATOR.get(proto.flags), + Flags.OLD_IS_INFIX.get(proto.flags) ) return function } diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/decompiler/stubBuilder/clsStubBuilding.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/decompiler/stubBuilder/clsStubBuilding.kt index ece8cc1813a..4a5de97b9fc 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/decompiler/stubBuilder/clsStubBuilding.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/decompiler/stubBuilder/clsStubBuilding.kt @@ -188,25 +188,25 @@ enum class FlagsToModifiers { CONST { override fun getModifiers(flags: Int): JetModifierKeywordToken? { - return if (Flags.IS_CONST.get(flags)) JetTokens.CONST_KEYWORD else null + return if (Flags.OLD_IS_CONST.get(flags)) JetTokens.CONST_KEYWORD else null } }, LATEINIT { override fun getModifiers(flags: Int): JetModifierKeywordToken? { - return if (Flags.LATE_INIT.get(flags)) JetTokens.LATE_INIT_KEYWORD else null + return if (Flags.OLD_LATE_INIT.get(flags)) JetTokens.LATE_INIT_KEYWORD else null } }, OPERATOR { override fun getModifiers(flags: Int): JetModifierKeywordToken? { - return if (Flags.IS_OPERATOR.get(flags)) JetTokens.OPERATOR_KEYWORD else null + return if (Flags.OLD_IS_OPERATOR.get(flags)) JetTokens.OPERATOR_KEYWORD else null } }, INFIX { override fun getModifiers(flags: Int): JetModifierKeywordToken? { - return if (Flags.IS_INFIX.get(flags)) JetTokens.INFIX_KEYWORD else null + return if (Flags.OLD_IS_INFIX.get(flags)) JetTokens.INFIX_KEYWORD else null } }; diff --git a/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/ProtoCompareGenerated.kt b/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/ProtoCompareGenerated.kt index 2b7e42dfdc8..f6ae431add2 100644 --- a/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/ProtoCompareGenerated.kt +++ b/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/ProtoCompareGenerated.kt @@ -37,10 +37,19 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi open fun checkEquals(old: ProtoBuf.Package, new: ProtoBuf.Package): Boolean { if (!checkEqualsPackageMember(old, new)) return false + if (!checkEqualsPackageConstructor(old, new)) return false + + if (!checkEqualsPackageFunction(old, new)) return false + + if (!checkEqualsPackageProperty(old, new)) return false + return true } public enum class ProtoBufPackageKind { - MEMBER_LIST + MEMBER_LIST, + CONSTRUCTOR_LIST, + FUNCTION_LIST, + PROPERTY_LIST } public fun difference(old: ProtoBuf.Package, new: ProtoBuf.Package): EnumSet { @@ -48,6 +57,12 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi if (!checkEqualsPackageMember(old, new)) result.add(ProtoBufPackageKind.MEMBER_LIST) + if (!checkEqualsPackageConstructor(old, new)) result.add(ProtoBufPackageKind.CONSTRUCTOR_LIST) + + if (!checkEqualsPackageFunction(old, new)) result.add(ProtoBufPackageKind.FUNCTION_LIST) + + if (!checkEqualsPackageProperty(old, new)) result.add(ProtoBufPackageKind.PROPERTY_LIST) + return result } @@ -70,6 +85,12 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi if (!checkEqualsClassNestedClassName(old, new)) return false + if (!checkEqualsClassConstructor(old, new)) return false + + if (!checkEqualsClassFunction(old, new)) return false + + if (!checkEqualsClassProperty(old, new)) return false + if (!checkEqualsClassMember(old, new)) return false if (!checkEqualsClassEnumEntry(old, new)) return false @@ -96,6 +117,9 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi TYPE_PARAMETER_LIST, SUPERTYPE_LIST, NESTED_CLASS_NAME_LIST, + CONSTRUCTOR_LIST, + FUNCTION_LIST, + PROPERTY_LIST, MEMBER_LIST, ENUM_ENTRY_LIST, PRIMARY_CONSTRUCTOR, @@ -124,6 +148,12 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi if (!checkEqualsClassNestedClassName(old, new)) result.add(ProtoBufClassKind.NESTED_CLASS_NAME_LIST) + if (!checkEqualsClassConstructor(old, new)) result.add(ProtoBufClassKind.CONSTRUCTOR_LIST) + + if (!checkEqualsClassFunction(old, new)) result.add(ProtoBufClassKind.FUNCTION_LIST) + + if (!checkEqualsClassProperty(old, new)) result.add(ProtoBufClassKind.PROPERTY_LIST) + if (!checkEqualsClassMember(old, new)) result.add(ProtoBufClassKind.MEMBER_LIST) if (!checkEqualsClassEnumEntry(old, new)) result.add(ProtoBufClassKind.ENUM_ENTRY_LIST) @@ -191,6 +221,74 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi return true } + open fun checkEquals(old: ProtoBuf.Constructor, new: ProtoBuf.Constructor): Boolean { + if (old.hasFlags() != new.hasFlags()) return false + if (old.hasFlags()) { + if (old.flags != new.flags) return false + } + + if (!checkEqualsConstructorValueParameter(old, new)) return false + + return true + } + + open fun checkEquals(old: ProtoBuf.Function, new: ProtoBuf.Function): Boolean { + if (old.hasFlags() != new.hasFlags()) return false + if (old.hasFlags()) { + if (old.flags != new.flags) return false + } + + if (!checkStringEquals(old.name, new.name)) return false + + if (!checkEquals(old.returnType, new.returnType)) return false + + if (!checkEqualsFunctionTypeParameter(old, new)) return false + + if (old.hasReceiverType() != new.hasReceiverType()) return false + if (old.hasReceiverType()) { + if (!checkEquals(old.receiverType, new.receiverType)) return false + } + + if (!checkEqualsFunctionValueParameter(old, new)) return false + + return true + } + + open fun checkEquals(old: ProtoBuf.Property, new: ProtoBuf.Property): Boolean { + if (old.hasFlags() != new.hasFlags()) return false + if (old.hasFlags()) { + if (old.flags != new.flags) return false + } + + if (!checkStringEquals(old.name, new.name)) return false + + if (!checkEquals(old.returnType, new.returnType)) return false + + if (!checkEqualsPropertyTypeParameter(old, new)) return false + + if (old.hasReceiverType() != new.hasReceiverType()) return false + if (old.hasReceiverType()) { + if (!checkEquals(old.receiverType, new.receiverType)) return false + } + + if (old.hasSetterValueParameter() != new.hasSetterValueParameter()) return false + if (old.hasSetterValueParameter()) { + if (!checkEquals(old.setterValueParameter, new.setterValueParameter)) return false + } + + if (old.hasGetterFlags() != new.hasGetterFlags()) return false + if (old.hasGetterFlags()) { + if (old.getterFlags != new.getterFlags) return false + } + + if (old.hasSetterFlags() != new.hasSetterFlags()) return false + if (old.hasSetterFlags()) { + if (old.setterFlags != new.setterFlags) return false + } + + return true + } + open fun checkEquals(old: ProtoBuf.TypeParameter, new: ProtoBuf.TypeParameter): Boolean { if (old.id != new.id) return false @@ -416,6 +514,36 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi return true } + open fun checkEqualsPackageConstructor(old: ProtoBuf.Package, new: ProtoBuf.Package): Boolean { + if (old.constructorCount != new.constructorCount) return false + + for(i in 0..old.constructorCount - 1) { + if (!checkEquals(old.getConstructor(i), new.getConstructor(i))) return false + } + + return true + } + + open fun checkEqualsPackageFunction(old: ProtoBuf.Package, new: ProtoBuf.Package): Boolean { + if (old.functionCount != new.functionCount) return false + + for(i in 0..old.functionCount - 1) { + if (!checkEquals(old.getFunction(i), new.getFunction(i))) return false + } + + return true + } + + open fun checkEqualsPackageProperty(old: ProtoBuf.Package, new: ProtoBuf.Package): Boolean { + if (old.propertyCount != new.propertyCount) return false + + for(i in 0..old.propertyCount - 1) { + if (!checkEquals(old.getProperty(i), new.getProperty(i))) return false + } + + return true + } + open fun checkEqualsClassTypeParameter(old: ProtoBuf.Class, new: ProtoBuf.Class): Boolean { if (old.typeParameterCount != new.typeParameterCount) return false @@ -446,6 +574,36 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi return true } + open fun checkEqualsClassConstructor(old: ProtoBuf.Class, new: ProtoBuf.Class): Boolean { + if (old.constructorCount != new.constructorCount) return false + + for(i in 0..old.constructorCount - 1) { + if (!checkEquals(old.getConstructor(i), new.getConstructor(i))) return false + } + + return true + } + + open fun checkEqualsClassFunction(old: ProtoBuf.Class, new: ProtoBuf.Class): Boolean { + if (old.functionCount != new.functionCount) return false + + for(i in 0..old.functionCount - 1) { + if (!checkEquals(old.getFunction(i), new.getFunction(i))) return false + } + + return true + } + + open fun checkEqualsClassProperty(old: ProtoBuf.Class, new: ProtoBuf.Class): Boolean { + if (old.propertyCount != new.propertyCount) return false + + for(i in 0..old.propertyCount - 1) { + if (!checkEquals(old.getProperty(i), new.getProperty(i))) return false + } + + return true + } + open fun checkEqualsClassMember(old: ProtoBuf.Class, new: ProtoBuf.Class): Boolean { if (old.memberCount != new.memberCount) return false @@ -496,6 +654,46 @@ open class ProtoCompareGenerated(public val oldNameResolver: NameResolver, publi return true } + open fun checkEqualsConstructorValueParameter(old: ProtoBuf.Constructor, new: ProtoBuf.Constructor): Boolean { + if (old.valueParameterCount != new.valueParameterCount) return false + + for(i in 0..old.valueParameterCount - 1) { + if (!checkEquals(old.getValueParameter(i), new.getValueParameter(i))) return false + } + + return true + } + + open fun checkEqualsFunctionTypeParameter(old: ProtoBuf.Function, new: ProtoBuf.Function): Boolean { + if (old.typeParameterCount != new.typeParameterCount) return false + + for(i in 0..old.typeParameterCount - 1) { + if (!checkEquals(old.getTypeParameter(i), new.getTypeParameter(i))) return false + } + + return true + } + + open fun checkEqualsFunctionValueParameter(old: ProtoBuf.Function, new: ProtoBuf.Function): Boolean { + if (old.valueParameterCount != new.valueParameterCount) return false + + for(i in 0..old.valueParameterCount - 1) { + if (!checkEquals(old.getValueParameter(i), new.getValueParameter(i))) return false + } + + return true + } + + open fun checkEqualsPropertyTypeParameter(old: ProtoBuf.Property, new: ProtoBuf.Property): Boolean { + if (old.typeParameterCount != new.typeParameterCount) return false + + for(i in 0..old.typeParameterCount - 1) { + if (!checkEquals(old.getTypeParameter(i), new.getTypeParameter(i))) return false + } + + return true + } + open fun checkEqualsTypeParameterUpperBound(old: ProtoBuf.TypeParameter, new: ProtoBuf.TypeParameter): Boolean { if (old.upperBoundCount != new.upperBoundCount) return false @@ -574,6 +772,18 @@ public fun ProtoBuf.Package.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: hashCode = 31 * hashCode + getMember(i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..constructorCount - 1) { + hashCode = 31 * hashCode + getConstructor(i).hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..functionCount - 1) { + hashCode = 31 * hashCode + getFunction(i).hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..propertyCount - 1) { + hashCode = 31 * hashCode + getProperty(i).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -602,6 +812,18 @@ public fun ProtoBuf.Class.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: ( hashCode = 31 * hashCode + stringIndexes(getNestedClassName(i)) } + for(i in 0..constructorCount - 1) { + hashCode = 31 * hashCode + getConstructor(i).hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..functionCount - 1) { + hashCode = 31 * hashCode + getFunction(i).hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..propertyCount - 1) { + hashCode = 31 * hashCode + getProperty(i).hashCode(stringIndexes, fqNameIndexes) + } + for(i in 0..memberCount - 1) { hashCode = 31 * hashCode + getMember(i).hashCode(stringIndexes, fqNameIndexes) } @@ -671,6 +893,80 @@ public fun ProtoBuf.Callable.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes return hashCode } +public fun ProtoBuf.Constructor.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + var hashCode = 1 + + if (hasFlags()) { + hashCode = 31 * hashCode + flags + } + + for(i in 0..valueParameterCount - 1) { + hashCode = 31 * hashCode + getValueParameter(i).hashCode(stringIndexes, fqNameIndexes) + } + + return hashCode +} + +public fun ProtoBuf.Function.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + var hashCode = 1 + + if (hasFlags()) { + hashCode = 31 * hashCode + flags + } + + hashCode = 31 * hashCode + stringIndexes(name) + + hashCode = 31 * hashCode + returnType.hashCode(stringIndexes, fqNameIndexes) + + for(i in 0..typeParameterCount - 1) { + hashCode = 31 * hashCode + getTypeParameter(i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasReceiverType()) { + hashCode = 31 * hashCode + receiverType.hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..valueParameterCount - 1) { + hashCode = 31 * hashCode + getValueParameter(i).hashCode(stringIndexes, fqNameIndexes) + } + + return hashCode +} + +public fun ProtoBuf.Property.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + var hashCode = 1 + + if (hasFlags()) { + hashCode = 31 * hashCode + flags + } + + hashCode = 31 * hashCode + stringIndexes(name) + + hashCode = 31 * hashCode + returnType.hashCode(stringIndexes, fqNameIndexes) + + for(i in 0..typeParameterCount - 1) { + hashCode = 31 * hashCode + getTypeParameter(i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasReceiverType()) { + hashCode = 31 * hashCode + receiverType.hashCode(stringIndexes, fqNameIndexes) + } + + if (hasSetterValueParameter()) { + hashCode = 31 * hashCode + setterValueParameter.hashCode(stringIndexes, fqNameIndexes) + } + + if (hasGetterFlags()) { + hashCode = 31 * hashCode + getterFlags + } + + if (hasSetterFlags()) { + hashCode = 31 * hashCode + setterFlags + } + + return hashCode +} + public fun ProtoBuf.TypeParameter.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { var hashCode = 1 diff --git a/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/protoDifferenceUtils.kt b/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/protoDifferenceUtils.kt index d123201c3e4..33b4b30916f 100644 --- a/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/protoDifferenceUtils.kt +++ b/jps-plugin/src/org/jetbrains/kotlin/jps/incremental/protoDifferenceUtils.kt @@ -16,7 +16,10 @@ package org.jetbrains.kotlin.jps.incremental +import com.google.protobuf.MessageLite import org.jetbrains.kotlin.descriptors.Visibilities +import org.jetbrains.kotlin.jps.incremental.ProtoCompareGenerated.ProtoBufClassKind +import org.jetbrains.kotlin.jps.incremental.ProtoCompareGenerated.ProtoBufPackageKind import org.jetbrains.kotlin.serialization.Flags import org.jetbrains.kotlin.serialization.ProtoBuf import org.jetbrains.kotlin.serialization.deserialization.Deserialization @@ -52,17 +55,16 @@ private abstract class DifferenceCalculator() { protected fun membersOrNone(names: Collection): DifferenceKind = if (names.isEmpty()) DifferenceKind.NONE else DifferenceKind.MEMBERS(names) - protected fun calcDifferenceForMembers( - oldList: List, - newList: List - ): Collection { + protected fun calcDifferenceForMembers(oldList: List, newList: List): Collection { val result = hashSetOf() - val oldMap = oldList.groupBy { it.hashCode({ compareObject.oldGetIndexOfString(it) }, { compareObject.oldGetIndexOfClassId(it) } )} - val newMap = newList.groupBy { it.hashCode({ compareObject.newGetIndexOfString(it) }, { compareObject.newGetIndexOfClassId(it) } )} + fun List.names(nameResolver: NameResolver): List = + map { it.name(nameResolver) } - fun List.names(nameResolver: NameResolver): List = - map { nameResolver.getString(it.name) } + val oldMap = + oldList.groupBy { it.getHashCode({ compareObject.oldGetIndexOfString(it) }, { compareObject.oldGetIndexOfClassId(it) }) } + val newMap = + newList.groupBy { it.getHashCode({ compareObject.newGetIndexOfString(it) }, { compareObject.newGetIndexOfClassId(it) }) } val hashes = oldMap.keySet() + newMap.keySet() for (hash in hashes) { @@ -81,8 +83,8 @@ private abstract class DifferenceCalculator() { } private fun calcDifferenceForEqualHashes( - oldList: List, - newList: List + oldList: List, + newList: List ): Collection { val result = hashSetOf() val newSet = HashSet(newList) @@ -93,12 +95,12 @@ private abstract class DifferenceCalculator() { newSet.remove(newMember) } else { - result.add(compareObject.oldNameResolver.getString(oldMember.name)) + result.add(oldMember.name(compareObject.oldNameResolver)) } } newSet.forEach { newMember -> - result.add(compareObject.newNameResolver.getString(newMember.name)) + result.add(newMember.name(compareObject.newNameResolver)) } return result @@ -113,8 +115,45 @@ private abstract class DifferenceCalculator() { return HashSetUtil.symmetricDifference(oldNames, newNames) } - protected val ProtoBuf.Callable.isPrivate: Boolean - get() = Visibilities.isPrivate(Deserialization.visibility(Flags.VISIBILITY.get(flags))) + protected val MessageLite.isPrivate: Boolean + get() = Visibilities.isPrivate(Deserialization.visibility( + when (this) { + is ProtoBuf.Callable -> Flags.VISIBILITY.get(flags) + is ProtoBuf.Constructor -> Flags.VISIBILITY.get(flags) + is ProtoBuf.Function -> Flags.VISIBILITY.get(flags) + is ProtoBuf.Property -> Flags.VISIBILITY.get(flags) + else -> error("Unknown message: $this") + })) + + private fun MessageLite.getHashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + return when (this) { + is ProtoBuf.Callable -> hashCode(stringIndexes, fqNameIndexes) + is ProtoBuf.Constructor -> hashCode(stringIndexes, fqNameIndexes) + is ProtoBuf.Function -> hashCode(stringIndexes, fqNameIndexes) + is ProtoBuf.Property -> hashCode(stringIndexes, fqNameIndexes) + else -> error("Unknown message: $this") + } + } + + private fun MessageLite.name(nameResolver: NameResolver): String { + return when (this) { + is ProtoBuf.Callable -> nameResolver.getString(name) + is ProtoBuf.Constructor -> "" + is ProtoBuf.Function -> nameResolver.getString(name) + is ProtoBuf.Property -> nameResolver.getString(name) + else -> error("Unknown message: $this") + } + } + + private fun ProtoCompareGenerated.checkEquals(old: MessageLite, new: MessageLite): Boolean { + return when { + old is ProtoBuf.Callable && new is ProtoBuf.Callable -> checkEquals(old, new) + old is ProtoBuf.Constructor && new is ProtoBuf.Constructor -> checkEquals(old, new) + old is ProtoBuf.Function && new is ProtoBuf.Function -> checkEquals(old, new) + old is ProtoBuf.Property && new is ProtoBuf.Property -> checkEquals(old, new) + else -> error("Unknown message: $this") + } + } } private class DifferenceCalculatorForClass(oldData: ProtoMapValue, newData: ProtoMapValue) : DifferenceCalculator() { @@ -122,11 +161,11 @@ private class DifferenceCalculatorForClass(oldData: ProtoMapValue, newData: Prot private val CONSTRUCTOR = "" private val CLASS_SIGNATURE_ENUMS = EnumSet.of( - ProtoCompareGenerated.ProtoBufClassKind.FLAGS, - ProtoCompareGenerated.ProtoBufClassKind.FQ_NAME, - ProtoCompareGenerated.ProtoBufClassKind.TYPE_PARAMETER_LIST, - ProtoCompareGenerated.ProtoBufClassKind.SUPERTYPE_LIST, - ProtoCompareGenerated.ProtoBufClassKind.CLASS_ANNOTATION_LIST + ProtoBufClassKind.FLAGS, + ProtoBufClassKind.FQ_NAME, + ProtoBufClassKind.TYPE_PARAMETER_LIST, + ProtoBufClassKind.SUPERTYPE_LIST, + ProtoBufClassKind.CLASS_ANNOTATION_LIST ) } @@ -155,34 +194,43 @@ private class DifferenceCalculatorForClass(oldData: ProtoMapValue, newData: Prot fun Int.oldToNames() = names.add(oldNameResolver.getString(this)) fun Int.newToNames() = names.add(newNameResolver.getString(this)) + fun calcDifferenceForNonPrivateMembers(members: (ProtoBuf.Class) -> List): Collection { + val oldMembers = members(oldProto).filterNot { it.isPrivate } + val newMembers = members(newProto).filterNot { it.isPrivate } + return calcDifferenceForMembers(oldMembers, newMembers) + } + for (kind in diff) { when (kind!!) { - ProtoCompareGenerated.ProtoBufClassKind.COMPANION_OBJECT_NAME -> { + ProtoBufClassKind.COMPANION_OBJECT_NAME -> { if (oldProto.hasCompanionObjectName()) oldProto.companionObjectName.oldToNames() if (newProto.hasCompanionObjectName()) newProto.companionObjectName.newToNames() } - ProtoCompareGenerated.ProtoBufClassKind.NESTED_CLASS_NAME_LIST -> + ProtoBufClassKind.NESTED_CLASS_NAME_LIST -> names.addAll(calcDifferenceForNames(oldProto.nestedClassNameList, newProto.nestedClassNameList)) - ProtoCompareGenerated.ProtoBufClassKind.MEMBER_LIST -> { - val oldMembers = oldProto.memberList.filter { !it.isPrivate } - val newMembers = newProto.memberList.filter { !it.isPrivate } - names.addAll(calcDifferenceForMembers(oldMembers, newMembers)) - } - ProtoCompareGenerated.ProtoBufClassKind.ENUM_ENTRY_LIST -> + ProtoBufClassKind.CONSTRUCTOR_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Class::getConstructorList)) + ProtoBufClassKind.FUNCTION_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Class::getFunctionList)) + ProtoBufClassKind.PROPERTY_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Class::getPropertyList)) + ProtoBufClassKind.MEMBER_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Class::getMemberList)) + ProtoBufClassKind.ENUM_ENTRY_LIST -> names.addAll(calcDifferenceForNames(oldProto.enumEntryList, newProto.enumEntryList)) - ProtoCompareGenerated.ProtoBufClassKind.PRIMARY_CONSTRUCTOR -> + ProtoBufClassKind.PRIMARY_CONSTRUCTOR -> if (areNonPrivatePrimaryConstructorsDifferent()) { names.add(CONSTRUCTOR) } - ProtoCompareGenerated.ProtoBufClassKind.SECONDARY_CONSTRUCTOR_LIST -> + ProtoBufClassKind.SECONDARY_CONSTRUCTOR_LIST -> if (areNonPrivateSecondaryConstructorsDifferent()) { names.add(CONSTRUCTOR) } - ProtoCompareGenerated.ProtoBufClassKind.FLAGS, - ProtoCompareGenerated.ProtoBufClassKind.FQ_NAME, - ProtoCompareGenerated.ProtoBufClassKind.TYPE_PARAMETER_LIST, - ProtoCompareGenerated.ProtoBufClassKind.SUPERTYPE_LIST, - ProtoCompareGenerated.ProtoBufClassKind.CLASS_ANNOTATION_LIST -> + ProtoBufClassKind.FLAGS, + ProtoBufClassKind.FQ_NAME, + ProtoBufClassKind.TYPE_PARAMETER_LIST, + ProtoBufClassKind.SUPERTYPE_LIST, + ProtoBufClassKind.CLASS_ANNOTATION_LIST -> throw IllegalArgumentException("Unexpected kind: $kind") else -> throw IllegalArgumentException("Unsupported kind: $kind") @@ -237,14 +285,27 @@ private class DifferenceCalculatorForPackageFacade(oldData: ProtoMapValue, newDa private fun getChangedMembersNames(): Set { val names = hashSetOf() + fun calcDifferenceForNonPrivateMembers(members: (ProtoBuf.Package) -> List): Collection { + val oldMembers = members(oldProto).filterNot { it.isPrivate } + val newMembers = members(newProto).filterNot { it.isPrivate } + return calcDifferenceForMembers(oldMembers, newMembers) + } + for (kind in diff) { when (kind!!) { - ProtoCompareGenerated.ProtoBufPackageKind.MEMBER_LIST -> - names.addAll(calcDifferenceForMembers(oldProto.memberList.filter { !it.isPrivate }, newProto.memberList.filter { !it.isPrivate })) + ProtoBufPackageKind.CONSTRUCTOR_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Package::getConstructorList)) + ProtoBufPackageKind.FUNCTION_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Package::getFunctionList)) + ProtoBufPackageKind.PROPERTY_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Package::getPropertyList)) + ProtoBufPackageKind.MEMBER_LIST -> + names.addAll(calcDifferenceForNonPrivateMembers(ProtoBuf.Package::getMemberList)) else -> throw IllegalArgumentException("Unsupported kind: $kind") } } + return names } }