diff --git a/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt b/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt index 7ae072e1a80..ca77fca2832 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt @@ -46,6 +46,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEquals(old.typeTable, new.typeTable)) return false } + if (old.hasSinceKotlinInfoTable() != new.hasSinceKotlinInfoTable()) return false + if (old.hasSinceKotlinInfoTable()) { + if (!checkEquals(old.sinceKotlinInfoTable, new.sinceKotlinInfoTable)) return false + } + if (old.hasExtension(JvmProtoBuf.packageModuleName) != new.hasExtension(JvmProtoBuf.packageModuleName)) return false if (old.hasExtension(JvmProtoBuf.packageModuleName)) { if (!checkStringEquals(old.getExtension(JvmProtoBuf.packageModuleName), new.getExtension(JvmProtoBuf.packageModuleName))) return false @@ -58,6 +63,7 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR PROPERTY_LIST, TYPE_ALIAS_LIST, TYPE_TABLE, + SINCE_KOTLIN_INFO_TABLE, PACKAGE_MODULE_NAME } @@ -75,6 +81,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEquals(old.typeTable, new.typeTable)) result.add(ProtoBufPackageKind.TYPE_TABLE) } + if (old.hasSinceKotlinInfoTable() != new.hasSinceKotlinInfoTable()) result.add(ProtoBufPackageKind.SINCE_KOTLIN_INFO_TABLE) + if (old.hasSinceKotlinInfoTable()) { + if (!checkEquals(old.sinceKotlinInfoTable, new.sinceKotlinInfoTable)) result.add(ProtoBufPackageKind.SINCE_KOTLIN_INFO_TABLE) + } + if (old.hasExtension(JvmProtoBuf.packageModuleName) != new.hasExtension(JvmProtoBuf.packageModuleName)) result.add(ProtoBufPackageKind.PACKAGE_MODULE_NAME) if (old.hasExtension(JvmProtoBuf.packageModuleName)) { if (!checkStringEquals(old.getExtension(JvmProtoBuf.packageModuleName), new.getExtension(JvmProtoBuf.packageModuleName))) result.add(ProtoBufPackageKind.PACKAGE_MODULE_NAME) @@ -119,6 +130,16 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEquals(old.typeTable, new.typeTable)) return false } + if (old.hasSinceKotlinInfo() != new.hasSinceKotlinInfo()) return false + if (old.hasSinceKotlinInfo()) { + if (old.sinceKotlinInfo != new.sinceKotlinInfo) return false + } + + if (old.hasSinceKotlinInfoTable() != new.hasSinceKotlinInfoTable()) return false + if (old.hasSinceKotlinInfoTable()) { + if (!checkEquals(old.sinceKotlinInfoTable, new.sinceKotlinInfoTable)) return false + } + if (old.hasExtension(JvmProtoBuf.classModuleName) != new.hasExtension(JvmProtoBuf.classModuleName)) return false if (old.hasExtension(JvmProtoBuf.classModuleName)) { if (!checkStringEquals(old.getExtension(JvmProtoBuf.classModuleName), new.getExtension(JvmProtoBuf.classModuleName))) return false @@ -140,6 +161,8 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR TYPE_ALIAS_LIST, ENUM_ENTRY_LIST, TYPE_TABLE, + SINCE_KOTLIN_INFO, + SINCE_KOTLIN_INFO_TABLE, CLASS_MODULE_NAME } @@ -181,6 +204,16 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEquals(old.typeTable, new.typeTable)) result.add(ProtoBufClassKind.TYPE_TABLE) } + if (old.hasSinceKotlinInfo() != new.hasSinceKotlinInfo()) result.add(ProtoBufClassKind.SINCE_KOTLIN_INFO) + if (old.hasSinceKotlinInfo()) { + if (old.sinceKotlinInfo != new.sinceKotlinInfo) result.add(ProtoBufClassKind.SINCE_KOTLIN_INFO) + } + + if (old.hasSinceKotlinInfoTable() != new.hasSinceKotlinInfoTable()) result.add(ProtoBufClassKind.SINCE_KOTLIN_INFO_TABLE) + if (old.hasSinceKotlinInfoTable()) { + if (!checkEquals(old.sinceKotlinInfoTable, new.sinceKotlinInfoTable)) result.add(ProtoBufClassKind.SINCE_KOTLIN_INFO_TABLE) + } + if (old.hasExtension(JvmProtoBuf.classModuleName) != new.hasExtension(JvmProtoBuf.classModuleName)) result.add(ProtoBufClassKind.CLASS_MODULE_NAME) if (old.hasExtension(JvmProtoBuf.classModuleName)) { if (!checkStringEquals(old.getExtension(JvmProtoBuf.classModuleName), new.getExtension(JvmProtoBuf.classModuleName))) result.add(ProtoBufClassKind.CLASS_MODULE_NAME) @@ -231,6 +264,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEquals(old.typeTable, new.typeTable)) return false } + if (old.hasSinceKotlinInfo() != new.hasSinceKotlinInfo()) return false + if (old.hasSinceKotlinInfo()) { + if (old.sinceKotlinInfo != new.sinceKotlinInfo) return false + } + if (old.hasExtension(JvmProtoBuf.methodSignature) != new.hasExtension(JvmProtoBuf.methodSignature)) return false if (old.hasExtension(JvmProtoBuf.methodSignature)) { if (!checkEquals(old.getExtension(JvmProtoBuf.methodSignature), new.getExtension(JvmProtoBuf.methodSignature))) return false @@ -289,6 +327,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (old.setterFlags != new.setterFlags) return false } + if (old.hasSinceKotlinInfo() != new.hasSinceKotlinInfo()) return false + if (old.hasSinceKotlinInfo()) { + if (old.sinceKotlinInfo != new.sinceKotlinInfo) return false + } + if (old.hasExtension(JvmProtoBuf.propertySignature) != new.hasExtension(JvmProtoBuf.propertySignature)) return false if (old.hasExtension(JvmProtoBuf.propertySignature)) { if (!checkEquals(old.getExtension(JvmProtoBuf.propertySignature), new.getExtension(JvmProtoBuf.propertySignature))) return false @@ -329,6 +372,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEqualsTypeAliasAnnotation(old, new)) return false + if (old.hasSinceKotlinInfo() != new.hasSinceKotlinInfo()) return false + if (old.hasSinceKotlinInfo()) { + if (old.sinceKotlinInfo != new.sinceKotlinInfo) return false + } + return true } @@ -343,6 +391,12 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR return true } + open fun checkEquals(old: ProtoBuf.SinceKotlinInfoTable, new: ProtoBuf.SinceKotlinInfoTable): Boolean { + if (!checkEqualsSinceKotlinInfoTableInfo(old, new)) return false + + return true + } + open fun checkEquals(old: ProtoBuf.TypeParameter, new: ProtoBuf.TypeParameter): Boolean { if (old.id != new.id) return false @@ -456,6 +510,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEqualsConstructorValueParameter(old, new)) return false + if (old.hasSinceKotlinInfo() != new.hasSinceKotlinInfo()) return false + if (old.hasSinceKotlinInfo()) { + if (old.sinceKotlinInfo != new.sinceKotlinInfo) return false + } + if (old.hasExtension(JvmProtoBuf.constructorSignature) != new.hasExtension(JvmProtoBuf.constructorSignature)) return false if (old.hasExtension(JvmProtoBuf.constructorSignature)) { if (!checkEquals(old.getExtension(JvmProtoBuf.constructorSignature), new.getExtension(JvmProtoBuf.constructorSignature))) return false @@ -550,6 +609,35 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR return true } + open fun checkEquals(old: ProtoBuf.SinceKotlinInfo, new: ProtoBuf.SinceKotlinInfo): Boolean { + if (old.hasVersion() != new.hasVersion()) return false + if (old.hasVersion()) { + if (old.version != new.version) return false + } + + if (old.hasVersionFull() != new.hasVersionFull()) return false + if (old.hasVersionFull()) { + if (old.versionFull != new.versionFull) return false + } + + if (old.hasLevel() != new.hasLevel()) return false + if (old.hasLevel()) { + if (old.level != new.level) return false + } + + if (old.hasErrorCode() != new.hasErrorCode()) return false + if (old.hasErrorCode()) { + if (old.errorCode != new.errorCode) return false + } + + if (old.hasMessage() != new.hasMessage()) return false + if (old.hasMessage()) { + if (!checkStringEquals(old.message, new.message)) return false + } + + return true + } + open fun checkEquals(old: ProtoBuf.Type.Argument, new: ProtoBuf.Type.Argument): Boolean { if (old.hasProjection() != new.hasProjection()) return false if (old.hasProjection()) { @@ -817,6 +905,16 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR return true } + open fun checkEqualsSinceKotlinInfoTableInfo(old: ProtoBuf.SinceKotlinInfoTable, new: ProtoBuf.SinceKotlinInfoTable): Boolean { + if (old.infoCount != new.infoCount) return false + + for(i in 0..old.infoCount - 1) { + if (!checkEquals(old.getInfo(i), new.getInfo(i))) return false + } + + return true + } + open fun checkEqualsTypeParameterUpperBound(old: ProtoBuf.TypeParameter, new: ProtoBuf.TypeParameter): Boolean { if (old.upperBoundCount != new.upperBoundCount) return false @@ -927,6 +1025,10 @@ fun ProtoBuf.Package.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) hashCode = 31 * hashCode + typeTable.hashCode(stringIndexes, fqNameIndexes) } + if (hasSinceKotlinInfoTable()) { + hashCode = 31 * hashCode + sinceKotlinInfoTable.hashCode(stringIndexes, fqNameIndexes) + } + if (hasExtension(JvmProtoBuf.packageModuleName)) { hashCode = 31 * hashCode + stringIndexes(getExtension(JvmProtoBuf.packageModuleName)) } @@ -987,6 +1089,14 @@ fun ProtoBuf.Class.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> hashCode = 31 * hashCode + typeTable.hashCode(stringIndexes, fqNameIndexes) } + if (hasSinceKotlinInfo()) { + hashCode = 31 * hashCode + sinceKotlinInfo + } + + if (hasSinceKotlinInfoTable()) { + hashCode = 31 * hashCode + sinceKotlinInfoTable.hashCode(stringIndexes, fqNameIndexes) + } + if (hasExtension(JvmProtoBuf.classModuleName)) { hashCode = 31 * hashCode + stringIndexes(getExtension(JvmProtoBuf.classModuleName)) } @@ -1035,6 +1145,10 @@ fun ProtoBuf.Function.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) hashCode = 31 * hashCode + typeTable.hashCode(stringIndexes, fqNameIndexes) } + if (hasSinceKotlinInfo()) { + hashCode = 31 * hashCode + sinceKotlinInfo + } + if (hasExtension(JvmProtoBuf.methodSignature)) { hashCode = 31 * hashCode + getExtension(JvmProtoBuf.methodSignature).hashCode(stringIndexes, fqNameIndexes) } @@ -1087,6 +1201,10 @@ fun ProtoBuf.Property.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) hashCode = 31 * hashCode + setterFlags } + if (hasSinceKotlinInfo()) { + hashCode = 31 * hashCode + sinceKotlinInfo + } + if (hasExtension(JvmProtoBuf.propertySignature)) { hashCode = 31 * hashCode + getExtension(JvmProtoBuf.propertySignature).hashCode(stringIndexes, fqNameIndexes) } @@ -1127,6 +1245,10 @@ fun ProtoBuf.TypeAlias.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int hashCode = 31 * hashCode + getAnnotation(i).hashCode(stringIndexes, fqNameIndexes) } + if (hasSinceKotlinInfo()) { + hashCode = 31 * hashCode + sinceKotlinInfo + } + return hashCode } @@ -1144,6 +1266,16 @@ fun ProtoBuf.TypeTable.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int return hashCode } +fun ProtoBuf.SinceKotlinInfoTable.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + var hashCode = 1 + + for(i in 0..infoCount - 1) { + hashCode = 31 * hashCode + getInfo(i).hashCode(stringIndexes, fqNameIndexes) + } + + return hashCode +} + fun ProtoBuf.TypeParameter.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { var hashCode = 1 @@ -1251,6 +1383,10 @@ fun ProtoBuf.Constructor.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (I hashCode = 31 * hashCode + getValueParameter(i).hashCode(stringIndexes, fqNameIndexes) } + if (hasSinceKotlinInfo()) { + hashCode = 31 * hashCode + sinceKotlinInfo + } + if (hasExtension(JvmProtoBuf.constructorSignature)) { hashCode = 31 * hashCode + getExtension(JvmProtoBuf.constructorSignature).hashCode(stringIndexes, fqNameIndexes) } @@ -1344,6 +1480,32 @@ fun ProtoBuf.Annotation.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (In return hashCode } +fun ProtoBuf.SinceKotlinInfo.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + var hashCode = 1 + + if (hasVersion()) { + hashCode = 31 * hashCode + version + } + + if (hasVersionFull()) { + hashCode = 31 * hashCode + versionFull + } + + if (hasLevel()) { + hashCode = 31 * hashCode + level.hashCode() + } + + if (hasErrorCode()) { + hashCode = 31 * hashCode + errorCode + } + + if (hasMessage()) { + hashCode = 31 * hashCode + stringIndexes(message) + } + + return hashCode +} + fun ProtoBuf.Type.Argument.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { var hashCode = 1 diff --git a/build-common/test/org/jetbrains/kotlin/serialization/DebugProtoBuf.java b/build-common/test/org/jetbrains/kotlin/serialization/DebugProtoBuf.java index 4d84337dfb8..2fc5207b0d3 100644 --- a/build-common/test/org/jetbrains/kotlin/serialization/DebugProtoBuf.java +++ b/build-common/test/org/jetbrains/kotlin/serialization/DebugProtoBuf.java @@ -9874,6 +9874,36 @@ public final class DebugProtoBuf { * optional .org.jetbrains.kotlin.serialization.TypeTable type_table = 30; */ org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeTableOrBuilder getTypeTableOrBuilder(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); + + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + boolean hasSinceKotlinInfoTable(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder getSinceKotlinInfoTableOrBuilder(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Class} @@ -10054,6 +10084,24 @@ public final class DebugProtoBuf { bitField0_ |= 0x00000008; break; } + case 248: { + bitField0_ |= 0x00000010; + sinceKotlinInfo_ = input.readInt32(); + break; + } + case 258: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = sinceKotlinInfoTable_.toBuilder(); + } + sinceKotlinInfoTable_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sinceKotlinInfoTable_); + sinceKotlinInfoTable_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -10631,6 +10679,50 @@ public final class DebugProtoBuf { return typeTable_; } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + + public static final int SINCE_KOTLIN_INFO_TABLE_FIELD_NUMBER = 32; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + return sinceKotlinInfoTable_; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder getSinceKotlinInfoTableOrBuilder() { + return sinceKotlinInfoTable_; + } + private void initFields() { flags_ = 6; fqName_ = 0; @@ -10645,6 +10737,8 @@ public final class DebugProtoBuf { typeAlias_ = java.util.Collections.emptyList(); enumEntry_ = java.util.Collections.emptyList(); typeTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeTable.getDefaultInstance(); + sinceKotlinInfo_ = 0; + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -10765,6 +10859,12 @@ public final class DebugProtoBuf { if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(30, typeTable_); } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(31, sinceKotlinInfo_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(32, sinceKotlinInfoTable_); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -10847,6 +10947,14 @@ public final class DebugProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(30, typeTable_); } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(32, sinceKotlinInfoTable_); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -10966,6 +11074,7 @@ public final class DebugProtoBuf { getTypeAliasFieldBuilder(); getEnumEntryFieldBuilder(); getTypeTableFieldBuilder(); + getSinceKotlinInfoTableFieldBuilder(); } } private static Builder create() { @@ -11032,6 +11141,14 @@ public final class DebugProtoBuf { typeTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00002000); + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + } else { + sinceKotlinInfoTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); return this; } @@ -11153,6 +11270,18 @@ public final class DebugProtoBuf { } else { result.typeTable_ = typeTableBuilder_.build(); } + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00000010; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00000020; + } + if (sinceKotlinInfoTableBuilder_ == null) { + result.sinceKotlinInfoTable_ = sinceKotlinInfoTable_; + } else { + result.sinceKotlinInfoTable_ = sinceKotlinInfoTableBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -11383,6 +11512,12 @@ public final class DebugProtoBuf { if (other.hasTypeTable()) { mergeTypeTable(other.getTypeTable()); } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } + if (other.hasSinceKotlinInfoTable()) { + mergeSinceKotlinInfoTable(other.getSinceKotlinInfoTable()); + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -13527,6 +13662,170 @@ public final class DebugProtoBuf { return typeTableBuilder_; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00002000; + sinceKotlinInfo_ = value; + onChanged(); + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + sinceKotlinInfo_ = 0; + onChanged(); + return this; + } + + private org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder> sinceKotlinInfoTableBuilder_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + if (sinceKotlinInfoTableBuilder_ == null) { + return sinceKotlinInfoTable_; + } else { + return sinceKotlinInfoTableBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable value) { + if (sinceKotlinInfoTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sinceKotlinInfoTable_ = value; + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder builderForValue) { + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTable_ = builderForValue.build(); + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder mergeSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable value) { + if (sinceKotlinInfoTableBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000) && + sinceKotlinInfoTable_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance()) { + sinceKotlinInfoTable_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.newBuilder(sinceKotlinInfoTable_).mergeFrom(value).buildPartial(); + } else { + sinceKotlinInfoTable_ = value; + } + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder clearSinceKotlinInfoTable() { + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder getSinceKotlinInfoTableBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getSinceKotlinInfoTableFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder getSinceKotlinInfoTableOrBuilder() { + if (sinceKotlinInfoTableBuilder_ != null) { + return sinceKotlinInfoTableBuilder_.getMessageOrBuilder(); + } else { + return sinceKotlinInfoTable_; + } + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder> + getSinceKotlinInfoTableFieldBuilder() { + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTableBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder>( + getSinceKotlinInfoTable(), + getParentForChildren(), + isClean()); + sinceKotlinInfoTable_ = null; + } + return sinceKotlinInfoTableBuilder_; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Class) } @@ -13627,6 +13926,19 @@ public final class DebugProtoBuf { * optional .org.jetbrains.kotlin.serialization.TypeTable type_table = 30; */ org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeTableOrBuilder getTypeTableOrBuilder(); + + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + boolean hasSinceKotlinInfoTable(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder getSinceKotlinInfoTableOrBuilder(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Package} @@ -13718,6 +14030,19 @@ public final class DebugProtoBuf { bitField0_ |= 0x00000001; break; } + case 258: { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = sinceKotlinInfoTable_.toBuilder(); + } + sinceKotlinInfoTable_ = input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sinceKotlinInfoTable_); + sinceKotlinInfoTable_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -13893,11 +14218,33 @@ public final class DebugProtoBuf { return typeTable_; } + public static final int SINCE_KOTLIN_INFO_TABLE_FIELD_NUMBER = 32; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + return sinceKotlinInfoTable_; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder getSinceKotlinInfoTableOrBuilder() { + return sinceKotlinInfoTable_; + } + private void initFields() { function_ = java.util.Collections.emptyList(); property_ = java.util.Collections.emptyList(); typeAlias_ = java.util.Collections.emptyList(); typeTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeTable.getDefaultInstance(); + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -13955,6 +14302,9 @@ public final class DebugProtoBuf { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(30, typeTable_); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(32, sinceKotlinInfoTable_); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -13981,6 +14331,10 @@ public final class DebugProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(30, typeTable_); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(32, sinceKotlinInfoTable_); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -14096,6 +14450,7 @@ public final class DebugProtoBuf { getPropertyFieldBuilder(); getTypeAliasFieldBuilder(); getTypeTableFieldBuilder(); + getSinceKotlinInfoTableFieldBuilder(); } } private static Builder create() { @@ -14128,6 +14483,12 @@ public final class DebugProtoBuf { typeTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + } else { + sinceKotlinInfoTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -14191,6 +14552,14 @@ public final class DebugProtoBuf { } else { result.typeTable_ = typeTableBuilder_.build(); } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000002; + } + if (sinceKotlinInfoTableBuilder_ == null) { + result.sinceKotlinInfoTable_ = sinceKotlinInfoTable_; + } else { + result.sinceKotlinInfoTable_ = sinceKotlinInfoTableBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -14288,6 +14657,9 @@ public final class DebugProtoBuf { if (other.hasTypeTable()) { mergeTypeTable(other.getTypeTable()); } + if (other.hasSinceKotlinInfoTable()) { + mergeSinceKotlinInfoTable(other.getSinceKotlinInfoTable()); + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -15180,6 +15552,122 @@ public final class DebugProtoBuf { return typeTableBuilder_; } + private org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder> sinceKotlinInfoTableBuilder_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + if (sinceKotlinInfoTableBuilder_ == null) { + return sinceKotlinInfoTable_; + } else { + return sinceKotlinInfoTableBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable value) { + if (sinceKotlinInfoTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sinceKotlinInfoTable_ = value; + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder builderForValue) { + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTable_ = builderForValue.build(); + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder mergeSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable value) { + if (sinceKotlinInfoTableBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + sinceKotlinInfoTable_ != org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance()) { + sinceKotlinInfoTable_ = + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.newBuilder(sinceKotlinInfoTable_).mergeFrom(value).buildPartial(); + } else { + sinceKotlinInfoTable_ = value; + } + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder clearSinceKotlinInfoTable() { + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + onChanged(); + } else { + sinceKotlinInfoTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder getSinceKotlinInfoTableBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getSinceKotlinInfoTableFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder getSinceKotlinInfoTableOrBuilder() { + if (sinceKotlinInfoTableBuilder_ != null) { + return sinceKotlinInfoTableBuilder_.getMessageOrBuilder(); + } else { + return sinceKotlinInfoTable_; + } + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder> + getSinceKotlinInfoTableFieldBuilder() { + if (sinceKotlinInfoTableBuilder_ == null) { + sinceKotlinInfoTableBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder>( + getSinceKotlinInfoTable(), + getParentForChildren(), + isClean()); + sinceKotlinInfoTable_ = null; + } + return sinceKotlinInfoTableBuilder_; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Package) } @@ -16049,6 +16537,23 @@ public final class DebugProtoBuf { */ org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameterOrBuilder getValueParameterOrBuilder( int index); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Constructor} @@ -16116,6 +16621,11 @@ public final class DebugProtoBuf { valueParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.PARSER, extensionRegistry)); break; } + case 248: { + bitField0_ |= 0x00000002; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -16221,9 +16731,33 @@ public final class DebugProtoBuf { return valueParameter_.get(index); } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 6; valueParameter_ = java.util.Collections.emptyList(); + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -16257,6 +16791,9 @@ public final class DebugProtoBuf { for (int i = 0; i < valueParameter_.size(); i++) { output.writeMessage(2, valueParameter_.get(i)); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -16275,6 +16812,10 @@ public final class DebugProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(2, valueParameter_.get(i)); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -16403,6 +16944,8 @@ public final class DebugProtoBuf { } else { valueParameterBuilder_.clear(); } + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -16444,6 +16987,10 @@ public final class DebugProtoBuf { } else { result.valueParameter_ = valueParameterBuilder_.build(); } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -16489,6 +17036,9 @@ public final class DebugProtoBuf { } } } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -16823,6 +17373,54 @@ public final class DebugProtoBuf { return valueParameterBuilder_; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000004; + sinceKotlinInfo_ = value; + onChanged(); + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + sinceKotlinInfo_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Constructor) } @@ -16994,6 +17592,23 @@ public final class DebugProtoBuf { * optional .org.jetbrains.kotlin.serialization.TypeTable type_table = 30; */ org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeTableOrBuilder getTypeTableOrBuilder(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Function} @@ -17128,6 +17743,11 @@ public final class DebugProtoBuf { bitField0_ |= 0x00000080; break; } + case 248: { + bitField0_ |= 0x00000100; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -17406,6 +18026,29 @@ public final class DebugProtoBuf { return typeTable_; } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 6; oldFlags_ = 6; @@ -17417,6 +18060,7 @@ public final class DebugProtoBuf { receiverTypeId_ = 0; valueParameter_ = java.util.Collections.emptyList(); typeTable_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.TypeTable.getDefaultInstance(); + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -17502,6 +18146,9 @@ public final class DebugProtoBuf { if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(30, typeTable_); } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -17552,6 +18199,10 @@ public final class DebugProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(30, typeTable_); } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -17716,6 +18367,8 @@ public final class DebugProtoBuf { typeTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -17806,6 +18459,10 @@ public final class DebugProtoBuf { } else { result.typeTable_ = typeTableBuilder_.build(); } + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000100; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -17898,6 +18555,9 @@ public final class DebugProtoBuf { if (other.hasTypeTable()) { mergeTypeTable(other.getTypeTable()); } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -19000,6 +19660,54 @@ public final class DebugProtoBuf { return typeTableBuilder_; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000400; + sinceKotlinInfo_ = value; + onChanged(); + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000400); + sinceKotlinInfo_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Function) } @@ -19185,6 +19893,23 @@ public final class DebugProtoBuf { * optional int32 setter_flags = 8; */ int getSetterFlags(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Property} @@ -19321,6 +20046,11 @@ public final class DebugProtoBuf { flags_ = input.readInt32(); break; } + case 248: { + bitField0_ |= 0x00000400; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -19611,6 +20341,29 @@ public final class DebugProtoBuf { return setterFlags_; } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 518; oldFlags_ = 2054; @@ -19623,6 +20376,7 @@ public final class DebugProtoBuf { setterValueParameter_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.ValueParameter.getDefaultInstance(); getterFlags_ = 0; setterFlags_ = 0; + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -19705,6 +20459,9 @@ public final class DebugProtoBuf { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(11, flags_); } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -19759,6 +20516,10 @@ public final class DebugProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeInt32Size(11, flags_); } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -19920,6 +20681,8 @@ public final class DebugProtoBuf { bitField0_ = (bitField0_ & ~0x00000200); setterFlags_ = 0; bitField0_ = (bitField0_ & ~0x00000400); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000800); return this; } @@ -20009,6 +20772,10 @@ public final class DebugProtoBuf { to_bitField0_ |= 0x00000200; } result.setterFlags_ = setterFlags_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000400; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -20081,6 +20848,9 @@ public final class DebugProtoBuf { if (other.hasSetterFlags()) { setSetterFlags(other.getSetterFlags()); } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -21041,6 +21811,54 @@ public final class DebugProtoBuf { return this; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000800; + sinceKotlinInfo_ = value; + onChanged(); + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000800); + sinceKotlinInfo_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Property) } @@ -22290,6 +23108,23 @@ public final class DebugProtoBuf { */ org.jetbrains.kotlin.serialization.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( int index); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.TypeAlias} @@ -22406,6 +23241,11 @@ public final class DebugProtoBuf { annotation_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.PARSER, extensionRegistry)); break; } + case 248: { + bitField0_ |= 0x00000040; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -22634,6 +23474,29 @@ public final class DebugProtoBuf { return annotation_.get(index); } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 6; name_ = 0; @@ -22643,6 +23506,7 @@ public final class DebugProtoBuf { expandedType_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.Type.getDefaultInstance(); expandedTypeId_ = 0; annotation_ = java.util.Collections.emptyList(); + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -22716,6 +23580,9 @@ public final class DebugProtoBuf { for (int i = 0; i < annotation_.size(); i++) { output.writeMessage(8, annotation_.get(i)); } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); getUnknownFields().writeTo(output); } @@ -22758,6 +23625,10 @@ public final class DebugProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(8, annotation_.get(i)); } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -22913,6 +23784,8 @@ public final class DebugProtoBuf { } else { annotationBuilder_.clear(); } + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -22991,6 +23864,10 @@ public final class DebugProtoBuf { } else { result.annotation_ = annotationBuilder_.build(); } + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000040; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -23077,6 +23954,9 @@ public final class DebugProtoBuf { } } } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -23997,6 +24877,54 @@ public final class DebugProtoBuf { return annotationBuilder_; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000100; + sinceKotlinInfo_ = value; + onChanged(); + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000100); + sinceKotlinInfo_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.TypeAlias) } @@ -24422,6 +25350,1675 @@ public final class DebugProtoBuf { // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.EnumEntry) } + public interface SinceKotlinInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + org.jetbrains.kotlin.protobuf.MessageOrBuilder { + + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + boolean hasVersion(); + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + int getVersion(); + + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + boolean hasVersionFull(); + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + int getVersionFull(); + + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + boolean hasLevel(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level getLevel(); + + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + boolean hasErrorCode(); + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + int getErrorCode(); + + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + boolean hasMessage(); + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + int getMessage(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfo} + */ + public static final class SinceKotlinInfo extends + org.jetbrains.kotlin.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + SinceKotlinInfoOrBuilder { + // Use SinceKotlinInfo.newBuilder() to construct. + private SinceKotlinInfo(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private SinceKotlinInfo(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final SinceKotlinInfo defaultInstance; + public static SinceKotlinInfo getDefaultInstance() { + return defaultInstance; + } + + public SinceKotlinInfo getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final org.jetbrains.kotlin.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SinceKotlinInfo( + 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.UnknownFieldSet.Builder unknownFields = + org.jetbrains.kotlin.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + version_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + versionFull_ = input.readInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level value = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + level_ = value; + } + break; + } + case 32: { + bitField0_ |= 0x00000008; + errorCode_ = input.readInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + message_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder.class); + } + + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public SinceKotlinInfo parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new SinceKotlinInfo(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level} + */ + public enum Level + implements org.jetbrains.kotlin.protobuf.ProtocolMessageEnum { + /** + * WARNING = 0; + */ + WARNING(0, 0), + /** + * ERROR = 1; + */ + ERROR(1, 1), + /** + * HIDDEN = 2; + */ + HIDDEN(2, 2), + ; + + /** + * WARNING = 0; + */ + public static final int WARNING_VALUE = 0; + /** + * ERROR = 1; + */ + public static final int ERROR_VALUE = 1; + /** + * HIDDEN = 2; + */ + public static final int HIDDEN_VALUE = 2; + + + public final int getNumber() { return value; } + + public static Level valueOf(int value) { + switch (value) { + case 0: return WARNING; + case 1: return ERROR; + case 2: return HIDDEN; + default: return null; + } + } + + public static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap + internalValueMap = + new org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.valueOf(number); + } + }; + + public final org.jetbrains.kotlin.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final org.jetbrains.kotlin.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final org.jetbrains.kotlin.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Level[] VALUES = values(); + + public static Level valueOf( + org.jetbrains.kotlin.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private Level(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level) + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + public int getVersion() { + return version_; + } + + public static final int VERSION_FULL_FIELD_NUMBER = 2; + private int versionFull_; + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + public boolean hasVersionFull() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + public int getVersionFull() { + return versionFull_; + } + + public static final int LEVEL_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level level_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level getLevel() { + return level_; + } + + public static final int ERROR_CODE_FIELD_NUMBER = 4; + private int errorCode_; + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + public boolean hasErrorCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + public int getErrorCode() { + return errorCode_; + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + private int message_; + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + public int getMessage() { + return message_; + } + + private void initFields() { + version_ = 0; + versionFull_ = 0; + level_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level.ERROR; + errorCode_ = 0; + message_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 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, version_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, versionFull_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, level_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, errorCode_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, message_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(1, version_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(2, versionFull_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeEnumSize(3, level_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(4, errorCode_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, message_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo 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.serialization.DebugProtoBuf.SinceKotlinInfo parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo 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.serialization.DebugProtoBuf.SinceKotlinInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo 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.serialization.DebugProtoBuf.SinceKotlinInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo 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.serialization.DebugProtoBuf.SinceKotlinInfo parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo 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.serialization.DebugProtoBuf.SinceKotlinInfo prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + org.jetbrains.kotlin.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfo} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder { + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder.class); + } + + // Construct using org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + org.jetbrains.kotlin.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + version_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + versionFull_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + level_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level.ERROR; + bitField0_ = (bitField0_ & ~0x00000004); + errorCode_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + message_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_descriptor; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo build() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo buildPartial() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo result = new org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.version_ = version_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.versionFull_ = versionFull_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.level_ = level_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.errorCode_ = errorCode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.message_ = message_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo) { + return mergeFrom((org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo other) { + if (other == org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.getDefaultInstance()) return this; + if (other.hasVersion()) { + setVersion(other.getVersion()); + } + if (other.hasVersionFull()) { + setVersionFull(other.getVersionFull()); + } + if (other.hasLevel()) { + setLevel(other.getLevel()); + } + if (other.hasErrorCode()) { + setErrorCode(other.getErrorCode()); + } + if (other.hasMessage()) { + setMessage(other.getMessage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int version_ ; + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public int getVersion() { + return version_; + } + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public Builder setVersion(int value) { + bitField0_ |= 0x00000001; + version_ = value; + onChanged(); + return this; + } + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + + private int versionFull_ ; + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public boolean hasVersionFull() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public int getVersionFull() { + return versionFull_; + } + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public Builder setVersionFull(int value) { + bitField0_ |= 0x00000002; + versionFull_ = value; + onChanged(); + return this; + } + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public Builder clearVersionFull() { + bitField0_ = (bitField0_ & ~0x00000002); + versionFull_ = 0; + onChanged(); + return this; + } + + private org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level level_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level.ERROR; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level getLevel() { + return level_; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public Builder setLevel(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + level_ = value; + onChanged(); + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + level_ = org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Level.ERROR; + onChanged(); + return this; + } + + private int errorCode_ ; + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public boolean hasErrorCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public int getErrorCode() { + return errorCode_; + } + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public Builder setErrorCode(int value) { + bitField0_ |= 0x00000008; + errorCode_ = value; + onChanged(); + return this; + } + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public Builder clearErrorCode() { + bitField0_ = (bitField0_ & ~0x00000008); + errorCode_ = 0; + onChanged(); + return this; + } + + private int message_ ; + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public int getMessage() { + return message_; + } + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public Builder setMessage(int value) { + bitField0_ |= 0x00000010; + message_ = value; + onChanged(); + return this; + } + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000010); + message_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + } + + static { + defaultInstance = new SinceKotlinInfo(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + } + + public interface SinceKotlinInfoTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + org.jetbrains.kotlin.protobuf.MessageOrBuilder { + + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + java.util.List + getInfoList(); + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo getInfo(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + int getInfoCount(); + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + java.util.List + getInfoOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder getInfoOrBuilder( + int index); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfoTable} + */ + public static final class SinceKotlinInfoTable extends + org.jetbrains.kotlin.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + SinceKotlinInfoTableOrBuilder { + // Use SinceKotlinInfoTable.newBuilder() to construct. + private SinceKotlinInfoTable(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private SinceKotlinInfoTable(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final SinceKotlinInfoTable defaultInstance; + public static SinceKotlinInfoTable getDefaultInstance() { + return defaultInstance; + } + + public SinceKotlinInfoTable getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final org.jetbrains.kotlin.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SinceKotlinInfoTable( + 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.UnknownFieldSet.Builder unknownFields = + org.jetbrains.kotlin.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + info_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + info_.add(input.readMessage(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.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_ & 0x00000001) == 0x00000001)) { + info_ = java.util.Collections.unmodifiableList(info_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder.class); + } + + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public SinceKotlinInfoTable parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new SinceKotlinInfoTable(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + public static final int INFO_FIELD_NUMBER = 1; + private java.util.List info_; + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List getInfoList() { + return info_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List + getInfoOrBuilderList() { + return info_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public int getInfoCount() { + return info_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo getInfo(int index) { + return info_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder getInfoOrBuilder( + int index) { + return info_.get(index); + } + + private void initFields() { + info_ = 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; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < info_.size(); i++) { + output.writeMessage(1, info_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < info_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(1, info_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable 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.serialization.DebugProtoBuf.SinceKotlinInfoTable parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable 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.serialization.DebugProtoBuf.SinceKotlinInfoTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable 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.serialization.DebugProtoBuf.SinceKotlinInfoTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable 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.serialization.DebugProtoBuf.SinceKotlinInfoTable parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable 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.serialization.DebugProtoBuf.SinceKotlinInfoTable prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + org.jetbrains.kotlin.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfoTable} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTableOrBuilder { + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.class, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.Builder.class); + } + + // Construct using org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + org.jetbrains.kotlin.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getInfoFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (infoBuilder_ == null) { + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + infoBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_descriptor; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable build() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable buildPartial() { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable result = new org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable(this); + int from_bitField0_ = bitField0_; + if (infoBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + info_ = java.util.Collections.unmodifiableList(info_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable) { + return mergeFrom((org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable other) { + if (other == org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable.getDefaultInstance()) return this; + if (infoBuilder_ == null) { + if (!other.info_.isEmpty()) { + if (info_.isEmpty()) { + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoIsMutable(); + info_.addAll(other.info_); + } + onChanged(); + } + } else { + if (!other.info_.isEmpty()) { + if (infoBuilder_.isEmpty()) { + infoBuilder_.dispose(); + infoBuilder_ = null; + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + infoBuilder_ = + org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getInfoFieldBuilder() : null; + } else { + infoBuilder_.addAllMessages(other.info_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoTable) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List info_ = + java.util.Collections.emptyList(); + private void ensureInfoIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + info_ = new java.util.ArrayList(info_); + bitField0_ |= 0x00000001; + } + } + + private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder> infoBuilder_; + + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List getInfoList() { + if (infoBuilder_ == null) { + return java.util.Collections.unmodifiableList(info_); + } else { + return infoBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public int getInfoCount() { + if (infoBuilder_ == null) { + return info_.size(); + } else { + return infoBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo getInfo(int index) { + if (infoBuilder_ == null) { + return info_.get(index); + } else { + return infoBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder setInfo( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.set(index, value); + onChanged(); + } else { + infoBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder setInfo( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.set(index, builderForValue.build()); + onChanged(); + } else { + infoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo(org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(value); + onChanged(); + } else { + infoBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(index, value); + onChanged(); + } else { + infoBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(builderForValue.build()); + onChanged(); + } else { + infoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo( + int index, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(index, builderForValue.build()); + onChanged(); + } else { + infoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addAllInfo( + java.lang.Iterable values) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, info_); + onChanged(); + } else { + infoBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder removeInfo(int index) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.remove(index); + onChanged(); + } else { + infoBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder getInfoBuilder( + int index) { + return getInfoFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder getInfoOrBuilder( + int index) { + if (infoBuilder_ == null) { + return info_.get(index); } else { + return infoBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List + getInfoOrBuilderList() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(info_); + } + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder addInfoBuilder() { + return getInfoFieldBuilder().addBuilder( + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder addInfoBuilder( + int index) { + return getInfoFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List + getInfoBuilderList() { + return getInfoFieldBuilder().getBuilderList(); + } + private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfo.Builder, org.jetbrains.kotlin.serialization.DebugProtoBuf.SinceKotlinInfoOrBuilder>( + info_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + info_ = null; + } + return infoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + } + + static { + defaultInstance = new SinceKotlinInfoTable(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + } + private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor internal_static_org_jetbrains_kotlin_serialization_StringTable_descriptor; private static @@ -24512,6 +27109,16 @@ public final class DebugProtoBuf { private static org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_jetbrains_kotlin_serialization_EnumEntry_fieldAccessorTable; + private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_descriptor; + private static + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_fieldAccessorTable; + private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_descriptor; + private static + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_fieldAccessorTable; public static org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -24579,7 +27186,7 @@ public final class DebugProtoBuf { "NV\022=\n\013upper_bound\030\005 \003(\0132(.org.jetbrains." + "kotlin.serialization.Type\022\026\n\016upper_bound" + "_id\030\006 \003(\005\"$\n\010Variance\022\006\n\002IN\020\000\022\007\n\003OUT\020\001\022\007" + - "\n\003INV\020\002*\005\010d\020\350\007\"\252\006\n\005Class\022\020\n\005flags\030\001 \001(\005:" + + "\n\003INV\020\002*\005\010d\020\350\007\"\236\007\n\005Class\022\020\n\005flags\030\001 \001(\005:" + "\0016\022\025\n\007fq_name\030\003 \002(\005B\004\220\265\030\001\022#\n\025companion_o", "bject_name\030\004 \001(\005B\004\210\265\030\001\022I\n\016type_parameter" + "\030\005 \003(\01321.org.jetbrains.kotlin.serializat" + @@ -24596,69 +27203,85 @@ public final class DebugProtoBuf { "lias\022A\n\nenum_entry\030\r \003(\0132-.org.jetbrains" + ".kotlin.serialization.EnumEntry\022A\n\ntype_" + "table\030\036 \001(\0132-.org.jetbrains.kotlin.seria" + - "lization.TypeTable\"x\n\004Kind\022\t\n\005CLASS\020\000\022\r\n" + - "\tINTERFACE\020\001\022\016\n\nENUM_CLASS\020\002\022\016\n\nENUM_ENT" + - "RY\020\003\022\024\n\020ANNOTATION_CLASS\020\004\022\n\n\006OBJECT\020\005\022\024" + - "\n\020COMPANION_OBJECT\020\006*\005\010d\020\310\001\"\226\002\n\007Package\022" + - ">\n\010function\030\003 \003(\0132,.org.jetbrains.kotlin", - ".serialization.Function\022>\n\010property\030\004 \003(" + - "\0132,.org.jetbrains.kotlin.serialization.P" + - "roperty\022A\n\ntype_alias\030\005 \003(\0132-.org.jetbra" + - "ins.kotlin.serialization.TypeAlias\022A\n\nty" + - "pe_table\030\036 \001(\0132-.org.jetbrains.kotlin.se" + - "rialization.TypeTable*\005\010d\020\310\001\"_\n\tTypeTabl" + - "e\0226\n\004type\030\001 \003(\0132(.org.jetbrains.kotlin.s" + - "erialization.Type\022\032\n\016first_nullable\030\002 \001(" + - "\005:\002-1\"s\n\013Constructor\022\020\n\005flags\030\001 \001(\005:\0016\022K" + - "\n\017value_parameter\030\002 \003(\01322.org.jetbrains.", - "kotlin.serialization.ValueParameter*\005\010d\020" + - "\310\001\"\332\003\n\010Function\022\020\n\005flags\030\t \001(\005:\0016\022\024\n\told" + - "_flags\030\001 \001(\005:\0016\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001\022=\n\013r" + - "eturn_type\030\003 \001(\0132(.org.jetbrains.kotlin." + - "serialization.Type\022\026\n\016return_type_id\030\007 \001" + - "(\005\022I\n\016type_parameter\030\004 \003(\01321.org.jetbrai" + - "ns.kotlin.serialization.TypeParameter\022?\n" + - "\rreceiver_type\030\005 \001(\0132(.org.jetbrains.kot" + - "lin.serialization.Type\022\030\n\020receiver_type_" + - "id\030\010 \001(\005\022K\n\017value_parameter\030\006 \003(\01322.org.", - "jetbrains.kotlin.serialization.ValuePara" + - "meter\022A\n\ntype_table\030\036 \001(\0132-.org.jetbrain" + - "s.kotlin.serialization.TypeTable*\005\010d\020\310\001\"" + - "\317\003\n\010Property\022\022\n\005flags\030\013 \001(\005:\003518\022\027\n\told_" + - "flags\030\001 \001(\005:\0042054\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001\022=\n" + - "\013return_type\030\003 \001(\0132(.org.jetbrains.kotli" + - "n.serialization.Type\022\026\n\016return_type_id\030\t" + - " \001(\005\022I\n\016type_parameter\030\004 \003(\01321.org.jetbr" + - "ains.kotlin.serialization.TypeParameter\022" + - "?\n\rreceiver_type\030\005 \001(\0132(.org.jetbrains.k", - "otlin.serialization.Type\022\030\n\020receiver_typ" + - "e_id\030\n \001(\005\022R\n\026setter_value_parameter\030\006 \001" + - "(\01322.org.jetbrains.kotlin.serialization." + - "ValueParameter\022\024\n\014getter_flags\030\007 \001(\005\022\024\n\014" + - "setter_flags\030\010 \001(\005*\005\010d\020\310\001\"\355\001\n\016ValueParam" + - "eter\022\020\n\005flags\030\001 \001(\005:\0010\022\022\n\004name\030\002 \002(\005B\004\210\265" + - "\030\001\0226\n\004type\030\003 \001(\0132(.org.jetbrains.kotlin." + - "serialization.Type\022\017\n\007type_id\030\005 \001(\005\022E\n\023v" + - "ararg_element_type\030\004 \001(\0132(.org.jetbrains" + - ".kotlin.serialization.Type\022\036\n\026vararg_ele", - "ment_type_id\030\006 \001(\005*\005\010d\020\310\001\"\201\003\n\tTypeAlias\022" + - "\020\n\005flags\030\001 \001(\005:\0016\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001\022I\n" + - "\016type_parameter\030\003 \003(\01321.org.jetbrains.ko" + - "tlin.serialization.TypeParameter\022A\n\017unde" + - "rlying_type\030\004 \001(\0132(.org.jetbrains.kotlin" + - ".serialization.Type\022\032\n\022underlying_type_i" + - "d\030\005 \001(\005\022?\n\rexpanded_type\030\006 \001(\0132(.org.jet" + - "brains.kotlin.serialization.Type\022\030\n\020expa" + - "nded_type_id\030\007 \001(\005\022B\n\nannotation\030\010 \003(\0132." + - ".org.jetbrains.kotlin.serialization.Anno", - "tation*\005\010d\020\310\001\"&\n\tEnumEntry\022\022\n\004name\030\001 \001(\005" + - "B\004\210\265\030\001*\005\010d\020\310\001*9\n\010Modality\022\t\n\005FINAL\020\000\022\010\n\004" + - "OPEN\020\001\022\014\n\010ABSTRACT\020\002\022\n\n\006SEALED\020\003*b\n\nVisi" + - "bility\022\014\n\010INTERNAL\020\000\022\013\n\007PRIVATE\020\001\022\r\n\tPRO" + - "TECTED\020\002\022\n\n\006PUBLIC\020\003\022\023\n\017PRIVATE_TO_THIS\020" + - "\004\022\t\n\005LOCAL\020\005*Q\n\nMemberKind\022\017\n\013DECLARATIO" + - "N\020\000\022\021\n\rFAKE_OVERRIDE\020\001\022\016\n\nDELEGATION\020\002\022\017" + - "\n\013SYNTHESIZED\020\003B\017B\rDebugProtoBuf" + "lization.TypeTable\022\027\n\017sinceKotlinInfo\030\037 " + + "\001(\005\022Y\n\027since_kotlin_info_table\030 \001(\01328.o" + + "rg.jetbrains.kotlin.serialization.SinceK" + + "otlinInfoTable\"x\n\004Kind\022\t\n\005CLASS\020\000\022\r\n\tINT" + + "ERFACE\020\001\022\016\n\nENUM_CLASS\020\002\022\016\n\nENUM_ENTRY\020\003", + "\022\024\n\020ANNOTATION_CLASS\020\004\022\n\n\006OBJECT\020\005\022\024\n\020CO" + + "MPANION_OBJECT\020\006*\005\010d\020\310\001\"\361\002\n\007Package\022>\n\010f" + + "unction\030\003 \003(\0132,.org.jetbrains.kotlin.ser" + + "ialization.Function\022>\n\010property\030\004 \003(\0132,." + + "org.jetbrains.kotlin.serialization.Prope" + + "rty\022A\n\ntype_alias\030\005 \003(\0132-.org.jetbrains." + + "kotlin.serialization.TypeAlias\022A\n\ntype_t" + + "able\030\036 \001(\0132-.org.jetbrains.kotlin.serial" + + "ization.TypeTable\022Y\n\027since_kotlin_info_t" + + "able\030 \001(\01328.org.jetbrains.kotlin.serial", + "ization.SinceKotlinInfoTable*\005\010d\020\310\001\"_\n\tT" + + "ypeTable\0226\n\004type\030\001 \003(\0132(.org.jetbrains.k" + + "otlin.serialization.Type\022\032\n\016first_nullab" + + "le\030\002 \001(\005:\002-1\"\214\001\n\013Constructor\022\020\n\005flags\030\001 " + + "\001(\005:\0016\022K\n\017value_parameter\030\002 \003(\01322.org.je" + + "tbrains.kotlin.serialization.ValueParame" + + "ter\022\027\n\017sinceKotlinInfo\030\037 \001(\005*\005\010d\020\310\001\"\363\003\n\010" + + "Function\022\020\n\005flags\030\t \001(\005:\0016\022\024\n\told_flags\030" + + "\001 \001(\005:\0016\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001\022=\n\013return_t" + + "ype\030\003 \001(\0132(.org.jetbrains.kotlin.seriali", + "zation.Type\022\026\n\016return_type_id\030\007 \001(\005\022I\n\016t" + + "ype_parameter\030\004 \003(\01321.org.jetbrains.kotl" + + "in.serialization.TypeParameter\022?\n\rreceiv" + + "er_type\030\005 \001(\0132(.org.jetbrains.kotlin.ser" + + "ialization.Type\022\030\n\020receiver_type_id\030\010 \001(" + + "\005\022K\n\017value_parameter\030\006 \003(\01322.org.jetbrai" + + "ns.kotlin.serialization.ValueParameter\022A" + + "\n\ntype_table\030\036 \001(\0132-.org.jetbrains.kotli" + + "n.serialization.TypeTable\022\027\n\017sinceKotlin" + + "Info\030\037 \001(\005*\005\010d\020\310\001\"\350\003\n\010Property\022\022\n\005flags\030", + "\013 \001(\005:\003518\022\027\n\told_flags\030\001 \001(\005:\0042054\022\022\n\004n" + + "ame\030\002 \002(\005B\004\210\265\030\001\022=\n\013return_type\030\003 \001(\0132(.o" + + "rg.jetbrains.kotlin.serialization.Type\022\026" + + "\n\016return_type_id\030\t \001(\005\022I\n\016type_parameter" + + "\030\004 \003(\01321.org.jetbrains.kotlin.serializat" + + "ion.TypeParameter\022?\n\rreceiver_type\030\005 \001(\013" + + "2(.org.jetbrains.kotlin.serialization.Ty" + + "pe\022\030\n\020receiver_type_id\030\n \001(\005\022R\n\026setter_v" + + "alue_parameter\030\006 \001(\01322.org.jetbrains.kot" + + "lin.serialization.ValueParameter\022\024\n\014gett", + "er_flags\030\007 \001(\005\022\024\n\014setter_flags\030\010 \001(\005\022\027\n\017" + + "sinceKotlinInfo\030\037 \001(\005*\005\010d\020\310\001\"\355\001\n\016ValuePa" + + "rameter\022\020\n\005flags\030\001 \001(\005:\0010\022\022\n\004name\030\002 \002(\005B" + + "\004\210\265\030\001\0226\n\004type\030\003 \001(\0132(.org.jetbrains.kotl" + + "in.serialization.Type\022\017\n\007type_id\030\005 \001(\005\022E" + + "\n\023vararg_element_type\030\004 \001(\0132(.org.jetbra" + + "ins.kotlin.serialization.Type\022\036\n\026vararg_" + + "element_type_id\030\006 \001(\005*\005\010d\020\310\001\"\232\003\n\tTypeAli" + + "as\022\020\n\005flags\030\001 \001(\005:\0016\022\022\n\004name\030\002 \002(\005B\004\210\265\030\001" + + "\022I\n\016type_parameter\030\003 \003(\01321.org.jetbrains", + ".kotlin.serialization.TypeParameter\022A\n\017u" + + "nderlying_type\030\004 \001(\0132(.org.jetbrains.kot" + + "lin.serialization.Type\022\032\n\022underlying_typ" + + "e_id\030\005 \001(\005\022?\n\rexpanded_type\030\006 \001(\0132(.org." + + "jetbrains.kotlin.serialization.Type\022\030\n\020e" + + "xpanded_type_id\030\007 \001(\005\022B\n\nannotation\030\010 \003(" + + "\0132..org.jetbrains.kotlin.serialization.A" + + "nnotation\022\027\n\017sinceKotlinInfo\030\037 \001(\005*\005\010d\020\310" + + "\001\"&\n\tEnumEntry\022\022\n\004name\030\001 \001(\005B\004\210\265\030\001*\005\010d\020\310" + + "\001\"\341\001\n\017SinceKotlinInfo\022\017\n\007version\030\001 \001(\005\022\024", + "\n\014version_full\030\002 \001(\005\022O\n\005level\030\003 \001(\01629.or" + + "g.jetbrains.kotlin.serialization.SinceKo" + + "tlinInfo.Level:\005ERROR\022\022\n\nerror_code\030\004 \001(" + + "\005\022\025\n\007message\030\005 \001(\005B\004\230\265\030\001\"+\n\005Level\022\013\n\007WAR" + + "NING\020\000\022\t\n\005ERROR\020\001\022\n\n\006HIDDEN\020\002\"Y\n\024SinceKo" + + "tlinInfoTable\022A\n\004info\030\001 \003(\01323.org.jetbra" + + "ins.kotlin.serialization.SinceKotlinInfo" + + "*9\n\010Modality\022\t\n\005FINAL\020\000\022\010\n\004OPEN\020\001\022\014\n\010ABS" + + "TRACT\020\002\022\n\n\006SEALED\020\003*b\n\nVisibility\022\014\n\010INT" + + "ERNAL\020\000\022\013\n\007PRIVATE\020\001\022\r\n\tPROTECTED\020\002\022\n\n\006P", + "UBLIC\020\003\022\023\n\017PRIVATE_TO_THIS\020\004\022\t\n\005LOCAL\020\005*" + + "Q\n\nMemberKind\022\017\n\013DECLARATION\020\000\022\021\n\rFAKE_O" + + "VERRIDE\020\001\022\016\n\nDELEGATION\020\002\022\017\n\013SYNTHESIZED" + + "\020\003B\017B\rDebugProtoBuf" }; org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -24732,13 +27355,13 @@ public final class DebugProtoBuf { internal_static_org_jetbrains_kotlin_serialization_Class_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Class_descriptor, - new java.lang.String[] { "Flags", "FqName", "CompanionObjectName", "TypeParameter", "Supertype", "SupertypeId", "NestedClassName", "Constructor", "Function", "Property", "TypeAlias", "EnumEntry", "TypeTable", }); + new java.lang.String[] { "Flags", "FqName", "CompanionObjectName", "TypeParameter", "Supertype", "SupertypeId", "NestedClassName", "Constructor", "Function", "Property", "TypeAlias", "EnumEntry", "TypeTable", "SinceKotlinInfo", "SinceKotlinInfoTable", }); internal_static_org_jetbrains_kotlin_serialization_Package_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_org_jetbrains_kotlin_serialization_Package_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Package_descriptor, - new java.lang.String[] { "Function", "Property", "TypeAlias", "TypeTable", }); + new java.lang.String[] { "Function", "Property", "TypeAlias", "TypeTable", "SinceKotlinInfoTable", }); internal_static_org_jetbrains_kotlin_serialization_TypeTable_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_org_jetbrains_kotlin_serialization_TypeTable_fieldAccessorTable = new @@ -24750,19 +27373,19 @@ public final class DebugProtoBuf { internal_static_org_jetbrains_kotlin_serialization_Constructor_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Constructor_descriptor, - new java.lang.String[] { "Flags", "ValueParameter", }); + new java.lang.String[] { "Flags", "ValueParameter", "SinceKotlinInfo", }); internal_static_org_jetbrains_kotlin_serialization_Function_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_org_jetbrains_kotlin_serialization_Function_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Function_descriptor, - new java.lang.String[] { "Flags", "OldFlags", "Name", "ReturnType", "ReturnTypeId", "TypeParameter", "ReceiverType", "ReceiverTypeId", "ValueParameter", "TypeTable", }); + new java.lang.String[] { "Flags", "OldFlags", "Name", "ReturnType", "ReturnTypeId", "TypeParameter", "ReceiverType", "ReceiverTypeId", "ValueParameter", "TypeTable", "SinceKotlinInfo", }); internal_static_org_jetbrains_kotlin_serialization_Property_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_org_jetbrains_kotlin_serialization_Property_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_Property_descriptor, - new java.lang.String[] { "Flags", "OldFlags", "Name", "ReturnType", "ReturnTypeId", "TypeParameter", "ReceiverType", "ReceiverTypeId", "SetterValueParameter", "GetterFlags", "SetterFlags", }); + new java.lang.String[] { "Flags", "OldFlags", "Name", "ReturnType", "ReturnTypeId", "TypeParameter", "ReceiverType", "ReceiverTypeId", "SetterValueParameter", "GetterFlags", "SetterFlags", "SinceKotlinInfo", }); internal_static_org_jetbrains_kotlin_serialization_ValueParameter_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_org_jetbrains_kotlin_serialization_ValueParameter_fieldAccessorTable = new @@ -24774,13 +27397,25 @@ public final class DebugProtoBuf { internal_static_org_jetbrains_kotlin_serialization_TypeAlias_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_TypeAlias_descriptor, - new java.lang.String[] { "Flags", "Name", "TypeParameter", "UnderlyingType", "UnderlyingTypeId", "ExpandedType", "ExpandedTypeId", "Annotation", }); + new java.lang.String[] { "Flags", "Name", "TypeParameter", "UnderlyingType", "UnderlyingTypeId", "ExpandedType", "ExpandedTypeId", "Annotation", "SinceKotlinInfo", }); internal_static_org_jetbrains_kotlin_serialization_EnumEntry_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_org_jetbrains_kotlin_serialization_EnumEntry_fieldAccessorTable = new org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_EnumEntry_descriptor, new java.lang.String[] { "Name", }); + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_fieldAccessorTable = new + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfo_descriptor, + new java.lang.String[] { "Version", "VersionFull", "Level", "ErrorCode", "Message", }); + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_fieldAccessorTable = new + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_serialization_SinceKotlinInfoTable_descriptor, + new java.lang.String[] { "Info", }); org.jetbrains.kotlin.protobuf.ExtensionRegistry registry = org.jetbrains.kotlin.protobuf.ExtensionRegistry.newInstance(); registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.fqNameIdInTable); @@ -24801,6 +27436,7 @@ public final class DebugProtoBuf { registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.nameIdInTable); + registry.add(org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.stringIdInTable); org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); org.jetbrains.kotlin.serialization.DebugExtOptionsProtoBuf.getDescriptor(); diff --git a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Errors.java b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Errors.java index 2c04d086ad5..e00a0a8d86a 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Errors.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Errors.java @@ -20,9 +20,11 @@ import com.google.common.collect.ImmutableSet; import com.intellij.openapi.util.TextRange; import com.intellij.psi.PsiElement; import com.intellij.psi.impl.source.tree.LeafPsiElement; +import kotlin.Pair; import org.jetbrains.annotations.NotNull; import org.jetbrains.kotlin.cfg.WhenMissingCase; import org.jetbrains.kotlin.config.LanguageFeature; +import org.jetbrains.kotlin.config.LanguageVersion; import org.jetbrains.kotlin.descriptors.*; import org.jetbrains.kotlin.lexer.KtKeywordToken; import org.jetbrains.kotlin.lexer.KtModifierKeywordToken; @@ -79,6 +81,8 @@ public interface Errors { DiagnosticFactory2 DEPRECATION = DiagnosticFactory2.create(WARNING); DiagnosticFactory2 DEPRECATION_ERROR = DiagnosticFactory2.create(ERROR); + DiagnosticFactory3> SINCE_KOTLIN_INFO_DEPRECATION = DiagnosticFactory3.create(WARNING); + DiagnosticFactory3> SINCE_KOTLIN_INFO_DEPRECATION_ERROR = DiagnosticFactory3.create(ERROR); DiagnosticFactory2 API_NOT_AVAILABLE = DiagnosticFactory2.create(ERROR); diff --git a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java index ad6964d45ae..b1adc8127c0 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java +++ b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/DefaultErrorMessages.java @@ -18,6 +18,7 @@ package org.jetbrains.kotlin.diagnostics.rendering; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.util.io.FileUtil; +import kotlin.Pair; import kotlin.jvm.functions.Function1; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -320,6 +321,17 @@ public class DefaultErrorMessages { MAP.put(DEPRECATION, "''{0}'' is deprecated. {1}", DEPRECATION_RENDERER, STRING); MAP.put(DEPRECATION_ERROR, "Using ''{0}'' is an error. {1}", DEPRECATION_RENDERER, STRING); + DiagnosticParameterRenderer> sinceKotlinInfoRenderer = new DiagnosticParameterRenderer>() { + @NotNull + @Override + public String render(@NotNull Pair pair, @NotNull RenderingContext renderingContext) { + String message = pair.getSecond(); + return pair.getFirst().getVersionString() + (message != null ? ". " + message : ""); + } + }; + MAP.put(SINCE_KOTLIN_INFO_DEPRECATION, "''{0}'' is only supported since Kotlin {1} and should not be used in Kotlin {2}", DEPRECATION_RENDERER, STRING, sinceKotlinInfoRenderer); + MAP.put(SINCE_KOTLIN_INFO_DEPRECATION_ERROR, "''{0}'' is only available since Kotlin {1} and cannot be used in Kotlin {2}", DEPRECATION_RENDERER, STRING, sinceKotlinInfoRenderer); + MAP.put(API_NOT_AVAILABLE, "This declaration is only available since Kotlin {0} and cannot be used with the specified API version {1}", STRING, STRING); MAP.put(MISSING_DEPENDENCY_CLASS, "Cannot access class ''{0}''. Check your module classpath for missing or conflicting dependencies", TO_STRING); diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/DeprecatedCallChecker.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/DeprecatedCallChecker.kt index ee73907a72b..0195a68a128 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/DeprecatedCallChecker.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/DeprecatedCallChecker.kt @@ -19,6 +19,7 @@ package org.jetbrains.kotlin.resolve.calls.checkers import com.intellij.psi.PsiElement import com.intellij.psi.tree.TokenSet import com.intellij.psi.util.PsiTreeUtil +import org.jetbrains.kotlin.config.LanguageVersionSettings import org.jetbrains.kotlin.descriptors.CallableDescriptor import org.jetbrains.kotlin.descriptors.PropertyDescriptor import org.jetbrains.kotlin.descriptors.PropertySetterDescriptor @@ -35,10 +36,12 @@ import org.jetbrains.kotlin.resolve.getDeprecations object DeprecatedCallChecker : CallChecker { override fun check(resolvedCall: ResolvedCall<*>, reportOn: PsiElement, context: CallCheckerContext) { - check(resolvedCall.resultingDescriptor, context.trace, reportOn) + check(resolvedCall.resultingDescriptor, context.trace, reportOn, context.languageVersionSettings) } - private fun check(targetDescriptor: CallableDescriptor, trace: BindingTrace, element: PsiElement) { + private fun check( + targetDescriptor: CallableDescriptor, trace: BindingTrace, element: PsiElement, languageVersionSettings: LanguageVersionSettings + ) { // Objects will be checked by DeprecatedClassifierUsageChecker if (targetDescriptor is FakeCallableDescriptorForObject) return @@ -51,11 +54,11 @@ object DeprecatedCallChecker : CallChecker { if (deprecations.isNotEmpty()) { for (deprecation in deprecations) { - trace.report(createDeprecationDiagnostic(element, deprecation)) + trace.report(createDeprecationDiagnostic(element, deprecation, languageVersionSettings)) } } else if (targetDescriptor is PropertyDescriptor && shouldCheckPropertyGetter(element)) { - targetDescriptor.getter?.let { check(it, trace, element) } + targetDescriptor.getter?.let { check(it, trace, element, languageVersionSettings) } } } diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/checkers/DeprecatedClassifierUsageChecker.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/checkers/DeprecatedClassifierUsageChecker.kt index 52b0d4fab45..9055584b59b 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/checkers/DeprecatedClassifierUsageChecker.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/checkers/DeprecatedClassifierUsageChecker.kt @@ -32,7 +32,7 @@ class DeprecatedClassifierUsageChecker : ClassifierUsageChecker { ) { val deprecations = targetDescriptor.getDeprecations() for (deprecation in deprecations) { - trace.report(createDeprecationDiagnostic(element, deprecation)) + trace.report(createDeprecationDiagnostic(element, deprecation, languageVersionSettings)) } } } diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/deprecationUtil.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/deprecationUtil.kt index 3e02df7577e..fee67f3baa7 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/deprecationUtil.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/deprecationUtil.kt @@ -30,6 +30,8 @@ import org.jetbrains.kotlin.name.FqName import org.jetbrains.kotlin.resolve.DeprecationLevelValue.* import org.jetbrains.kotlin.resolve.annotations.argumentValue import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameSafe +import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedMemberDescriptor +import org.jetbrains.kotlin.serialization.deserialization.descriptors.SinceKotlinInfo import org.jetbrains.kotlin.utils.SmartList private val JAVA_DEPRECATED = FqName("java.lang.Deprecated") @@ -89,8 +91,42 @@ private data class DeprecatedByOverridden(private val deprecations: Collection WARNING + DeprecationLevel.ERROR -> ERROR + DeprecationLevel.HIDDEN -> HIDDEN + } + + override val message: String? + get() { + val message = sinceKotlinInfo.message + val errorCode = sinceKotlinInfo.errorCode + if (message == null && errorCode == null) return null + + return buildString { + if (message != null) { + append(message) + if (errorCode != null) { + append(" (error code $errorCode)") + } + } + else { + append("Error code $errorCode") + } + } + } + + val sinceKotlinVersion: String + get() = sinceKotlinInfo.version.asString() +} + fun DeclarationDescriptor.getDeprecations(): List { - val deprecations = this.getDeprecationsByAnnotation() + val deprecations = this.getOwnDeprecations() if (deprecations.isNotEmpty()) { return deprecations } @@ -112,7 +148,7 @@ private fun deprecationByOverridden(root: CallableMemberDescriptor): Deprecation visited.add(node) - val deprecationsByAnnotation = node.getDeprecationsByAnnotation() + val deprecationsByAnnotation = node.getOwnDeprecations() val overriddenDescriptors = node.original.overriddenDescriptors when { deprecationsByAnnotation.isNotEmpty() -> { @@ -135,11 +171,11 @@ private fun deprecationByOverridden(root: CallableMemberDescriptor): Deprecation return DeprecatedByOverridden(deprecations) } -private fun DeclarationDescriptor.getDeprecationsByAnnotation(): List { +private fun DeclarationDescriptor.getOwnDeprecations(): List { if (this is TypeAliasConstructorDescriptor) { // Constructor of type alias has no annotations by itself, all its annotations come from the aliased constructor // and from the typealias declaration - return underlyingConstructorDescriptor.getDeprecationsByAnnotation() + typeAliasDescriptor.getDeprecationsByAnnotation() + return underlyingConstructorDescriptor.getOwnDeprecations() + typeAliasDescriptor.getOwnDeprecations() } val result = SmartList() @@ -150,6 +186,13 @@ private fun DeclarationDescriptor.getDeprecationsByAnnotation(): List Errors.DEPRECATION - ERROR -> Errors.DEPRECATION_ERROR - HIDDEN -> Errors.DEPRECATION_ERROR + if (deprecation is DeprecatedBySinceKotlinInfo) { + val factory = when (deprecation.deprecationLevel) { + WARNING -> Errors.SINCE_KOTLIN_INFO_DEPRECATION + ERROR, HIDDEN -> Errors.SINCE_KOTLIN_INFO_DEPRECATION_ERROR + } + return factory.on(element, targetOriginal, deprecation.sinceKotlinVersion, + languageVersionSettings.languageVersion to deprecation.message) } - return diagnosticFactory.on(element, targetOriginal, deprecation.message ?: "") + + val factory = when (deprecation.deprecationLevel) { + WARNING -> Errors.DEPRECATION + ERROR, HIDDEN -> Errors.DEPRECATION_ERROR + } + return factory.on(element, targetOriginal, deprecation.message ?: "") } // values from kotlin.DeprecationLevel diff --git a/compiler/util/src/org/jetbrains/kotlin/config/ApiVersion.kt b/compiler/util/src/org/jetbrains/kotlin/config/ApiVersion.kt index af29b8528eb..40f55dbc2cc 100644 --- a/compiler/util/src/org/jetbrains/kotlin/config/ApiVersion.kt +++ b/compiler/util/src/org/jetbrains/kotlin/config/ApiVersion.kt @@ -16,6 +16,8 @@ package org.jetbrains.kotlin.config +import org.jetbrains.kotlin.serialization.deserialization.descriptors.SinceKotlinInfo + class ApiVersion private constructor( private val version: MavenComparableVersion, val versionString: String @@ -38,6 +40,10 @@ class ApiVersion private constructor( @JvmStatic fun createByLanguageVersion(version: LanguageVersion): ApiVersion = parse(version.versionString)!! + @JvmStatic + fun createBySinceKotlinInfo(sinceKotlinInfo: SinceKotlinInfo): ApiVersion = + sinceKotlinInfo.version.let { version -> parse(version.asString()) ?: error("Could not parse version: $version") } + fun parse(versionString: String): ApiVersion? = try { ApiVersion(MavenComparableVersion(versionString), versionString) } diff --git a/core/deserialization/src/descriptors.proto b/core/deserialization/src/descriptors.proto index d4b0fda1cea..dcb1f0fc7cc 100644 --- a/core/deserialization/src/descriptors.proto +++ b/core/deserialization/src/descriptors.proto @@ -203,6 +203,11 @@ message Class { optional TypeTable type_table = 30; + // Index into the SinceKotlinInfoTable + optional int32 sinceKotlinInfo = 31; + + optional SinceKotlinInfoTable since_kotlin_info_table = 32; + extensions 100 to 199; } @@ -213,6 +218,8 @@ message Package { optional TypeTable type_table = 30; + optional SinceKotlinInfoTable since_kotlin_info_table = 32; + extensions 100 to 199; } @@ -234,6 +241,9 @@ message Constructor { repeated ValueParameter value_parameter = 2; + // Index into the SinceKotlinInfoTable + optional int32 sinceKotlinInfo = 31; + extensions 100 to 199; } @@ -266,6 +276,9 @@ message Function { optional TypeTable type_table = 30; + // Index into the SinceKotlinInfoTable + optional int32 sinceKotlinInfo = 31; + extensions 100 to 199; } @@ -308,6 +321,9 @@ message Property { optional int32 getter_flags = 7 /* absent => same as property */; optional int32 setter_flags = 8 /* absent => same as property */; + // Index into the SinceKotlinInfoTable + optional int32 sinceKotlinInfo = 31; + extensions 100 to 199; } @@ -350,6 +366,9 @@ message TypeAlias { repeated Annotation annotation = 8; + // Index into the SinceKotlinInfoTable + optional int32 sinceKotlinInfo = 31; + extensions 100 to 199; } @@ -384,3 +403,33 @@ enum MemberKind { DELEGATION = 2; SYNTHESIZED = 3; } + +message SinceKotlinInfo { + enum Level { + WARNING = 0; + ERROR = 1; + HIDDEN = 2; + } + + // Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"): + // (patch << 7) + (minor << 3) + major + // Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result + optional int32 version = 1; + + // Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'. + // (patch << 16) + (minor << 8) + major + optional int32 version_full = 2; + + // Level of the reported diagnostic + optional Level level = 3 [default = ERROR]; + + // Error code, to be looked up on the website + optional int32 error_code = 4; + + // Diagnostic message + optional int32 message = 5 [(string_id_in_table) = true]; +} + +message SinceKotlinInfoTable { + repeated SinceKotlinInfo info = 1; +} diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java b/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java index 14dd31e4ea1..76db3299214 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/ProtoBuf.java @@ -7993,6 +7993,32 @@ public final class ProtoBuf { * optional .org.jetbrains.kotlin.serialization.TypeTable type_table = 30; */ org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable getTypeTable(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); + + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + boolean hasSinceKotlinInfoTable(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Class} @@ -8171,6 +8197,24 @@ public final class ProtoBuf { bitField0_ |= 0x00000008; break; } + case 248: { + bitField0_ |= 0x00000010; + sinceKotlinInfo_ = input.readInt32(); + break; + } + case 258: { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = sinceKotlinInfoTable_.toBuilder(); + } + sinceKotlinInfoTable_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sinceKotlinInfoTable_); + sinceKotlinInfoTable_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -8710,6 +8754,44 @@ public final class ProtoBuf { return typeTable_; } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + + public static final int SINCE_KOTLIN_INFO_TABLE_FIELD_NUMBER = 32; + private org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + return sinceKotlinInfoTable_; + } + private void initFields() { flags_ = 6; fqName_ = 0; @@ -8724,6 +8806,8 @@ public final class ProtoBuf { typeAlias_ = java.util.Collections.emptyList(); enumEntry_ = java.util.Collections.emptyList(); typeTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable.getDefaultInstance(); + sinceKotlinInfo_ = 0; + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -8844,6 +8928,12 @@ public final class ProtoBuf { if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(30, typeTable_); } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(31, sinceKotlinInfo_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(32, sinceKotlinInfoTable_); + } extensionWriter.writeUntil(200, output); output.writeRawBytes(unknownFields); } @@ -8926,6 +9016,14 @@ public final class ProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(30, typeTable_); } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(32, sinceKotlinInfoTable_); + } size += extensionsSerializedSize(); size += unknownFields.size(); memoizedSerializedSize = size; @@ -9046,6 +9144,10 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000800); typeTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00001000); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00002000); + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00004000); return this; } @@ -9130,6 +9232,14 @@ public final class ProtoBuf { to_bitField0_ |= 0x00000008; } result.typeTable_ = typeTable_; + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00000010; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00000020; + } + result.sinceKotlinInfoTable_ = sinceKotlinInfoTable_; result.bitField0_ = to_bitField0_; return result; } @@ -9238,6 +9348,12 @@ public final class ProtoBuf { if (other.hasTypeTable()) { mergeTypeTable(other.getTypeTable()); } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } + if (other.hasSinceKotlinInfoTable()) { + mergeSinceKotlinInfoTable(other.getSinceKotlinInfoTable()); + } this.mergeExtensionFields(other); setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -10522,6 +10638,114 @@ public final class ProtoBuf { return this; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00002000; + sinceKotlinInfo_ = value; + + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + sinceKotlinInfo_ = 0; + + return this; + } + + private org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + return sinceKotlinInfoTable_; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable value) { + if (value == null) { + throw new NullPointerException(); + } + sinceKotlinInfoTable_ = value; + + bitField0_ |= 0x00004000; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable( + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.Builder builderForValue) { + sinceKotlinInfoTable_ = builderForValue.build(); + + bitField0_ |= 0x00004000; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder mergeSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable value) { + if (((bitField0_ & 0x00004000) == 0x00004000) && + sinceKotlinInfoTable_ != org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance()) { + sinceKotlinInfoTable_ = + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.newBuilder(sinceKotlinInfoTable_).mergeFrom(value).buildPartial(); + } else { + sinceKotlinInfoTable_ = value; + } + + bitField0_ |= 0x00004000; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder clearSinceKotlinInfoTable() { + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Class) } @@ -10588,6 +10812,15 @@ public final class ProtoBuf { * optional .org.jetbrains.kotlin.serialization.TypeTable type_table = 30; */ org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable getTypeTable(); + + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + boolean hasSinceKotlinInfoTable(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Package} @@ -10677,6 +10910,19 @@ public final class ProtoBuf { bitField0_ |= 0x00000001; break; } + case 258: { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = sinceKotlinInfoTable_.toBuilder(); + } + sinceKotlinInfoTable_ = input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sinceKotlinInfoTable_); + sinceKotlinInfoTable_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -10840,11 +11086,27 @@ public final class ProtoBuf { return typeTable_; } + public static final int SINCE_KOTLIN_INFO_TABLE_FIELD_NUMBER = 32; + private org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + return sinceKotlinInfoTable_; + } + private void initFields() { function_ = java.util.Collections.emptyList(); property_ = java.util.Collections.emptyList(); typeAlias_ = java.util.Collections.emptyList(); typeTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable.getDefaultInstance(); + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -10902,6 +11164,9 @@ public final class ProtoBuf { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(30, typeTable_); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(32, sinceKotlinInfoTable_); + } extensionWriter.writeUntil(200, output); output.writeRawBytes(unknownFields); } @@ -10928,6 +11193,10 @@ public final class ProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(30, typeTable_); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(32, sinceKotlinInfoTable_); + } size += extensionsSerializedSize(); size += unknownFields.size(); memoizedSerializedSize = size; @@ -11030,6 +11299,8 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000004); typeTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000008); + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -11072,6 +11343,10 @@ public final class ProtoBuf { to_bitField0_ |= 0x00000001; } result.typeTable_ = typeTable_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000002; + } + result.sinceKotlinInfoTable_ = sinceKotlinInfoTable_; result.bitField0_ = to_bitField0_; return result; } @@ -11111,6 +11386,9 @@ public final class ProtoBuf { if (other.hasTypeTable()) { mergeTypeTable(other.getTypeTable()); } + if (other.hasSinceKotlinInfoTable()) { + mergeSinceKotlinInfoTable(other.getSinceKotlinInfoTable()); + } this.mergeExtensionFields(other); setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -11603,6 +11881,66 @@ public final class ProtoBuf { return this; } + private org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public boolean hasSinceKotlinInfoTable() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getSinceKotlinInfoTable() { + return sinceKotlinInfoTable_; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable value) { + if (value == null) { + throw new NullPointerException(); + } + sinceKotlinInfoTable_ = value; + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder setSinceKotlinInfoTable( + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.Builder builderForValue) { + sinceKotlinInfoTable_ = builderForValue.build(); + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder mergeSinceKotlinInfoTable(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable value) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + sinceKotlinInfoTable_ != org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance()) { + sinceKotlinInfoTable_ = + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.newBuilder(sinceKotlinInfoTable_).mergeFrom(value).buildPartial(); + } else { + sinceKotlinInfoTable_ = value; + } + + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfoTable since_kotlin_info_table = 32; + */ + public Builder clearSinceKotlinInfoTable() { + sinceKotlinInfoTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Package) } @@ -12267,6 +12605,23 @@ public final class ProtoBuf { * repeated .org.jetbrains.kotlin.serialization.ValueParameter value_parameter = 2; */ int getValueParameterCount(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Constructor} @@ -12332,6 +12687,11 @@ public final class ProtoBuf { valueParameter_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.PARSER, extensionRegistry)); break; } + case 248: { + bitField0_ |= 0x00000002; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -12431,9 +12791,33 @@ public final class ProtoBuf { return valueParameter_.get(index); } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 6; valueParameter_ = java.util.Collections.emptyList(); + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -12467,6 +12851,9 @@ public final class ProtoBuf { for (int i = 0; i < valueParameter_.size(); i++) { output.writeMessage(2, valueParameter_.get(i)); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); output.writeRawBytes(unknownFields); } @@ -12485,6 +12872,10 @@ public final class ProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(2, valueParameter_.get(i)); } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += unknownFields.size(); memoizedSerializedSize = size; @@ -12583,6 +12974,8 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000001); valueParameter_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -12615,6 +13008,10 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000002); } result.valueParameter_ = valueParameter_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; return result; } @@ -12634,6 +13031,9 @@ public final class ProtoBuf { } } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -12854,6 +13254,54 @@ public final class ProtoBuf { return this; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000004; + sinceKotlinInfo_ = value; + + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + sinceKotlinInfo_ = 0; + + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Constructor) } @@ -12993,6 +13441,23 @@ public final class ProtoBuf { * optional .org.jetbrains.kotlin.serialization.TypeTable type_table = 30; */ org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable getTypeTable(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Function} @@ -13125,6 +13590,11 @@ public final class ProtoBuf { bitField0_ |= 0x00000080; break; } + case 248: { + bitField0_ |= 0x00000100; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -13379,6 +13849,29 @@ public final class ProtoBuf { return typeTable_; } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 6; oldFlags_ = 6; @@ -13390,6 +13883,7 @@ public final class ProtoBuf { receiverTypeId_ = 0; valueParameter_ = java.util.Collections.emptyList(); typeTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable.getDefaultInstance(); + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -13475,6 +13969,9 @@ public final class ProtoBuf { if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(30, typeTable_); } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); output.writeRawBytes(unknownFields); } @@ -13525,6 +14022,10 @@ public final class ProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(30, typeTable_); } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += unknownFields.size(); memoizedSerializedSize = size; @@ -13639,6 +14140,8 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000100); typeTable_ = org.jetbrains.kotlin.serialization.ProtoBuf.TypeTable.getDefaultInstance(); bitField0_ = (bitField0_ & ~0x00000200); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -13704,6 +14207,10 @@ public final class ProtoBuf { to_bitField0_ |= 0x00000080; } result.typeTable_ = typeTable_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000100; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; return result; } @@ -13754,6 +14261,9 @@ public final class ProtoBuf { if (other.hasTypeTable()) { mergeTypeTable(other.getTypeTable()); } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -14459,6 +14969,54 @@ public final class ProtoBuf { return this; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000400; + sinceKotlinInfo_ = value; + + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000400); + sinceKotlinInfo_ = 0; + + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Function) } @@ -14622,6 +15180,23 @@ public final class ProtoBuf { * optional int32 setter_flags = 8; */ int getSetterFlags(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.Property} @@ -14756,6 +15331,11 @@ public final class ProtoBuf { flags_ = input.readInt32(); break; } + case 248: { + bitField0_ |= 0x00000400; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -15022,6 +15602,29 @@ public final class ProtoBuf { return setterFlags_; } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 518; oldFlags_ = 2054; @@ -15034,6 +15637,7 @@ public final class ProtoBuf { setterValueParameter_ = org.jetbrains.kotlin.serialization.ProtoBuf.ValueParameter.getDefaultInstance(); getterFlags_ = 0; setterFlags_ = 0; + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -15116,6 +15720,9 @@ public final class ProtoBuf { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(11, flags_); } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); output.writeRawBytes(unknownFields); } @@ -15170,6 +15777,10 @@ public final class ProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeInt32Size(11, flags_); } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += unknownFields.size(); memoizedSerializedSize = size; @@ -15286,6 +15897,8 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000200); setterFlags_ = 0; bitField0_ = (bitField0_ & ~0x00000400); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000800); return this; } @@ -15354,6 +15967,10 @@ public final class ProtoBuf { to_bitField0_ |= 0x00000200; } result.setterFlags_ = setterFlags_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000400; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; return result; } @@ -15400,6 +16017,9 @@ public final class ProtoBuf { if (other.hasSetterFlags()) { setSetterFlags(other.getSetterFlags()); } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -16078,6 +16698,54 @@ public final class ProtoBuf { return this; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000800; + sinceKotlinInfo_ = value; + + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000800); + sinceKotlinInfo_ = 0; + + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.Property) } @@ -17102,6 +17770,23 @@ public final class ProtoBuf { * repeated .org.jetbrains.kotlin.serialization.Annotation annotation = 8; */ int getAnnotationCount(); + + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + boolean hasSinceKotlinInfo(); + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + int getSinceKotlinInfo(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.TypeAlias} @@ -17216,6 +17901,11 @@ public final class ProtoBuf { annotation_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.PARSER, extensionRegistry)); break; } + case 248: { + bitField0_ |= 0x00000040; + sinceKotlinInfo_ = input.readInt32(); + break; + } } } } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { @@ -17426,6 +18116,29 @@ public final class ProtoBuf { return annotation_.get(index); } + public static final int SINCEKOTLININFO_FIELD_NUMBER = 31; + private int sinceKotlinInfo_; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+     * Index into the SinceKotlinInfoTable
+     * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + private void initFields() { flags_ = 6; name_ = 0; @@ -17435,6 +18148,7 @@ public final class ProtoBuf { expandedType_ = org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(); expandedTypeId_ = 0; annotation_ = java.util.Collections.emptyList(); + sinceKotlinInfo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -17508,6 +18222,9 @@ public final class ProtoBuf { for (int i = 0; i < annotation_.size(); i++) { output.writeMessage(8, annotation_.get(i)); } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(31, sinceKotlinInfo_); + } extensionWriter.writeUntil(200, output); output.writeRawBytes(unknownFields); } @@ -17550,6 +18267,10 @@ public final class ProtoBuf { size += org.jetbrains.kotlin.protobuf.CodedOutputStream .computeMessageSize(8, annotation_.get(i)); } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(31, sinceKotlinInfo_); + } size += extensionsSerializedSize(); size += unknownFields.size(); memoizedSerializedSize = size; @@ -17660,6 +18381,8 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000040); annotation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); + sinceKotlinInfo_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -17717,6 +18440,10 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000080); } result.annotation_ = annotation_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000040; + } + result.sinceKotlinInfo_ = sinceKotlinInfo_; result.bitField0_ = to_bitField0_; return result; } @@ -17761,6 +18488,9 @@ public final class ProtoBuf { } } + if (other.hasSinceKotlinInfo()) { + setSinceKotlinInfo(other.getSinceKotlinInfo()); + } this.mergeExtensionFields(other); setUnknownFields( getUnknownFields().concat(other.unknownFields)); @@ -18340,6 +19070,54 @@ public final class ProtoBuf { return this; } + private int sinceKotlinInfo_ ; + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public boolean hasSinceKotlinInfo() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public int getSinceKotlinInfo() { + return sinceKotlinInfo_; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder setSinceKotlinInfo(int value) { + bitField0_ |= 0x00000100; + sinceKotlinInfo_ = value; + + return this; + } + /** + * optional int32 sinceKotlinInfo = 31; + * + *
+       * Index into the SinceKotlinInfoTable
+       * 
+ */ + public Builder clearSinceKotlinInfo() { + bitField0_ = (bitField0_ & ~0x00000100); + sinceKotlinInfo_ = 0; + + return this; + } + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.TypeAlias) } @@ -18718,6 +19496,1410 @@ public final class ProtoBuf { // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.EnumEntry) } + public interface SinceKotlinInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + boolean hasVersion(); + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + int getVersion(); + + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + boolean hasVersionFull(); + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + int getVersionFull(); + + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + boolean hasLevel(); + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level getLevel(); + + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + boolean hasErrorCode(); + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + int getErrorCode(); + + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + boolean hasMessage(); + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + int getMessage(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfo} + */ + public static final class SinceKotlinInfo extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + SinceKotlinInfoOrBuilder { + // Use SinceKotlinInfo.newBuilder() to construct. + private SinceKotlinInfo(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private SinceKotlinInfo(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final SinceKotlinInfo defaultInstance; + public static SinceKotlinInfo getDefaultInstance() { + return defaultInstance; + } + + public SinceKotlinInfo getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private SinceKotlinInfo( + 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); + 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; + version_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + versionFull_ = input.readInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level value = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level.valueOf(rawValue); + if (value == null) { + unknownFieldsCodedOutput.writeRawVarint32(tag); + unknownFieldsCodedOutput.writeRawVarint32(rawValue); + } else { + bitField0_ |= 0x00000004; + level_ = value; + } + break; + } + case 32: { + bitField0_ |= 0x00000008; + errorCode_ = input.readInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + message_ = 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 SinceKotlinInfo parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new SinceKotlinInfo(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level} + */ + public enum Level + implements org.jetbrains.kotlin.protobuf.Internal.EnumLite { + /** + * WARNING = 0; + */ + WARNING(0, 0), + /** + * ERROR = 1; + */ + ERROR(1, 1), + /** + * HIDDEN = 2; + */ + HIDDEN(2, 2), + ; + + /** + * WARNING = 0; + */ + public static final int WARNING_VALUE = 0; + /** + * ERROR = 1; + */ + public static final int ERROR_VALUE = 1; + /** + * HIDDEN = 2; + */ + public static final int HIDDEN_VALUE = 2; + + + public final int getNumber() { return value; } + + public static Level valueOf(int value) { + switch (value) { + case 0: return WARNING; + case 1: return ERROR; + case 2: return HIDDEN; + default: return null; + } + } + + public static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap + internalValueMap = + new org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.valueOf(number); + } + }; + + private final int value; + + private Level(int index, int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level) + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private int version_; + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 version = 1; + * + *
+     * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+     * (patch << 7) + (minor << 3) + major
+     * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+     * 
+ */ + public int getVersion() { + return version_; + } + + public static final int VERSION_FULL_FIELD_NUMBER = 2; + private int versionFull_; + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + public boolean hasVersionFull() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 version_full = 2; + * + *
+     * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+     * (patch << 16) + (minor << 8) + major
+     * 
+ */ + public int getVersionFull() { + return versionFull_; + } + + public static final int LEVEL_FIELD_NUMBER = 3; + private org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level level_; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+     * Level of the reported diagnostic
+     * 
+ */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level getLevel() { + return level_; + } + + public static final int ERROR_CODE_FIELD_NUMBER = 4; + private int errorCode_; + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + public boolean hasErrorCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 error_code = 4; + * + *
+     * Error code, to be looked up on the website
+     * 
+ */ + public int getErrorCode() { + return errorCode_; + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + private int message_; + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 message = 5; + * + *
+     * Diagnostic message
+     * 
+ */ + public int getMessage() { + return message_; + } + + private void initFields() { + version_ = 0; + versionFull_ = 0; + level_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level.ERROR; + errorCode_ = 0; + message_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 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, version_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, versionFull_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, level_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, errorCode_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, message_); + } + 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, version_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(2, versionFull_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeEnumSize(3, level_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(4, errorCode_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(5, message_); + } + 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.serialization.ProtoBuf.SinceKotlinInfo parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo 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.serialization.ProtoBuf.SinceKotlinInfo parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo 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.serialization.ProtoBuf.SinceKotlinInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo 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.serialization.ProtoBuf.SinceKotlinInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo 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.serialization.ProtoBuf.SinceKotlinInfo parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo 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.serialization.ProtoBuf.SinceKotlinInfo prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfo} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoOrBuilder { + // Construct using org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + version_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + versionFull_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + level_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level.ERROR; + bitField0_ = (bitField0_ & ~0x00000004); + errorCode_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + message_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo build() { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo buildPartial() { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo result = new org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.version_ = version_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.versionFull_ = versionFull_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.level_ = level_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.errorCode_ = errorCode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.message_ = message_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo other) { + if (other == org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.getDefaultInstance()) return this; + if (other.hasVersion()) { + setVersion(other.getVersion()); + } + if (other.hasVersionFull()) { + setVersionFull(other.getVersionFull()); + } + if (other.hasLevel()) { + setLevel(other.getLevel()); + } + if (other.hasErrorCode()) { + setErrorCode(other.getErrorCode()); + } + if (other.hasMessage()) { + setMessage(other.getMessage()); + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int version_ ; + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public int getVersion() { + return version_; + } + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public Builder setVersion(int value) { + bitField0_ |= 0x00000001; + version_ = value; + + return this; + } + /** + * optional int32 version = 1; + * + *
+       * Kotlin version, since which this declaration is accessible, in the following format (encoded version is "major.minor.patch"):
+       * (patch << 7) + (minor << 3) + major
+       * Compilers with version less than this value should report a diagnostic if this declaration is selected as the resolution result
+       * 
+ */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + + return this; + } + + private int versionFull_ ; + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public boolean hasVersionFull() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public int getVersionFull() { + return versionFull_; + } + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public Builder setVersionFull(int value) { + bitField0_ |= 0x00000002; + versionFull_ = value; + + return this; + } + /** + * optional int32 version_full = 2; + * + *
+       * Version in base 256, in case we run out of space to store the version in the optimized form. Has priority over 'version'.
+       * (patch << 16) + (minor << 8) + major
+       * 
+ */ + public Builder clearVersionFull() { + bitField0_ = (bitField0_ & ~0x00000002); + versionFull_ = 0; + + return this; + } + + private org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level level_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level.ERROR; + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level getLevel() { + return level_; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public Builder setLevel(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + level_ = value; + + return this; + } + /** + * optional .org.jetbrains.kotlin.serialization.SinceKotlinInfo.Level level = 3 [default = ERROR]; + * + *
+       * Level of the reported diagnostic
+       * 
+ */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + level_ = org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Level.ERROR; + + return this; + } + + private int errorCode_ ; + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public boolean hasErrorCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public int getErrorCode() { + return errorCode_; + } + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public Builder setErrorCode(int value) { + bitField0_ |= 0x00000008; + errorCode_ = value; + + return this; + } + /** + * optional int32 error_code = 4; + * + *
+       * Error code, to be looked up on the website
+       * 
+ */ + public Builder clearErrorCode() { + bitField0_ = (bitField0_ & ~0x00000008); + errorCode_ = 0; + + return this; + } + + private int message_ ; + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public int getMessage() { + return message_; + } + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public Builder setMessage(int value) { + bitField0_ |= 0x00000010; + message_ = value; + + return this; + } + /** + * optional int32 message = 5; + * + *
+       * Diagnostic message
+       * 
+ */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000010); + message_ = 0; + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + } + + static { + defaultInstance = new SinceKotlinInfo(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfo) + } + + public interface SinceKotlinInfoTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder { + + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + java.util.List + getInfoList(); + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo getInfo(int index); + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + int getInfoCount(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfoTable} + */ + public static final class SinceKotlinInfoTable extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + SinceKotlinInfoTableOrBuilder { + // Use SinceKotlinInfoTable.newBuilder() to construct. + private SinceKotlinInfoTable(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private SinceKotlinInfoTable(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;} + + private static final SinceKotlinInfoTable defaultInstance; + public static SinceKotlinInfoTable getDefaultInstance() { + return defaultInstance; + } + + public SinceKotlinInfoTable getDefaultInstanceForType() { + return defaultInstance; + } + + private final org.jetbrains.kotlin.protobuf.ByteString unknownFields; + private SinceKotlinInfoTable( + 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); + 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)) { + info_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + info_.add(input.readMessage(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.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_ & 0x00000001) == 0x00000001)) { + info_ = java.util.Collections.unmodifiableList(info_); + } + 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 SinceKotlinInfoTable parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new SinceKotlinInfoTable(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + public static final int INFO_FIELD_NUMBER = 1; + private java.util.List info_; + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List getInfoList() { + return info_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List + getInfoOrBuilderList() { + return info_; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public int getInfoCount() { + return info_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo getInfo(int index) { + return info_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoOrBuilder getInfoOrBuilder( + int index) { + return info_.get(index); + } + + private void initFields() { + info_ = 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; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < info_.size(); i++) { + output.writeMessage(1, info_.get(i)); + } + 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 < info_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(1, info_.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.serialization.ProtoBuf.SinceKotlinInfoTable parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable 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.serialization.ProtoBuf.SinceKotlinInfoTable parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable 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.serialization.ProtoBuf.SinceKotlinInfoTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable 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.serialization.ProtoBuf.SinceKotlinInfoTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable 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.serialization.ProtoBuf.SinceKotlinInfoTable parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable 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.serialization.ProtoBuf.SinceKotlinInfoTable prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + /** + * Protobuf type {@code org.jetbrains.kotlin.serialization.SinceKotlinInfoTable} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable, Builder> + implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTableOrBuilder { + // Construct using org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance(); + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable build() { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable buildPartial() { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable result = new org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + info_ = java.util.Collections.unmodifiableList(info_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.info_ = info_; + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable other) { + if (other == org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable.getDefaultInstance()) return this; + if (!other.info_.isEmpty()) { + if (info_.isEmpty()) { + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoIsMutable(); + info_.addAll(other.info_); + } + + } + setUnknownFields( + getUnknownFields().concat(other.unknownFields)); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfoTable) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List info_ = + java.util.Collections.emptyList(); + private void ensureInfoIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + info_ = new java.util.ArrayList(info_); + bitField0_ |= 0x00000001; + } + } + + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public java.util.List getInfoList() { + return java.util.Collections.unmodifiableList(info_); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public int getInfoCount() { + return info_.size(); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo getInfo(int index) { + return info_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder setInfo( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.set(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder setInfo( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Builder builderForValue) { + ensureInfoIsMutable(); + info_.set(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo(org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(index, value); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo( + org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Builder builderForValue) { + ensureInfoIsMutable(); + info_.add(builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addInfo( + int index, org.jetbrains.kotlin.serialization.ProtoBuf.SinceKotlinInfo.Builder builderForValue) { + ensureInfoIsMutable(); + info_.add(index, builderForValue.build()); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder addAllInfo( + java.lang.Iterable values) { + ensureInfoIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, info_); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder clearInfo() { + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + + return this; + } + /** + * repeated .org.jetbrains.kotlin.serialization.SinceKotlinInfo info = 1; + */ + public Builder removeInfo(int index) { + ensureInfoIsMutable(); + info_.remove(index); + + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + } + + static { + defaultInstance = new SinceKotlinInfoTable(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.serialization.SinceKotlinInfoTable) + } + static { } diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/ClassDeserializer.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/ClassDeserializer.kt index 91279ad1066..a40ffa6f2d0 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/ClassDeserializer.kt +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/ClassDeserializer.kt @@ -20,6 +20,7 @@ import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.serialization.ClassDataWithSource import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedClassDescriptor +import org.jetbrains.kotlin.serialization.deserialization.descriptors.SinceKotlinInfoTable class ClassDeserializer(private val components: DeserializationComponents) { private val classes: (ClassKey) -> ClassDescriptor? = @@ -58,7 +59,12 @@ class ClassDeserializer(private val components: DeserializationComponents) { if (!fragment.hasTopLevelClass(classId.shortClassName)) return null } - components.createContext(fragment, nameResolver, TypeTable(classProto.typeTable), containerSource = null) + components.createContext( + fragment, nameResolver, + TypeTable(classProto.typeTable), + SinceKotlinInfoTable.create(classProto.sinceKotlinInfoTable), + containerSource = null + ) } return DeserializedClassDescriptor(outerContext, classProto, nameResolver, sourceElement) diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt index 36f7fc24e35..acd7534b73a 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt @@ -50,6 +50,7 @@ class MemberDeserializer(private val c: DeserializationContext) { proto, c.nameResolver, c.typeTable, + c.sinceKotlinInfoTable, c.containerSource ) @@ -154,7 +155,8 @@ class MemberDeserializer(private val c: DeserializationContext) { else Annotations.EMPTY val function = DeserializedSimpleFunctionDescriptor( c.containingDeclaration, /* original = */ null, annotations, c.nameResolver.getName(proto.name), - Deserialization.memberKind(Flags.MEMBER_KIND.get(flags)), proto, c.nameResolver, c.typeTable, c.containerSource + Deserialization.memberKind(Flags.MEMBER_KIND.get(flags)), proto, c.nameResolver, c.typeTable, c.sinceKotlinInfoTable, + c.containerSource ) val local = c.childContext(function, proto.typeParameterList) function.initialize( @@ -181,7 +183,7 @@ class MemberDeserializer(private val c: DeserializationContext) { val visibility = Deserialization.visibility(Flags.VISIBILITY.get(proto.flags)) val typeAlias = DeserializedTypeAliasDescriptor( c.containingDeclaration, annotations, c.nameResolver.getName(proto.name), - visibility, proto, c.nameResolver, c.typeTable, c.containerSource + visibility, proto, c.nameResolver, c.typeTable, c.sinceKotlinInfoTable, c.containerSource ) val local = c.childContext(typeAlias, proto.typeParameterList) @@ -202,7 +204,8 @@ class MemberDeserializer(private val c: DeserializationContext) { val classDescriptor = c.containingDeclaration as ClassDescriptor val descriptor = DeserializedClassConstructorDescriptor( classDescriptor, null, getAnnotations(proto, proto.flags, AnnotatedCallableKind.FUNCTION), - isPrimary, CallableMemberDescriptor.Kind.DECLARATION, proto, c.nameResolver, c.typeTable, c.containerSource + isPrimary, CallableMemberDescriptor.Kind.DECLARATION, proto, c.nameResolver, c.typeTable, c.sinceKotlinInfoTable, + c.containerSource ) val local = c.childContext(descriptor, listOf()) descriptor.initialize( diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/context.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/context.kt index bef39433345..52f2d1f0365 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/context.kt +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/context.kt @@ -24,6 +24,7 @@ import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.resolve.constants.ConstantValue import org.jetbrains.kotlin.serialization.ProtoBuf import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource +import org.jetbrains.kotlin.serialization.deserialization.descriptors.SinceKotlinInfoTable import org.jetbrains.kotlin.storage.StorageManager class DeserializationComponents( @@ -50,9 +51,10 @@ class DeserializationComponents( descriptor: PackageFragmentDescriptor, nameResolver: NameResolver, typeTable: TypeTable, + sinceKotlinInfoTable: SinceKotlinInfoTable, containerSource: DeserializedContainerSource? ): DeserializationContext = - DeserializationContext(this, nameResolver, descriptor, typeTable, containerSource, + DeserializationContext(this, nameResolver, descriptor, typeTable, sinceKotlinInfoTable, containerSource, parentTypeDeserializer = null, typeParameters = listOf()) } @@ -62,6 +64,7 @@ class DeserializationContext( val nameResolver: NameResolver, val containingDeclaration: DeclarationDescriptor, val typeTable: TypeTable, + val sinceKotlinInfoTable: SinceKotlinInfoTable, val containerSource: DeserializedContainerSource?, parentTypeDeserializer: TypeDeserializer?, typeParameters: List @@ -79,7 +82,7 @@ class DeserializationContext( nameResolver: NameResolver = this.nameResolver, typeTable: TypeTable = this.typeTable ) = DeserializationContext( - components, nameResolver, descriptor, typeTable, this.containerSource, + components, nameResolver, descriptor, typeTable, sinceKotlinInfoTable, this.containerSource, parentTypeDeserializer = this.typeDeserializer, typeParameters = typeParameterProtos ) } diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedMemberDescriptor.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedMemberDescriptor.kt index 2c50bb0622d..d0cd60e5cdb 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedMemberDescriptor.kt +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedMemberDescriptor.kt @@ -39,6 +39,11 @@ interface DeserializedMemberDescriptor : MemberDescriptor { val typeTable: TypeTable + val sinceKotlinInfoTable: SinceKotlinInfoTable + + val sinceKotlinInfo: SinceKotlinInfo? + get() = SinceKotlinInfo.create(proto, nameResolver, sinceKotlinInfoTable) + // Information about the origin of this callable's container (class or package part on JVM) or null if there's no such information. val containerSource: DeserializedContainerSource? } @@ -65,6 +70,7 @@ class DeserializedSimpleFunctionDescriptor( override val proto: ProtoBuf.Function, override val nameResolver: NameResolver, override val typeTable: TypeTable, + override val sinceKotlinInfoTable: SinceKotlinInfoTable, override val containerSource: DeserializedContainerSource?, source: SourceElement? = null ) : DeserializedCallableMemberDescriptor, @@ -82,7 +88,7 @@ class DeserializedSimpleFunctionDescriptor( ): FunctionDescriptorImpl { return DeserializedSimpleFunctionDescriptor( newOwner, original as SimpleFunctionDescriptor?, annotations, newName ?: name, kind, - proto, nameResolver, typeTable, containerSource, source + proto, nameResolver, typeTable, sinceKotlinInfoTable, containerSource, source ) } } @@ -102,6 +108,7 @@ class DeserializedPropertyDescriptor( override val proto: ProtoBuf.Property, override val nameResolver: NameResolver, override val typeTable: TypeTable, + override val sinceKotlinInfoTable: SinceKotlinInfoTable, override val containerSource: DeserializedContainerSource? ) : DeserializedCallableMemberDescriptor, PropertyDescriptorImpl(containingDeclaration, original, annotations, @@ -117,7 +124,7 @@ class DeserializedPropertyDescriptor( ): PropertyDescriptorImpl { return DeserializedPropertyDescriptor( newOwner, original, annotations, newModality, newVisibility, isVar, name, kind, isLateInit, isConst, isExternal, - proto, nameResolver, typeTable, containerSource + proto, nameResolver, typeTable, sinceKotlinInfoTable, containerSource ) } @@ -133,6 +140,7 @@ class DeserializedClassConstructorDescriptor( override val proto: ProtoBuf.Constructor, override val nameResolver: NameResolver, override val typeTable: TypeTable, + override val sinceKotlinInfoTable: SinceKotlinInfoTable, override val containerSource: DeserializedContainerSource?, source: SourceElement? = null ) : DeserializedCallableMemberDescriptor, @@ -148,7 +156,7 @@ class DeserializedClassConstructorDescriptor( ): DeserializedClassConstructorDescriptor { return DeserializedClassConstructorDescriptor( newOwner as ClassDescriptor, original as ConstructorDescriptor?, annotations, isPrimary, kind, - proto, nameResolver, typeTable, containerSource, source + proto, nameResolver, typeTable, sinceKotlinInfoTable, containerSource, source ) } @@ -169,6 +177,7 @@ class DeserializedTypeAliasDescriptor( override val proto: ProtoBuf.TypeAlias, override val nameResolver: NameResolver, override val typeTable: TypeTable, + override val sinceKotlinInfoTable: SinceKotlinInfoTable, override val containerSource: DeserializedContainerSource? ) : AbstractTypeAliasDescriptor(containingDeclaration, annotations, name, SourceElement.NO_SOURCE, visibility), DeserializedMemberDescriptor { @@ -198,7 +207,9 @@ class DeserializedTypeAliasDescriptor( override fun substitute(substitutor: TypeSubstitutor): TypeAliasDescriptor { if (substitutor.isEmpty) return this - val substituted = DeserializedTypeAliasDescriptor(containingDeclaration, annotations, name, visibility, proto, nameResolver, typeTable, containerSource) + val substituted = DeserializedTypeAliasDescriptor( + containingDeclaration, annotations, name, visibility, proto, nameResolver, typeTable, sinceKotlinInfoTable, containerSource + ) substituted.initialize(declaredTypeParameters, substitutor.safeSubstitute(underlyingType, Variance.INVARIANT).asSimpleType(), substitutor.safeSubstitute(expandedType, Variance.INVARIANT).asSimpleType()) diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedPackageMemberScope.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedPackageMemberScope.kt index 1c0ccf0f601..9202813536b 100644 --- a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedPackageMemberScope.kt +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedPackageMemberScope.kt @@ -18,7 +18,6 @@ package org.jetbrains.kotlin.serialization.deserialization.descriptors import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor -import org.jetbrains.kotlin.descriptors.SourceElement import org.jetbrains.kotlin.incremental.components.NoLookupLocation import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.name.Name @@ -36,7 +35,8 @@ open class DeserializedPackageMemberScope( components: DeserializationComponents, classNames: () -> Collection ) : DeserializedMemberScope( - components.createContext(packageDescriptor, nameResolver, TypeTable(proto.typeTable), containerSource), + components.createContext(packageDescriptor, nameResolver, TypeTable(proto.typeTable), + SinceKotlinInfoTable.create(proto.sinceKotlinInfoTable), containerSource), proto.functionList, proto.propertyList, proto.typeAliasList, classNames ) { private val packageFqName = packageDescriptor.fqName diff --git a/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/SinceKotlinInfo.kt b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/SinceKotlinInfo.kt new file mode 100644 index 00000000000..9e0314a1c1d --- /dev/null +++ b/core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/SinceKotlinInfo.kt @@ -0,0 +1,107 @@ +/* + * Copyright 2010-2016 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.jetbrains.kotlin.serialization.deserialization.descriptors + +import org.jetbrains.kotlin.protobuf.MessageLite +import org.jetbrains.kotlin.serialization.ProtoBuf +import org.jetbrains.kotlin.serialization.deserialization.NameResolver + +class SinceKotlinInfoTable private constructor(private val infos: List) { + operator fun get(id: Int): ProtoBuf.SinceKotlinInfo? = infos.getOrNull(id) + + companion object { + val EMPTY = SinceKotlinInfoTable(emptyList()) + + fun create(table: ProtoBuf.SinceKotlinInfoTable): SinceKotlinInfoTable = + if (table.infoCount == 0) EMPTY else SinceKotlinInfoTable(table.infoList) + } +} + +class SinceKotlinInfo( + val version: Version, + val level: DeprecationLevel, + val errorCode: Int?, + val message: String? +) { + class Version(val major: Int, val minor: Int, val patch: Int) { + fun asString(): String = + if (patch == 0) "$major.$minor" else "$major.$minor.$patch" + + override fun toString(): String = asString() + + companion object { + val DEFAULT = Version(1, 0, 0) + + // Number of bits used for major, minor and patch components in "version" field + private const val MAJOR_BITS = 3 + private const val MINOR_BITS = 4 + private const val PATCH_BITS = 7 + private const val MAJOR_MASK = (1 shl MAJOR_BITS) - 1 + private const val MINOR_MASK = (1 shl MINOR_BITS) - 1 + private const val PATCH_MASK = (1 shl PATCH_BITS) - 1 + + fun decode(version: Int?, versionFull: Int?): Version = when { + versionFull != null -> Version( + major = versionFull and 255, + minor = (versionFull shr 8) and 255, + patch = (versionFull shr 16) and 255 + ) + version != null -> Version( + major = version and MAJOR_MASK, + minor = (version shr MAJOR_BITS) and MINOR_MASK, + patch = (version shr (MAJOR_BITS + MINOR_BITS)) and PATCH_MASK + ) + else -> Version.DEFAULT + } + } + } + + override fun toString(): String = + "since $version $level" + (if (errorCode != null) " error $errorCode" else "") + (if (message != null) ": $message" else "") + + companion object { + fun create(proto: MessageLite, nameResolver: NameResolver, table: SinceKotlinInfoTable): SinceKotlinInfo? { + val id = when (proto) { + is ProtoBuf.Class -> if (proto.hasSinceKotlinInfo()) proto.sinceKotlinInfo else return null + is ProtoBuf.Constructor -> if (proto.hasSinceKotlinInfo()) proto.sinceKotlinInfo else return null + is ProtoBuf.Function -> if (proto.hasSinceKotlinInfo()) proto.sinceKotlinInfo else return null + is ProtoBuf.Property -> if (proto.hasSinceKotlinInfo()) proto.sinceKotlinInfo else return null + is ProtoBuf.TypeAlias -> if (proto.hasSinceKotlinInfo()) proto.sinceKotlinInfo else return null + else -> throw IllegalStateException("Unexpected declaration: ${proto.javaClass}") + } + + val info = table[id] ?: return null + + val version = Version.decode( + if (info.hasVersion()) info.version else null, + if (info.hasVersionFull()) info.versionFull else null + ) + + val level = when (info.level!!) { + ProtoBuf.SinceKotlinInfo.Level.WARNING -> DeprecationLevel.WARNING + ProtoBuf.SinceKotlinInfo.Level.ERROR -> DeprecationLevel.ERROR + ProtoBuf.SinceKotlinInfo.Level.HIDDEN -> DeprecationLevel.HIDDEN + } + + val errorCode = if (info.hasErrorCode()) info.errorCode else null + + val message = if (info.hasMessage()) nameResolver.getString(info.message) else null + + return SinceKotlinInfo(version, level, errorCode, message) + } + } +} diff --git a/core/reflection.jvm/src/kotlin/reflect/jvm/reflectLambda.kt b/core/reflection.jvm/src/kotlin/reflect/jvm/reflectLambda.kt index c24f483d36b..19337fd0500 100644 --- a/core/reflection.jvm/src/kotlin/reflect/jvm/reflectLambda.kt +++ b/core/reflection.jvm/src/kotlin/reflect/jvm/reflectLambda.kt @@ -14,7 +14,7 @@ * limitations under the License. */ -@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") // kotlin.Metadata +@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER") package kotlin.reflect.jvm @@ -23,6 +23,7 @@ import org.jetbrains.kotlin.serialization.ProtoBuf import org.jetbrains.kotlin.serialization.deserialization.DeserializationContext import org.jetbrains.kotlin.serialization.deserialization.MemberDeserializer import org.jetbrains.kotlin.serialization.deserialization.TypeTable +import org.jetbrains.kotlin.serialization.deserialization.descriptors.SinceKotlinInfoTable import org.jetbrains.kotlin.serialization.jvm.BitEncoding import org.jetbrains.kotlin.serialization.jvm.JvmProtoBuf import org.jetbrains.kotlin.serialization.jvm.JvmProtoBufUtil @@ -45,7 +46,7 @@ fun Function.reflect(): KFunction? { val proto = ProtoBuf.Function.parseFrom(input, JvmProtoBufUtil.EXTENSION_REGISTRY) val moduleData = javaClass.getOrCreateModule() val context = DeserializationContext( - moduleData.deserialization, nameResolver, moduleData.module, TypeTable(proto.typeTable), + moduleData.deserialization, nameResolver, moduleData.module, TypeTable(proto.typeTable), SinceKotlinInfoTable.EMPTY, containerSource = null, parentTypeDeserializer = null, typeParameters = proto.typeParameterList ) val descriptor = MemberDeserializer(context).loadFunction(proto)