diff --git a/compiler/ir/serialization.common/src/KotlinIr.proto b/compiler/ir/serialization.common/src/KotlinIr.proto index a5a4be6c9a8..a1554954cc8 100644 --- a/compiler/ir/serialization.common/src/KotlinIr.proto +++ b/compiler/ir/serialization.common/src/KotlinIr.proto @@ -415,6 +415,7 @@ enum IrTypeOperator { NOT_INSTANCEOF = 8; SAM_CONVERSION = 9; IMPLICIT_DYNAMIC_CAST = 10; + REINTERPRET_CAST = 11; } @@ -588,3 +589,136 @@ message IrStatement { IrSyntheticBody synthetic_body = 7; } } + +/* ------- Persistent IR Carriers --------------------------------------------- */ +// Auto-generated by compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/persistentIrGenerator/Main.kt. DO NOT EDIT! +// PIR GENERATOR START +message PirAnonymousInitializerCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + optional int32 body = 5; +} + +message PirClassCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + optional int64 thisReceiver = 5; + repeated int64 typeParameters = 6; + repeated int32 superTypes = 7; + optional int64 flags = 8 [default = 0]; +} + +message PirConstructorCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + required int32 returnTypeField = 5; + optional int64 dispatchReceiverParameter = 6; + optional int64 extensionReceiverParameter = 7; + optional int32 body = 8; + repeated int64 typeParameters = 9; + repeated int64 valueParameters = 10; + optional int64 flags = 11 [default = 0]; +} + +message PirEnumEntryCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + optional int64 correspondingClass = 5; + optional int32 initializerExpression = 6; +} + +message PirErrorDeclarationCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; +} + +message PirFieldCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + required int32 type = 5; + optional int32 initializer = 6; + optional int64 correspondingPropertySymbol = 7; +} + +message PirFunctionCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + required int32 returnTypeField = 5; + optional int64 dispatchReceiverParameter = 6; + optional int64 extensionReceiverParameter = 7; + optional int32 body = 8; + repeated int64 typeParameters = 9; + repeated int64 valueParameters = 10; + optional int64 correspondingPropertySymbol = 11; + repeated int64 overriddenSymbols = 12; + optional int64 flags = 13 [default = 0]; +} + +message PirLocalDelegatedPropertyCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + required int32 type = 5; + optional IrVariable delegate = 6; + optional int64 getter = 7; + optional int64 setter = 8; +} + +message PirPropertyCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + optional int64 backingField = 5; + optional int64 getter = 6; + optional int64 setter = 7; +} + +message PirTypeAliasCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + repeated int64 typeParameters = 5; + required int32 expandedType = 6; +} + +message PirTypeParameterCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + repeated int32 superTypes = 5; +} + +message PirValueParameterCarrier { + required int32 lastModified = 1; + optional int64 parentSymbol = 2; + optional int32 origin = 3; + repeated IrConstructorCall annotation = 4; + optional int32 defaultValue = 5; + required int32 type = 6; + optional int32 varargElementType = 7; +} + +// PIR GENERATOR END + +message PirBodyCarrier { + required int32 lastModified = 1; + optional int64 containerFieldSymbol = 2; +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileSignature.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileSignature.java new file mode 100644 index 00000000000..bfd82260698 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileSignature.java @@ -0,0 +1,425 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature} + */ +public final class FileSignature extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature) + FileSignatureOrBuilder { + // Use FileSignature.newBuilder() to construct. + private FileSignature(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private FileSignature(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final FileSignature defaultInstance; + public static FileSignature getDefaultInstance() { + return defaultInstance; + } + + public FileSignature getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private FileSignature( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + path_ = bs; + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public FileSignature parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new FileSignature(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int PATH_FIELD_NUMBER = 1; + private java.lang.Object path_; + /** + * required string path = 1; + */ + public boolean hasPath() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string path = 1; + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.jetbrains.kotlin.protobuf.ByteString bs = + (org.jetbrains.kotlin.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + path_ = s; + } + return s; + } + } + /** + * required string path = 1; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + org.jetbrains.kotlin.protobuf.ByteString b = + org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (org.jetbrains.kotlin.protobuf.ByteString) ref; + } + } + + private void initFields() { + path_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasPath()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getPathBytes()); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSize(1, getPathBytes()); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.FileSignature prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature) + org.jetbrains.kotlin.backend.common.serialization.proto.FileSignatureOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + path_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature build() { + org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature result = new org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.path_ = path_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature.getDefaultInstance()) return this; + if (other.hasPath()) { + bitField0_ |= 0x00000001; + path_ = other.path_; + + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasPath()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object path_ = ""; + /** + * required string path = 1; + */ + public boolean hasPath() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string path = 1; + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + org.jetbrains.kotlin.protobuf.ByteString bs = + (org.jetbrains.kotlin.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + path_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string path = 1; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + org.jetbrains.kotlin.protobuf.ByteString b = + org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (org.jetbrains.kotlin.protobuf.ByteString) ref; + } + } + /** + * required string path = 1; + */ + public Builder setPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + path_ = value; + + return this; + } + /** + * required string path = 1; + */ + public Builder clearPath() { + bitField0_ = (bitField0_ & ~0x00000001); + path_ = getDefaultInstance().getPath(); + + return this; + } + /** + * required string path = 1; + */ + public Builder setPathBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + path_ = value; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature) + } + + static { + defaultInstance = new FileSignature(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature) +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileSignatureOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileSignatureOrBuilder.java new file mode 100644 index 00000000000..476c5a13dbb --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileSignatureOrBuilder.java @@ -0,0 +1,23 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface FileSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.FileSignature) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required string path = 1; + */ + boolean hasPath(); + /** + * required string path = 1; + */ + java.lang.String getPath(); + /** + * required string path = 1; + */ + org.jetbrains.kotlin.protobuf.ByteString + getPathBytes(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IcDeclarationSignatureOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IcDeclarationSignatureOrBuilder.java new file mode 100644 index 00000000000..88ce4d1df62 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IcDeclarationSignatureOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface IcDeclarationSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.IcDeclarationSignature) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 parent_signature = 1; + */ + boolean hasParentSignature(); + /** + * required int32 parent_signature = 1; + */ + int getParentSignature(); + + /** + * required int32 stage = 2; + */ + boolean hasStage(); + /** + * required int32 stage = 2; + */ + int getStage(); + + /** + * required int32 index = 3; + */ + boolean hasIndex(); + /** + * required int32 index = 3; + */ + int getIndex(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrRawFunctionReference.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrRawFunctionReference.java new file mode 100644 index 00000000000..ebd0cbef05d --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrRawFunctionReference.java @@ -0,0 +1,351 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference} + */ +public final class IrRawFunctionReference extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference) + IrRawFunctionReferenceOrBuilder { + // Use IrRawFunctionReference.newBuilder() to construct. + private IrRawFunctionReference(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private IrRawFunctionReference(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final IrRawFunctionReference defaultInstance; + public static IrRawFunctionReference getDefaultInstance() { + return defaultInstance; + } + + public IrRawFunctionReference getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private IrRawFunctionReference( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + symbol_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public IrRawFunctionReference parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new IrRawFunctionReference(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int SYMBOL_FIELD_NUMBER = 1; + private long symbol_; + /** + * required int64 symbol = 1; + */ + public boolean hasSymbol() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 symbol = 1; + */ + public long getSymbol() { + return symbol_; + } + + private void initFields() { + symbol_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasSymbol()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt64(1, symbol_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(1, symbol_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.IrRawFunctionReference prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference) + org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReferenceOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + symbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference build() { + org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference result = new org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.symbol_ = symbol_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference.getDefaultInstance()) return this; + if (other.hasSymbol()) { + setSymbol(other.getSymbol()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasSymbol()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long symbol_ ; + /** + * required int64 symbol = 1; + */ + public boolean hasSymbol() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 symbol = 1; + */ + public long getSymbol() { + return symbol_; + } + /** + * required int64 symbol = 1; + */ + public Builder setSymbol(long value) { + bitField0_ |= 0x00000001; + symbol_ = value; + + return this; + } + /** + * required int64 symbol = 1; + */ + public Builder clearSymbol() { + bitField0_ = (bitField0_ & ~0x00000001); + symbol_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference) + } + + static { + defaultInstance = new IrRawFunctionReference(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference) +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrRawFunctionReferenceOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrRawFunctionReferenceOrBuilder.java new file mode 100644 index 00000000000..66e8580a474 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrRawFunctionReferenceOrBuilder.java @@ -0,0 +1,18 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface IrRawFunctionReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.IrRawFunctionReference) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int64 symbol = 1; + */ + boolean hasSymbol(); + /** + * required int64 symbol = 1; + */ + long getSymbol(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrReturnableBlock.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrReturnableBlock.java new file mode 100644 index 00000000000..f329a0a6288 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrReturnableBlock.java @@ -0,0 +1,620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock} + */ +public final class IrReturnableBlock extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock) + IrReturnableBlockOrBuilder { + // Use IrReturnableBlock.newBuilder() to construct. + private IrReturnableBlock(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private IrReturnableBlock(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final IrReturnableBlock defaultInstance; + public static IrReturnableBlock getDefaultInstance() { + return defaultInstance; + } + + public IrReturnableBlock getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private IrReturnableBlock( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + statement_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + statement_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement.PARSER, extensionRegistry)); + break; + } + case 16: { + bitField0_ |= 0x00000001; + originName_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000002; + inlineFunctionSymbol_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + statement_ = java.util.Collections.unmodifiableList(statement_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public IrReturnableBlock parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new IrReturnableBlock(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int STATEMENT_FIELD_NUMBER = 1; + private java.util.List statement_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public java.util.List getStatementList() { + return statement_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public java.util.List + getStatementOrBuilderList() { + return statement_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public int getStatementCount() { + return statement_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement getStatement(int index) { + return statement_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrStatementOrBuilder getStatementOrBuilder( + int index) { + return statement_.get(index); + } + + public static final int ORIGIN_NAME_FIELD_NUMBER = 2; + private int originName_; + /** + * optional int32 origin_name = 2; + */ + public boolean hasOriginName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 origin_name = 2; + */ + public int getOriginName() { + return originName_; + } + + public static final int INLINE_FUNCTION_SYMBOL_FIELD_NUMBER = 3; + private long inlineFunctionSymbol_; + /** + * optional int64 inline_function_symbol = 3; + */ + public boolean hasInlineFunctionSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 inline_function_symbol = 3; + */ + public long getInlineFunctionSymbol() { + return inlineFunctionSymbol_; + } + + private void initFields() { + statement_ = java.util.Collections.emptyList(); + originName_ = 0; + inlineFunctionSymbol_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getStatementCount(); i++) { + if (!getStatement(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < statement_.size(); i++) { + output.writeMessage(1, statement_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(2, originName_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(3, inlineFunctionSymbol_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < statement_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(1, statement_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(2, originName_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(3, inlineFunctionSymbol_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.IrReturnableBlock prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock) + org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlockOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + statement_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + originName_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + inlineFunctionSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock build() { + org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock result = new org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + statement_ = java.util.Collections.unmodifiableList(statement_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.statement_ = statement_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + result.originName_ = originName_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.inlineFunctionSymbol_ = inlineFunctionSymbol_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock.getDefaultInstance()) return this; + if (!other.statement_.isEmpty()) { + if (statement_.isEmpty()) { + statement_ = other.statement_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatementIsMutable(); + statement_.addAll(other.statement_); + } + + } + if (other.hasOriginName()) { + setOriginName(other.getOriginName()); + } + if (other.hasInlineFunctionSymbol()) { + setInlineFunctionSymbol(other.getInlineFunctionSymbol()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getStatementCount(); i++) { + if (!getStatement(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List statement_ = + java.util.Collections.emptyList(); + private void ensureStatementIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + statement_ = new java.util.ArrayList(statement_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public java.util.List getStatementList() { + return java.util.Collections.unmodifiableList(statement_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public int getStatementCount() { + return statement_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement getStatement(int index) { + return statement_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder setStatement( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatementIsMutable(); + statement_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder setStatement( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement.Builder builderForValue) { + ensureStatementIsMutable(); + statement_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder addStatement(org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatementIsMutable(); + statement_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder addStatement( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatementIsMutable(); + statement_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder addStatement( + org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement.Builder builderForValue) { + ensureStatementIsMutable(); + statement_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder addStatement( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement.Builder builderForValue) { + ensureStatementIsMutable(); + statement_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder addAllStatement( + java.lang.Iterable values) { + ensureStatementIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, statement_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder clearStatement() { + statement_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + public Builder removeStatement(int index) { + ensureStatementIsMutable(); + statement_.remove(index); + + return this; + } + + private int originName_ ; + /** + * optional int32 origin_name = 2; + */ + public boolean hasOriginName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 origin_name = 2; + */ + public int getOriginName() { + return originName_; + } + /** + * optional int32 origin_name = 2; + */ + public Builder setOriginName(int value) { + bitField0_ |= 0x00000002; + originName_ = value; + + return this; + } + /** + * optional int32 origin_name = 2; + */ + public Builder clearOriginName() { + bitField0_ = (bitField0_ & ~0x00000002); + originName_ = 0; + + return this; + } + + private long inlineFunctionSymbol_ ; + /** + * optional int64 inline_function_symbol = 3; + */ + public boolean hasInlineFunctionSymbol() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int64 inline_function_symbol = 3; + */ + public long getInlineFunctionSymbol() { + return inlineFunctionSymbol_; + } + /** + * optional int64 inline_function_symbol = 3; + */ + public Builder setInlineFunctionSymbol(long value) { + bitField0_ |= 0x00000004; + inlineFunctionSymbol_ = value; + + return this; + } + /** + * optional int64 inline_function_symbol = 3; + */ + public Builder clearInlineFunctionSymbol() { + bitField0_ = (bitField0_ & ~0x00000004); + inlineFunctionSymbol_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock) + } + + static { + defaultInstance = new IrReturnableBlock(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock) +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrReturnableBlockOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrReturnableBlockOrBuilder.java new file mode 100644 index 00000000000..d2ffeb1abe6 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrReturnableBlockOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface IrReturnableBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.IrReturnableBlock) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + java.util.List + getStatementList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement getStatement(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrStatement statement = 1; + */ + int getStatementCount(); + + /** + * optional int32 origin_name = 2; + */ + boolean hasOriginName(); + /** + * optional int32 origin_name = 2; + */ + int getOriginName(); + + /** + * optional int64 inline_function_symbol = 3; + */ + boolean hasInlineFunctionSymbol(); + /** + * optional int64 inline_function_symbol = 3; + */ + long getInlineFunctionSymbol(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrTypeOperator.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrTypeOperator.java index b9df203b165..0ebcb5d6339 100644 --- a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrTypeOperator.java +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrTypeOperator.java @@ -48,6 +48,10 @@ public enum IrTypeOperator * IMPLICIT_DYNAMIC_CAST = 10; */ IMPLICIT_DYNAMIC_CAST(9, 10), + /** + * REINTERPRET_CAST = 11; + */ + REINTERPRET_CAST(10, 11), ; /** @@ -90,6 +94,10 @@ public enum IrTypeOperator * IMPLICIT_DYNAMIC_CAST = 10; */ public static final int IMPLICIT_DYNAMIC_CAST_VALUE = 10; + /** + * REINTERPRET_CAST = 11; + */ + public static final int REINTERPRET_CAST_VALUE = 11; public final int getNumber() { return value; } @@ -106,6 +114,7 @@ public enum IrTypeOperator case 8: return NOT_INSTANCEOF; case 9: return SAM_CONVERSION; case 10: return IMPLICIT_DYNAMIC_CAST; + case 11: return REINTERPRET_CAST; default: return null; } } diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/LoweredIdSignature.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/LoweredIdSignature.java new file mode 100644 index 00000000000..63c0399ab01 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/LoweredIdSignature.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature} + */ +public final class LoweredIdSignature extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature) + LoweredIdSignatureOrBuilder { + // Use LoweredIdSignature.newBuilder() to construct. + private LoweredIdSignature(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LoweredIdSignature(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final LoweredIdSignature defaultInstance; + public static LoweredIdSignature getDefaultInstance() { + return defaultInstance; + } + + public LoweredIdSignature getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private LoweredIdSignature( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + parentSignature_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + stage_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + index_ = input.readInt32(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public LoweredIdSignature parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new LoweredIdSignature(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int PARENT_SIGNATURE_FIELD_NUMBER = 1; + private int parentSignature_; + /** + * required int32 parent_signature = 1; + */ + public boolean hasParentSignature() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 parent_signature = 1; + */ + public int getParentSignature() { + return parentSignature_; + } + + public static final int STAGE_FIELD_NUMBER = 2; + private int stage_; + /** + * required int32 stage = 2; + */ + public boolean hasStage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 stage = 2; + */ + public int getStage() { + return stage_; + } + + public static final int INDEX_FIELD_NUMBER = 3; + private int index_; + /** + * required int32 index = 3; + */ + public boolean hasIndex() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required int32 index = 3; + */ + public int getIndex() { + return index_; + } + + private void initFields() { + parentSignature_ = 0; + stage_ = 0; + index_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasParentSignature()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStage()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIndex()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, parentSignature_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, stage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, index_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, parentSignature_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(2, stage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, index_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.LoweredIdSignature prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature) + org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignatureOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + parentSignature_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + stage_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + index_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature build() { + org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature result = new org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.parentSignature_ = parentSignature_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.stage_ = stage_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.index_ = index_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature.getDefaultInstance()) return this; + if (other.hasParentSignature()) { + setParentSignature(other.getParentSignature()); + } + if (other.hasStage()) { + setStage(other.getStage()); + } + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasParentSignature()) { + + return false; + } + if (!hasStage()) { + + return false; + } + if (!hasIndex()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int parentSignature_ ; + /** + * required int32 parent_signature = 1; + */ + public boolean hasParentSignature() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 parent_signature = 1; + */ + public int getParentSignature() { + return parentSignature_; + } + /** + * required int32 parent_signature = 1; + */ + public Builder setParentSignature(int value) { + bitField0_ |= 0x00000001; + parentSignature_ = value; + + return this; + } + /** + * required int32 parent_signature = 1; + */ + public Builder clearParentSignature() { + bitField0_ = (bitField0_ & ~0x00000001); + parentSignature_ = 0; + + return this; + } + + private int stage_ ; + /** + * required int32 stage = 2; + */ + public boolean hasStage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required int32 stage = 2; + */ + public int getStage() { + return stage_; + } + /** + * required int32 stage = 2; + */ + public Builder setStage(int value) { + bitField0_ |= 0x00000002; + stage_ = value; + + return this; + } + /** + * required int32 stage = 2; + */ + public Builder clearStage() { + bitField0_ = (bitField0_ & ~0x00000002); + stage_ = 0; + + return this; + } + + private int index_ ; + /** + * required int32 index = 3; + */ + public boolean hasIndex() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * required int32 index = 3; + */ + public int getIndex() { + return index_; + } + /** + * required int32 index = 3; + */ + public Builder setIndex(int value) { + bitField0_ |= 0x00000004; + index_ = value; + + return this; + } + /** + * required int32 index = 3; + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + index_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature) + } + + static { + defaultInstance = new LoweredIdSignature(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature) +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/LoweredIdSignatureOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/LoweredIdSignatureOrBuilder.java new file mode 100644 index 00000000000..360eb92b65a --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/LoweredIdSignatureOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface LoweredIdSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.LoweredIdSignature) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 parent_signature = 1; + */ + boolean hasParentSignature(); + /** + * required int32 parent_signature = 1; + */ + int getParentSignature(); + + /** + * required int32 stage = 2; + */ + boolean hasStage(); + /** + * required int32 stage = 2; + */ + int getStage(); + + /** + * required int32 index = 3; + */ + boolean hasIndex(); + /** + * required int32 index = 3; + */ + int getIndex(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirAnonymousInitializerCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirAnonymousInitializerCarrier.java new file mode 100644 index 00000000000..bc7bfea4881 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirAnonymousInitializerCarrier.java @@ -0,0 +1,776 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier} + * + *
+ * Auto-generated by compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/persistentIrGenerator/Main.kt. DO NOT EDIT!
+ * PIR GENERATOR START
+ * 
+ */ +public final class PirAnonymousInitializerCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier) + PirAnonymousInitializerCarrierOrBuilder { + // Use PirAnonymousInitializerCarrier.newBuilder() to construct. + private PirAnonymousInitializerCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirAnonymousInitializerCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirAnonymousInitializerCarrier defaultInstance; + public static PirAnonymousInitializerCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirAnonymousInitializerCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirAnonymousInitializerCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + body_ = input.readInt32(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirAnonymousInitializerCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirAnonymousInitializerCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int BODY_FIELD_NUMBER = 5; + private int body_; + /** + * optional int32 body = 5; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 body = 5; + */ + public int getBody() { + return body_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + body_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(5, body_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, body_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirAnonymousInitializerCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier} + * + *
+   * Auto-generated by compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/persistentIrGenerator/Main.kt. DO NOT EDIT!
+   * PIR GENERATOR START
+   * 
+ */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + body_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.body_ = body_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasBody()) { + setBody(other.getBody()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private int body_ ; + /** + * optional int32 body = 5; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 body = 5; + */ + public int getBody() { + return body_; + } + /** + * optional int32 body = 5; + */ + public Builder setBody(int value) { + bitField0_ |= 0x00000010; + body_ = value; + + return this; + } + /** + * optional int32 body = 5; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000010); + body_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier) + } + + static { + defaultInstance = new PirAnonymousInitializerCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirAnonymousInitializerCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirAnonymousInitializerCarrierOrBuilder.java new file mode 100644 index 00000000000..fb39a593408 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirAnonymousInitializerCarrierOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirAnonymousInitializerCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirAnonymousInitializerCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * optional int32 body = 5; + */ + boolean hasBody(); + /** + * optional int32 body = 5; + */ + int getBody(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirBodyCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirBodyCarrier.java new file mode 100644 index 00000000000..848c16308a4 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirBodyCarrier.java @@ -0,0 +1,420 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier} + */ +public final class PirBodyCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier) + PirBodyCarrierOrBuilder { + // Use PirBodyCarrier.newBuilder() to construct. + private PirBodyCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirBodyCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirBodyCarrier defaultInstance; + public static PirBodyCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirBodyCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirBodyCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + containerFieldSymbol_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirBodyCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirBodyCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int CONTAINERFIELDSYMBOL_FIELD_NUMBER = 2; + private long containerFieldSymbol_; + /** + * optional int64 containerFieldSymbol = 2; + */ + public boolean hasContainerFieldSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 containerFieldSymbol = 2; + */ + public long getContainerFieldSymbol() { + return containerFieldSymbol_; + } + + private void initFields() { + lastModified_ = 0; + containerFieldSymbol_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, containerFieldSymbol_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, containerFieldSymbol_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirBodyCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + containerFieldSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.containerFieldSymbol_ = containerFieldSymbol_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasContainerFieldSymbol()) { + setContainerFieldSymbol(other.getContainerFieldSymbol()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long containerFieldSymbol_ ; + /** + * optional int64 containerFieldSymbol = 2; + */ + public boolean hasContainerFieldSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 containerFieldSymbol = 2; + */ + public long getContainerFieldSymbol() { + return containerFieldSymbol_; + } + /** + * optional int64 containerFieldSymbol = 2; + */ + public Builder setContainerFieldSymbol(long value) { + bitField0_ |= 0x00000002; + containerFieldSymbol_ = value; + + return this; + } + /** + * optional int64 containerFieldSymbol = 2; + */ + public Builder clearContainerFieldSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + containerFieldSymbol_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier) + } + + static { + defaultInstance = new PirBodyCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirBodyCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirBodyCarrierOrBuilder.java new file mode 100644 index 00000000000..1074bd3b087 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirBodyCarrierOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirBodyCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirBodyCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 containerFieldSymbol = 2; + */ + boolean hasContainerFieldSymbol(); + /** + * optional int64 containerFieldSymbol = 2; + */ + long getContainerFieldSymbol(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirClassCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirClassCarrier.java new file mode 100644 index 00000000000..2bb25e11731 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirClassCarrier.java @@ -0,0 +1,1119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier} + */ +public final class PirClassCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier) + PirClassCarrierOrBuilder { + // Use PirClassCarrier.newBuilder() to construct. + private PirClassCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirClassCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirClassCarrier defaultInstance; + public static PirClassCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirClassCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirClassCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + thisReceiver_ = input.readInt64(); + break; + } + case 48: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + typeParameters_.add(input.readInt64()); + break; + } + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + while (input.getBytesUntilLimit() > 0) { + typeParameters_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 56: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + superTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + superTypes_.add(input.readInt32()); + break; + } + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { + superTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + while (input.getBytesUntilLimit() > 0) { + superTypes_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + case 64: { + bitField0_ |= 0x00000010; + flags_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + superTypes_ = java.util.Collections.unmodifiableList(superTypes_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirClassCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirClassCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int THISRECEIVER_FIELD_NUMBER = 5; + private long thisReceiver_; + /** + * optional int64 thisReceiver = 5; + */ + public boolean hasThisReceiver() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int64 thisReceiver = 5; + */ + public long getThisReceiver() { + return thisReceiver_; + } + + public static final int TYPEPARAMETERS_FIELD_NUMBER = 6; + private java.util.List typeParameters_; + /** + * repeated int64 typeParameters = 6; + */ + public java.util.List + getTypeParametersList() { + return typeParameters_; + } + /** + * repeated int64 typeParameters = 6; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 6; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + + public static final int SUPERTYPES_FIELD_NUMBER = 7; + private java.util.List superTypes_; + /** + * repeated int32 superTypes = 7; + */ + public java.util.List + getSuperTypesList() { + return superTypes_; + } + /** + * repeated int32 superTypes = 7; + */ + public int getSuperTypesCount() { + return superTypes_.size(); + } + /** + * repeated int32 superTypes = 7; + */ + public int getSuperTypes(int index) { + return superTypes_.get(index); + } + + public static final int FLAGS_FIELD_NUMBER = 8; + private long flags_; + /** + * optional int64 flags = 8 [default = 0]; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 flags = 8 [default = 0]; + */ + public long getFlags() { + return flags_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + thisReceiver_ = 0L; + typeParameters_ = java.util.Collections.emptyList(); + superTypes_ = java.util.Collections.emptyList(); + flags_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt64(5, thisReceiver_); + } + for (int i = 0; i < typeParameters_.size(); i++) { + output.writeInt64(6, typeParameters_.get(i)); + } + for (int i = 0; i < superTypes_.size(); i++) { + output.writeInt32(7, superTypes_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt64(8, flags_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(5, thisReceiver_); + } + { + int dataSize = 0; + for (int i = 0; i < typeParameters_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(typeParameters_.get(i)); + } + size += dataSize; + size += 1 * getTypeParametersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < superTypes_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32SizeNoTag(superTypes_.get(i)); + } + size += dataSize; + size += 1 * getSuperTypesList().size(); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(8, flags_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirClassCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + thisReceiver_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + superTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + flags_ = 0L; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.thisReceiver_ = thisReceiver_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.typeParameters_ = typeParameters_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + superTypes_ = java.util.Collections.unmodifiableList(superTypes_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.superTypes_ = superTypes_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000010; + } + result.flags_ = flags_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasThisReceiver()) { + setThisReceiver(other.getThisReceiver()); + } + if (!other.typeParameters_.isEmpty()) { + if (typeParameters_.isEmpty()) { + typeParameters_ = other.typeParameters_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTypeParametersIsMutable(); + typeParameters_.addAll(other.typeParameters_); + } + + } + if (!other.superTypes_.isEmpty()) { + if (superTypes_.isEmpty()) { + superTypes_ = other.superTypes_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSuperTypesIsMutable(); + superTypes_.addAll(other.superTypes_); + } + + } + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private long thisReceiver_ ; + /** + * optional int64 thisReceiver = 5; + */ + public boolean hasThisReceiver() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 thisReceiver = 5; + */ + public long getThisReceiver() { + return thisReceiver_; + } + /** + * optional int64 thisReceiver = 5; + */ + public Builder setThisReceiver(long value) { + bitField0_ |= 0x00000010; + thisReceiver_ = value; + + return this; + } + /** + * optional int64 thisReceiver = 5; + */ + public Builder clearThisReceiver() { + bitField0_ = (bitField0_ & ~0x00000010); + thisReceiver_ = 0L; + + return this; + } + + private java.util.List typeParameters_ = java.util.Collections.emptyList(); + private void ensureTypeParametersIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + typeParameters_ = new java.util.ArrayList(typeParameters_); + bitField0_ |= 0x00000020; + } + } + /** + * repeated int64 typeParameters = 6; + */ + public java.util.List + getTypeParametersList() { + return java.util.Collections.unmodifiableList(typeParameters_); + } + /** + * repeated int64 typeParameters = 6; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 6; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + /** + * repeated int64 typeParameters = 6; + */ + public Builder setTypeParameters( + int index, long value) { + ensureTypeParametersIsMutable(); + typeParameters_.set(index, value); + + return this; + } + /** + * repeated int64 typeParameters = 6; + */ + public Builder addTypeParameters(long value) { + ensureTypeParametersIsMutable(); + typeParameters_.add(value); + + return this; + } + /** + * repeated int64 typeParameters = 6; + */ + public Builder addAllTypeParameters( + java.lang.Iterable values) { + ensureTypeParametersIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, typeParameters_); + + return this; + } + /** + * repeated int64 typeParameters = 6; + */ + public Builder clearTypeParameters() { + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + + return this; + } + + private java.util.List superTypes_ = java.util.Collections.emptyList(); + private void ensureSuperTypesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + superTypes_ = new java.util.ArrayList(superTypes_); + bitField0_ |= 0x00000040; + } + } + /** + * repeated int32 superTypes = 7; + */ + public java.util.List + getSuperTypesList() { + return java.util.Collections.unmodifiableList(superTypes_); + } + /** + * repeated int32 superTypes = 7; + */ + public int getSuperTypesCount() { + return superTypes_.size(); + } + /** + * repeated int32 superTypes = 7; + */ + public int getSuperTypes(int index) { + return superTypes_.get(index); + } + /** + * repeated int32 superTypes = 7; + */ + public Builder setSuperTypes( + int index, int value) { + ensureSuperTypesIsMutable(); + superTypes_.set(index, value); + + return this; + } + /** + * repeated int32 superTypes = 7; + */ + public Builder addSuperTypes(int value) { + ensureSuperTypesIsMutable(); + superTypes_.add(value); + + return this; + } + /** + * repeated int32 superTypes = 7; + */ + public Builder addAllSuperTypes( + java.lang.Iterable values) { + ensureSuperTypesIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, superTypes_); + + return this; + } + /** + * repeated int32 superTypes = 7; + */ + public Builder clearSuperTypes() { + superTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + + return this; + } + + private long flags_ ; + /** + * optional int64 flags = 8 [default = 0]; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int64 flags = 8 [default = 0]; + */ + public long getFlags() { + return flags_; + } + /** + * optional int64 flags = 8 [default = 0]; + */ + public Builder setFlags(long value) { + bitField0_ |= 0x00000080; + flags_ = value; + + return this; + } + /** + * optional int64 flags = 8 [default = 0]; + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000080); + flags_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier) + } + + static { + defaultInstance = new PirClassCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirClassCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirClassCarrierOrBuilder.java new file mode 100644 index 00000000000..8f260f7465d --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirClassCarrierOrBuilder.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirClassCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirClassCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * optional int64 thisReceiver = 5; + */ + boolean hasThisReceiver(); + /** + * optional int64 thisReceiver = 5; + */ + long getThisReceiver(); + + /** + * repeated int64 typeParameters = 6; + */ + java.util.List getTypeParametersList(); + /** + * repeated int64 typeParameters = 6; + */ + int getTypeParametersCount(); + /** + * repeated int64 typeParameters = 6; + */ + long getTypeParameters(int index); + + /** + * repeated int32 superTypes = 7; + */ + java.util.List getSuperTypesList(); + /** + * repeated int32 superTypes = 7; + */ + int getSuperTypesCount(); + /** + * repeated int32 superTypes = 7; + */ + int getSuperTypes(int index); + + /** + * optional int64 flags = 8 [default = 0]; + */ + boolean hasFlags(); + /** + * optional int64 flags = 8 [default = 0]; + */ + long getFlags(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirConstructorCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirConstructorCarrier.java new file mode 100644 index 00000000000..cf02fae92ab --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirConstructorCarrier.java @@ -0,0 +1,1334 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier} + */ +public final class PirConstructorCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier) + PirConstructorCarrierOrBuilder { + // Use PirConstructorCarrier.newBuilder() to construct. + private PirConstructorCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirConstructorCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirConstructorCarrier defaultInstance; + public static PirConstructorCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirConstructorCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirConstructorCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + returnTypeField_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + dispatchReceiverParameter_ = input.readInt64(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + extensionReceiverParameter_ = input.readInt64(); + break; + } + case 64: { + bitField0_ |= 0x00000040; + body_ = input.readInt32(); + break; + } + case 72: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + typeParameters_.add(input.readInt64()); + break; + } + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + while (input.getBytesUntilLimit() > 0) { + typeParameters_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 80: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + valueParameters_.add(input.readInt64()); + break; + } + case 82: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { + valueParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + while (input.getBytesUntilLimit() > 0) { + valueParameters_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 88: { + bitField0_ |= 0x00000080; + flags_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = java.util.Collections.unmodifiableList(valueParameters_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirConstructorCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirConstructorCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int RETURNTYPEFIELD_FIELD_NUMBER = 5; + private int returnTypeField_; + /** + * required int32 returnTypeField = 5; + */ + public boolean hasReturnTypeField() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * required int32 returnTypeField = 5; + */ + public int getReturnTypeField() { + return returnTypeField_; + } + + public static final int DISPATCHRECEIVERPARAMETER_FIELD_NUMBER = 6; + private long dispatchReceiverParameter_; + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public boolean hasDispatchReceiverParameter() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public long getDispatchReceiverParameter() { + return dispatchReceiverParameter_; + } + + public static final int EXTENSIONRECEIVERPARAMETER_FIELD_NUMBER = 7; + private long extensionReceiverParameter_; + /** + * optional int64 extensionReceiverParameter = 7; + */ + public boolean hasExtensionReceiverParameter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public long getExtensionReceiverParameter() { + return extensionReceiverParameter_; + } + + public static final int BODY_FIELD_NUMBER = 8; + private int body_; + /** + * optional int32 body = 8; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 body = 8; + */ + public int getBody() { + return body_; + } + + public static final int TYPEPARAMETERS_FIELD_NUMBER = 9; + private java.util.List typeParameters_; + /** + * repeated int64 typeParameters = 9; + */ + public java.util.List + getTypeParametersList() { + return typeParameters_; + } + /** + * repeated int64 typeParameters = 9; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 9; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + + public static final int VALUEPARAMETERS_FIELD_NUMBER = 10; + private java.util.List valueParameters_; + /** + * repeated int64 valueParameters = 10; + */ + public java.util.List + getValueParametersList() { + return valueParameters_; + } + /** + * repeated int64 valueParameters = 10; + */ + public int getValueParametersCount() { + return valueParameters_.size(); + } + /** + * repeated int64 valueParameters = 10; + */ + public long getValueParameters(int index) { + return valueParameters_.get(index); + } + + public static final int FLAGS_FIELD_NUMBER = 11; + private long flags_; + /** + * optional int64 flags = 11 [default = 0]; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int64 flags = 11 [default = 0]; + */ + public long getFlags() { + return flags_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + returnTypeField_ = 0; + dispatchReceiverParameter_ = 0L; + extensionReceiverParameter_ = 0L; + body_ = 0; + typeParameters_ = java.util.Collections.emptyList(); + valueParameters_ = java.util.Collections.emptyList(); + flags_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReturnTypeField()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(5, returnTypeField_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt64(6, dispatchReceiverParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(7, extensionReceiverParameter_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(8, body_); + } + for (int i = 0; i < typeParameters_.size(); i++) { + output.writeInt64(9, typeParameters_.get(i)); + } + for (int i = 0; i < valueParameters_.size(); i++) { + output.writeInt64(10, valueParameters_.get(i)); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt64(11, flags_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, returnTypeField_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(6, dispatchReceiverParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(7, extensionReceiverParameter_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(8, body_); + } + { + int dataSize = 0; + for (int i = 0; i < typeParameters_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(typeParameters_.get(i)); + } + size += dataSize; + size += 1 * getTypeParametersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < valueParameters_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(valueParameters_.get(i)); + } + size += dataSize; + size += 1 * getValueParametersList().size(); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(11, flags_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirConstructorCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + returnTypeField_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + dispatchReceiverParameter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); + extensionReceiverParameter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + body_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + valueParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + flags_ = 0L; + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.returnTypeField_ = returnTypeField_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.dispatchReceiverParameter_ = dispatchReceiverParameter_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.extensionReceiverParameter_ = extensionReceiverParameter_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.body_ = body_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.typeParameters_ = typeParameters_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = java.util.Collections.unmodifiableList(valueParameters_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.valueParameters_ = valueParameters_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000080; + } + result.flags_ = flags_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasReturnTypeField()) { + setReturnTypeField(other.getReturnTypeField()); + } + if (other.hasDispatchReceiverParameter()) { + setDispatchReceiverParameter(other.getDispatchReceiverParameter()); + } + if (other.hasExtensionReceiverParameter()) { + setExtensionReceiverParameter(other.getExtensionReceiverParameter()); + } + if (other.hasBody()) { + setBody(other.getBody()); + } + if (!other.typeParameters_.isEmpty()) { + if (typeParameters_.isEmpty()) { + typeParameters_ = other.typeParameters_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureTypeParametersIsMutable(); + typeParameters_.addAll(other.typeParameters_); + } + + } + if (!other.valueParameters_.isEmpty()) { + if (valueParameters_.isEmpty()) { + valueParameters_ = other.valueParameters_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureValueParametersIsMutable(); + valueParameters_.addAll(other.valueParameters_); + } + + } + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + if (!hasReturnTypeField()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private int returnTypeField_ ; + /** + * required int32 returnTypeField = 5; + */ + public boolean hasReturnTypeField() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * required int32 returnTypeField = 5; + */ + public int getReturnTypeField() { + return returnTypeField_; + } + /** + * required int32 returnTypeField = 5; + */ + public Builder setReturnTypeField(int value) { + bitField0_ |= 0x00000010; + returnTypeField_ = value; + + return this; + } + /** + * required int32 returnTypeField = 5; + */ + public Builder clearReturnTypeField() { + bitField0_ = (bitField0_ & ~0x00000010); + returnTypeField_ = 0; + + return this; + } + + private long dispatchReceiverParameter_ ; + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public boolean hasDispatchReceiverParameter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public long getDispatchReceiverParameter() { + return dispatchReceiverParameter_; + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public Builder setDispatchReceiverParameter(long value) { + bitField0_ |= 0x00000020; + dispatchReceiverParameter_ = value; + + return this; + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public Builder clearDispatchReceiverParameter() { + bitField0_ = (bitField0_ & ~0x00000020); + dispatchReceiverParameter_ = 0L; + + return this; + } + + private long extensionReceiverParameter_ ; + /** + * optional int64 extensionReceiverParameter = 7; + */ + public boolean hasExtensionReceiverParameter() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public long getExtensionReceiverParameter() { + return extensionReceiverParameter_; + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public Builder setExtensionReceiverParameter(long value) { + bitField0_ |= 0x00000040; + extensionReceiverParameter_ = value; + + return this; + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public Builder clearExtensionReceiverParameter() { + bitField0_ = (bitField0_ & ~0x00000040); + extensionReceiverParameter_ = 0L; + + return this; + } + + private int body_ ; + /** + * optional int32 body = 8; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 body = 8; + */ + public int getBody() { + return body_; + } + /** + * optional int32 body = 8; + */ + public Builder setBody(int value) { + bitField0_ |= 0x00000080; + body_ = value; + + return this; + } + /** + * optional int32 body = 8; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000080); + body_ = 0; + + return this; + } + + private java.util.List typeParameters_ = java.util.Collections.emptyList(); + private void ensureTypeParametersIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = new java.util.ArrayList(typeParameters_); + bitField0_ |= 0x00000100; + } + } + /** + * repeated int64 typeParameters = 9; + */ + public java.util.List + getTypeParametersList() { + return java.util.Collections.unmodifiableList(typeParameters_); + } + /** + * repeated int64 typeParameters = 9; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 9; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder setTypeParameters( + int index, long value) { + ensureTypeParametersIsMutable(); + typeParameters_.set(index, value); + + return this; + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder addTypeParameters(long value) { + ensureTypeParametersIsMutable(); + typeParameters_.add(value); + + return this; + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder addAllTypeParameters( + java.lang.Iterable values) { + ensureTypeParametersIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, typeParameters_); + + return this; + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder clearTypeParameters() { + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + + return this; + } + + private java.util.List valueParameters_ = java.util.Collections.emptyList(); + private void ensureValueParametersIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = new java.util.ArrayList(valueParameters_); + bitField0_ |= 0x00000200; + } + } + /** + * repeated int64 valueParameters = 10; + */ + public java.util.List + getValueParametersList() { + return java.util.Collections.unmodifiableList(valueParameters_); + } + /** + * repeated int64 valueParameters = 10; + */ + public int getValueParametersCount() { + return valueParameters_.size(); + } + /** + * repeated int64 valueParameters = 10; + */ + public long getValueParameters(int index) { + return valueParameters_.get(index); + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder setValueParameters( + int index, long value) { + ensureValueParametersIsMutable(); + valueParameters_.set(index, value); + + return this; + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder addValueParameters(long value) { + ensureValueParametersIsMutable(); + valueParameters_.add(value); + + return this; + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder addAllValueParameters( + java.lang.Iterable values) { + ensureValueParametersIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, valueParameters_); + + return this; + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder clearValueParameters() { + valueParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + + return this; + } + + private long flags_ ; + /** + * optional int64 flags = 11 [default = 0]; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int64 flags = 11 [default = 0]; + */ + public long getFlags() { + return flags_; + } + /** + * optional int64 flags = 11 [default = 0]; + */ + public Builder setFlags(long value) { + bitField0_ |= 0x00000400; + flags_ = value; + + return this; + } + /** + * optional int64 flags = 11 [default = 0]; + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000400); + flags_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier) + } + + static { + defaultInstance = new PirConstructorCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirConstructorCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirConstructorCarrierOrBuilder.java new file mode 100644 index 00000000000..ef660e5702d --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirConstructorCarrierOrBuilder.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirConstructorCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirConstructorCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * required int32 returnTypeField = 5; + */ + boolean hasReturnTypeField(); + /** + * required int32 returnTypeField = 5; + */ + int getReturnTypeField(); + + /** + * optional int64 dispatchReceiverParameter = 6; + */ + boolean hasDispatchReceiverParameter(); + /** + * optional int64 dispatchReceiverParameter = 6; + */ + long getDispatchReceiverParameter(); + + /** + * optional int64 extensionReceiverParameter = 7; + */ + boolean hasExtensionReceiverParameter(); + /** + * optional int64 extensionReceiverParameter = 7; + */ + long getExtensionReceiverParameter(); + + /** + * optional int32 body = 8; + */ + boolean hasBody(); + /** + * optional int32 body = 8; + */ + int getBody(); + + /** + * repeated int64 typeParameters = 9; + */ + java.util.List getTypeParametersList(); + /** + * repeated int64 typeParameters = 9; + */ + int getTypeParametersCount(); + /** + * repeated int64 typeParameters = 9; + */ + long getTypeParameters(int index); + + /** + * repeated int64 valueParameters = 10; + */ + java.util.List getValueParametersList(); + /** + * repeated int64 valueParameters = 10; + */ + int getValueParametersCount(); + /** + * repeated int64 valueParameters = 10; + */ + long getValueParameters(int index); + + /** + * optional int64 flags = 11 [default = 0]; + */ + boolean hasFlags(); + /** + * optional int64 flags = 11 [default = 0]; + */ + long getFlags(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirEnumEntryCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirEnumEntryCarrier.java new file mode 100644 index 00000000000..b23d82de0fa --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirEnumEntryCarrier.java @@ -0,0 +1,835 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier} + */ +public final class PirEnumEntryCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier) + PirEnumEntryCarrierOrBuilder { + // Use PirEnumEntryCarrier.newBuilder() to construct. + private PirEnumEntryCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirEnumEntryCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirEnumEntryCarrier defaultInstance; + public static PirEnumEntryCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirEnumEntryCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirEnumEntryCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + correspondingClass_ = input.readInt64(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + initializerExpression_ = input.readInt32(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirEnumEntryCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirEnumEntryCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int CORRESPONDINGCLASS_FIELD_NUMBER = 5; + private long correspondingClass_; + /** + * optional int64 correspondingClass = 5; + */ + public boolean hasCorrespondingClass() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int64 correspondingClass = 5; + */ + public long getCorrespondingClass() { + return correspondingClass_; + } + + public static final int INITIALIZEREXPRESSION_FIELD_NUMBER = 6; + private int initializerExpression_; + /** + * optional int32 initializerExpression = 6; + */ + public boolean hasInitializerExpression() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 initializerExpression = 6; + */ + public int getInitializerExpression() { + return initializerExpression_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + correspondingClass_ = 0L; + initializerExpression_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt64(5, correspondingClass_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(6, initializerExpression_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(5, correspondingClass_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(6, initializerExpression_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirEnumEntryCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + correspondingClass_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + initializerExpression_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.correspondingClass_ = correspondingClass_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.initializerExpression_ = initializerExpression_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasCorrespondingClass()) { + setCorrespondingClass(other.getCorrespondingClass()); + } + if (other.hasInitializerExpression()) { + setInitializerExpression(other.getInitializerExpression()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private long correspondingClass_ ; + /** + * optional int64 correspondingClass = 5; + */ + public boolean hasCorrespondingClass() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 correspondingClass = 5; + */ + public long getCorrespondingClass() { + return correspondingClass_; + } + /** + * optional int64 correspondingClass = 5; + */ + public Builder setCorrespondingClass(long value) { + bitField0_ |= 0x00000010; + correspondingClass_ = value; + + return this; + } + /** + * optional int64 correspondingClass = 5; + */ + public Builder clearCorrespondingClass() { + bitField0_ = (bitField0_ & ~0x00000010); + correspondingClass_ = 0L; + + return this; + } + + private int initializerExpression_ ; + /** + * optional int32 initializerExpression = 6; + */ + public boolean hasInitializerExpression() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 initializerExpression = 6; + */ + public int getInitializerExpression() { + return initializerExpression_; + } + /** + * optional int32 initializerExpression = 6; + */ + public Builder setInitializerExpression(int value) { + bitField0_ |= 0x00000020; + initializerExpression_ = value; + + return this; + } + /** + * optional int32 initializerExpression = 6; + */ + public Builder clearInitializerExpression() { + bitField0_ = (bitField0_ & ~0x00000020); + initializerExpression_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier) + } + + static { + defaultInstance = new PirEnumEntryCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirEnumEntryCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirEnumEntryCarrierOrBuilder.java new file mode 100644 index 00000000000..3872c3d1f7b --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirEnumEntryCarrierOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirEnumEntryCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirEnumEntryCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * optional int64 correspondingClass = 5; + */ + boolean hasCorrespondingClass(); + /** + * optional int64 correspondingClass = 5; + */ + long getCorrespondingClass(); + + /** + * optional int32 initializerExpression = 6; + */ + boolean hasInitializerExpression(); + /** + * optional int32 initializerExpression = 6; + */ + int getInitializerExpression(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirErrorDeclarationCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirErrorDeclarationCarrier.java new file mode 100644 index 00000000000..ebc75195a2a --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirErrorDeclarationCarrier.java @@ -0,0 +1,697 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier} + */ +public final class PirErrorDeclarationCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier) + PirErrorDeclarationCarrierOrBuilder { + // Use PirErrorDeclarationCarrier.newBuilder() to construct. + private PirErrorDeclarationCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirErrorDeclarationCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirErrorDeclarationCarrier defaultInstance; + public static PirErrorDeclarationCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirErrorDeclarationCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirErrorDeclarationCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirErrorDeclarationCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirErrorDeclarationCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirErrorDeclarationCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier) + } + + static { + defaultInstance = new PirErrorDeclarationCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirErrorDeclarationCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirErrorDeclarationCarrierOrBuilder.java new file mode 100644 index 00000000000..fe1f3ad0e6b --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirErrorDeclarationCarrierOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirErrorDeclarationCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirErrorDeclarationCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFieldCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFieldCarrier.java new file mode 100644 index 00000000000..a69aad416e6 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFieldCarrier.java @@ -0,0 +1,912 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier} + */ +public final class PirFieldCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier) + PirFieldCarrierOrBuilder { + // Use PirFieldCarrier.newBuilder() to construct. + private PirFieldCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirFieldCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirFieldCarrier defaultInstance; + public static PirFieldCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirFieldCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirFieldCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + type_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + initializer_ = input.readInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + correspondingPropertySymbol_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirFieldCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirFieldCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int TYPE_FIELD_NUMBER = 5; + private int type_; + /** + * required int32 type = 5; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * required int32 type = 5; + */ + public int getType() { + return type_; + } + + public static final int INITIALIZER_FIELD_NUMBER = 6; + private int initializer_; + /** + * optional int32 initializer = 6; + */ + public boolean hasInitializer() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 initializer = 6; + */ + public int getInitializer() { + return initializer_; + } + + public static final int CORRESPONDINGPROPERTYSYMBOL_FIELD_NUMBER = 7; + private long correspondingPropertySymbol_; + /** + * optional int64 correspondingPropertySymbol = 7; + */ + public boolean hasCorrespondingPropertySymbol() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 correspondingPropertySymbol = 7; + */ + public long getCorrespondingPropertySymbol() { + return correspondingPropertySymbol_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + type_ = 0; + initializer_ = 0; + correspondingPropertySymbol_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(5, type_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(6, initializer_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(7, correspondingPropertySymbol_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, type_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(6, initializer_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(7, correspondingPropertySymbol_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirFieldCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + initializer_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + correspondingPropertySymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.initializer_ = initializer_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.correspondingPropertySymbol_ = correspondingPropertySymbol_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasInitializer()) { + setInitializer(other.getInitializer()); + } + if (other.hasCorrespondingPropertySymbol()) { + setCorrespondingPropertySymbol(other.getCorrespondingPropertySymbol()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + if (!hasType()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private int type_ ; + /** + * required int32 type = 5; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * required int32 type = 5; + */ + public int getType() { + return type_; + } + /** + * required int32 type = 5; + */ + public Builder setType(int value) { + bitField0_ |= 0x00000010; + type_ = value; + + return this; + } + /** + * required int32 type = 5; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + + return this; + } + + private int initializer_ ; + /** + * optional int32 initializer = 6; + */ + public boolean hasInitializer() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 initializer = 6; + */ + public int getInitializer() { + return initializer_; + } + /** + * optional int32 initializer = 6; + */ + public Builder setInitializer(int value) { + bitField0_ |= 0x00000020; + initializer_ = value; + + return this; + } + /** + * optional int32 initializer = 6; + */ + public Builder clearInitializer() { + bitField0_ = (bitField0_ & ~0x00000020); + initializer_ = 0; + + return this; + } + + private long correspondingPropertySymbol_ ; + /** + * optional int64 correspondingPropertySymbol = 7; + */ + public boolean hasCorrespondingPropertySymbol() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int64 correspondingPropertySymbol = 7; + */ + public long getCorrespondingPropertySymbol() { + return correspondingPropertySymbol_; + } + /** + * optional int64 correspondingPropertySymbol = 7; + */ + public Builder setCorrespondingPropertySymbol(long value) { + bitField0_ |= 0x00000040; + correspondingPropertySymbol_ = value; + + return this; + } + /** + * optional int64 correspondingPropertySymbol = 7; + */ + public Builder clearCorrespondingPropertySymbol() { + bitField0_ = (bitField0_ & ~0x00000040); + correspondingPropertySymbol_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier) + } + + static { + defaultInstance = new PirFieldCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFieldCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFieldCarrierOrBuilder.java new file mode 100644 index 00000000000..4498c9852ba --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFieldCarrierOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirFieldCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirFieldCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * required int32 type = 5; + */ + boolean hasType(); + /** + * required int32 type = 5; + */ + int getType(); + + /** + * optional int32 initializer = 6; + */ + boolean hasInitializer(); + /** + * optional int32 initializer = 6; + */ + int getInitializer(); + + /** + * optional int64 correspondingPropertySymbol = 7; + */ + boolean hasCorrespondingPropertySymbol(); + /** + * optional int64 correspondingPropertySymbol = 7; + */ + long getCorrespondingPropertySymbol(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFunctionCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFunctionCarrier.java new file mode 100644 index 00000000000..3010abc8112 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFunctionCarrier.java @@ -0,0 +1,1545 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier} + */ +public final class PirFunctionCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier) + PirFunctionCarrierOrBuilder { + // Use PirFunctionCarrier.newBuilder() to construct. + private PirFunctionCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirFunctionCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirFunctionCarrier defaultInstance; + public static PirFunctionCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirFunctionCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirFunctionCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + returnTypeField_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + dispatchReceiverParameter_ = input.readInt64(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + extensionReceiverParameter_ = input.readInt64(); + break; + } + case 64: { + bitField0_ |= 0x00000040; + body_ = input.readInt32(); + break; + } + case 72: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + typeParameters_.add(input.readInt64()); + break; + } + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + while (input.getBytesUntilLimit() > 0) { + typeParameters_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 80: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + valueParameters_.add(input.readInt64()); + break; + } + case 82: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { + valueParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + while (input.getBytesUntilLimit() > 0) { + valueParameters_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 88: { + bitField0_ |= 0x00000080; + correspondingPropertySymbol_ = input.readInt64(); + break; + } + case 96: { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + overriddenSymbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + overriddenSymbols_.add(input.readInt64()); + break; + } + case 98: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { + overriddenSymbols_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + while (input.getBytesUntilLimit() > 0) { + overriddenSymbols_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 104: { + bitField0_ |= 0x00000100; + flags_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = java.util.Collections.unmodifiableList(valueParameters_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + overriddenSymbols_ = java.util.Collections.unmodifiableList(overriddenSymbols_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirFunctionCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirFunctionCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int RETURNTYPEFIELD_FIELD_NUMBER = 5; + private int returnTypeField_; + /** + * required int32 returnTypeField = 5; + */ + public boolean hasReturnTypeField() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * required int32 returnTypeField = 5; + */ + public int getReturnTypeField() { + return returnTypeField_; + } + + public static final int DISPATCHRECEIVERPARAMETER_FIELD_NUMBER = 6; + private long dispatchReceiverParameter_; + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public boolean hasDispatchReceiverParameter() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public long getDispatchReceiverParameter() { + return dispatchReceiverParameter_; + } + + public static final int EXTENSIONRECEIVERPARAMETER_FIELD_NUMBER = 7; + private long extensionReceiverParameter_; + /** + * optional int64 extensionReceiverParameter = 7; + */ + public boolean hasExtensionReceiverParameter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public long getExtensionReceiverParameter() { + return extensionReceiverParameter_; + } + + public static final int BODY_FIELD_NUMBER = 8; + private int body_; + /** + * optional int32 body = 8; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 body = 8; + */ + public int getBody() { + return body_; + } + + public static final int TYPEPARAMETERS_FIELD_NUMBER = 9; + private java.util.List typeParameters_; + /** + * repeated int64 typeParameters = 9; + */ + public java.util.List + getTypeParametersList() { + return typeParameters_; + } + /** + * repeated int64 typeParameters = 9; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 9; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + + public static final int VALUEPARAMETERS_FIELD_NUMBER = 10; + private java.util.List valueParameters_; + /** + * repeated int64 valueParameters = 10; + */ + public java.util.List + getValueParametersList() { + return valueParameters_; + } + /** + * repeated int64 valueParameters = 10; + */ + public int getValueParametersCount() { + return valueParameters_.size(); + } + /** + * repeated int64 valueParameters = 10; + */ + public long getValueParameters(int index) { + return valueParameters_.get(index); + } + + public static final int CORRESPONDINGPROPERTYSYMBOL_FIELD_NUMBER = 11; + private long correspondingPropertySymbol_; + /** + * optional int64 correspondingPropertySymbol = 11; + */ + public boolean hasCorrespondingPropertySymbol() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int64 correspondingPropertySymbol = 11; + */ + public long getCorrespondingPropertySymbol() { + return correspondingPropertySymbol_; + } + + public static final int OVERRIDDENSYMBOLS_FIELD_NUMBER = 12; + private java.util.List overriddenSymbols_; + /** + * repeated int64 overriddenSymbols = 12; + */ + public java.util.List + getOverriddenSymbolsList() { + return overriddenSymbols_; + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public int getOverriddenSymbolsCount() { + return overriddenSymbols_.size(); + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public long getOverriddenSymbols(int index) { + return overriddenSymbols_.get(index); + } + + public static final int FLAGS_FIELD_NUMBER = 13; + private long flags_; + /** + * optional int64 flags = 13 [default = 0]; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int64 flags = 13 [default = 0]; + */ + public long getFlags() { + return flags_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + returnTypeField_ = 0; + dispatchReceiverParameter_ = 0L; + extensionReceiverParameter_ = 0L; + body_ = 0; + typeParameters_ = java.util.Collections.emptyList(); + valueParameters_ = java.util.Collections.emptyList(); + correspondingPropertySymbol_ = 0L; + overriddenSymbols_ = java.util.Collections.emptyList(); + flags_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReturnTypeField()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(5, returnTypeField_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt64(6, dispatchReceiverParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(7, extensionReceiverParameter_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(8, body_); + } + for (int i = 0; i < typeParameters_.size(); i++) { + output.writeInt64(9, typeParameters_.get(i)); + } + for (int i = 0; i < valueParameters_.size(); i++) { + output.writeInt64(10, valueParameters_.get(i)); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt64(11, correspondingPropertySymbol_); + } + for (int i = 0; i < overriddenSymbols_.size(); i++) { + output.writeInt64(12, overriddenSymbols_.get(i)); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeInt64(13, flags_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, returnTypeField_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(6, dispatchReceiverParameter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(7, extensionReceiverParameter_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(8, body_); + } + { + int dataSize = 0; + for (int i = 0; i < typeParameters_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(typeParameters_.get(i)); + } + size += dataSize; + size += 1 * getTypeParametersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < valueParameters_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(valueParameters_.get(i)); + } + size += dataSize; + size += 1 * getValueParametersList().size(); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(11, correspondingPropertySymbol_); + } + { + int dataSize = 0; + for (int i = 0; i < overriddenSymbols_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(overriddenSymbols_.get(i)); + } + size += dataSize; + size += 1 * getOverriddenSymbolsList().size(); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(13, flags_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirFunctionCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + returnTypeField_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + dispatchReceiverParameter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); + extensionReceiverParameter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + body_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + valueParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + correspondingPropertySymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000400); + overriddenSymbols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + flags_ = 0L; + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.returnTypeField_ = returnTypeField_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.dispatchReceiverParameter_ = dispatchReceiverParameter_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.extensionReceiverParameter_ = extensionReceiverParameter_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.body_ = body_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.typeParameters_ = typeParameters_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = java.util.Collections.unmodifiableList(valueParameters_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.valueParameters_ = valueParameters_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000080; + } + result.correspondingPropertySymbol_ = correspondingPropertySymbol_; + if (((bitField0_ & 0x00000800) == 0x00000800)) { + overriddenSymbols_ = java.util.Collections.unmodifiableList(overriddenSymbols_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.overriddenSymbols_ = overriddenSymbols_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00000100; + } + result.flags_ = flags_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasReturnTypeField()) { + setReturnTypeField(other.getReturnTypeField()); + } + if (other.hasDispatchReceiverParameter()) { + setDispatchReceiverParameter(other.getDispatchReceiverParameter()); + } + if (other.hasExtensionReceiverParameter()) { + setExtensionReceiverParameter(other.getExtensionReceiverParameter()); + } + if (other.hasBody()) { + setBody(other.getBody()); + } + if (!other.typeParameters_.isEmpty()) { + if (typeParameters_.isEmpty()) { + typeParameters_ = other.typeParameters_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureTypeParametersIsMutable(); + typeParameters_.addAll(other.typeParameters_); + } + + } + if (!other.valueParameters_.isEmpty()) { + if (valueParameters_.isEmpty()) { + valueParameters_ = other.valueParameters_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureValueParametersIsMutable(); + valueParameters_.addAll(other.valueParameters_); + } + + } + if (other.hasCorrespondingPropertySymbol()) { + setCorrespondingPropertySymbol(other.getCorrespondingPropertySymbol()); + } + if (!other.overriddenSymbols_.isEmpty()) { + if (overriddenSymbols_.isEmpty()) { + overriddenSymbols_ = other.overriddenSymbols_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureOverriddenSymbolsIsMutable(); + overriddenSymbols_.addAll(other.overriddenSymbols_); + } + + } + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + if (!hasReturnTypeField()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private int returnTypeField_ ; + /** + * required int32 returnTypeField = 5; + */ + public boolean hasReturnTypeField() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * required int32 returnTypeField = 5; + */ + public int getReturnTypeField() { + return returnTypeField_; + } + /** + * required int32 returnTypeField = 5; + */ + public Builder setReturnTypeField(int value) { + bitField0_ |= 0x00000010; + returnTypeField_ = value; + + return this; + } + /** + * required int32 returnTypeField = 5; + */ + public Builder clearReturnTypeField() { + bitField0_ = (bitField0_ & ~0x00000010); + returnTypeField_ = 0; + + return this; + } + + private long dispatchReceiverParameter_ ; + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public boolean hasDispatchReceiverParameter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public long getDispatchReceiverParameter() { + return dispatchReceiverParameter_; + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public Builder setDispatchReceiverParameter(long value) { + bitField0_ |= 0x00000020; + dispatchReceiverParameter_ = value; + + return this; + } + /** + * optional int64 dispatchReceiverParameter = 6; + */ + public Builder clearDispatchReceiverParameter() { + bitField0_ = (bitField0_ & ~0x00000020); + dispatchReceiverParameter_ = 0L; + + return this; + } + + private long extensionReceiverParameter_ ; + /** + * optional int64 extensionReceiverParameter = 7; + */ + public boolean hasExtensionReceiverParameter() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public long getExtensionReceiverParameter() { + return extensionReceiverParameter_; + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public Builder setExtensionReceiverParameter(long value) { + bitField0_ |= 0x00000040; + extensionReceiverParameter_ = value; + + return this; + } + /** + * optional int64 extensionReceiverParameter = 7; + */ + public Builder clearExtensionReceiverParameter() { + bitField0_ = (bitField0_ & ~0x00000040); + extensionReceiverParameter_ = 0L; + + return this; + } + + private int body_ ; + /** + * optional int32 body = 8; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 body = 8; + */ + public int getBody() { + return body_; + } + /** + * optional int32 body = 8; + */ + public Builder setBody(int value) { + bitField0_ |= 0x00000080; + body_ = value; + + return this; + } + /** + * optional int32 body = 8; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000080); + body_ = 0; + + return this; + } + + private java.util.List typeParameters_ = java.util.Collections.emptyList(); + private void ensureTypeParametersIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + typeParameters_ = new java.util.ArrayList(typeParameters_); + bitField0_ |= 0x00000100; + } + } + /** + * repeated int64 typeParameters = 9; + */ + public java.util.List + getTypeParametersList() { + return java.util.Collections.unmodifiableList(typeParameters_); + } + /** + * repeated int64 typeParameters = 9; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 9; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder setTypeParameters( + int index, long value) { + ensureTypeParametersIsMutable(); + typeParameters_.set(index, value); + + return this; + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder addTypeParameters(long value) { + ensureTypeParametersIsMutable(); + typeParameters_.add(value); + + return this; + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder addAllTypeParameters( + java.lang.Iterable values) { + ensureTypeParametersIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, typeParameters_); + + return this; + } + /** + * repeated int64 typeParameters = 9; + */ + public Builder clearTypeParameters() { + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + + return this; + } + + private java.util.List valueParameters_ = java.util.Collections.emptyList(); + private void ensureValueParametersIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + valueParameters_ = new java.util.ArrayList(valueParameters_); + bitField0_ |= 0x00000200; + } + } + /** + * repeated int64 valueParameters = 10; + */ + public java.util.List + getValueParametersList() { + return java.util.Collections.unmodifiableList(valueParameters_); + } + /** + * repeated int64 valueParameters = 10; + */ + public int getValueParametersCount() { + return valueParameters_.size(); + } + /** + * repeated int64 valueParameters = 10; + */ + public long getValueParameters(int index) { + return valueParameters_.get(index); + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder setValueParameters( + int index, long value) { + ensureValueParametersIsMutable(); + valueParameters_.set(index, value); + + return this; + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder addValueParameters(long value) { + ensureValueParametersIsMutable(); + valueParameters_.add(value); + + return this; + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder addAllValueParameters( + java.lang.Iterable values) { + ensureValueParametersIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, valueParameters_); + + return this; + } + /** + * repeated int64 valueParameters = 10; + */ + public Builder clearValueParameters() { + valueParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + + return this; + } + + private long correspondingPropertySymbol_ ; + /** + * optional int64 correspondingPropertySymbol = 11; + */ + public boolean hasCorrespondingPropertySymbol() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int64 correspondingPropertySymbol = 11; + */ + public long getCorrespondingPropertySymbol() { + return correspondingPropertySymbol_; + } + /** + * optional int64 correspondingPropertySymbol = 11; + */ + public Builder setCorrespondingPropertySymbol(long value) { + bitField0_ |= 0x00000400; + correspondingPropertySymbol_ = value; + + return this; + } + /** + * optional int64 correspondingPropertySymbol = 11; + */ + public Builder clearCorrespondingPropertySymbol() { + bitField0_ = (bitField0_ & ~0x00000400); + correspondingPropertySymbol_ = 0L; + + return this; + } + + private java.util.List overriddenSymbols_ = java.util.Collections.emptyList(); + private void ensureOverriddenSymbolsIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + overriddenSymbols_ = new java.util.ArrayList(overriddenSymbols_); + bitField0_ |= 0x00000800; + } + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public java.util.List + getOverriddenSymbolsList() { + return java.util.Collections.unmodifiableList(overriddenSymbols_); + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public int getOverriddenSymbolsCount() { + return overriddenSymbols_.size(); + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public long getOverriddenSymbols(int index) { + return overriddenSymbols_.get(index); + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public Builder setOverriddenSymbols( + int index, long value) { + ensureOverriddenSymbolsIsMutable(); + overriddenSymbols_.set(index, value); + + return this; + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public Builder addOverriddenSymbols(long value) { + ensureOverriddenSymbolsIsMutable(); + overriddenSymbols_.add(value); + + return this; + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public Builder addAllOverriddenSymbols( + java.lang.Iterable values) { + ensureOverriddenSymbolsIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, overriddenSymbols_); + + return this; + } + /** + * repeated int64 overriddenSymbols = 12; + */ + public Builder clearOverriddenSymbols() { + overriddenSymbols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + + return this; + } + + private long flags_ ; + /** + * optional int64 flags = 13 [default = 0]; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + * optional int64 flags = 13 [default = 0]; + */ + public long getFlags() { + return flags_; + } + /** + * optional int64 flags = 13 [default = 0]; + */ + public Builder setFlags(long value) { + bitField0_ |= 0x00001000; + flags_ = value; + + return this; + } + /** + * optional int64 flags = 13 [default = 0]; + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00001000); + flags_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier) + } + + static { + defaultInstance = new PirFunctionCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFunctionCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFunctionCarrierOrBuilder.java new file mode 100644 index 00000000000..2a090c06e89 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirFunctionCarrierOrBuilder.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirFunctionCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirFunctionCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * required int32 returnTypeField = 5; + */ + boolean hasReturnTypeField(); + /** + * required int32 returnTypeField = 5; + */ + int getReturnTypeField(); + + /** + * optional int64 dispatchReceiverParameter = 6; + */ + boolean hasDispatchReceiverParameter(); + /** + * optional int64 dispatchReceiverParameter = 6; + */ + long getDispatchReceiverParameter(); + + /** + * optional int64 extensionReceiverParameter = 7; + */ + boolean hasExtensionReceiverParameter(); + /** + * optional int64 extensionReceiverParameter = 7; + */ + long getExtensionReceiverParameter(); + + /** + * optional int32 body = 8; + */ + boolean hasBody(); + /** + * optional int32 body = 8; + */ + int getBody(); + + /** + * repeated int64 typeParameters = 9; + */ + java.util.List getTypeParametersList(); + /** + * repeated int64 typeParameters = 9; + */ + int getTypeParametersCount(); + /** + * repeated int64 typeParameters = 9; + */ + long getTypeParameters(int index); + + /** + * repeated int64 valueParameters = 10; + */ + java.util.List getValueParametersList(); + /** + * repeated int64 valueParameters = 10; + */ + int getValueParametersCount(); + /** + * repeated int64 valueParameters = 10; + */ + long getValueParameters(int index); + + /** + * optional int64 correspondingPropertySymbol = 11; + */ + boolean hasCorrespondingPropertySymbol(); + /** + * optional int64 correspondingPropertySymbol = 11; + */ + long getCorrespondingPropertySymbol(); + + /** + * repeated int64 overriddenSymbols = 12; + */ + java.util.List getOverriddenSymbolsList(); + /** + * repeated int64 overriddenSymbols = 12; + */ + int getOverriddenSymbolsCount(); + /** + * repeated int64 overriddenSymbols = 12; + */ + long getOverriddenSymbols(int index); + + /** + * optional int64 flags = 13 [default = 0]; + */ + boolean hasFlags(); + /** + * optional int64 flags = 13 [default = 0]; + */ + long getFlags(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirLocalDelegatedPropertyCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirLocalDelegatedPropertyCarrier.java new file mode 100644 index 00000000000..bf8f20907cf --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirLocalDelegatedPropertyCarrier.java @@ -0,0 +1,1029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier} + */ +public final class PirLocalDelegatedPropertyCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier) + PirLocalDelegatedPropertyCarrierOrBuilder { + // Use PirLocalDelegatedPropertyCarrier.newBuilder() to construct. + private PirLocalDelegatedPropertyCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirLocalDelegatedPropertyCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirLocalDelegatedPropertyCarrier defaultInstance; + public static PirLocalDelegatedPropertyCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirLocalDelegatedPropertyCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirLocalDelegatedPropertyCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + type_ = input.readInt32(); + break; + } + case 50: { + org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = delegate_.toBuilder(); + } + delegate_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(delegate_); + delegate_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 56: { + bitField0_ |= 0x00000020; + getter_ = input.readInt64(); + break; + } + case 64: { + bitField0_ |= 0x00000040; + setter_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirLocalDelegatedPropertyCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirLocalDelegatedPropertyCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int TYPE_FIELD_NUMBER = 5; + private int type_; + /** + * required int32 type = 5; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * required int32 type = 5; + */ + public int getType() { + return type_; + } + + public static final int DELEGATE_FIELD_NUMBER = 6; + private org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate_; + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public boolean hasDelegate() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable getDelegate() { + return delegate_; + } + + public static final int GETTER_FIELD_NUMBER = 7; + private long getter_; + /** + * optional int64 getter = 7; + */ + public boolean hasGetter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 getter = 7; + */ + public long getGetter() { + return getter_; + } + + public static final int SETTER_FIELD_NUMBER = 8; + private long setter_; + /** + * optional int64 setter = 8; + */ + public boolean hasSetter() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int64 setter = 8; + */ + public long getSetter() { + return setter_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + type_ = 0; + delegate_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.getDefaultInstance(); + getter_ = 0L; + setter_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDelegate()) { + if (!getDelegate().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(5, type_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, delegate_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(7, getter_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt64(8, setter_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, type_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(6, delegate_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(7, getter_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(8, setter_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + delegate_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000020); + getter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + setter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.delegate_ = delegate_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.getter_ = getter_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.setter_ = setter_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasDelegate()) { + mergeDelegate(other.getDelegate()); + } + if (other.hasGetter()) { + setGetter(other.getGetter()); + } + if (other.hasSetter()) { + setSetter(other.getSetter()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + if (!hasType()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + if (hasDelegate()) { + if (!getDelegate().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private int type_ ; + /** + * required int32 type = 5; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * required int32 type = 5; + */ + public int getType() { + return type_; + } + /** + * required int32 type = 5; + */ + public Builder setType(int value) { + bitField0_ |= 0x00000010; + type_ = value; + + return this; + } + /** + * required int32 type = 5; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + + return this; + } + + private org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.getDefaultInstance(); + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public boolean hasDelegate() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable getDelegate() { + return delegate_; + } + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public Builder setDelegate(org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable value) { + if (value == null) { + throw new NullPointerException(); + } + delegate_ = value; + + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public Builder setDelegate( + org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.Builder builderForValue) { + delegate_ = builderForValue.build(); + + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public Builder mergeDelegate(org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable value) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + delegate_ != org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.getDefaultInstance()) { + delegate_ = + org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.newBuilder(delegate_).mergeFrom(value).buildPartial(); + } else { + delegate_ = value; + } + + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + public Builder clearDelegate() { + delegate_ = org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + private long getter_ ; + /** + * optional int64 getter = 7; + */ + public boolean hasGetter() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int64 getter = 7; + */ + public long getGetter() { + return getter_; + } + /** + * optional int64 getter = 7; + */ + public Builder setGetter(long value) { + bitField0_ |= 0x00000040; + getter_ = value; + + return this; + } + /** + * optional int64 getter = 7; + */ + public Builder clearGetter() { + bitField0_ = (bitField0_ & ~0x00000040); + getter_ = 0L; + + return this; + } + + private long setter_ ; + /** + * optional int64 setter = 8; + */ + public boolean hasSetter() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int64 setter = 8; + */ + public long getSetter() { + return setter_; + } + /** + * optional int64 setter = 8; + */ + public Builder setSetter(long value) { + bitField0_ |= 0x00000080; + setter_ = value; + + return this; + } + /** + * optional int64 setter = 8; + */ + public Builder clearSetter() { + bitField0_ = (bitField0_ & ~0x00000080); + setter_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier) + } + + static { + defaultInstance = new PirLocalDelegatedPropertyCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirLocalDelegatedPropertyCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirLocalDelegatedPropertyCarrierOrBuilder.java new file mode 100644 index 00000000000..f8cf900ea88 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirLocalDelegatedPropertyCarrierOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirLocalDelegatedPropertyCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirLocalDelegatedPropertyCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * required int32 type = 5; + */ + boolean hasType(); + /** + * required int32 type = 5; + */ + int getType(); + + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + boolean hasDelegate(); + /** + * optional .org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable delegate = 6; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrVariable getDelegate(); + + /** + * optional int64 getter = 7; + */ + boolean hasGetter(); + /** + * optional int64 getter = 7; + */ + long getGetter(); + + /** + * optional int64 setter = 8; + */ + boolean hasSetter(); + /** + * optional int64 setter = 8; + */ + long getSetter(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirPropertyCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirPropertyCarrier.java new file mode 100644 index 00000000000..d7933ff0bdd --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirPropertyCarrier.java @@ -0,0 +1,904 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier} + */ +public final class PirPropertyCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier) + PirPropertyCarrierOrBuilder { + // Use PirPropertyCarrier.newBuilder() to construct. + private PirPropertyCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirPropertyCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirPropertyCarrier defaultInstance; + public static PirPropertyCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirPropertyCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirPropertyCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + backingField_ = input.readInt64(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + getter_ = input.readInt64(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + setter_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirPropertyCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirPropertyCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int BACKINGFIELD_FIELD_NUMBER = 5; + private long backingField_; + /** + * optional int64 backingField = 5; + */ + public boolean hasBackingField() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int64 backingField = 5; + */ + public long getBackingField() { + return backingField_; + } + + public static final int GETTER_FIELD_NUMBER = 6; + private long getter_; + /** + * optional int64 getter = 6; + */ + public boolean hasGetter() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 getter = 6; + */ + public long getGetter() { + return getter_; + } + + public static final int SETTER_FIELD_NUMBER = 7; + private long setter_; + /** + * optional int64 setter = 7; + */ + public boolean hasSetter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 setter = 7; + */ + public long getSetter() { + return setter_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + backingField_ = 0L; + getter_ = 0L; + setter_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt64(5, backingField_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt64(6, getter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(7, setter_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(5, backingField_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(6, getter_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(7, setter_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirPropertyCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + backingField_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + getter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); + setter_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.backingField_ = backingField_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.getter_ = getter_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.setter_ = setter_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasBackingField()) { + setBackingField(other.getBackingField()); + } + if (other.hasGetter()) { + setGetter(other.getGetter()); + } + if (other.hasSetter()) { + setSetter(other.getSetter()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private long backingField_ ; + /** + * optional int64 backingField = 5; + */ + public boolean hasBackingField() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int64 backingField = 5; + */ + public long getBackingField() { + return backingField_; + } + /** + * optional int64 backingField = 5; + */ + public Builder setBackingField(long value) { + bitField0_ |= 0x00000010; + backingField_ = value; + + return this; + } + /** + * optional int64 backingField = 5; + */ + public Builder clearBackingField() { + bitField0_ = (bitField0_ & ~0x00000010); + backingField_ = 0L; + + return this; + } + + private long getter_ ; + /** + * optional int64 getter = 6; + */ + public boolean hasGetter() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int64 getter = 6; + */ + public long getGetter() { + return getter_; + } + /** + * optional int64 getter = 6; + */ + public Builder setGetter(long value) { + bitField0_ |= 0x00000020; + getter_ = value; + + return this; + } + /** + * optional int64 getter = 6; + */ + public Builder clearGetter() { + bitField0_ = (bitField0_ & ~0x00000020); + getter_ = 0L; + + return this; + } + + private long setter_ ; + /** + * optional int64 setter = 7; + */ + public boolean hasSetter() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int64 setter = 7; + */ + public long getSetter() { + return setter_; + } + /** + * optional int64 setter = 7; + */ + public Builder setSetter(long value) { + bitField0_ |= 0x00000040; + setter_ = value; + + return this; + } + /** + * optional int64 setter = 7; + */ + public Builder clearSetter() { + bitField0_ = (bitField0_ & ~0x00000040); + setter_ = 0L; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier) + } + + static { + defaultInstance = new PirPropertyCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirPropertyCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirPropertyCarrierOrBuilder.java new file mode 100644 index 00000000000..b87c9a3308f --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirPropertyCarrierOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirPropertyCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirPropertyCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * optional int64 backingField = 5; + */ + boolean hasBackingField(); + /** + * optional int64 backingField = 5; + */ + long getBackingField(); + + /** + * optional int64 getter = 6; + */ + boolean hasGetter(); + /** + * optional int64 getter = 6; + */ + long getGetter(); + + /** + * optional int64 setter = 7; + */ + boolean hasSetter(); + /** + * optional int64 setter = 7; + */ + long getSetter(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeAliasCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeAliasCarrier.java new file mode 100644 index 00000000000..9eaed232ad4 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeAliasCarrier.java @@ -0,0 +1,916 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier} + */ +public final class PirTypeAliasCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier) + PirTypeAliasCarrierOrBuilder { + // Use PirTypeAliasCarrier.newBuilder() to construct. + private PirTypeAliasCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirTypeAliasCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirTypeAliasCarrier defaultInstance; + public static PirTypeAliasCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirTypeAliasCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirTypeAliasCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + typeParameters_.add(input.readInt64()); + break; + } + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { + typeParameters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + while (input.getBytesUntilLimit() > 0) { + typeParameters_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 48: { + bitField0_ |= 0x00000008; + expandedType_ = input.readInt32(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirTypeAliasCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirTypeAliasCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int TYPEPARAMETERS_FIELD_NUMBER = 5; + private java.util.List typeParameters_; + /** + * repeated int64 typeParameters = 5; + */ + public java.util.List + getTypeParametersList() { + return typeParameters_; + } + /** + * repeated int64 typeParameters = 5; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 5; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + + public static final int EXPANDEDTYPE_FIELD_NUMBER = 6; + private int expandedType_; + /** + * required int32 expandedType = 6; + */ + public boolean hasExpandedType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * required int32 expandedType = 6; + */ + public int getExpandedType() { + return expandedType_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + typeParameters_ = java.util.Collections.emptyList(); + expandedType_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasExpandedType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + for (int i = 0; i < typeParameters_.size(); i++) { + output.writeInt64(5, typeParameters_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(6, expandedType_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < typeParameters_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64SizeNoTag(typeParameters_.get(i)); + } + size += dataSize; + size += 1 * getTypeParametersList().size(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(6, expandedType_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirTypeAliasCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + expandedType_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + typeParameters_ = java.util.Collections.unmodifiableList(typeParameters_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.typeParameters_ = typeParameters_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.expandedType_ = expandedType_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (!other.typeParameters_.isEmpty()) { + if (typeParameters_.isEmpty()) { + typeParameters_ = other.typeParameters_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTypeParametersIsMutable(); + typeParameters_.addAll(other.typeParameters_); + } + + } + if (other.hasExpandedType()) { + setExpandedType(other.getExpandedType()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + if (!hasExpandedType()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private java.util.List typeParameters_ = java.util.Collections.emptyList(); + private void ensureTypeParametersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + typeParameters_ = new java.util.ArrayList(typeParameters_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated int64 typeParameters = 5; + */ + public java.util.List + getTypeParametersList() { + return java.util.Collections.unmodifiableList(typeParameters_); + } + /** + * repeated int64 typeParameters = 5; + */ + public int getTypeParametersCount() { + return typeParameters_.size(); + } + /** + * repeated int64 typeParameters = 5; + */ + public long getTypeParameters(int index) { + return typeParameters_.get(index); + } + /** + * repeated int64 typeParameters = 5; + */ + public Builder setTypeParameters( + int index, long value) { + ensureTypeParametersIsMutable(); + typeParameters_.set(index, value); + + return this; + } + /** + * repeated int64 typeParameters = 5; + */ + public Builder addTypeParameters(long value) { + ensureTypeParametersIsMutable(); + typeParameters_.add(value); + + return this; + } + /** + * repeated int64 typeParameters = 5; + */ + public Builder addAllTypeParameters( + java.lang.Iterable values) { + ensureTypeParametersIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, typeParameters_); + + return this; + } + /** + * repeated int64 typeParameters = 5; + */ + public Builder clearTypeParameters() { + typeParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + + return this; + } + + private int expandedType_ ; + /** + * required int32 expandedType = 6; + */ + public boolean hasExpandedType() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * required int32 expandedType = 6; + */ + public int getExpandedType() { + return expandedType_; + } + /** + * required int32 expandedType = 6; + */ + public Builder setExpandedType(int value) { + bitField0_ |= 0x00000020; + expandedType_ = value; + + return this; + } + /** + * required int32 expandedType = 6; + */ + public Builder clearExpandedType() { + bitField0_ = (bitField0_ & ~0x00000020); + expandedType_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier) + } + + static { + defaultInstance = new PirTypeAliasCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeAliasCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeAliasCarrierOrBuilder.java new file mode 100644 index 00000000000..295e064c717 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeAliasCarrierOrBuilder.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirTypeAliasCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeAliasCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * repeated int64 typeParameters = 5; + */ + java.util.List getTypeParametersList(); + /** + * repeated int64 typeParameters = 5; + */ + int getTypeParametersCount(); + /** + * repeated int64 typeParameters = 5; + */ + long getTypeParameters(int index); + + /** + * required int32 expandedType = 6; + */ + boolean hasExpandedType(); + /** + * required int32 expandedType = 6; + */ + int getExpandedType(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeParameterCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeParameterCarrier.java new file mode 100644 index 00000000000..2ed5a332285 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeParameterCarrier.java @@ -0,0 +1,839 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier} + */ +public final class PirTypeParameterCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier) + PirTypeParameterCarrierOrBuilder { + // Use PirTypeParameterCarrier.newBuilder() to construct. + private PirTypeParameterCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirTypeParameterCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirTypeParameterCarrier defaultInstance; + public static PirTypeParameterCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirTypeParameterCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirTypeParameterCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + superTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + superTypes_.add(input.readInt32()); + break; + } + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { + superTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + while (input.getBytesUntilLimit() > 0) { + superTypes_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + superTypes_ = java.util.Collections.unmodifiableList(superTypes_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirTypeParameterCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirTypeParameterCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int SUPERTYPES_FIELD_NUMBER = 5; + private java.util.List superTypes_; + /** + * repeated int32 superTypes = 5; + */ + public java.util.List + getSuperTypesList() { + return superTypes_; + } + /** + * repeated int32 superTypes = 5; + */ + public int getSuperTypesCount() { + return superTypes_.size(); + } + /** + * repeated int32 superTypes = 5; + */ + public int getSuperTypes(int index) { + return superTypes_.get(index); + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + superTypes_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + for (int i = 0; i < superTypes_.size(); i++) { + output.writeInt32(5, superTypes_.get(i)); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < superTypes_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32SizeNoTag(superTypes_.get(i)); + } + size += dataSize; + size += 1 * getSuperTypesList().size(); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirTypeParameterCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + superTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + superTypes_ = java.util.Collections.unmodifiableList(superTypes_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.superTypes_ = superTypes_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (!other.superTypes_.isEmpty()) { + if (superTypes_.isEmpty()) { + superTypes_ = other.superTypes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSuperTypesIsMutable(); + superTypes_.addAll(other.superTypes_); + } + + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private java.util.List superTypes_ = java.util.Collections.emptyList(); + private void ensureSuperTypesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + superTypes_ = new java.util.ArrayList(superTypes_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated int32 superTypes = 5; + */ + public java.util.List + getSuperTypesList() { + return java.util.Collections.unmodifiableList(superTypes_); + } + /** + * repeated int32 superTypes = 5; + */ + public int getSuperTypesCount() { + return superTypes_.size(); + } + /** + * repeated int32 superTypes = 5; + */ + public int getSuperTypes(int index) { + return superTypes_.get(index); + } + /** + * repeated int32 superTypes = 5; + */ + public Builder setSuperTypes( + int index, int value) { + ensureSuperTypesIsMutable(); + superTypes_.set(index, value); + + return this; + } + /** + * repeated int32 superTypes = 5; + */ + public Builder addSuperTypes(int value) { + ensureSuperTypesIsMutable(); + superTypes_.add(value); + + return this; + } + /** + * repeated int32 superTypes = 5; + */ + public Builder addAllSuperTypes( + java.lang.Iterable values) { + ensureSuperTypesIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, superTypes_); + + return this; + } + /** + * repeated int32 superTypes = 5; + */ + public Builder clearSuperTypes() { + superTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier) + } + + static { + defaultInstance = new PirTypeParameterCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeParameterCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeParameterCarrierOrBuilder.java new file mode 100644 index 00000000000..f56a1214aad --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirTypeParameterCarrierOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirTypeParameterCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirTypeParameterCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * repeated int32 superTypes = 5; + */ + java.util.List getSuperTypesList(); + /** + * repeated int32 superTypes = 5; + */ + int getSuperTypesCount(); + /** + * repeated int32 superTypes = 5; + */ + int getSuperTypes(int index); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirValueParameterCarrier.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirValueParameterCarrier.java new file mode 100644 index 00000000000..d4a9980b6c7 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirValueParameterCarrier.java @@ -0,0 +1,912 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier} + */ +public final class PirValueParameterCarrier extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier) + PirValueParameterCarrierOrBuilder { + // Use PirValueParameterCarrier.newBuilder() to construct. + private PirValueParameterCarrier(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PirValueParameterCarrier(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final PirValueParameterCarrier defaultInstance; + public static PirValueParameterCarrier getDefaultInstance() { + return defaultInstance; + } + + public PirValueParameterCarrier getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private PirValueParameterCarrier( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + lastModified_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + parentSymbol_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + origin_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry)); + break; + } + case 40: { + bitField0_ |= 0x00000008; + defaultValue_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + type_ = input.readInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + varargElementType_ = input.readInt32(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public PirValueParameterCarrier parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new PirValueParameterCarrier(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LASTMODIFIED_FIELD_NUMBER = 1; + private int lastModified_; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + + public static final int PARENTSYMBOL_FIELD_NUMBER = 2; + private long parentSymbol_; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + + public static final int ORIGIN_FIELD_NUMBER = 3; + private int origin_; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 4; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int DEFAULTVALUE_FIELD_NUMBER = 5; + private int defaultValue_; + /** + * optional int32 defaultValue = 5; + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 defaultValue = 5; + */ + public int getDefaultValue() { + return defaultValue_; + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_; + /** + * required int32 type = 6; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * required int32 type = 6; + */ + public int getType() { + return type_; + } + + public static final int VARARGELEMENTTYPE_FIELD_NUMBER = 7; + private int varargElementType_; + /** + * optional int32 varargElementType = 7; + */ + public boolean hasVarargElementType() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 varargElementType = 7; + */ + public int getVarargElementType() { + return varargElementType_; + } + + private void initFields() { + lastModified_ = 0; + parentSymbol_ = 0L; + origin_ = 0; + annotation_ = java.util.Collections.emptyList(); + defaultValue_ = 0; + type_ = 0; + varargElementType_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasLastModified()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(5, defaultValue_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(6, type_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt32(7, varargElementType_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, lastModified_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt64Size(2, parentSymbol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(3, origin_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, annotation_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, defaultValue_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(6, type_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(7, varargElementType_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.PirValueParameterCarrier prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier) + org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrierOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + lastModified_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + parentSymbol_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + origin_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + defaultValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + varargElementType_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier build() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier result = new org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.lastModified_ = lastModified_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.parentSymbol_ = parentSymbol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.origin_ = origin_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.defaultValue_ = defaultValue_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.varargElementType_ = varargElementType_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier.getDefaultInstance()) return this; + if (other.hasLastModified()) { + setLastModified(other.getLastModified()); + } + if (other.hasParentSymbol()) { + setParentSymbol(other.getParentSymbol()); + } + if (other.hasOrigin()) { + setOrigin(other.getOrigin()); + } + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + + } + if (other.hasDefaultValue()) { + setDefaultValue(other.getDefaultValue()); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasVarargElementType()) { + setVarargElementType(other.getVarargElementType()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasLastModified()) { + + return false; + } + if (!hasType()) { + + return false; + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int lastModified_ ; + /** + * required int32 lastModified = 1; + */ + public boolean hasLastModified() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 lastModified = 1; + */ + public int getLastModified() { + return lastModified_; + } + /** + * required int32 lastModified = 1; + */ + public Builder setLastModified(int value) { + bitField0_ |= 0x00000001; + lastModified_ = value; + + return this; + } + /** + * required int32 lastModified = 1; + */ + public Builder clearLastModified() { + bitField0_ = (bitField0_ & ~0x00000001); + lastModified_ = 0; + + return this; + } + + private long parentSymbol_ ; + /** + * optional int64 parentSymbol = 2; + */ + public boolean hasParentSymbol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int64 parentSymbol = 2; + */ + public long getParentSymbol() { + return parentSymbol_; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder setParentSymbol(long value) { + bitField0_ |= 0x00000002; + parentSymbol_ = value; + + return this; + } + /** + * optional int64 parentSymbol = 2; + */ + public Builder clearParentSymbol() { + bitField0_ = (bitField0_ & ~0x00000002); + parentSymbol_ = 0L; + + return this; + } + + private int origin_ ; + /** + * optional int32 origin = 3; + */ + public boolean hasOrigin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 origin = 3; + */ + public int getOrigin() { + return origin_; + } + /** + * optional int32 origin = 3; + */ + public Builder setOrigin(int value) { + bitField0_ |= 0x00000004; + origin_ = value; + + return this; + } + /** + * optional int32 origin = 3; + */ + public Builder clearOrigin() { + bitField0_ = (bitField0_ & ~0x00000004); + origin_ = 0; + + return this; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000008; + } + } + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public java.util.List getAnnotationList() { + return java.util.Collections.unmodifiableList(annotation_); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder clearAnnotation() { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + public Builder removeAnnotation(int index) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + + return this; + } + + private int defaultValue_ ; + /** + * optional int32 defaultValue = 5; + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 defaultValue = 5; + */ + public int getDefaultValue() { + return defaultValue_; + } + /** + * optional int32 defaultValue = 5; + */ + public Builder setDefaultValue(int value) { + bitField0_ |= 0x00000010; + defaultValue_ = value; + + return this; + } + /** + * optional int32 defaultValue = 5; + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000010); + defaultValue_ = 0; + + return this; + } + + private int type_ ; + /** + * required int32 type = 6; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * required int32 type = 6; + */ + public int getType() { + return type_; + } + /** + * required int32 type = 6; + */ + public Builder setType(int value) { + bitField0_ |= 0x00000020; + type_ = value; + + return this; + } + /** + * required int32 type = 6; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + + return this; + } + + private int varargElementType_ ; + /** + * optional int32 varargElementType = 7; + */ + public boolean hasVarargElementType() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 varargElementType = 7; + */ + public int getVarargElementType() { + return varargElementType_; + } + /** + * optional int32 varargElementType = 7; + */ + public Builder setVarargElementType(int value) { + bitField0_ |= 0x00000040; + varargElementType_ = value; + + return this; + } + /** + * optional int32 varargElementType = 7; + */ + public Builder clearVarargElementType() { + bitField0_ = (bitField0_ & ~0x00000040); + varargElementType_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier) + } + + static { + defaultInstance = new PirValueParameterCarrier(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier) +} diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirValueParameterCarrierOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirValueParameterCarrierOrBuilder.java new file mode 100644 index 00000000000..b21bc333baf --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/PirValueParameterCarrierOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface PirValueParameterCarrierOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.PirValueParameterCarrier) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 lastModified = 1; + */ + boolean hasLastModified(); + /** + * required int32 lastModified = 1; + */ + int getLastModified(); + + /** + * optional int64 parentSymbol = 2; + */ + boolean hasParentSymbol(); + /** + * optional int64 parentSymbol = 2; + */ + long getParentSymbol(); + + /** + * optional int32 origin = 3; + */ + boolean hasOrigin(); + /** + * optional int32 origin = 3; + */ + int getOrigin(); + + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4; + */ + int getAnnotationCount(); + + /** + * optional int32 defaultValue = 5; + */ + boolean hasDefaultValue(); + /** + * optional int32 defaultValue = 5; + */ + int getDefaultValue(); + + /** + * required int32 type = 6; + */ + boolean hasType(); + /** + * required int32 type = 6; + */ + int getType(); + + /** + * optional int32 varargElementType = 7; + */ + boolean hasVarargElementType(); + /** + * optional int32 varargElementType = 7; + */ + int getVarargElementType(); +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/ScopeLocalIdSignature.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/ScopeLocalIdSignature.java new file mode 100644 index 00000000000..ba438d14270 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/ScopeLocalIdSignature.java @@ -0,0 +1,420 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +/** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature} + */ +public final class ScopeLocalIdSignature extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature) + ScopeLocalIdSignatureOrBuilder { + // Use ScopeLocalIdSignature.newBuilder() to construct. + private ScopeLocalIdSignature(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ScopeLocalIdSignature(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final ScopeLocalIdSignature defaultInstance; + public static ScopeLocalIdSignature getDefaultInstance() { + return defaultInstance; + } + + public ScopeLocalIdSignature getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private ScopeLocalIdSignature( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput = + org.jetbrains.kotlin.protobuf.ByteString.newOutput(); + org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput = + org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance( + unknownFieldsOutput, 1); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFieldsCodedOutput, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + file_ = input.readInt32(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + try { + unknownFieldsCodedOutput.flush(); + } catch (java.io.IOException e) { + // Should not happen + } finally { + unknownFields = unknownFieldsOutput.toByteString(); + } + makeExtensionsImmutable(); + } + } + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public ScopeLocalIdSignature parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new ScopeLocalIdSignature(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private int id_; + /** + * required int32 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 id = 1; + */ + public int getId() { + return id_; + } + + public static final int FILE_FIELD_NUMBER = 2; + private int file_; + /** + * optional int32 file = 2; + */ + public boolean hasFile() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 file = 2; + */ + public int getFile() { + return file_; + } + + private void initFields() { + id_ = 0; + file_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, file_); + } + output.writeRawBytes(unknownFields); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(2, file_); + } + size += unknownFields.size(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom( + byte[] data, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseDelimitedFrom( + java.io.InputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.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.backend.common.serialization.proto.ScopeLocalIdSignature prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature) + org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignatureOrBuilder { + // Construct using org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + file_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature getDefaultInstanceForType() { + return org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature.getDefaultInstance(); + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature build() { + org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature buildPartial() { + org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature result = new org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.file_ = file_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature other) { + if (other == org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasFile()) { + setFile(other.getFile()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + if (!hasId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int id_ ; + /** + * required int32 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int32 id = 1; + */ + public int getId() { + return id_; + } + /** + * required int32 id = 1; + */ + public Builder setId(int value) { + bitField0_ |= 0x00000001; + id_ = value; + + return this; + } + /** + * required int32 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0; + + return this; + } + + private int file_ ; + /** + * optional int32 file = 2; + */ + public boolean hasFile() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 file = 2; + */ + public int getFile() { + return file_; + } + /** + * optional int32 file = 2; + */ + public Builder setFile(int value) { + bitField0_ |= 0x00000002; + file_ = value; + + return this; + } + /** + * optional int32 file = 2; + */ + public Builder clearFile() { + bitField0_ = (bitField0_ & ~0x00000002); + file_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature) + } + + static { + defaultInstance = new ScopeLocalIdSignature(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature) +} \ No newline at end of file diff --git a/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/ScopeLocalIdSignatureOrBuilder.java b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/ScopeLocalIdSignatureOrBuilder.java new file mode 100644 index 00000000000..f8fdb4a8081 --- /dev/null +++ b/compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/ScopeLocalIdSignatureOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/ir/serialization.common/src/KotlinIr.proto + +package org.jetbrains.kotlin.backend.common.serialization.proto; + +public interface ScopeLocalIdSignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.backend.common.serialization.proto.ScopeLocalIdSignature) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * required int32 id = 1; + */ + boolean hasId(); + /** + * required int32 id = 1; + */ + int getId(); + + /** + * optional int32 file = 2; + */ + boolean hasFile(); + /** + * optional int32 file = 2; + */ + int getFile(); +} \ No newline at end of file