From c694752b4f0b2f7915bf8e07031671458dc766d7 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Fri, 25 Oct 2019 07:46:34 +0300 Subject: [PATCH] Generate Klib JS extensions for proto comparison --- build-common/build.gradle.kts | 1 + .../incremental/ProtoCompareGenerated.kt | 294 +- .../incremental/protoDifferenceUtils.kt | 56 +- .../metadata/DebugJsKlibMetadataProtoBuf.java | 5363 ----------------- .../metadata/DebugKlibMetadataProtoBuf.java | 3610 +++++++++++ .../generators/protobuf/GenerateProtoBuf.kt | 2 +- .../protobuf/GenerateProtoBufCompare.kt | 123 +- 7 files changed, 4001 insertions(+), 5448 deletions(-) delete mode 100644 build-common/test/org/jetbrains/kotlin/ir/backend/js/lower/serialization/metadata/DebugJsKlibMetadataProtoBuf.java create mode 100644 build-common/test/org/jetbrains/kotlin/library/metadata/DebugKlibMetadataProtoBuf.java diff --git a/build-common/build.gradle.kts b/build-common/build.gradle.kts index bd85448e01b..92529e68a36 100644 --- a/build-common/build.gradle.kts +++ b/build-common/build.gradle.kts @@ -13,6 +13,7 @@ dependencies { compileOnly(project(":compiler:frontend.java")) compileOnly(project(":js:js.serializer")) compileOnly(project(":js:js.frontend")) + compileOnly(project(":kotlin-util-klib-metadata")) compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijDep()) { includeJars("asm-all", "trove4j", "util", rootProject = rootProject) } compileOnly(project(":kotlin-reflect-api")) diff --git a/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt b/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt index e6a9cd0ee3d..5a92813ffa2 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/ProtoCompareGenerated.kt @@ -16,6 +16,7 @@ package org.jetbrains.kotlin.incremental +import org.jetbrains.kotlin.library.metadata.KlibMetadataProtoBuf import org.jetbrains.kotlin.metadata.ProtoBuf import org.jetbrains.kotlin.metadata.builtins.BuiltInsProtoBuf import org.jetbrains.kotlin.metadata.deserialization.NameResolver @@ -79,6 +80,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (old.getExtension(BuiltInsProtoBuf.packageFqName) != new.getExtension(BuiltInsProtoBuf.packageFqName)) return false } + if (old.hasExtension(KlibMetadataProtoBuf.packageFqName) != new.hasExtension(KlibMetadataProtoBuf.packageFqName)) return false + if (old.hasExtension(KlibMetadataProtoBuf.packageFqName)) { + if (old.getExtension(KlibMetadataProtoBuf.packageFqName) != new.getExtension(KlibMetadataProtoBuf.packageFqName)) return false + } + return true } enum class ProtoBufPackageKind { @@ -90,7 +96,8 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR JVM_EXT_PACKAGE_MODULE_NAME, JVM_EXT_PACKAGE_LOCAL_VARIABLE_LIST, JS_EXT_PACKAGE_FQ_NAME, - BUILT_INS_EXT_PACKAGE_FQ_NAME + BUILT_INS_EXT_PACKAGE_FQ_NAME, + KLIB_EXT_PACKAGE_FQ_NAME } fun difference(old: ProtoBuf.Package, new: ProtoBuf.Package): EnumSet { @@ -136,6 +143,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (old.getExtension(BuiltInsProtoBuf.packageFqName) != new.getExtension(BuiltInsProtoBuf.packageFqName)) result.add(ProtoBufPackageKind.BUILT_INS_EXT_PACKAGE_FQ_NAME) } + if (old.hasExtension(KlibMetadataProtoBuf.packageFqName) != new.hasExtension(KlibMetadataProtoBuf.packageFqName)) result.add(ProtoBufPackageKind.KLIB_EXT_PACKAGE_FQ_NAME) + if (old.hasExtension(KlibMetadataProtoBuf.packageFqName)) { + if (old.getExtension(KlibMetadataProtoBuf.packageFqName) != new.getExtension(KlibMetadataProtoBuf.packageFqName)) result.add(ProtoBufPackageKind.KLIB_EXT_PACKAGE_FQ_NAME) + } + return result } @@ -231,6 +243,25 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.classAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.classAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.classAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.classAnnotation, i), new.getExtension(KlibMetadataProtoBuf.classAnnotation, i))) return false + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.classFile) != new.hasExtension(KlibMetadataProtoBuf.classFile)) return false + if (old.hasExtension(KlibMetadataProtoBuf.classFile)) { + if (old.getExtension(KlibMetadataProtoBuf.classFile) != new.getExtension(KlibMetadataProtoBuf.classFile)) return false + } + + if (old.hasExtension(KlibMetadataProtoBuf.classUniqId) != new.hasExtension(KlibMetadataProtoBuf.classUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.classUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.classUniqId), new.getExtension(KlibMetadataProtoBuf.classUniqId))) return false + } + return true } enum class ProtoBufClassKind { @@ -256,7 +287,10 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR JS_EXT_CLASS_ANNOTATION_LIST, JS_EXT_CLASS_CONTAINING_FILE_ID, JAVA_EXT_IS_PACKAGE_PRIVATE_CLASS, - BUILT_INS_EXT_CLASS_ANNOTATION_LIST + BUILT_INS_EXT_CLASS_ANNOTATION_LIST, + KLIB_EXT_CLASS_ANNOTATION_LIST, + KLIB_EXT_CLASS_FILE, + KLIB_EXT_CLASS_UNIQ_ID } fun difference(old: ProtoBuf.Class, new: ProtoBuf.Class): EnumSet { @@ -353,6 +387,25 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.classAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.classAnnotation)) { + result.add(ProtoBufClassKind.KLIB_EXT_CLASS_ANNOTATION_LIST) + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.classAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.classAnnotation, i), new.getExtension(KlibMetadataProtoBuf.classAnnotation, i))) result.add(ProtoBufClassKind.KLIB_EXT_CLASS_ANNOTATION_LIST) + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.classFile) != new.hasExtension(KlibMetadataProtoBuf.classFile)) result.add(ProtoBufClassKind.KLIB_EXT_CLASS_FILE) + if (old.hasExtension(KlibMetadataProtoBuf.classFile)) { + if (old.getExtension(KlibMetadataProtoBuf.classFile) != new.getExtension(KlibMetadataProtoBuf.classFile)) result.add(ProtoBufClassKind.KLIB_EXT_CLASS_FILE) + } + + if (old.hasExtension(KlibMetadataProtoBuf.classUniqId) != new.hasExtension(KlibMetadataProtoBuf.classUniqId)) result.add(ProtoBufClassKind.KLIB_EXT_CLASS_UNIQ_ID) + if (old.hasExtension(KlibMetadataProtoBuf.classUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.classUniqId), new.getExtension(KlibMetadataProtoBuf.classUniqId))) result.add(ProtoBufClassKind.KLIB_EXT_CLASS_UNIQ_ID) + } + return result } @@ -448,6 +501,25 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.functionAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.functionAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.functionAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.functionAnnotation, i), new.getExtension(KlibMetadataProtoBuf.functionAnnotation, i))) return false + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.functionFile) != new.hasExtension(KlibMetadataProtoBuf.functionFile)) return false + if (old.hasExtension(KlibMetadataProtoBuf.functionFile)) { + if (old.getExtension(KlibMetadataProtoBuf.functionFile) != new.getExtension(KlibMetadataProtoBuf.functionFile)) return false + } + + if (old.hasExtension(KlibMetadataProtoBuf.functionUniqId) != new.hasExtension(KlibMetadataProtoBuf.functionUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.functionUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.functionUniqId), new.getExtension(KlibMetadataProtoBuf.functionUniqId))) return false + } + return true } @@ -592,6 +664,48 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEquals(old.getExtension(BuiltInsProtoBuf.compileTimeValue), new.getExtension(BuiltInsProtoBuf.compileTimeValue))) return false } + if (old.getExtensionCount(KlibMetadataProtoBuf.propertyAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.propertyAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.propertyAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.propertyAnnotation, i), new.getExtension(KlibMetadataProtoBuf.propertyAnnotation, i))) return false + } + } + + if (old.getExtensionCount(KlibMetadataProtoBuf.propertyGetterAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.propertyGetterAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.propertyGetterAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.propertyGetterAnnotation, i), new.getExtension(KlibMetadataProtoBuf.propertyGetterAnnotation, i))) return false + } + } + + if (old.getExtensionCount(KlibMetadataProtoBuf.propertySetterAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.propertySetterAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.propertySetterAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.propertySetterAnnotation, i), new.getExtension(KlibMetadataProtoBuf.propertySetterAnnotation, i))) return false + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.compileTimeValue) != new.hasExtension(KlibMetadataProtoBuf.compileTimeValue)) return false + if (old.hasExtension(KlibMetadataProtoBuf.compileTimeValue)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.compileTimeValue), new.getExtension(KlibMetadataProtoBuf.compileTimeValue))) return false + } + + if (old.hasExtension(KlibMetadataProtoBuf.propertyFile) != new.hasExtension(KlibMetadataProtoBuf.propertyFile)) return false + if (old.hasExtension(KlibMetadataProtoBuf.propertyFile)) { + if (old.getExtension(KlibMetadataProtoBuf.propertyFile) != new.getExtension(KlibMetadataProtoBuf.propertyFile)) return false + } + + if (old.hasExtension(KlibMetadataProtoBuf.propertyUniqId) != new.hasExtension(KlibMetadataProtoBuf.propertyUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.propertyUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.propertyUniqId), new.getExtension(KlibMetadataProtoBuf.propertyUniqId))) return false + } + return true } @@ -629,6 +743,11 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR if (!checkEqualsTypeAliasVersionRequirement(old, new)) return false + if (old.hasExtension(KlibMetadataProtoBuf.typeAliasUniqId) != new.hasExtension(KlibMetadataProtoBuf.typeAliasUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.typeAliasUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.typeAliasUniqId), new.getExtension(KlibMetadataProtoBuf.typeAliasUniqId))) return false + } + return true } @@ -695,6 +814,20 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.typeParameterAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.typeParameterAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.typeParameterAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.typeParameterAnnotation, i), new.getExtension(KlibMetadataProtoBuf.typeParameterAnnotation, i))) return false + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.typeParamUniqId) != new.hasExtension(KlibMetadataProtoBuf.typeParamUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.typeParamUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.typeParamUniqId), new.getExtension(KlibMetadataProtoBuf.typeParamUniqId))) return false + } + return true } @@ -798,6 +931,15 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.typeAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.typeAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.typeAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.typeAnnotation, i), new.getExtension(KlibMetadataProtoBuf.typeAnnotation, i))) return false + } + } + return true } @@ -839,6 +981,20 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.constructorAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.constructorAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.constructorAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.constructorAnnotation, i), new.getExtension(KlibMetadataProtoBuf.constructorAnnotation, i))) return false + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.constructorUniqId) != new.hasExtension(KlibMetadataProtoBuf.constructorUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.constructorUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.constructorUniqId), new.getExtension(KlibMetadataProtoBuf.constructorUniqId))) return false + } + return true } @@ -866,6 +1022,25 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.enumEntryAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.enumEntryAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.enumEntryAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.enumEntryAnnotation, i), new.getExtension(KlibMetadataProtoBuf.enumEntryAnnotation, i))) return false + } + } + + if (old.hasExtension(KlibMetadataProtoBuf.enumEntryOrdinal) != new.hasExtension(KlibMetadataProtoBuf.enumEntryOrdinal)) return false + if (old.hasExtension(KlibMetadataProtoBuf.enumEntryOrdinal)) { + if (old.getExtension(KlibMetadataProtoBuf.enumEntryOrdinal) != new.getExtension(KlibMetadataProtoBuf.enumEntryOrdinal)) return false + } + + if (old.hasExtension(KlibMetadataProtoBuf.enumEntryUniqId) != new.hasExtension(KlibMetadataProtoBuf.enumEntryUniqId)) return false + if (old.hasExtension(KlibMetadataProtoBuf.enumEntryUniqId)) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.enumEntryUniqId), new.getExtension(KlibMetadataProtoBuf.enumEntryUniqId))) return false + } + return true } @@ -877,6 +1052,12 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR return true } + open fun checkEquals(old: KlibMetadataProtoBuf.DescriptorUniqId, new: KlibMetadataProtoBuf.DescriptorUniqId): Boolean { + if (old.index != new.index) return false + + return true + } + open fun checkEquals(old: ProtoBuf.ValueParameter, new: ProtoBuf.ValueParameter): Boolean { if (old.hasFlags() != new.hasFlags()) return false if (old.hasFlags()) { @@ -923,6 +1104,15 @@ open class ProtoCompareGenerated(val oldNameResolver: NameResolver, val newNameR } } + if (old.getExtensionCount(KlibMetadataProtoBuf.parameterAnnotation) != new.getExtensionCount(KlibMetadataProtoBuf.parameterAnnotation)) { + return false + } + else { + for(i in 0..old.getExtensionCount(KlibMetadataProtoBuf.parameterAnnotation) - 1) { + if (!checkEquals(old.getExtension(KlibMetadataProtoBuf.parameterAnnotation, i), new.getExtension(KlibMetadataProtoBuf.parameterAnnotation, i))) return false + } + } + return true } @@ -1575,6 +1765,10 @@ fun ProtoBuf.Package.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.packageFqName) } + if (hasExtension(KlibMetadataProtoBuf.packageFqName)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.packageFqName) + } + return hashCode } @@ -1671,6 +1865,18 @@ fun ProtoBuf.Class.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.classAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.classAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.classAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.classFile)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.classFile) + } + + if (hasExtension(KlibMetadataProtoBuf.classUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.classUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -1751,6 +1957,18 @@ fun ProtoBuf.Function.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.functionAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.functionAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.functionAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.functionFile)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.functionFile) + } + + if (hasExtension(KlibMetadataProtoBuf.functionUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.functionUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -1855,6 +2073,30 @@ fun ProtoBuf.Property.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.compileTimeValue).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.propertyAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.propertyAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.propertyGetterAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.propertyGetterAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.propertySetterAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.propertySetterAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.compileTimeValue)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.compileTimeValue).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.propertyFile)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.propertyFile) + } + + if (hasExtension(KlibMetadataProtoBuf.propertyUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.propertyUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -1895,6 +2137,10 @@ fun ProtoBuf.TypeAlias.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int hashCode = 31 * hashCode + getVersionRequirement(i) } + if (hasExtension(KlibMetadataProtoBuf.typeAliasUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.typeAliasUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -1957,6 +2203,14 @@ fun ProtoBuf.TypeParameter.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.typeParameterAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.typeParameterAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.typeParameterAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.typeParamUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.typeParamUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -2035,6 +2289,10 @@ fun ProtoBuf.Type.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.typeAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.typeAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.typeAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -2069,6 +2327,14 @@ fun ProtoBuf.Constructor.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (I hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.constructorAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.constructorAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.constructorAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.constructorUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.constructorUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -2087,6 +2353,18 @@ fun ProtoBuf.EnumEntry.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.enumEntryAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.enumEntryAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.enumEntryAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + + if (hasExtension(KlibMetadataProtoBuf.enumEntryOrdinal)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.enumEntryOrdinal) + } + + if (hasExtension(KlibMetadataProtoBuf.enumEntryUniqId)) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.enumEntryUniqId).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } @@ -2102,6 +2380,14 @@ fun ProtoBuf.Annotation.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (In return hashCode } +fun KlibMetadataProtoBuf.DescriptorUniqId.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { + var hashCode = 1 + + hashCode = 31 * hashCode + index.hashCode() + + return hashCode +} + fun ProtoBuf.ValueParameter.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int { var hashCode = 1 @@ -2135,6 +2421,10 @@ fun ProtoBuf.ValueParameter.hashCode(stringIndexes: (Int) -> Int, fqNameIndexes: hashCode = 31 * hashCode + getExtension(BuiltInsProtoBuf.parameterAnnotation, i).hashCode(stringIndexes, fqNameIndexes) } + for(i in 0..getExtensionCount(KlibMetadataProtoBuf.parameterAnnotation) - 1) { + hashCode = 31 * hashCode + getExtension(KlibMetadataProtoBuf.parameterAnnotation, i).hashCode(stringIndexes, fqNameIndexes) + } + return hashCode } diff --git a/build-common/src/org/jetbrains/kotlin/incremental/protoDifferenceUtils.kt b/build-common/src/org/jetbrains/kotlin/incremental/protoDifferenceUtils.kt index 42cec42d59e..2e775a3bfd4 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/protoDifferenceUtils.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/protoDifferenceUtils.kt @@ -30,9 +30,9 @@ import org.jetbrains.kotlin.serialization.deserialization.ProtoEnumFlags import java.util.* data class Difference( - val isClassAffected: Boolean = false, - val areSubclassesAffected: Boolean = false, - val changedMembersNames: Set = emptySet() + val isClassAffected: Boolean = false, + val areSubclassesAffected: Boolean = false, + val changedMembersNames: Set = emptySet() ) sealed class ProtoData @@ -49,14 +49,17 @@ fun ProtoMapValue.toProtoData(packageFqName: FqName): ProtoData = } internal val MessageLite.isPrivate: Boolean - get() = Visibilities.isPrivate(ProtoEnumFlags.visibility( + get() = Visibilities.isPrivate( + ProtoEnumFlags.visibility( when (this) { is ProtoBuf.Constructor -> Flags.VISIBILITY.get(flags) is ProtoBuf.Function -> Flags.VISIBILITY.get(flags) is ProtoBuf.Property -> Flags.VISIBILITY.get(flags) is ProtoBuf.TypeAlias -> Flags.VISIBILITY.get(flags) else -> error("Unknown message: $this") - })) + } + ) + ) private fun MessageLite.name(nameResolver: NameResolver): String { return when (this) { @@ -79,9 +82,9 @@ abstract class DifferenceCalculator { val result = hashSetOf() val oldMap = - oldList.groupBy { it.getHashCode({ compareObject.oldGetIndexOfString(it) }, { compareObject.oldGetIndexOfClassId(it) }) } + oldList.groupBy { it.getHashCode({ compareObject.oldGetIndexOfString(it) }, { compareObject.oldGetIndexOfClassId(it) }) } val newMap = - newList.groupBy { it.getHashCode({ compareObject.newGetIndexOfString(it) }, { compareObject.newGetIndexOfClassId(it) }) } + newList.groupBy { it.getHashCode({ compareObject.newGetIndexOfString(it) }, { compareObject.newGetIndexOfClassId(it) }) } val hashes = oldMap.keys + newMap.keys for (hash in hashes) { @@ -100,8 +103,8 @@ abstract class DifferenceCalculator { } private fun calcDifferenceForEqualHashes( - oldList: List, - newList: List + oldList: List, + newList: List ): Collection { val result = hashSetOf() val newSet = HashSet(newList) @@ -110,8 +113,7 @@ abstract class DifferenceCalculator { val newMember = newSet.firstOrNull { compareObject.checkEquals(oldMember, it) } if (newMember != null) { newSet.remove(newMember) - } - else { + } else { result.add(oldMember.name(compareObject.oldNameResolver)) } } @@ -124,8 +126,8 @@ abstract class DifferenceCalculator { } protected fun calcDifferenceForNames( - oldList: List, - newList: List + oldList: List, + newList: List ): Collection { val oldNames = oldList.map { compareObject.oldNameResolver.getString(it) }.toSet() val newNames = newList.map { compareObject.newNameResolver.getString(it) }.toSet() @@ -154,8 +156,8 @@ abstract class DifferenceCalculator { } class DifferenceCalculatorForClass( - private val oldData: ClassProtoData, - private val newData: ClassProtoData + private val oldData: ClassProtoData, + private val newData: ClassProtoData ) : DifferenceCalculator() { override val compareObject = ProtoCompareGenerated(oldData.nameResolver, newData.nameResolver) @@ -223,8 +225,8 @@ class DifferenceCalculatorForClass( ProtoBufClassKind.TYPE_TABLE -> { // TODO } - ProtoCompareGenerated.ProtoBufClassKind.VERSION_REQUIREMENT_LIST, - ProtoCompareGenerated.ProtoBufClassKind.VERSION_REQUIREMENT_TABLE -> { + ProtoBufClassKind.VERSION_REQUIREMENT_LIST, + ProtoBufClassKind.VERSION_REQUIREMENT_TABLE -> { // TODO } ProtoBufClassKind.FLAGS, @@ -238,7 +240,7 @@ class DifferenceCalculatorForClass( } ProtoBufClassKind.JVM_EXT_CLASS_MODULE_NAME, ProtoBufClassKind.JS_EXT_CLASS_CONTAINING_FILE_ID -> { - // TODO + // TODO } ProtoBufClassKind.JVM_EXT_CLASS_LOCAL_VARIABLE_LIST -> { // Not affected, local variables are not accessible outside of a file @@ -250,9 +252,16 @@ class DifferenceCalculatorForClass( ProtoBufClassKind.BUILT_INS_EXT_CLASS_ANNOTATION_LIST -> { isClassAffected = true } - ProtoCompareGenerated.ProtoBufClassKind.JVM_EXT_ANONYMOUS_OBJECT_ORIGIN_NAME -> { + ProtoBufClassKind.JVM_EXT_ANONYMOUS_OBJECT_ORIGIN_NAME -> { // Not affected, this extension is not used in the compiler } + ProtoBufClassKind.KLIB_EXT_CLASS_ANNOTATION_LIST -> { + isClassAffected = true + } + ProtoBufClassKind.KLIB_EXT_CLASS_FILE, + ProtoBufClassKind.KLIB_EXT_CLASS_UNIQ_ID -> { + // Not affected (probably?) + } } } @@ -261,8 +270,8 @@ class DifferenceCalculatorForClass( } class DifferenceCalculatorForPackageFacade( - private val oldData: PackagePartProtoData, - private val newData: PackagePartProtoData + private val oldData: PackagePartProtoData, + private val newData: PackagePartProtoData ) : DifferenceCalculator() { override val compareObject = ProtoCompareGenerated(oldData.nameResolver, newData.nameResolver) @@ -292,7 +301,7 @@ class DifferenceCalculatorForPackageFacade( ProtoBufPackageKind.TYPE_TABLE, ProtoBufPackageKind.VERSION_REQUIREMENT_TABLE, ProtoBufPackageKind.JVM_EXT_PACKAGE_MODULE_NAME, - ProtoBufPackageKind.JS_EXT_PACKAGE_FQ_NAME-> { + ProtoBufPackageKind.JS_EXT_PACKAGE_FQ_NAME -> { // TODO } ProtoBufPackageKind.JVM_EXT_PACKAGE_LOCAL_VARIABLE_LIST -> { @@ -301,6 +310,9 @@ class DifferenceCalculatorForPackageFacade( ProtoBufPackageKind.BUILT_INS_EXT_PACKAGE_FQ_NAME -> { // Not affected } + ProtoBufPackageKind.KLIB_EXT_PACKAGE_FQ_NAME -> { + // Not affected + } } } diff --git a/build-common/test/org/jetbrains/kotlin/ir/backend/js/lower/serialization/metadata/DebugJsKlibMetadataProtoBuf.java b/build-common/test/org/jetbrains/kotlin/ir/backend/js/lower/serialization/metadata/DebugJsKlibMetadataProtoBuf.java deleted file mode 100644 index 42283b0f20a..00000000000 --- a/build-common/test/org/jetbrains/kotlin/ir/backend/js/lower/serialization/metadata/DebugJsKlibMetadataProtoBuf.java +++ /dev/null @@ -1,5363 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: compiler/ir/backend.js/src/js.debug.proto - -package org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata; - -public final class DebugJsKlibMetadataProtoBuf { - private DebugJsKlibMetadataProtoBuf() {} - public static void registerAllExtensions( - org.jetbrains.kotlin.protobuf.ExtensionRegistry registry) { - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.packageFqName); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.classAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.classContainingFileId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.classUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.constructorAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.constructorUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.functionAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.functionContainingFileId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.functionUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.propertyAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.propertyGetterAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.propertySetterAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.compileTimeValue); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.propertyContainingFileId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.propertyUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.enumEntryAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.enumEntryUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.parameterAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.valueParamUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.typeAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.typeParameterAnnotation); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.typeParamUniqId); - registry.add(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.packageFragmentFiles); - } - public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Header) - org.jetbrains.kotlin.protobuf.MessageOrBuilder { - - /** - * optional int32 flags = 1; - * - *
-     *preRelease
-     * 
- */ - boolean hasFlags(); - /** - * optional int32 flags = 1; - * - *
-     *preRelease
-     * 
- */ - int getFlags(); - - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-     * (patch << 16) + (minor << 8) + major
-     * 
- */ - boolean hasJsCodeBinaryVersion(); - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-     * (patch << 16) + (minor << 8) + major
-     * 
- */ - int getJsCodeBinaryVersion(); - - /** - * optional string package_fq_name = 3; - */ - boolean hasPackageFqName(); - /** - * optional string package_fq_name = 3; - */ - java.lang.String getPackageFqName(); - /** - * optional string package_fq_name = 3; - */ - org.jetbrains.kotlin.protobuf.ByteString - getPackageFqNameBytes(); - - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - boolean hasStrings(); - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable getStrings(); - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder getStringsOrBuilder(); - - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - boolean hasQualifiedNames(); - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable getQualifiedNames(); - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder getQualifiedNamesOrBuilder(); - - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - java.util.List - getAnnotationList(); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - int getAnnotationCount(); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - java.util.List - getAnnotationOrBuilderList(); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( - int index); - } - /** - * Protobuf type {@code org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Header} - */ - public static final class Header extends - org.jetbrains.kotlin.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Header) - HeaderOrBuilder { - // Use Header.newBuilder() to construct. - private Header(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Header(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Header defaultInstance; - public static Header getDefaultInstance() { - return defaultInstance; - } - - public Header 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 Header( - 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; - flags_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - jsCodeBinaryVersion_ = input.readInt32(); - break; - } - case 26: { - org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - packageFqName_ = bs; - break; - } - case 34: { - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = strings_.toBuilder(); - } - strings_ = input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(strings_); - strings_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = qualifiedNames_.toBuilder(); - } - qualifiedNames_ = input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualifiedNames_); - qualifiedNames_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - annotation_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - annotation_.add(input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.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_ & 0x00000020) == 0x00000020)) { - annotation_ = java.util.Collections.unmodifiableList(annotation_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.Builder.class); - } - - public static org.jetbrains.kotlin.protobuf.Parser
PARSER = - new org.jetbrains.kotlin.protobuf.AbstractParser
() { - public Header parsePartialFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; - - @java.lang.Override - public org.jetbrains.kotlin.protobuf.Parser
getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int FLAGS_FIELD_NUMBER = 1; - private int flags_; - /** - * optional int32 flags = 1; - * - *
-     *preRelease
-     * 
- */ - public boolean hasFlags() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 flags = 1; - * - *
-     *preRelease
-     * 
- */ - public int getFlags() { - return flags_; - } - - public static final int JS_CODE_BINARY_VERSION_FIELD_NUMBER = 2; - private int jsCodeBinaryVersion_; - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-     * (patch << 16) + (minor << 8) + major
-     * 
- */ - public boolean hasJsCodeBinaryVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-     * (patch << 16) + (minor << 8) + major
-     * 
- */ - public int getJsCodeBinaryVersion() { - return jsCodeBinaryVersion_; - } - - public static final int PACKAGE_FQ_NAME_FIELD_NUMBER = 3; - private java.lang.Object packageFqName_; - /** - * optional string package_fq_name = 3; - */ - public boolean hasPackageFqName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string package_fq_name = 3; - */ - public java.lang.String getPackageFqName() { - java.lang.Object ref = packageFqName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - org.jetbrains.kotlin.protobuf.ByteString bs = - (org.jetbrains.kotlin.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - packageFqName_ = s; - } - return s; - } - } - /** - * optional string package_fq_name = 3; - */ - public org.jetbrains.kotlin.protobuf.ByteString - getPackageFqNameBytes() { - java.lang.Object ref = packageFqName_; - if (ref instanceof java.lang.String) { - org.jetbrains.kotlin.protobuf.ByteString b = - org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packageFqName_ = b; - return b; - } else { - return (org.jetbrains.kotlin.protobuf.ByteString) ref; - } - } - - public static final int STRINGS_FIELD_NUMBER = 4; - private org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable strings_; - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public boolean hasStrings() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable getStrings() { - return strings_; - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder getStringsOrBuilder() { - return strings_; - } - - public static final int QUALIFIED_NAMES_FIELD_NUMBER = 5; - private org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable qualifiedNames_; - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public boolean hasQualifiedNames() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable getQualifiedNames() { - return qualifiedNames_; - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder getQualifiedNamesOrBuilder() { - return qualifiedNames_; - } - - public static final int ANNOTATION_FIELD_NUMBER = 6; - private java.util.List annotation_; - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - public java.util.List getAnnotationList() { - return annotation_; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - public java.util.List - getAnnotationOrBuilderList() { - return annotation_; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - public int getAnnotationCount() { - return annotation_.size(); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index) { - return annotation_.get(index); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-     * Annotations on the whole module
-     * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( - int index) { - return annotation_.get(index); - } - - private void initFields() { - flags_ = 0; - jsCodeBinaryVersion_ = 1; - packageFqName_ = ""; - strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); - qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); - annotation_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasQualifiedNames()) { - if (!getQualifiedNames().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getAnnotationCount(); i++) { - if (!getAnnotation(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, flags_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, jsCodeBinaryVersion_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPackageFqNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, strings_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, qualifiedNames_); - } - for (int i = 0; i < annotation_.size(); i++) { - output.writeMessage(6, annotation_.get(i)); - } - 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, flags_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeInt32Size(2, jsCodeBinaryVersion_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeBytesSize(3, getPackageFqNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeMessageSize(4, strings_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeMessageSize(5, qualifiedNames_); - } - for (int i = 0; i < annotation_.size(); i++) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeMessageSize(6, annotation_.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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header parseFrom( - org.jetbrains.kotlin.protobuf.ByteString data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header parseFrom(byte[] data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header parseFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header 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.ir.backend.js.lower.serialization.metadata.Header} - */ - public static final class Builder extends - org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Header) - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.HeaderOrBuilder { - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.Builder.class); - } - - // Construct using org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.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) { - getStringsFieldBuilder(); - getQualifiedNamesFieldBuilder(); - getAnnotationFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - flags_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - jsCodeBinaryVersion_ = 1; - bitField0_ = (bitField0_ & ~0x00000002); - packageFqName_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - if (stringsBuilder_ == null) { - strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); - } else { - stringsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (qualifiedNamesBuilder_ == null) { - qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); - } else { - qualifiedNamesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (annotationBuilder_ == null) { - annotation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - annotationBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_descriptor; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header getDefaultInstanceForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.getDefaultInstance(); - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header build() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header buildPartial() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header result = new org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.flags_ = flags_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.jsCodeBinaryVersion_ = jsCodeBinaryVersion_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.packageFqName_ = packageFqName_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (stringsBuilder_ == null) { - result.strings_ = strings_; - } else { - result.strings_ = stringsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (qualifiedNamesBuilder_ == null) { - result.qualifiedNames_ = qualifiedNames_; - } else { - result.qualifiedNames_ = qualifiedNamesBuilder_.build(); - } - if (annotationBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - annotation_ = java.util.Collections.unmodifiableList(annotation_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.annotation_ = annotation_; - } else { - result.annotation_ = annotationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { - if (other instanceof org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header) { - return mergeFrom((org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header other) { - if (other == org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header.getDefaultInstance()) return this; - if (other.hasFlags()) { - setFlags(other.getFlags()); - } - if (other.hasJsCodeBinaryVersion()) { - setJsCodeBinaryVersion(other.getJsCodeBinaryVersion()); - } - if (other.hasPackageFqName()) { - bitField0_ |= 0x00000004; - packageFqName_ = other.packageFqName_; - onChanged(); - } - if (other.hasStrings()) { - mergeStrings(other.getStrings()); - } - if (other.hasQualifiedNames()) { - mergeQualifiedNames(other.getQualifiedNames()); - } - if (annotationBuilder_ == null) { - if (!other.annotation_.isEmpty()) { - if (annotation_.isEmpty()) { - annotation_ = other.annotation_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAnnotationIsMutable(); - annotation_.addAll(other.annotation_); - } - onChanged(); - } - } else { - if (!other.annotation_.isEmpty()) { - if (annotationBuilder_.isEmpty()) { - annotationBuilder_.dispose(); - annotationBuilder_ = null; - annotation_ = other.annotation_; - bitField0_ = (bitField0_ & ~0x00000020); - annotationBuilder_ = - org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAnnotationFieldBuilder() : null; - } else { - annotationBuilder_.addAllMessages(other.annotation_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasQualifiedNames()) { - if (!getQualifiedNames().isInitialized()) { - - return false; - } - } - for (int i = 0; i < getAnnotationCount(); i++) { - if (!getAnnotation(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Header) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int flags_ ; - /** - * optional int32 flags = 1; - * - *
-       *preRelease
-       * 
- */ - public boolean hasFlags() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 flags = 1; - * - *
-       *preRelease
-       * 
- */ - public int getFlags() { - return flags_; - } - /** - * optional int32 flags = 1; - * - *
-       *preRelease
-       * 
- */ - public Builder setFlags(int value) { - bitField0_ |= 0x00000001; - flags_ = value; - onChanged(); - return this; - } - /** - * optional int32 flags = 1; - * - *
-       *preRelease
-       * 
- */ - public Builder clearFlags() { - bitField0_ = (bitField0_ & ~0x00000001); - flags_ = 0; - onChanged(); - return this; - } - - private int jsCodeBinaryVersion_ = 1; - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-       * (patch << 16) + (minor << 8) + major
-       * 
- */ - public boolean hasJsCodeBinaryVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-       * (patch << 16) + (minor << 8) + major
-       * 
- */ - public int getJsCodeBinaryVersion() { - return jsCodeBinaryVersion_; - } - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-       * (patch << 16) + (minor << 8) + major
-       * 
- */ - public Builder setJsCodeBinaryVersion(int value) { - bitField0_ |= 0x00000002; - jsCodeBinaryVersion_ = value; - onChanged(); - return this; - } - /** - * optional int32 js_code_binary_version = 2 [default = 1]; - * - *
-       * (patch << 16) + (minor << 8) + major
-       * 
- */ - public Builder clearJsCodeBinaryVersion() { - bitField0_ = (bitField0_ & ~0x00000002); - jsCodeBinaryVersion_ = 1; - onChanged(); - return this; - } - - private java.lang.Object packageFqName_ = ""; - /** - * optional string package_fq_name = 3; - */ - public boolean hasPackageFqName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string package_fq_name = 3; - */ - public java.lang.String getPackageFqName() { - java.lang.Object ref = packageFqName_; - if (!(ref instanceof java.lang.String)) { - org.jetbrains.kotlin.protobuf.ByteString bs = - (org.jetbrains.kotlin.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - packageFqName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string package_fq_name = 3; - */ - public org.jetbrains.kotlin.protobuf.ByteString - getPackageFqNameBytes() { - java.lang.Object ref = packageFqName_; - if (ref instanceof String) { - org.jetbrains.kotlin.protobuf.ByteString b = - org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packageFqName_ = b; - return b; - } else { - return (org.jetbrains.kotlin.protobuf.ByteString) ref; - } - } - /** - * optional string package_fq_name = 3; - */ - public Builder setPackageFqName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - packageFqName_ = value; - onChanged(); - return this; - } - /** - * optional string package_fq_name = 3; - */ - public Builder clearPackageFqName() { - bitField0_ = (bitField0_ & ~0x00000004); - packageFqName_ = getDefaultInstance().getPackageFqName(); - onChanged(); - return this; - } - /** - * optional string package_fq_name = 3; - */ - public Builder setPackageFqNameBytes( - org.jetbrains.kotlin.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - packageFqName_ = value; - onChanged(); - return this; - } - - private org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); - private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder> stringsBuilder_; - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public boolean hasStrings() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable getStrings() { - if (stringsBuilder_ == null) { - return strings_; - } else { - return stringsBuilder_.getMessage(); - } - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public Builder setStrings(org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable value) { - if (stringsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - strings_ = value; - onChanged(); - } else { - stringsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public Builder setStrings( - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder builderForValue) { - if (stringsBuilder_ == null) { - strings_ = builderForValue.build(); - onChanged(); - } else { - stringsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public Builder mergeStrings(org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable value) { - if (stringsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - strings_ != org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance()) { - strings_ = - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.newBuilder(strings_).mergeFrom(value).buildPartial(); - } else { - strings_ = value; - } - onChanged(); - } else { - stringsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public Builder clearStrings() { - if (stringsBuilder_ == null) { - strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); - onChanged(); - } else { - stringsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder getStringsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getStringsFieldBuilder().getBuilder(); - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder getStringsOrBuilder() { - if (stringsBuilder_ != null) { - return stringsBuilder_.getMessageOrBuilder(); - } else { - return strings_; - } - } - /** - * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; - */ - private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder> - getStringsFieldBuilder() { - if (stringsBuilder_ == null) { - stringsBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder>( - getStrings(), - getParentForChildren(), - isClean()); - strings_ = null; - } - return stringsBuilder_; - } - - private org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); - private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder> qualifiedNamesBuilder_; - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public boolean hasQualifiedNames() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable getQualifiedNames() { - if (qualifiedNamesBuilder_ == null) { - return qualifiedNames_; - } else { - return qualifiedNamesBuilder_.getMessage(); - } - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public Builder setQualifiedNames(org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable value) { - if (qualifiedNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualifiedNames_ = value; - onChanged(); - } else { - qualifiedNamesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public Builder setQualifiedNames( - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder builderForValue) { - if (qualifiedNamesBuilder_ == null) { - qualifiedNames_ = builderForValue.build(); - onChanged(); - } else { - qualifiedNamesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public Builder mergeQualifiedNames(org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable value) { - if (qualifiedNamesBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - qualifiedNames_ != org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance()) { - qualifiedNames_ = - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.newBuilder(qualifiedNames_).mergeFrom(value).buildPartial(); - } else { - qualifiedNames_ = value; - } - onChanged(); - } else { - qualifiedNamesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public Builder clearQualifiedNames() { - if (qualifiedNamesBuilder_ == null) { - qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); - onChanged(); - } else { - qualifiedNamesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder getQualifiedNamesBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getQualifiedNamesFieldBuilder().getBuilder(); - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder getQualifiedNamesOrBuilder() { - if (qualifiedNamesBuilder_ != null) { - return qualifiedNamesBuilder_.getMessageOrBuilder(); - } else { - return qualifiedNames_; - } - } - /** - * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; - */ - private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder> - getQualifiedNamesFieldBuilder() { - if (qualifiedNamesBuilder_ == null) { - qualifiedNamesBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder>( - getQualifiedNames(), - getParentForChildren(), - isClean()); - qualifiedNames_ = null; - } - return qualifiedNamesBuilder_; - } - - private java.util.List annotation_ = - java.util.Collections.emptyList(); - private void ensureAnnotationIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - annotation_ = new java.util.ArrayList(annotation_); - bitField0_ |= 0x00000020; - } - } - - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder> annotationBuilder_; - - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public java.util.List getAnnotationList() { - if (annotationBuilder_ == null) { - return java.util.Collections.unmodifiableList(annotation_); - } else { - return annotationBuilder_.getMessageList(); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public int getAnnotationCount() { - if (annotationBuilder_ == null) { - return annotation_.size(); - } else { - return annotationBuilder_.getCount(); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index) { - if (annotationBuilder_ == null) { - return annotation_.get(index); - } else { - return annotationBuilder_.getMessage(index); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder setAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationIsMutable(); - annotation_.set(index, value); - onChanged(); - } else { - annotationBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder setAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.set(index, builderForValue.build()); - onChanged(); - } else { - annotationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder addAnnotation(org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationIsMutable(); - annotation_.add(value); - onChanged(); - } else { - annotationBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder addAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationIsMutable(); - annotation_.add(index, value); - onChanged(); - } else { - annotationBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder addAnnotation( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.add(builderForValue.build()); - onChanged(); - } else { - annotationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder addAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.add(index, builderForValue.build()); - onChanged(); - } else { - annotationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder addAllAnnotation( - java.lang.Iterable values) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( - values, annotation_); - onChanged(); - } else { - annotationBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder clearAnnotation() { - if (annotationBuilder_ == null) { - annotation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - annotationBuilder_.clear(); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public Builder removeAnnotation(int index) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.remove(index); - onChanged(); - } else { - annotationBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder getAnnotationBuilder( - int index) { - return getAnnotationFieldBuilder().getBuilder(index); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( - int index) { - if (annotationBuilder_ == null) { - return annotation_.get(index); } else { - return annotationBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public java.util.List - getAnnotationOrBuilderList() { - if (annotationBuilder_ != null) { - return annotationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(annotation_); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder addAnnotationBuilder() { - return getAnnotationFieldBuilder().addBuilder( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder addAnnotationBuilder( - int index) { - return getAnnotationFieldBuilder().addBuilder( - index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; - * - *
-       * Annotations on the whole module
-       * 
- */ - public java.util.List - getAnnotationBuilderList() { - return getAnnotationFieldBuilder().getBuilderList(); - } - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder> - getAnnotationFieldBuilder() { - if (annotationBuilder_ == null) { - annotationBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder>( - annotation_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - annotation_ = null; - } - return annotationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Header) - } - - static { - defaultInstance = new Header(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Header) - } - - public interface FileOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File) - org.jetbrains.kotlin.protobuf.MessageOrBuilder { - - /** - * optional int32 id = 1; - * - *
-     * If absent, id is the index of the file in the Files.file list
-     * 
- */ - boolean hasId(); - /** - * optional int32 id = 1; - * - *
-     * If absent, id is the index of the file in the Files.file list
-     * 
- */ - int getId(); - - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - java.util.List - getAnnotationList(); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - int getAnnotationCount(); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - java.util.List - getAnnotationOrBuilderList(); - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( - int index); - } - /** - * Protobuf type {@code org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File} - */ - public static final class File extends - org.jetbrains.kotlin.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File) - FileOrBuilder { - // Use File.newBuilder() to construct. - private File(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private File(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final File defaultInstance; - public static File getDefaultInstance() { - return defaultInstance; - } - - public File 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 File( - 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; - id_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - annotation_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - annotation_.add(input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.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_ & 0x00000002) == 0x00000002)) { - annotation_ = java.util.Collections.unmodifiableList(annotation_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder.class); - } - - public static org.jetbrains.kotlin.protobuf.Parser PARSER = - new org.jetbrains.kotlin.protobuf.AbstractParser() { - public File parsePartialFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return new File(input, extensionRegistry); - } - }; - - @java.lang.Override - public org.jetbrains.kotlin.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private int id_; - /** - * optional int32 id = 1; - * - *
-     * If absent, id is the index of the file in the Files.file list
-     * 
- */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 id = 1; - * - *
-     * If absent, id is the index of the file in the Files.file list
-     * 
- */ - public int getId() { - return id_; - } - - public static final int ANNOTATION_FIELD_NUMBER = 2; - private java.util.List annotation_; - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public java.util.List getAnnotationList() { - return annotation_; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public java.util.List - getAnnotationOrBuilderList() { - return annotation_; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public int getAnnotationCount() { - return annotation_.size(); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index) { - return annotation_.get(index); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( - int index) { - return annotation_.get(index); - } - - private void initFields() { - id_ = 0; - annotation_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getAnnotationCount(); i++) { - if (!getAnnotation(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, id_); - } - for (int i = 0; i < annotation_.size(); i++) { - output.writeMessage(2, annotation_.get(i)); - } - 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, id_); - } - for (int i = 0; i < annotation_.size(); i++) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeMessageSize(2, annotation_.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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File parseFrom( - org.jetbrains.kotlin.protobuf.ByteString data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File parseFrom(byte[] data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File parseFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File 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.ir.backend.js.lower.serialization.metadata.File} - */ - public static final class Builder extends - org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File) - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder { - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder.class); - } - - // Construct using org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.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) { - getAnnotationFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (annotationBuilder_ == null) { - annotation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - annotationBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_descriptor; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File getDefaultInstanceForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.getDefaultInstance(); - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File build() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File buildPartial() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File result = new org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (annotationBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - annotation_ = java.util.Collections.unmodifiableList(annotation_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.annotation_ = annotation_; - } else { - result.annotation_ = annotationBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { - if (other instanceof org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File) { - return mergeFrom((org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File other) { - if (other == org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (annotationBuilder_ == null) { - if (!other.annotation_.isEmpty()) { - if (annotation_.isEmpty()) { - annotation_ = other.annotation_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAnnotationIsMutable(); - annotation_.addAll(other.annotation_); - } - onChanged(); - } - } else { - if (!other.annotation_.isEmpty()) { - if (annotationBuilder_.isEmpty()) { - annotationBuilder_.dispose(); - annotationBuilder_ = null; - annotation_ = other.annotation_; - bitField0_ = (bitField0_ & ~0x00000002); - annotationBuilder_ = - org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAnnotationFieldBuilder() : null; - } else { - annotationBuilder_.addAllMessages(other.annotation_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getAnnotationCount(); i++) { - if (!getAnnotation(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int id_ ; - /** - * optional int32 id = 1; - * - *
-       * If absent, id is the index of the file in the Files.file list
-       * 
- */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 id = 1; - * - *
-       * If absent, id is the index of the file in the Files.file list
-       * 
- */ - public int getId() { - return id_; - } - /** - * optional int32 id = 1; - * - *
-       * If absent, id is the index of the file in the Files.file list
-       * 
- */ - public Builder setId(int value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional int32 id = 1; - * - *
-       * If absent, id is the index of the file in the Files.file list
-       * 
- */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0; - onChanged(); - return this; - } - - private java.util.List annotation_ = - java.util.Collections.emptyList(); - private void ensureAnnotationIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - annotation_ = new java.util.ArrayList(annotation_); - bitField0_ |= 0x00000002; - } - } - - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder> annotationBuilder_; - - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public java.util.List getAnnotationList() { - if (annotationBuilder_ == null) { - return java.util.Collections.unmodifiableList(annotation_); - } else { - return annotationBuilder_.getMessageList(); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public int getAnnotationCount() { - if (annotationBuilder_ == null) { - return annotation_.size(); - } else { - return annotationBuilder_.getCount(); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index) { - if (annotationBuilder_ == null) { - return annotation_.get(index); - } else { - return annotationBuilder_.getMessage(index); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder setAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationIsMutable(); - annotation_.set(index, value); - onChanged(); - } else { - annotationBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder setAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.set(index, builderForValue.build()); - onChanged(); - } else { - annotationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder addAnnotation(org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationIsMutable(); - annotation_.add(value); - onChanged(); - } else { - annotationBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder addAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationIsMutable(); - annotation_.add(index, value); - onChanged(); - } else { - annotationBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder addAnnotation( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.add(builderForValue.build()); - onChanged(); - } else { - annotationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder addAnnotation( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.add(index, builderForValue.build()); - onChanged(); - } else { - annotationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder addAllAnnotation( - java.lang.Iterable values) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( - values, annotation_); - onChanged(); - } else { - annotationBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder clearAnnotation() { - if (annotationBuilder_ == null) { - annotation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - annotationBuilder_.clear(); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public Builder removeAnnotation(int index) { - if (annotationBuilder_ == null) { - ensureAnnotationIsMutable(); - annotation_.remove(index); - onChanged(); - } else { - annotationBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder getAnnotationBuilder( - int index) { - return getAnnotationFieldBuilder().getBuilder(index); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( - int index) { - if (annotationBuilder_ == null) { - return annotation_.get(index); } else { - return annotationBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public java.util.List - getAnnotationOrBuilderList() { - if (annotationBuilder_ != null) { - return annotationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(annotation_); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder addAnnotationBuilder() { - return getAnnotationFieldBuilder().addBuilder( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder addAnnotationBuilder( - int index) { - return getAnnotationFieldBuilder().addBuilder( - index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 2; - */ - public java.util.List - getAnnotationBuilderList() { - return getAnnotationFieldBuilder().getBuilderList(); - } - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder> - getAnnotationFieldBuilder() { - if (annotationBuilder_ == null) { - annotationBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder>( - annotation_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - annotation_ = null; - } - return annotationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File) - } - - static { - defaultInstance = new File(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File) - } - - public interface FilesOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Files) - org.jetbrains.kotlin.protobuf.MessageOrBuilder { - - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - java.util.List - getFileList(); - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File getFile(int index); - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - int getFileCount(); - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - java.util.List - getFileOrBuilderList(); - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder getFileOrBuilder( - int index); - } - /** - * Protobuf type {@code org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Files} - */ - public static final class Files extends - org.jetbrains.kotlin.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Files) - FilesOrBuilder { - // Use Files.newBuilder() to construct. - private Files(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Files(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Files defaultInstance; - public static Files getDefaultInstance() { - return defaultInstance; - } - - public Files 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 Files( - 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)) { - file_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - file_.add(input.readMessage(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.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)) { - file_ = java.util.Collections.unmodifiableList(file_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.Builder.class); - } - - public static org.jetbrains.kotlin.protobuf.Parser PARSER = - new org.jetbrains.kotlin.protobuf.AbstractParser() { - public Files parsePartialFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return new Files(input, extensionRegistry); - } - }; - - @java.lang.Override - public org.jetbrains.kotlin.protobuf.Parser getParserForType() { - return PARSER; - } - - public static final int FILE_FIELD_NUMBER = 1; - private java.util.List file_; - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public java.util.List getFileList() { - return file_; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public java.util.List - getFileOrBuilderList() { - return file_; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public int getFileCount() { - return file_.size(); - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File getFile(int index) { - return file_.get(index); - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder getFileOrBuilder( - int index) { - return file_.get(index); - } - - private void initFields() { - file_ = 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; - - for (int i = 0; i < getFileCount(); i++) { - if (!getFile(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < file_.size(); i++) { - output.writeMessage(1, file_.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 < file_.size(); i++) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeMessageSize(1, file_.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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files parseFrom( - org.jetbrains.kotlin.protobuf.ByteString data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files parseFrom(byte[] data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files parseFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files 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.ir.backend.js.lower.serialization.metadata.Files} - */ - public static final class Builder extends - org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Files) - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FilesOrBuilder { - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.Builder.class); - } - - // Construct using org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.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) { - getFileFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fileBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_descriptor; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files getDefaultInstanceForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.getDefaultInstance(); - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files build() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files buildPartial() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files result = new org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files(this); - int from_bitField0_ = bitField0_; - if (fileBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - file_ = java.util.Collections.unmodifiableList(file_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.file_ = file_; - } else { - result.file_ = fileBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { - if (other instanceof org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files) { - return mergeFrom((org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files other) { - if (other == org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.getDefaultInstance()) return this; - if (fileBuilder_ == null) { - if (!other.file_.isEmpty()) { - if (file_.isEmpty()) { - file_ = other.file_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFileIsMutable(); - file_.addAll(other.file_); - } - onChanged(); - } - } else { - if (!other.file_.isEmpty()) { - if (fileBuilder_.isEmpty()) { - fileBuilder_.dispose(); - fileBuilder_ = null; - file_ = other.file_; - bitField0_ = (bitField0_ & ~0x00000001); - fileBuilder_ = - org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFileFieldBuilder() : null; - } else { - fileBuilder_.addAllMessages(other.file_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getFileCount(); i++) { - if (!getFile(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List file_ = - java.util.Collections.emptyList(); - private void ensureFileIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - file_ = new java.util.ArrayList(file_); - bitField0_ |= 0x00000001; - } - } - - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder> fileBuilder_; - - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public java.util.List getFileList() { - if (fileBuilder_ == null) { - return java.util.Collections.unmodifiableList(file_); - } else { - return fileBuilder_.getMessageList(); - } - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public int getFileCount() { - if (fileBuilder_ == null) { - return file_.size(); - } else { - return fileBuilder_.getCount(); - } - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File getFile(int index) { - if (fileBuilder_ == null) { - return file_.get(index); - } else { - return fileBuilder_.getMessage(index); - } - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder setFile( - int index, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.set(index, value); - onChanged(); - } else { - fileBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder setFile( - int index, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.set(index, builderForValue.build()); - onChanged(); - } else { - fileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder addFile(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.add(value); - onChanged(); - } else { - fileBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder addFile( - int index, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.add(index, value); - onChanged(); - } else { - fileBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder addFile( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(builderForValue.build()); - onChanged(); - } else { - fileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder addFile( - int index, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(index, builderForValue.build()); - onChanged(); - } else { - fileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder addAllFile( - java.lang.Iterable values) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( - values, file_); - onChanged(); - } else { - fileBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder clearFile() { - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fileBuilder_.clear(); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public Builder removeFile(int index) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.remove(index); - onChanged(); - } else { - fileBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder getFileBuilder( - int index) { - return getFileFieldBuilder().getBuilder(index); - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder getFileOrBuilder( - int index) { - if (fileBuilder_ == null) { - return file_.get(index); } else { - return fileBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public java.util.List - getFileOrBuilderList() { - if (fileBuilder_ != null) { - return fileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(file_); - } - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder addFileBuilder() { - return getFileFieldBuilder().addBuilder( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder addFileBuilder( - int index) { - return getFileFieldBuilder().addBuilder( - index, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.File file = 1; - */ - public java.util.List - getFileBuilderList() { - return getFileFieldBuilder().getBuilderList(); - } - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder> - getFileFieldBuilder() { - if (fileBuilder_ == null) { - fileBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.File.Builder, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.FileOrBuilder>( - file_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - file_ = null; - } - return fileBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Files) - } - - static { - defaultInstance = new Files(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Files) - } - - public interface DescriptorUniqIdOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DescriptorUniqId) - org.jetbrains.kotlin.protobuf.MessageOrBuilder { - - /** - * required int64 index = 1; - */ - boolean hasIndex(); - /** - * required int64 index = 1; - */ - long getIndex(); - } - /** - * Protobuf type {@code org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DescriptorUniqId} - */ - public static final class DescriptorUniqId extends - org.jetbrains.kotlin.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DescriptorUniqId) - DescriptorUniqIdOrBuilder { - // Use DescriptorUniqId.newBuilder() to construct. - private DescriptorUniqId(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DescriptorUniqId(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final DescriptorUniqId defaultInstance; - public static DescriptorUniqId getDefaultInstance() { - return defaultInstance; - } - - public DescriptorUniqId 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 DescriptorUniqId( - 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; - index_ = input.readInt64(); - break; - } - } - } - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.Builder.class); - } - - public static org.jetbrains.kotlin.protobuf.Parser PARSER = - new org.jetbrains.kotlin.protobuf.AbstractParser() { - public DescriptorUniqId parsePartialFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return new DescriptorUniqId(input, extensionRegistry); - } - }; - - @java.lang.Override - public org.jetbrains.kotlin.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - * required int64 index = 1; - */ - public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 index = 1; - */ - public long getIndex() { - return index_; - } - - private void initFields() { - index_ = 0L; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasIndex()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, index_); - } - 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 - .computeInt64Size(1, index_); - } - 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId parseFrom( - org.jetbrains.kotlin.protobuf.ByteString data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId parseFrom(byte[] data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId parseFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId 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.ir.backend.js.lower.serialization.metadata.DescriptorUniqId} - */ - public static final class Builder extends - org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DescriptorUniqId) - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqIdOrBuilder { - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.Builder.class); - } - - // Construct using org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.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(); - index_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_descriptor; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId getDefaultInstanceForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance(); - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId build() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId buildPartial() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId result = new org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = index_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { - if (other instanceof org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId) { - return mergeFrom((org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId other) { - if (other == org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()) return this; - if (other.hasIndex()) { - setIndex(other.getIndex()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasIndex()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long index_ ; - /** - * required int64 index = 1; - */ - public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 index = 1; - */ - public long getIndex() { - return index_; - } - /** - * required int64 index = 1; - */ - public Builder setIndex(long value) { - bitField0_ |= 0x00000001; - index_ = value; - onChanged(); - return this; - } - /** - * required int64 index = 1; - */ - public Builder clearIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - index_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DescriptorUniqId) - } - - static { - defaultInstance = new DescriptorUniqId(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DescriptorUniqId) - } - - public interface ClassesOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Classes) - org.jetbrains.kotlin.protobuf.MessageOrBuilder { - - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-     * id in StringTable
-     * 
- */ - java.util.List getClassNameList(); - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-     * id in StringTable
-     * 
- */ - int getClassNameCount(); - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-     * id in StringTable
-     * 
- */ - int getClassName(int index); - } - /** - * Protobuf type {@code org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Classes} - */ - public static final class Classes extends - org.jetbrains.kotlin.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Classes) - ClassesOrBuilder { - // Use Classes.newBuilder() to construct. - private Classes(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Classes(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Classes defaultInstance; - public static Classes getDefaultInstance() { - return defaultInstance; - } - - public Classes 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 Classes( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - className_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - className_.add(input.readInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - className_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - className_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - className_ = java.util.Collections.unmodifiableList(className_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.Builder.class); - } - - public static org.jetbrains.kotlin.protobuf.Parser PARSER = - new org.jetbrains.kotlin.protobuf.AbstractParser() { - public Classes parsePartialFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return new Classes(input, extensionRegistry); - } - }; - - @java.lang.Override - public org.jetbrains.kotlin.protobuf.Parser getParserForType() { - return PARSER; - } - - public static final int CLASS_NAME_FIELD_NUMBER = 1; - private java.util.List className_; - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-     * id in StringTable
-     * 
- */ - public java.util.List - getClassNameList() { - return className_; - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-     * id in StringTable
-     * 
- */ - public int getClassNameCount() { - return className_.size(); - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-     * id in StringTable
-     * 
- */ - public int getClassName(int index) { - return className_.get(index); - } - private int classNameMemoizedSerializedSize = -1; - - private void initFields() { - className_ = 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(); - if (getClassNameList().size() > 0) { - output.writeRawVarint32(10); - output.writeRawVarint32(classNameMemoizedSerializedSize); - } - for (int i = 0; i < className_.size(); i++) { - output.writeInt32NoTag(className_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < className_.size(); i++) { - dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeInt32SizeNoTag(className_.get(i)); - } - size += dataSize; - if (!getClassNameList().isEmpty()) { - size += 1; - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - classNameMemoizedSerializedSize = dataSize; - } - 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes parseFrom( - org.jetbrains.kotlin.protobuf.ByteString data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes parseFrom(byte[] data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes parseFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes 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.ir.backend.js.lower.serialization.metadata.Classes} - */ - public static final class Builder extends - org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Classes) - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.ClassesOrBuilder { - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.Builder.class); - } - - // Construct using org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.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(); - className_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_descriptor; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes getDefaultInstanceForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.getDefaultInstance(); - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes build() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes buildPartial() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes result = new org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - className_ = java.util.Collections.unmodifiableList(className_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.className_ = className_; - onBuilt(); - return result; - } - - public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { - if (other instanceof org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes) { - return mergeFrom((org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes other) { - if (other == org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes.getDefaultInstance()) return this; - if (!other.className_.isEmpty()) { - if (className_.isEmpty()) { - className_ = other.className_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClassNameIsMutable(); - className_.addAll(other.className_); - } - onChanged(); - } - 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Classes) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List className_ = java.util.Collections.emptyList(); - private void ensureClassNameIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - className_ = new java.util.ArrayList(className_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public java.util.List - getClassNameList() { - return java.util.Collections.unmodifiableList(className_); - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public int getClassNameCount() { - return className_.size(); - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public int getClassName(int index) { - return className_.get(index); - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public Builder setClassName( - int index, int value) { - ensureClassNameIsMutable(); - className_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public Builder addClassName(int value) { - ensureClassNameIsMutable(); - className_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public Builder addAllClassName( - java.lang.Iterable values) { - ensureClassNameIsMutable(); - org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( - values, className_); - onChanged(); - return this; - } - /** - * repeated int32 class_name = 1 [packed = true]; - * - *
-       * id in StringTable
-       * 
- */ - public Builder clearClassName() { - className_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Classes) - } - - static { - defaultInstance = new Classes(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Classes) - } - - public interface LibraryOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Library) - org.jetbrains.kotlin.protobuf.MessageOrBuilder { - - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - java.util.List - getPackageFragmentList(); - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment getPackageFragment(int index); - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - int getPackageFragmentCount(); - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - java.util.List - getPackageFragmentOrBuilderList(); - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragmentOrBuilder getPackageFragmentOrBuilder( - int index); - - /** - * repeated string imported_module = 3; - */ - org.jetbrains.kotlin.protobuf.ProtocolStringList - getImportedModuleList(); - /** - * repeated string imported_module = 3; - */ - int getImportedModuleCount(); - /** - * repeated string imported_module = 3; - */ - java.lang.String getImportedModule(int index); - /** - * repeated string imported_module = 3; - */ - org.jetbrains.kotlin.protobuf.ByteString - getImportedModuleBytes(int index); - } - /** - * Protobuf type {@code org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Library} - */ - public static final class Library extends - org.jetbrains.kotlin.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Library) - LibraryOrBuilder { - // Use Library.newBuilder() to construct. - private Library(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Library(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Library defaultInstance; - public static Library getDefaultInstance() { - return defaultInstance; - } - - public Library 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 Library( - 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 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - packageFragment_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - packageFragment_.add(input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.PARSER, extensionRegistry)); - break; - } - case 26: { - org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - importedModule_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - importedModule_.add(bs); - break; - } - } - } - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - packageFragment_ = java.util.Collections.unmodifiableList(packageFragment_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - importedModule_ = importedModule_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.Builder.class); - } - - public static org.jetbrains.kotlin.protobuf.Parser PARSER = - new org.jetbrains.kotlin.protobuf.AbstractParser() { - public Library parsePartialFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return new Library(input, extensionRegistry); - } - }; - - @java.lang.Override - public org.jetbrains.kotlin.protobuf.Parser getParserForType() { - return PARSER; - } - - public static final int PACKAGE_FRAGMENT_FIELD_NUMBER = 2; - private java.util.List packageFragment_; - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public java.util.List getPackageFragmentList() { - return packageFragment_; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public java.util.List - getPackageFragmentOrBuilderList() { - return packageFragment_; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public int getPackageFragmentCount() { - return packageFragment_.size(); - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment getPackageFragment(int index) { - return packageFragment_.get(index); - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragmentOrBuilder getPackageFragmentOrBuilder( - int index) { - return packageFragment_.get(index); - } - - public static final int IMPORTED_MODULE_FIELD_NUMBER = 3; - private org.jetbrains.kotlin.protobuf.LazyStringList importedModule_; - /** - * repeated string imported_module = 3; - */ - public org.jetbrains.kotlin.protobuf.ProtocolStringList - getImportedModuleList() { - return importedModule_; - } - /** - * repeated string imported_module = 3; - */ - public int getImportedModuleCount() { - return importedModule_.size(); - } - /** - * repeated string imported_module = 3; - */ - public java.lang.String getImportedModule(int index) { - return importedModule_.get(index); - } - /** - * repeated string imported_module = 3; - */ - public org.jetbrains.kotlin.protobuf.ByteString - getImportedModuleBytes(int index) { - return importedModule_.getByteString(index); - } - - private void initFields() { - packageFragment_ = java.util.Collections.emptyList(); - importedModule_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getPackageFragmentCount(); i++) { - if (!getPackageFragment(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < packageFragment_.size(); i++) { - output.writeMessage(2, packageFragment_.get(i)); - } - for (int i = 0; i < importedModule_.size(); i++) { - output.writeBytes(3, importedModule_.getByteString(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 < packageFragment_.size(); i++) { - size += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeMessageSize(2, packageFragment_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < importedModule_.size(); i++) { - dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream - .computeBytesSizeNoTag(importedModule_.getByteString(i)); - } - size += dataSize; - size += 1 * getImportedModuleList().size(); - } - 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library parseFrom( - org.jetbrains.kotlin.protobuf.ByteString data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library parseFrom(byte[] data) - throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library parseFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library 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.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library 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.ir.backend.js.lower.serialization.metadata.Library} - */ - public static final class Builder extends - org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Library) - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.LibraryOrBuilder { - public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_descriptor; - } - - protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.class, org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.Builder.class); - } - - // Construct using org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.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) { - getPackageFragmentFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (packageFragmentBuilder_ == null) { - packageFragment_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - packageFragmentBuilder_.clear(); - } - importedModule_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_descriptor; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library getDefaultInstanceForType() { - return org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.getDefaultInstance(); - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library build() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library buildPartial() { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library result = new org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library(this); - int from_bitField0_ = bitField0_; - if (packageFragmentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - packageFragment_ = java.util.Collections.unmodifiableList(packageFragment_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.packageFragment_ = packageFragment_; - } else { - result.packageFragment_ = packageFragmentBuilder_.build(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - importedModule_ = importedModule_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.importedModule_ = importedModule_; - onBuilt(); - return result; - } - - public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { - if (other instanceof org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library) { - return mergeFrom((org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library other) { - if (other == org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library.getDefaultInstance()) return this; - if (packageFragmentBuilder_ == null) { - if (!other.packageFragment_.isEmpty()) { - if (packageFragment_.isEmpty()) { - packageFragment_ = other.packageFragment_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePackageFragmentIsMutable(); - packageFragment_.addAll(other.packageFragment_); - } - onChanged(); - } - } else { - if (!other.packageFragment_.isEmpty()) { - if (packageFragmentBuilder_.isEmpty()) { - packageFragmentBuilder_.dispose(); - packageFragmentBuilder_ = null; - packageFragment_ = other.packageFragment_; - bitField0_ = (bitField0_ & ~0x00000001); - packageFragmentBuilder_ = - org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPackageFragmentFieldBuilder() : null; - } else { - packageFragmentBuilder_.addAllMessages(other.packageFragment_); - } - } - } - if (!other.importedModule_.isEmpty()) { - if (importedModule_.isEmpty()) { - importedModule_ = other.importedModule_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureImportedModuleIsMutable(); - importedModule_.addAll(other.importedModule_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getPackageFragmentCount(); i++) { - if (!getPackageFragment(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - org.jetbrains.kotlin.protobuf.CodedInputStream input, - org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Library) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List packageFragment_ = - java.util.Collections.emptyList(); - private void ensurePackageFragmentIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - packageFragment_ = new java.util.ArrayList(packageFragment_); - bitField0_ |= 0x00000001; - } - } - - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragmentOrBuilder> packageFragmentBuilder_; - - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public java.util.List getPackageFragmentList() { - if (packageFragmentBuilder_ == null) { - return java.util.Collections.unmodifiableList(packageFragment_); - } else { - return packageFragmentBuilder_.getMessageList(); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public int getPackageFragmentCount() { - if (packageFragmentBuilder_ == null) { - return packageFragment_.size(); - } else { - return packageFragmentBuilder_.getCount(); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment getPackageFragment(int index) { - if (packageFragmentBuilder_ == null) { - return packageFragment_.get(index); - } else { - return packageFragmentBuilder_.getMessage(index); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder setPackageFragment( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment value) { - if (packageFragmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePackageFragmentIsMutable(); - packageFragment_.set(index, value); - onChanged(); - } else { - packageFragmentBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder setPackageFragment( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder builderForValue) { - if (packageFragmentBuilder_ == null) { - ensurePackageFragmentIsMutable(); - packageFragment_.set(index, builderForValue.build()); - onChanged(); - } else { - packageFragmentBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder addPackageFragment(org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment value) { - if (packageFragmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePackageFragmentIsMutable(); - packageFragment_.add(value); - onChanged(); - } else { - packageFragmentBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder addPackageFragment( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment value) { - if (packageFragmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePackageFragmentIsMutable(); - packageFragment_.add(index, value); - onChanged(); - } else { - packageFragmentBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder addPackageFragment( - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder builderForValue) { - if (packageFragmentBuilder_ == null) { - ensurePackageFragmentIsMutable(); - packageFragment_.add(builderForValue.build()); - onChanged(); - } else { - packageFragmentBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder addPackageFragment( - int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder builderForValue) { - if (packageFragmentBuilder_ == null) { - ensurePackageFragmentIsMutable(); - packageFragment_.add(index, builderForValue.build()); - onChanged(); - } else { - packageFragmentBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder addAllPackageFragment( - java.lang.Iterable values) { - if (packageFragmentBuilder_ == null) { - ensurePackageFragmentIsMutable(); - org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( - values, packageFragment_); - onChanged(); - } else { - packageFragmentBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder clearPackageFragment() { - if (packageFragmentBuilder_ == null) { - packageFragment_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - packageFragmentBuilder_.clear(); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public Builder removePackageFragment(int index) { - if (packageFragmentBuilder_ == null) { - ensurePackageFragmentIsMutable(); - packageFragment_.remove(index); - onChanged(); - } else { - packageFragmentBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder getPackageFragmentBuilder( - int index) { - return getPackageFragmentFieldBuilder().getBuilder(index); - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragmentOrBuilder getPackageFragmentOrBuilder( - int index) { - if (packageFragmentBuilder_ == null) { - return packageFragment_.get(index); } else { - return packageFragmentBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public java.util.List - getPackageFragmentOrBuilderList() { - if (packageFragmentBuilder_ != null) { - return packageFragmentBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(packageFragment_); - } - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder addPackageFragmentBuilder() { - return getPackageFragmentFieldBuilder().addBuilder( - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder addPackageFragmentBuilder( - int index) { - return getPackageFragmentFieldBuilder().addBuilder( - index, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.getDefaultInstance()); - } - /** - * repeated .org.jetbrains.kotlin.metadata.PackageFragment package_fragment = 2; - */ - public java.util.List - getPackageFragmentBuilderList() { - return getPackageFragmentFieldBuilder().getBuilderList(); - } - private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragmentOrBuilder> - getPackageFragmentFieldBuilder() { - if (packageFragmentBuilder_ == null) { - packageFragmentBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragmentOrBuilder>( - packageFragment_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - packageFragment_ = null; - } - return packageFragmentBuilder_; - } - - private org.jetbrains.kotlin.protobuf.LazyStringList importedModule_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - private void ensureImportedModuleIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - importedModule_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(importedModule_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string imported_module = 3; - */ - public org.jetbrains.kotlin.protobuf.ProtocolStringList - getImportedModuleList() { - return importedModule_.getUnmodifiableView(); - } - /** - * repeated string imported_module = 3; - */ - public int getImportedModuleCount() { - return importedModule_.size(); - } - /** - * repeated string imported_module = 3; - */ - public java.lang.String getImportedModule(int index) { - return importedModule_.get(index); - } - /** - * repeated string imported_module = 3; - */ - public org.jetbrains.kotlin.protobuf.ByteString - getImportedModuleBytes(int index) { - return importedModule_.getByteString(index); - } - /** - * repeated string imported_module = 3; - */ - public Builder setImportedModule( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImportedModuleIsMutable(); - importedModule_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string imported_module = 3; - */ - public Builder addImportedModule( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImportedModuleIsMutable(); - importedModule_.add(value); - onChanged(); - return this; - } - /** - * repeated string imported_module = 3; - */ - public Builder addAllImportedModule( - java.lang.Iterable values) { - ensureImportedModuleIsMutable(); - org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( - values, importedModule_); - onChanged(); - return this; - } - /** - * repeated string imported_module = 3; - */ - public Builder clearImportedModule() { - importedModule_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string imported_module = 3; - */ - public Builder addImportedModuleBytes( - org.jetbrains.kotlin.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImportedModuleIsMutable(); - importedModule_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Library) - } - - static { - defaultInstance = new Library(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.Library) - } - - public static final int PACKAGE_FQ_NAME_FIELD_NUMBER = 131; - /** - * extend .org.jetbrains.kotlin.metadata.Package { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Package, - java.lang.Integer> packageFqName = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Integer.class, - null); - public static final int CLASS_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.Class { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Class, - java.util.List> classAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int CLASS_CONTAINING_FILE_ID_FIELD_NUMBER = 135; - /** - * extend .org.jetbrains.kotlin.metadata.Class { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Class, - java.lang.Integer> classContainingFileId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Integer.class, - null); - public static final int CLASS_UNIQ_ID_FIELD_NUMBER = 136; - /** - * extend .org.jetbrains.kotlin.metadata.Class { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> classUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int CONSTRUCTOR_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.Constructor { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Constructor, - java.util.List> constructorAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int CONSTRUCTOR_UNIQ_ID_FIELD_NUMBER = 131; - /** - * extend .org.jetbrains.kotlin.metadata.Constructor { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Constructor, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> constructorUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int FUNCTION_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.Function { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Function, - java.util.List> functionAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int FUNCTION_CONTAINING_FILE_ID_FIELD_NUMBER = 135; - /** - * extend .org.jetbrains.kotlin.metadata.Function { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Function, - java.lang.Integer> functionContainingFileId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Integer.class, - null); - public static final int FUNCTION_UNIQ_ID_FIELD_NUMBER = 136; - /** - * extend .org.jetbrains.kotlin.metadata.Function { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Function, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> functionUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int PROPERTY_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.Property { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, - java.util.List> propertyAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int PROPERTY_GETTER_ANNOTATION_FIELD_NUMBER = 132; - /** - * extend .org.jetbrains.kotlin.metadata.Property { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, - java.util.List> propertyGetterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int PROPERTY_SETTER_ANNOTATION_FIELD_NUMBER = 133; - /** - * extend .org.jetbrains.kotlin.metadata.Property { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, - java.util.List> propertySetterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int COMPILE_TIME_VALUE_FIELD_NUMBER = 131; - /** - * extend .org.jetbrains.kotlin.metadata.Property { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Argument.Value> compileTimeValue = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Argument.Value.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Argument.Value.getDefaultInstance()); - public static final int PROPERTY_CONTAINING_FILE_ID_FIELD_NUMBER = 135; - /** - * extend .org.jetbrains.kotlin.metadata.Property { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, - java.lang.Integer> propertyContainingFileId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.Integer.class, - null); - public static final int PROPERTY_UNIQ_ID_FIELD_NUMBER = 136; - /** - * extend .org.jetbrains.kotlin.metadata.Property { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> propertyUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int ENUM_ENTRY_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.EnumEntry { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.EnumEntry, - java.util.List> enumEntryAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int ENUM_ENTRY_UNIQ_ID_FIELD_NUMBER = 131; - /** - * extend .org.jetbrains.kotlin.metadata.EnumEntry { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.EnumEntry, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> enumEntryUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int PARAMETER_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.ValueParameter { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.ValueParameter, - java.util.List> parameterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int VALUE_PARAM_UNIQ_ID_FIELD_NUMBER = 131; - /** - * extend .org.jetbrains.kotlin.metadata.ValueParameter { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.ValueParameter, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> valueParamUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int TYPE_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.Type { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.Type, - java.util.List> typeAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int TYPE_PARAMETER_ANNOTATION_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.TypeParameter { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.TypeParameter, - java.util.List> typeParameterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, - org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); - public static final int TYPE_PARAM_UNIQ_ID_FIELD_NUMBER = 131; - /** - * extend .org.jetbrains.kotlin.metadata.TypeParameter { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.TypeParameter, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId> typeParamUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); - public static final int PACKAGE_FRAGMENT_FILES_FIELD_NUMBER = 130; - /** - * extend .org.jetbrains.kotlin.metadata.PackageFragment { ... } - */ - public static final - org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< - org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files> packageFragmentFiles = org.jetbrains.kotlin.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.class, - org.jetbrains.kotlin.ir.backend.js.lower.serialization.metadata.DebugJsKlibMetadataProtoBuf.Files.getDefaultInstance()); - private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_descriptor; - private static - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_fieldAccessorTable; - private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_descriptor; - private static - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_fieldAccessorTable; - private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_descriptor; - private static - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_fieldAccessorTable; - private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_descriptor; - private static - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_fieldAccessorTable; - private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_descriptor; - private static - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_fieldAccessorTable; - private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_descriptor; - private static - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_fieldAccessorTable; - - public static org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)compiler/ir/backend.js/src/js.debug.pr" + - "oto\022?org.jetbrains.kotlin.ir.backend.js." + - "lower.serialization.metadata\032&core/metad" + - "ata/src/metadata.debug.proto\"\233\002\n\006Header\022" + - "\r\n\005flags\030\001 \001(\005\022!\n\026js_code_binary_version" + - "\030\002 \001(\005:\0011\022\027\n\017package_fq_name\030\003 \001(\t\022;\n\007st" + - "rings\030\004 \001(\0132*.org.jetbrains.kotlin.metad" + - "ata.StringTable\022J\n\017qualified_names\030\005 \001(\013" + - "21.org.jetbrains.kotlin.metadata.Qualifi" + - "edNameTable\022=\n\nannotation\030\006 \003(\0132).org.je", - "tbrains.kotlin.metadata.Annotation\"Q\n\004Fi" + - "le\022\n\n\002id\030\001 \001(\005\022=\n\nannotation\030\002 \003(\0132).org" + - ".jetbrains.kotlin.metadata.Annotation\"\\\n" + - "\005Files\022S\n\004file\030\001 \003(\0132E.org.jetbrains.kot" + - "lin.ir.backend.js.lower.serialization.me" + - "tadata.File\"!\n\020DescriptorUniqId\022\r\n\005index" + - "\030\001 \002(\003\"!\n\007Classes\022\026\n\nclass_name\030\001 \003(\005B\002\020" + - "\001\"l\n\007Library\022H\n\020package_fragment\030\002 \003(\0132." + - ".org.jetbrains.kotlin.metadata.PackageFr" + - "agment\022\027\n\017imported_module\030\003 \003(\t:@\n\017packa", - "ge_fq_name\022&.org.jetbrains.kotlin.metada" + - "ta.Package\030\203\001 \001(\005:j\n\020class_annotation\022$." + - "org.jetbrains.kotlin.metadata.Class\030\202\001 \003" + - "(\0132).org.jetbrains.kotlin.metadata.Annot" + - "ation:G\n\030class_containing_file_id\022$.org." + - "jetbrains.kotlin.metadata.Class\030\207\001 \001(\005:\217" + - "\001\n\rclass_uniq_id\022$.org.jetbrains.kotlin." + - "metadata.Class\030\210\001 \001(\0132Q.org.jetbrains.ko" + - "tlin.ir.backend.js.lower.serialization.m" + - "etadata.DescriptorUniqId:v\n\026constructor_", - "annotation\022*.org.jetbrains.kotlin.metada" + - "ta.Constructor\030\202\001 \003(\0132).org.jetbrains.ko" + - "tlin.metadata.Annotation:\233\001\n\023constructor" + - "_uniq_id\022*.org.jetbrains.kotlin.metadata" + - ".Constructor\030\203\001 \001(\0132Q.org.jetbrains.kotl" + - "in.ir.backend.js.lower.serialization.met" + - "adata.DescriptorUniqId:p\n\023function_annot" + - "ation\022\'.org.jetbrains.kotlin.metadata.Fu" + - "nction\030\202\001 \003(\0132).org.jetbrains.kotlin.met" + - "adata.Annotation:M\n\033function_containing_", - "file_id\022\'.org.jetbrains.kotlin.metadata." + - "Function\030\207\001 \001(\005:\225\001\n\020function_uniq_id\022\'.o" + - "rg.jetbrains.kotlin.metadata.Function\030\210\001" + - " \001(\0132Q.org.jetbrains.kotlin.ir.backend.j" + - "s.lower.serialization.metadata.Descripto" + - "rUniqId:p\n\023property_annotation\022\'.org.jet" + - "brains.kotlin.metadata.Property\030\202\001 \003(\0132)" + - ".org.jetbrains.kotlin.metadata.Annotatio" + - "n:w\n\032property_getter_annotation\022\'.org.je" + - "tbrains.kotlin.metadata.Property\030\204\001 \003(\0132", - ").org.jetbrains.kotlin.metadata.Annotati" + - "on:w\n\032property_setter_annotation\022\'.org.j" + - "etbrains.kotlin.metadata.Property\030\205\001 \003(\013" + - "2).org.jetbrains.kotlin.metadata.Annotat" + - "ion:~\n\022compile_time_value\022\'.org.jetbrain" + - "s.kotlin.metadata.Property\030\203\001 \001(\01328.org." + - "jetbrains.kotlin.metadata.Annotation.Arg" + - "ument.Value:M\n\033property_containing_file_" + - "id\022\'.org.jetbrains.kotlin.metadata.Prope" + - "rty\030\207\001 \001(\005:\225\001\n\020property_uniq_id\022\'.org.je", - "tbrains.kotlin.metadata.Property\030\210\001 \001(\0132" + - "Q.org.jetbrains.kotlin.ir.backend.js.low" + - "er.serialization.metadata.DescriptorUniq" + - "Id:s\n\025enum_entry_annotation\022(.org.jetbra" + - "ins.kotlin.metadata.EnumEntry\030\202\001 \003(\0132).o" + - "rg.jetbrains.kotlin.metadata.Annotation:" + - "\230\001\n\022enum_entry_uniq_id\022(.org.jetbrains.k" + - "otlin.metadata.EnumEntry\030\203\001 \001(\0132Q.org.je" + - "tbrains.kotlin.ir.backend.js.lower.seria" + - "lization.metadata.DescriptorUniqId:w\n\024pa", - "rameter_annotation\022-.org.jetbrains.kotli" + - "n.metadata.ValueParameter\030\202\001 \003(\0132).org.j" + - "etbrains.kotlin.metadata.Annotation:\236\001\n\023" + - "value_param_uniq_id\022-.org.jetbrains.kotl" + - "in.metadata.ValueParameter\030\203\001 \001(\0132Q.org." + - "jetbrains.kotlin.ir.backend.js.lower.ser" + - "ialization.metadata.DescriptorUniqId:h\n\017" + - "type_annotation\022#.org.jetbrains.kotlin.m" + - "etadata.Type\030\202\001 \003(\0132).org.jetbrains.kotl" + - "in.metadata.Annotation:{\n\031type_parameter", - "_annotation\022,.org.jetbrains.kotlin.metad" + - "ata.TypeParameter\030\202\001 \003(\0132).org.jetbrains" + - ".kotlin.metadata.Annotation:\234\001\n\022type_par" + - "am_uniq_id\022,.org.jetbrains.kotlin.metada" + - "ta.TypeParameter\030\203\001 \001(\0132Q.org.jetbrains." + - "kotlin.ir.backend.js.lower.serialization" + - ".metadata.DescriptorUniqId:\227\001\n\026package_f" + - "ragment_files\022..org.jetbrains.kotlin.met" + - "adata.PackageFragment\030\202\001 \001(\0132F.org.jetbr" + - "ains.kotlin.ir.backend.js.lower.serializ", - "ation.metadata.FilesB\035B\033DebugJsKlibMetad" + - "ataProtoBuf" - }; - org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public org.jetbrains.kotlin.protobuf.ExtensionRegistry assignDescriptors( - org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor[] { - org.jetbrains.kotlin.metadata.DebugProtoBuf.getDescriptor(), - }, assigner); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_fieldAccessorTable = new - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Header_descriptor, - new java.lang.String[] { "Flags", "JsCodeBinaryVersion", "PackageFqName", "Strings", "QualifiedNames", "Annotation", }); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_fieldAccessorTable = new - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_File_descriptor, - new java.lang.String[] { "Id", "Annotation", }); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_fieldAccessorTable = new - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Files_descriptor, - new java.lang.String[] { "File", }); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_fieldAccessorTable = new - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_DescriptorUniqId_descriptor, - new java.lang.String[] { "Index", }); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_fieldAccessorTable = new - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Classes_descriptor, - new java.lang.String[] { "ClassName", }); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_fieldAccessorTable = new - org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_jetbrains_kotlin_ir_backend_js_lower_serialization_metadata_Library_descriptor, - new java.lang.String[] { "PackageFragment", "ImportedModule", }); - packageFqName.internalInit(descriptor.getExtensions().get(0)); - classAnnotation.internalInit(descriptor.getExtensions().get(1)); - classContainingFileId.internalInit(descriptor.getExtensions().get(2)); - classUniqId.internalInit(descriptor.getExtensions().get(3)); - constructorAnnotation.internalInit(descriptor.getExtensions().get(4)); - constructorUniqId.internalInit(descriptor.getExtensions().get(5)); - functionAnnotation.internalInit(descriptor.getExtensions().get(6)); - functionContainingFileId.internalInit(descriptor.getExtensions().get(7)); - functionUniqId.internalInit(descriptor.getExtensions().get(8)); - propertyAnnotation.internalInit(descriptor.getExtensions().get(9)); - propertyGetterAnnotation.internalInit(descriptor.getExtensions().get(10)); - propertySetterAnnotation.internalInit(descriptor.getExtensions().get(11)); - compileTimeValue.internalInit(descriptor.getExtensions().get(12)); - propertyContainingFileId.internalInit(descriptor.getExtensions().get(13)); - propertyUniqId.internalInit(descriptor.getExtensions().get(14)); - enumEntryAnnotation.internalInit(descriptor.getExtensions().get(15)); - enumEntryUniqId.internalInit(descriptor.getExtensions().get(16)); - parameterAnnotation.internalInit(descriptor.getExtensions().get(17)); - valueParamUniqId.internalInit(descriptor.getExtensions().get(18)); - typeAnnotation.internalInit(descriptor.getExtensions().get(19)); - typeParameterAnnotation.internalInit(descriptor.getExtensions().get(20)); - typeParamUniqId.internalInit(descriptor.getExtensions().get(21)); - packageFragmentFiles.internalInit(descriptor.getExtensions().get(22)); - org.jetbrains.kotlin.metadata.DebugProtoBuf.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} \ No newline at end of file diff --git a/build-common/test/org/jetbrains/kotlin/library/metadata/DebugKlibMetadataProtoBuf.java b/build-common/test/org/jetbrains/kotlin/library/metadata/DebugKlibMetadataProtoBuf.java new file mode 100644 index 00000000000..1489636c246 --- /dev/null +++ b/build-common/test/org/jetbrains/kotlin/library/metadata/DebugKlibMetadataProtoBuf.java @@ -0,0 +1,3610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: compiler/util-klib-metadata/src/KlibMetadataProtoBuf.debug.proto + +package org.jetbrains.kotlin.library.metadata; + +public final class DebugKlibMetadataProtoBuf { + private DebugKlibMetadataProtoBuf() {} + public static void registerAllExtensions( + org.jetbrains.kotlin.protobuf.ExtensionRegistry registry) { + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.packageFqName); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.classAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.classFile); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.classUniqId); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.constructorAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.constructorUniqId); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.functionAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.functionFile); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.functionUniqId); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.propertyAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.propertyGetterAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.propertySetterAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.compileTimeValue); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.propertyFile); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.propertyUniqId); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.enumEntryAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.enumEntryOrdinal); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.enumEntryUniqId); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.parameterAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.typeAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.typeParameterAnnotation); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.typeParamUniqId); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.packageFragmentFiles); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.isEmpty); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.fqName); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.className); + registry.add(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.typeAliasUniqId); + } + public interface HeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.library.metadata.Header) + org.jetbrains.kotlin.protobuf.MessageOrBuilder { + + /** + * required string module_name = 1; + */ + boolean hasModuleName(); + /** + * required string module_name = 1; + */ + java.lang.String getModuleName(); + /** + * required string module_name = 1; + */ + org.jetbrains.kotlin.protobuf.ByteString + getModuleNameBytes(); + + /** + * optional int32 flags = 2; + * + *
+     *0x1 = preRelease
+     * 
+ */ + boolean hasFlags(); + /** + * optional int32 flags = 2; + * + *
+     *0x1 = preRelease
+     * 
+ */ + int getFlags(); + + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + boolean hasStrings(); + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable getStrings(); + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder getStringsOrBuilder(); + + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + boolean hasQualifiedNames(); + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable getQualifiedNames(); + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder getQualifiedNamesOrBuilder(); + + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + java.util.List + getAnnotationList(); + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index); + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + int getAnnotationCount(); + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + java.util.List + getAnnotationOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( + int index); + + /** + * repeated string package_fragment_name = 7; + */ + org.jetbrains.kotlin.protobuf.ProtocolStringList + getPackageFragmentNameList(); + /** + * repeated string package_fragment_name = 7; + */ + int getPackageFragmentNameCount(); + /** + * repeated string package_fragment_name = 7; + */ + java.lang.String getPackageFragmentName(int index); + /** + * repeated string package_fragment_name = 7; + */ + org.jetbrains.kotlin.protobuf.ByteString + getPackageFragmentNameBytes(int index); + + /** + * repeated string empty_package = 8; + */ + org.jetbrains.kotlin.protobuf.ProtocolStringList + getEmptyPackageList(); + /** + * repeated string empty_package = 8; + */ + int getEmptyPackageCount(); + /** + * repeated string empty_package = 8; + */ + java.lang.String getEmptyPackage(int index); + /** + * repeated string empty_package = 8; + */ + org.jetbrains.kotlin.protobuf.ByteString + getEmptyPackageBytes(int index); + + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + java.util.List + getFileList(); + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File getFile(int index); + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + int getFileCount(); + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + java.util.List + getFileOrBuilderList(); + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder getFileOrBuilder( + int index); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.library.metadata.Header} + */ + public static final class Header extends + org.jetbrains.kotlin.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.library.metadata.Header) + HeaderOrBuilder { + // Use Header.newBuilder() to construct. + private Header(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Header(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Header defaultInstance; + public static Header getDefaultInstance() { + return defaultInstance; + } + + public Header 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 Header( + 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: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + moduleName_ = bs; + break; + } + case 16: { + bitField0_ |= 0x00000002; + flags_ = input.readInt32(); + break; + } + case 34: { + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = strings_.toBuilder(); + } + strings_ = input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(strings_); + strings_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 42: { + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = qualifiedNames_.toBuilder(); + } + qualifiedNames_ = input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(qualifiedNames_); + qualifiedNames_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + annotation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + annotation_.add(input.readMessage(org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.PARSER, extensionRegistry)); + break; + } + case 58: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + packageFragmentName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + packageFragmentName_.add(bs); + break; + } + case 66: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + emptyPackage_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + emptyPackage_.add(bs); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + file_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + file_.add(input.readMessage(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.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_ & 0x00000010) == 0x00000010)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + packageFragmentName_ = packageFragmentName_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + emptyPackage_ = emptyPackage_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + file_ = java.util.Collections.unmodifiableList(file_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_Header_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_Header_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.class, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.Builder.class); + } + + public static org.jetbrains.kotlin.protobuf.Parser
PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser
() { + public Header parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser
getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int MODULE_NAME_FIELD_NUMBER = 1; + private java.lang.Object moduleName_; + /** + * required string module_name = 1; + */ + public boolean hasModuleName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string module_name = 1; + */ + public java.lang.String getModuleName() { + java.lang.Object ref = moduleName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.jetbrains.kotlin.protobuf.ByteString bs = + (org.jetbrains.kotlin.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + moduleName_ = s; + } + return s; + } + } + /** + * required string module_name = 1; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getModuleNameBytes() { + java.lang.Object ref = moduleName_; + if (ref instanceof java.lang.String) { + org.jetbrains.kotlin.protobuf.ByteString b = + org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + moduleName_ = b; + return b; + } else { + return (org.jetbrains.kotlin.protobuf.ByteString) ref; + } + } + + public static final int FLAGS_FIELD_NUMBER = 2; + private int flags_; + /** + * optional int32 flags = 2; + * + *
+     *0x1 = preRelease
+     * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 flags = 2; + * + *
+     *0x1 = preRelease
+     * 
+ */ + public int getFlags() { + return flags_; + } + + public static final int STRINGS_FIELD_NUMBER = 4; + private org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable strings_; + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public boolean hasStrings() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable getStrings() { + return strings_; + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder getStringsOrBuilder() { + return strings_; + } + + public static final int QUALIFIED_NAMES_FIELD_NUMBER = 5; + private org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable qualifiedNames_; + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public boolean hasQualifiedNames() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable getQualifiedNames() { + return qualifiedNames_; + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder getQualifiedNamesOrBuilder() { + return qualifiedNames_; + } + + public static final int ANNOTATION_FIELD_NUMBER = 6; + private java.util.List annotation_; + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + public java.util.List getAnnotationList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + public java.util.List + getAnnotationOrBuilderList() { + return annotation_; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + public int getAnnotationCount() { + return annotation_.size(); + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index) { + return annotation_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+     * Annotations on the whole module
+     * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( + int index) { + return annotation_.get(index); + } + + public static final int PACKAGE_FRAGMENT_NAME_FIELD_NUMBER = 7; + private org.jetbrains.kotlin.protobuf.LazyStringList packageFragmentName_; + /** + * repeated string package_fragment_name = 7; + */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getPackageFragmentNameList() { + return packageFragmentName_; + } + /** + * repeated string package_fragment_name = 7; + */ + public int getPackageFragmentNameCount() { + return packageFragmentName_.size(); + } + /** + * repeated string package_fragment_name = 7; + */ + public java.lang.String getPackageFragmentName(int index) { + return packageFragmentName_.get(index); + } + /** + * repeated string package_fragment_name = 7; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getPackageFragmentNameBytes(int index) { + return packageFragmentName_.getByteString(index); + } + + public static final int EMPTY_PACKAGE_FIELD_NUMBER = 8; + private org.jetbrains.kotlin.protobuf.LazyStringList emptyPackage_; + /** + * repeated string empty_package = 8; + */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getEmptyPackageList() { + return emptyPackage_; + } + /** + * repeated string empty_package = 8; + */ + public int getEmptyPackageCount() { + return emptyPackage_.size(); + } + /** + * repeated string empty_package = 8; + */ + public java.lang.String getEmptyPackage(int index) { + return emptyPackage_.get(index); + } + /** + * repeated string empty_package = 8; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getEmptyPackageBytes(int index) { + return emptyPackage_.getByteString(index); + } + + public static final int FILE_FIELD_NUMBER = 9; + private java.util.List file_; + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public java.util.List getFileList() { + return file_; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public java.util.List + getFileOrBuilderList() { + return file_; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public int getFileCount() { + return file_.size(); + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File getFile(int index) { + return file_.get(index); + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder getFileOrBuilder( + int index) { + return file_.get(index); + } + + private void initFields() { + moduleName_ = ""; + flags_ = 0; + strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); + qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); + annotation_ = java.util.Collections.emptyList(); + packageFragmentName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + emptyPackage_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + file_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasModuleName()) { + memoizedIsInitialized = 0; + return false; + } + if (hasQualifiedNames()) { + if (!getQualifiedNames().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getFileCount(); i++) { + if (!getFile(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getModuleNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, flags_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(4, strings_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, qualifiedNames_); + } + for (int i = 0; i < annotation_.size(); i++) { + output.writeMessage(6, annotation_.get(i)); + } + for (int i = 0; i < packageFragmentName_.size(); i++) { + output.writeBytes(7, packageFragmentName_.getByteString(i)); + } + for (int i = 0; i < emptyPackage_.size(); i++) { + output.writeBytes(8, emptyPackage_.getByteString(i)); + } + for (int i = 0; i < file_.size(); i++) { + output.writeMessage(9, file_.get(i)); + } + 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 + .computeBytesSize(1, getModuleNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeInt32Size(2, flags_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(4, strings_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(5, qualifiedNames_); + } + for (int i = 0; i < annotation_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(6, annotation_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < packageFragmentName_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSizeNoTag(packageFragmentName_.getByteString(i)); + } + size += dataSize; + size += 1 * getPackageFragmentNameList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < emptyPackage_.size(); i++) { + dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeBytesSizeNoTag(emptyPackage_.getByteString(i)); + } + size += dataSize; + size += 1 * getEmptyPackageList().size(); + } + for (int i = 0; i < file_.size(); i++) { + size += org.jetbrains.kotlin.protobuf.CodedOutputStream + .computeMessageSize(9, file_.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.library.metadata.DebugKlibMetadataProtoBuf.Header parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header 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.library.metadata.DebugKlibMetadataProtoBuf.Header parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header 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.library.metadata.DebugKlibMetadataProtoBuf.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header 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.library.metadata.DebugKlibMetadataProtoBuf.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header 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.library.metadata.DebugKlibMetadataProtoBuf.Header parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header 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.library.metadata.DebugKlibMetadataProtoBuf.Header 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.library.metadata.Header} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.library.metadata.Header) + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.HeaderOrBuilder { + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_Header_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_Header_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.class, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.Builder.class); + } + + // Construct using org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.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) { + getStringsFieldBuilder(); + getQualifiedNamesFieldBuilder(); + getAnnotationFieldBuilder(); + getFileFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + moduleName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + if (stringsBuilder_ == null) { + strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); + } else { + stringsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (qualifiedNamesBuilder_ == null) { + qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); + } else { + qualifiedNamesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (annotationBuilder_ == null) { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + annotationBuilder_.clear(); + } + packageFragmentName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + emptyPackage_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + if (fileBuilder_ == null) { + file_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + fileBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_Header_descriptor; + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header getDefaultInstanceForType() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.getDefaultInstance(); + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header build() { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header buildPartial() { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header result = new org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.moduleName_ = moduleName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.flags_ = flags_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (stringsBuilder_ == null) { + result.strings_ = strings_; + } else { + result.strings_ = stringsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (qualifiedNamesBuilder_ == null) { + result.qualifiedNames_ = qualifiedNames_; + } else { + result.qualifiedNames_ = qualifiedNamesBuilder_.build(); + } + if (annotationBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + annotation_ = java.util.Collections.unmodifiableList(annotation_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.annotation_ = annotation_; + } else { + result.annotation_ = annotationBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + packageFragmentName_ = packageFragmentName_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.packageFragmentName_ = packageFragmentName_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + emptyPackage_ = emptyPackage_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.emptyPackage_ = emptyPackage_; + if (fileBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + file_ = java.util.Collections.unmodifiableList(file_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.file_ = file_; + } else { + result.file_ = fileBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header) { + return mergeFrom((org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header other) { + if (other == org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header.getDefaultInstance()) return this; + if (other.hasModuleName()) { + bitField0_ |= 0x00000001; + moduleName_ = other.moduleName_; + onChanged(); + } + if (other.hasFlags()) { + setFlags(other.getFlags()); + } + if (other.hasStrings()) { + mergeStrings(other.getStrings()); + } + if (other.hasQualifiedNames()) { + mergeQualifiedNames(other.getQualifiedNames()); + } + if (annotationBuilder_ == null) { + if (!other.annotation_.isEmpty()) { + if (annotation_.isEmpty()) { + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAnnotationIsMutable(); + annotation_.addAll(other.annotation_); + } + onChanged(); + } + } else { + if (!other.annotation_.isEmpty()) { + if (annotationBuilder_.isEmpty()) { + annotationBuilder_.dispose(); + annotationBuilder_ = null; + annotation_ = other.annotation_; + bitField0_ = (bitField0_ & ~0x00000010); + annotationBuilder_ = + org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAnnotationFieldBuilder() : null; + } else { + annotationBuilder_.addAllMessages(other.annotation_); + } + } + } + if (!other.packageFragmentName_.isEmpty()) { + if (packageFragmentName_.isEmpty()) { + packageFragmentName_ = other.packageFragmentName_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensurePackageFragmentNameIsMutable(); + packageFragmentName_.addAll(other.packageFragmentName_); + } + onChanged(); + } + if (!other.emptyPackage_.isEmpty()) { + if (emptyPackage_.isEmpty()) { + emptyPackage_ = other.emptyPackage_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureEmptyPackageIsMutable(); + emptyPackage_.addAll(other.emptyPackage_); + } + onChanged(); + } + if (fileBuilder_ == null) { + if (!other.file_.isEmpty()) { + if (file_.isEmpty()) { + file_ = other.file_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFileIsMutable(); + file_.addAll(other.file_); + } + onChanged(); + } + } else { + if (!other.file_.isEmpty()) { + if (fileBuilder_.isEmpty()) { + fileBuilder_.dispose(); + fileBuilder_ = null; + file_ = other.file_; + bitField0_ = (bitField0_ & ~0x00000080); + fileBuilder_ = + org.jetbrains.kotlin.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFileFieldBuilder() : null; + } else { + fileBuilder_.addAllMessages(other.file_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasModuleName()) { + + return false; + } + if (hasQualifiedNames()) { + if (!getQualifiedNames().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getAnnotationCount(); i++) { + if (!getAnnotation(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getFileCount(); i++) { + if (!getFile(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.Header) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object moduleName_ = ""; + /** + * required string module_name = 1; + */ + public boolean hasModuleName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string module_name = 1; + */ + public java.lang.String getModuleName() { + java.lang.Object ref = moduleName_; + if (!(ref instanceof java.lang.String)) { + org.jetbrains.kotlin.protobuf.ByteString bs = + (org.jetbrains.kotlin.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + moduleName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string module_name = 1; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getModuleNameBytes() { + java.lang.Object ref = moduleName_; + if (ref instanceof String) { + org.jetbrains.kotlin.protobuf.ByteString b = + org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + moduleName_ = b; + return b; + } else { + return (org.jetbrains.kotlin.protobuf.ByteString) ref; + } + } + /** + * required string module_name = 1; + */ + public Builder setModuleName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + moduleName_ = value; + onChanged(); + return this; + } + /** + * required string module_name = 1; + */ + public Builder clearModuleName() { + bitField0_ = (bitField0_ & ~0x00000001); + moduleName_ = getDefaultInstance().getModuleName(); + onChanged(); + return this; + } + /** + * required string module_name = 1; + */ + public Builder setModuleNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + moduleName_ = value; + onChanged(); + return this; + } + + private int flags_ ; + /** + * optional int32 flags = 2; + * + *
+       *0x1 = preRelease
+       * 
+ */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 flags = 2; + * + *
+       *0x1 = preRelease
+       * 
+ */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 2; + * + *
+       *0x1 = preRelease
+       * 
+ */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000002; + flags_ = value; + onChanged(); + return this; + } + /** + * optional int32 flags = 2; + * + *
+       *0x1 = preRelease
+       * 
+ */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000002); + flags_ = 0; + onChanged(); + return this; + } + + private org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder> stringsBuilder_; + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public boolean hasStrings() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable getStrings() { + if (stringsBuilder_ == null) { + return strings_; + } else { + return stringsBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public Builder setStrings(org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable value) { + if (stringsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + strings_ = value; + onChanged(); + } else { + stringsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public Builder setStrings( + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder builderForValue) { + if (stringsBuilder_ == null) { + strings_ = builderForValue.build(); + onChanged(); + } else { + stringsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public Builder mergeStrings(org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable value) { + if (stringsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + strings_ != org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance()) { + strings_ = + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.newBuilder(strings_).mergeFrom(value).buildPartial(); + } else { + strings_ = value; + } + onChanged(); + } else { + stringsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public Builder clearStrings() { + if (stringsBuilder_ == null) { + strings_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.getDefaultInstance(); + onChanged(); + } else { + stringsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder getStringsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStringsFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder getStringsOrBuilder() { + if (stringsBuilder_ != null) { + return stringsBuilder_.getMessageOrBuilder(); + } else { + return strings_; + } + } + /** + * optional .org.jetbrains.kotlin.metadata.StringTable strings = 4; + */ + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder> + getStringsFieldBuilder() { + if (stringsBuilder_ == null) { + stringsBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.StringTableOrBuilder>( + getStrings(), + getParentForChildren(), + isClean()); + strings_ = null; + } + return stringsBuilder_; + } + + private org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder> qualifiedNamesBuilder_; + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public boolean hasQualifiedNames() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable getQualifiedNames() { + if (qualifiedNamesBuilder_ == null) { + return qualifiedNames_; + } else { + return qualifiedNamesBuilder_.getMessage(); + } + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public Builder setQualifiedNames(org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable value) { + if (qualifiedNamesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + qualifiedNames_ = value; + onChanged(); + } else { + qualifiedNamesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public Builder setQualifiedNames( + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder builderForValue) { + if (qualifiedNamesBuilder_ == null) { + qualifiedNames_ = builderForValue.build(); + onChanged(); + } else { + qualifiedNamesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public Builder mergeQualifiedNames(org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable value) { + if (qualifiedNamesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + qualifiedNames_ != org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance()) { + qualifiedNames_ = + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.newBuilder(qualifiedNames_).mergeFrom(value).buildPartial(); + } else { + qualifiedNames_ = value; + } + onChanged(); + } else { + qualifiedNamesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public Builder clearQualifiedNames() { + if (qualifiedNamesBuilder_ == null) { + qualifiedNames_ = org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.getDefaultInstance(); + onChanged(); + } else { + qualifiedNamesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder getQualifiedNamesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getQualifiedNamesFieldBuilder().getBuilder(); + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder getQualifiedNamesOrBuilder() { + if (qualifiedNamesBuilder_ != null) { + return qualifiedNamesBuilder_.getMessageOrBuilder(); + } else { + return qualifiedNames_; + } + } + /** + * optional .org.jetbrains.kotlin.metadata.QualifiedNameTable qualified_names = 5; + */ + private org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder> + getQualifiedNamesFieldBuilder() { + if (qualifiedNamesBuilder_ == null) { + qualifiedNamesBuilder_ = new org.jetbrains.kotlin.protobuf.SingleFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTable.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.QualifiedNameTableOrBuilder>( + getQualifiedNames(), + getParentForChildren(), + isClean()); + qualifiedNames_ = null; + } + return qualifiedNamesBuilder_; + } + + private java.util.List annotation_ = + java.util.Collections.emptyList(); + private void ensureAnnotationIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + annotation_ = new java.util.ArrayList(annotation_); + bitField0_ |= 0x00000010; + } + } + + private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder> annotationBuilder_; + + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public java.util.List getAnnotationList() { + if (annotationBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotation_); + } else { + return annotationBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public int getAnnotationCount() { + if (annotationBuilder_ == null) { + return annotation_.size(); + } else { + return annotationBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation getAnnotation(int index) { + if (annotationBuilder_ == null) { + return annotation_.get(index); + } else { + return annotationBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { + if (annotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.set(index, value); + onChanged(); + } else { + annotationBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder setAnnotation( + int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { + if (annotationBuilder_ == null) { + ensureAnnotationIsMutable(); + annotation_.set(index, builderForValue.build()); + onChanged(); + } else { + annotationBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder addAnnotation(org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { + if (annotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(value); + onChanged(); + } else { + annotationBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation value) { + if (annotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationIsMutable(); + annotation_.add(index, value); + onChanged(); + } else { + annotationBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder addAnnotation( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { + if (annotationBuilder_ == null) { + ensureAnnotationIsMutable(); + annotation_.add(builderForValue.build()); + onChanged(); + } else { + annotationBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder addAnnotation( + int index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder builderForValue) { + if (annotationBuilder_ == null) { + ensureAnnotationIsMutable(); + annotation_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder addAllAnnotation( + java.lang.Iterable values) { + if (annotationBuilder_ == null) { + ensureAnnotationIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, annotation_); + onChanged(); + } else { + annotationBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder clearAnnotation() { + if (annotationBuilder_ == null) { + annotation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + annotationBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public Builder removeAnnotation(int index) { + if (annotationBuilder_ == null) { + ensureAnnotationIsMutable(); + annotation_.remove(index); + onChanged(); + } else { + annotationBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder getAnnotationBuilder( + int index) { + return getAnnotationFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder getAnnotationOrBuilder( + int index) { + if (annotationBuilder_ == null) { + return annotation_.get(index); } else { + return annotationBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public java.util.List + getAnnotationOrBuilderList() { + if (annotationBuilder_ != null) { + return annotationBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotation_); + } + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder addAnnotationBuilder() { + return getAnnotationFieldBuilder().addBuilder( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder addAnnotationBuilder( + int index) { + return getAnnotationFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.metadata.Annotation annotation = 6; + * + *
+       * Annotations on the whole module
+       * 
+ */ + public java.util.List + getAnnotationBuilderList() { + return getAnnotationFieldBuilder().getBuilderList(); + } + private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder> + getAnnotationFieldBuilder() { + if (annotationBuilder_ == null) { + annotationBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation, org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Builder, org.jetbrains.kotlin.metadata.DebugProtoBuf.AnnotationOrBuilder>( + annotation_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + annotation_ = null; + } + return annotationBuilder_; + } + + private org.jetbrains.kotlin.protobuf.LazyStringList packageFragmentName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + private void ensurePackageFragmentNameIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + packageFragmentName_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(packageFragmentName_); + bitField0_ |= 0x00000020; + } + } + /** + * repeated string package_fragment_name = 7; + */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getPackageFragmentNameList() { + return packageFragmentName_.getUnmodifiableView(); + } + /** + * repeated string package_fragment_name = 7; + */ + public int getPackageFragmentNameCount() { + return packageFragmentName_.size(); + } + /** + * repeated string package_fragment_name = 7; + */ + public java.lang.String getPackageFragmentName(int index) { + return packageFragmentName_.get(index); + } + /** + * repeated string package_fragment_name = 7; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getPackageFragmentNameBytes(int index) { + return packageFragmentName_.getByteString(index); + } + /** + * repeated string package_fragment_name = 7; + */ + public Builder setPackageFragmentName( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePackageFragmentNameIsMutable(); + packageFragmentName_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string package_fragment_name = 7; + */ + public Builder addPackageFragmentName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePackageFragmentNameIsMutable(); + packageFragmentName_.add(value); + onChanged(); + return this; + } + /** + * repeated string package_fragment_name = 7; + */ + public Builder addAllPackageFragmentName( + java.lang.Iterable values) { + ensurePackageFragmentNameIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, packageFragmentName_); + onChanged(); + return this; + } + /** + * repeated string package_fragment_name = 7; + */ + public Builder clearPackageFragmentName() { + packageFragmentName_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * repeated string package_fragment_name = 7; + */ + public Builder addPackageFragmentNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePackageFragmentNameIsMutable(); + packageFragmentName_.add(value); + onChanged(); + return this; + } + + private org.jetbrains.kotlin.protobuf.LazyStringList emptyPackage_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + private void ensureEmptyPackageIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + emptyPackage_ = new org.jetbrains.kotlin.protobuf.LazyStringArrayList(emptyPackage_); + bitField0_ |= 0x00000040; + } + } + /** + * repeated string empty_package = 8; + */ + public org.jetbrains.kotlin.protobuf.ProtocolStringList + getEmptyPackageList() { + return emptyPackage_.getUnmodifiableView(); + } + /** + * repeated string empty_package = 8; + */ + public int getEmptyPackageCount() { + return emptyPackage_.size(); + } + /** + * repeated string empty_package = 8; + */ + public java.lang.String getEmptyPackage(int index) { + return emptyPackage_.get(index); + } + /** + * repeated string empty_package = 8; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getEmptyPackageBytes(int index) { + return emptyPackage_.getByteString(index); + } + /** + * repeated string empty_package = 8; + */ + public Builder setEmptyPackage( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmptyPackageIsMutable(); + emptyPackage_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string empty_package = 8; + */ + public Builder addEmptyPackage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmptyPackageIsMutable(); + emptyPackage_.add(value); + onChanged(); + return this; + } + /** + * repeated string empty_package = 8; + */ + public Builder addAllEmptyPackage( + java.lang.Iterable values) { + ensureEmptyPackageIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, emptyPackage_); + onChanged(); + return this; + } + /** + * repeated string empty_package = 8; + */ + public Builder clearEmptyPackage() { + emptyPackage_ = org.jetbrains.kotlin.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * repeated string empty_package = 8; + */ + public Builder addEmptyPackageBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmptyPackageIsMutable(); + emptyPackage_.add(value); + onChanged(); + return this; + } + + private java.util.List file_ = + java.util.Collections.emptyList(); + private void ensureFileIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + file_ = new java.util.ArrayList(file_); + bitField0_ |= 0x00000080; + } + } + + private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder> fileBuilder_; + + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public java.util.List getFileList() { + if (fileBuilder_ == null) { + return java.util.Collections.unmodifiableList(file_); + } else { + return fileBuilder_.getMessageList(); + } + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public int getFileCount() { + if (fileBuilder_ == null) { + return file_.size(); + } else { + return fileBuilder_.getCount(); + } + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File getFile(int index) { + if (fileBuilder_ == null) { + return file_.get(index); + } else { + return fileBuilder_.getMessage(index); + } + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder setFile( + int index, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileIsMutable(); + file_.set(index, value); + onChanged(); + } else { + fileBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder setFile( + int index, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder builderForValue) { + if (fileBuilder_ == null) { + ensureFileIsMutable(); + file_.set(index, builderForValue.build()); + onChanged(); + } else { + fileBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder addFile(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileIsMutable(); + file_.add(value); + onChanged(); + } else { + fileBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder addFile( + int index, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileIsMutable(); + file_.add(index, value); + onChanged(); + } else { + fileBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder addFile( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder builderForValue) { + if (fileBuilder_ == null) { + ensureFileIsMutable(); + file_.add(builderForValue.build()); + onChanged(); + } else { + fileBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder addFile( + int index, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder builderForValue) { + if (fileBuilder_ == null) { + ensureFileIsMutable(); + file_.add(index, builderForValue.build()); + onChanged(); + } else { + fileBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder addAllFile( + java.lang.Iterable values) { + if (fileBuilder_ == null) { + ensureFileIsMutable(); + org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll( + values, file_); + onChanged(); + } else { + fileBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder clearFile() { + if (fileBuilder_ == null) { + file_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + fileBuilder_.clear(); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public Builder removeFile(int index) { + if (fileBuilder_ == null) { + ensureFileIsMutable(); + file_.remove(index); + onChanged(); + } else { + fileBuilder_.remove(index); + } + return this; + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder getFileBuilder( + int index) { + return getFileFieldBuilder().getBuilder(index); + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder getFileOrBuilder( + int index) { + if (fileBuilder_ == null) { + return file_.get(index); } else { + return fileBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public java.util.List + getFileOrBuilderList() { + if (fileBuilder_ != null) { + return fileBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(file_); + } + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder addFileBuilder() { + return getFileFieldBuilder().addBuilder( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder addFileBuilder( + int index) { + return getFileFieldBuilder().addBuilder( + index, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.getDefaultInstance()); + } + /** + * repeated .org.jetbrains.kotlin.library.metadata.File file = 9; + */ + public java.util.List + getFileBuilderList() { + return getFileFieldBuilder().getBuilderList(); + } + private org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder> + getFileFieldBuilder() { + if (fileBuilder_ == null) { + fileBuilder_ = new org.jetbrains.kotlin.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder>( + file_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + file_ = null; + } + return fileBuilder_; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.library.metadata.Header) + } + + static { + defaultInstance = new Header(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.library.metadata.Header) + } + + public interface FileOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.library.metadata.File) + org.jetbrains.kotlin.protobuf.MessageOrBuilder { + + /** + * required string name = 1; + */ + boolean hasName(); + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + org.jetbrains.kotlin.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.library.metadata.File} + */ + public static final class File extends + org.jetbrains.kotlin.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.library.metadata.File) + FileOrBuilder { + // Use File.newBuilder() to construct. + private File(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private File(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final File defaultInstance; + public static File getDefaultInstance() { + return defaultInstance; + } + + public File 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 File( + 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: { + org.jetbrains.kotlin.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_File_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.class, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder.class); + } + + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public File parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new File(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * required string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + org.jetbrains.kotlin.protobuf.ByteString bs = + (org.jetbrains.kotlin.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * required string name = 1; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + org.jetbrains.kotlin.protobuf.ByteString b = + org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (org.jetbrains.kotlin.protobuf.ByteString) ref; + } + } + + private void initFields() { + name_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + 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 + .computeBytesSize(1, getNameBytes()); + } + 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.library.metadata.DebugKlibMetadataProtoBuf.File parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File 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.library.metadata.DebugKlibMetadataProtoBuf.File parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File 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.library.metadata.DebugKlibMetadataProtoBuf.File parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File 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.library.metadata.DebugKlibMetadataProtoBuf.File parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File 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.library.metadata.DebugKlibMetadataProtoBuf.File parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File 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.library.metadata.DebugKlibMetadataProtoBuf.File 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.library.metadata.File} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.library.metadata.File) + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.FileOrBuilder { + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_File_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.class, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.Builder.class); + } + + // Construct using org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.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(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_File_descriptor; + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File getDefaultInstanceForType() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.getDefaultInstance(); + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File build() { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File buildPartial() { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File result = new org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File) { + return mergeFrom((org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File other) { + if (other == org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.File) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + org.jetbrains.kotlin.protobuf.ByteString bs = + (org.jetbrains.kotlin.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string name = 1; + */ + public org.jetbrains.kotlin.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + org.jetbrains.kotlin.protobuf.ByteString b = + org.jetbrains.kotlin.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (org.jetbrains.kotlin.protobuf.ByteString) ref; + } + } + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * required string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * required string name = 1; + */ + public Builder setNameBytes( + org.jetbrains.kotlin.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.library.metadata.File) + } + + static { + defaultInstance = new File(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.library.metadata.File) + } + + public interface DescriptorUniqIdOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.library.metadata.DescriptorUniqId) + org.jetbrains.kotlin.protobuf.MessageOrBuilder { + + /** + * required int64 index = 1; + */ + boolean hasIndex(); + /** + * required int64 index = 1; + */ + long getIndex(); + } + /** + * Protobuf type {@code org.jetbrains.kotlin.library.metadata.DescriptorUniqId} + */ + public static final class DescriptorUniqId extends + org.jetbrains.kotlin.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.library.metadata.DescriptorUniqId) + DescriptorUniqIdOrBuilder { + // Use DescriptorUniqId.newBuilder() to construct. + private DescriptorUniqId(org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private DescriptorUniqId(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final DescriptorUniqId defaultInstance; + public static DescriptorUniqId getDefaultInstance() { + return defaultInstance; + } + + public DescriptorUniqId 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 DescriptorUniqId( + 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; + index_ = input.readInt64(); + break; + } + } + } + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.Builder.class); + } + + public static org.jetbrains.kotlin.protobuf.Parser PARSER = + new org.jetbrains.kotlin.protobuf.AbstractParser() { + public DescriptorUniqId parsePartialFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return new DescriptorUniqId(input, extensionRegistry); + } + }; + + @java.lang.Override + public org.jetbrains.kotlin.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private long index_; + /** + * required int64 index = 1; + */ + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 index = 1; + */ + public long getIndex() { + return index_; + } + + private void initFields() { + index_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasIndex()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt64(1, index_); + } + 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 + .computeInt64Size(1, index_); + } + 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.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId parseFrom( + org.jetbrains.kotlin.protobuf.ByteString data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId 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.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId parseFrom(byte[] data) + throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId 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.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId 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.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId 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.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId parseFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId 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.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId 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.library.metadata.DescriptorUniqId} + */ + public static final class Builder extends + org.jetbrains.kotlin.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.library.metadata.DescriptorUniqId) + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqIdOrBuilder { + public static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_descriptor; + } + + protected org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.Builder.class); + } + + // Construct using org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.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(); + index_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_descriptor; + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId getDefaultInstanceForType() { + return org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance(); + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId build() { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId buildPartial() { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId result = new org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.index_ = index_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(org.jetbrains.kotlin.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId) { + return mergeFrom((org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId other) { + if (other == org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()) return this; + if (other.hasIndex()) { + setIndex(other.getIndex()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasIndex()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + org.jetbrains.kotlin.protobuf.CodedInputStream input, + org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long index_ ; + /** + * required int64 index = 1; + */ + public boolean hasIndex() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 index = 1; + */ + public long getIndex() { + return index_; + } + /** + * required int64 index = 1; + */ + public Builder setIndex(long value) { + bitField0_ |= 0x00000001; + index_ = value; + onChanged(); + return this; + } + /** + * required int64 index = 1; + */ + public Builder clearIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + index_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.library.metadata.DescriptorUniqId) + } + + static { + defaultInstance = new DescriptorUniqId(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.library.metadata.DescriptorUniqId) + } + + public static final int PACKAGE_FQ_NAME_FIELD_NUMBER = 171; + /** + * extend .org.jetbrains.kotlin.metadata.Package { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Package, + java.lang.Integer> packageFqName = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int CLASS_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.Class { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Class, + java.util.List> classAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int CLASS_FILE_FIELD_NUMBER = 175; + /** + * extend .org.jetbrains.kotlin.metadata.Class { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Class, + java.lang.Integer> classFile = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int CLASS_UNIQ_ID_FIELD_NUMBER = 171; + /** + * extend .org.jetbrains.kotlin.metadata.Class { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> classUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + public static final int CONSTRUCTOR_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.Constructor { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Constructor, + java.util.List> constructorAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int CONSTRUCTOR_UNIQ_ID_FIELD_NUMBER = 172; + /** + * extend .org.jetbrains.kotlin.metadata.Constructor { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Constructor, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> constructorUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + public static final int FUNCTION_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.Function { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Function, + java.util.List> functionAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int FUNCTION_FILE_FIELD_NUMBER = 172; + /** + * extend .org.jetbrains.kotlin.metadata.Function { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Function, + java.lang.Integer> functionFile = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int FUNCTION_UNIQ_ID_FIELD_NUMBER = 173; + /** + * extend .org.jetbrains.kotlin.metadata.Function { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Function, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> functionUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + public static final int PROPERTY_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.Property { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, + java.util.List> propertyAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int PROPERTY_GETTER_ANNOTATION_FIELD_NUMBER = 177; + /** + * extend .org.jetbrains.kotlin.metadata.Property { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, + java.util.List> propertyGetterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int PROPERTY_SETTER_ANNOTATION_FIELD_NUMBER = 178; + /** + * extend .org.jetbrains.kotlin.metadata.Property { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, + java.util.List> propertySetterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int COMPILE_TIME_VALUE_FIELD_NUMBER = 173; + /** + * extend .org.jetbrains.kotlin.metadata.Property { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Argument.Value> compileTimeValue = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Argument.Value.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.Argument.Value.getDefaultInstance()); + public static final int PROPERTY_FILE_FIELD_NUMBER = 176; + /** + * extend .org.jetbrains.kotlin.metadata.Property { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, + java.lang.Integer> propertyFile = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int PROPERTY_UNIQ_ID_FIELD_NUMBER = 179; + /** + * extend .org.jetbrains.kotlin.metadata.Property { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Property, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> propertyUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + public static final int ENUM_ENTRY_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.EnumEntry { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.EnumEntry, + java.util.List> enumEntryAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int ENUM_ENTRY_ORDINAL_FIELD_NUMBER = 171; + /** + * extend .org.jetbrains.kotlin.metadata.EnumEntry { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.EnumEntry, + java.lang.Integer> enumEntryOrdinal = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int ENUM_ENTRY_UNIQ_ID_FIELD_NUMBER = 172; + /** + * extend .org.jetbrains.kotlin.metadata.EnumEntry { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.EnumEntry, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> enumEntryUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + public static final int PARAMETER_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.ValueParameter { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.ValueParameter, + java.util.List> parameterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int TYPE_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.Type { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.Type, + java.util.List> typeAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int TYPE_PARAMETER_ANNOTATION_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.TypeParameter { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.TypeParameter, + java.util.List> typeParameterAnnotation = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.metadata.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int TYPE_PARAM_UNIQ_ID_FIELD_NUMBER = 171; + /** + * extend .org.jetbrains.kotlin.metadata.TypeParameter { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.TypeParameter, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> typeParamUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + public static final int PACKAGE_FRAGMENT_FILES_FIELD_NUMBER = 170; + /** + * extend .org.jetbrains.kotlin.metadata.PackageFragment { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, + java.util.List> packageFragmentFiles = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int IS_EMPTY_FIELD_NUMBER = 172; + /** + * extend .org.jetbrains.kotlin.metadata.PackageFragment { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, + java.lang.Boolean> isEmpty = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Boolean.class, + null); + public static final int FQ_NAME_FIELD_NUMBER = 173; + /** + * extend .org.jetbrains.kotlin.metadata.PackageFragment { ... } + */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, + java.lang.String> fqName = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.String.class, + null); + public static final int CLASS_NAME_FIELD_NUMBER = 174; + /** + * extend .org.jetbrains.kotlin.metadata.PackageFragment { ... } + * + *
+   * id in StringTable
+   * 
+ */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.PackageFragment, + java.util.List> className = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.Integer.class, + null); + public static final int TYPE_ALIAS_UNIQ_ID_FIELD_NUMBER = 131; + /** + * extend .org.jetbrains.kotlin.metadata.TypeAlias { ... } + * + *
+   * TODO repeated org.jetbrains.kotlin.metadata.Annotation type_alias_annotation = 130;
+   * 
+ */ + public static final + org.jetbrains.kotlin.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.metadata.DebugProtoBuf.TypeAlias, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId> typeAliasUniqId = org.jetbrains.kotlin.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.class, + org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf.DescriptorUniqId.getDefaultInstance()); + private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_library_metadata_Header_descriptor; + private static + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_library_metadata_Header_fieldAccessorTable; + private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_library_metadata_File_descriptor; + private static + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_library_metadata_File_fieldAccessorTable; + private static final org.jetbrains.kotlin.protobuf.Descriptors.Descriptor + internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_descriptor; + private static + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_fieldAccessorTable; + + public static org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n@compiler/util-klib-metadata/src/KlibMe" + + "tadataProtoBuf.debug.proto\022%org.jetbrain" + + "s.kotlin.library.metadata\032&core/metadata" + + "/src/metadata.debug.proto\"\345\002\n\006Header\022\023\n\013" + + "module_name\030\001 \002(\t\022\r\n\005flags\030\002 \001(\005\022;\n\007stri" + + "ngs\030\004 \001(\0132*.org.jetbrains.kotlin.metadat" + + "a.StringTable\022J\n\017qualified_names\030\005 \001(\01321" + + ".org.jetbrains.kotlin.metadata.Qualified" + + "NameTable\022=\n\nannotation\030\006 \003(\0132).org.jetb" + + "rains.kotlin.metadata.Annotation\022\035\n\025pack", + "age_fragment_name\030\007 \003(\t\022\025\n\rempty_package" + + "\030\010 \003(\t\0229\n\004file\030\t \003(\0132+.org.jetbrains.kot" + + "lin.library.metadata.File\"\024\n\004File\022\014\n\004nam" + + "e\030\001 \002(\t\"!\n\020DescriptorUniqId\022\r\n\005index\030\001 \002" + + "(\003:@\n\017package_fq_name\022&.org.jetbrains.ko" + + "tlin.metadata.Package\030\253\001 \001(\005:j\n\020class_an" + + "notation\022$.org.jetbrains.kotlin.metadata" + + ".Class\030\252\001 \003(\0132).org.jetbrains.kotlin.met" + + "adata.Annotation:9\n\nclass_file\022$.org.jet" + + "brains.kotlin.metadata.Class\030\257\001 \001(\005:u\n\rc", + "lass_uniq_id\022$.org.jetbrains.kotlin.meta" + + "data.Class\030\253\001 \001(\01327.org.jetbrains.kotlin" + + ".library.metadata.DescriptorUniqId:v\n\026co" + + "nstructor_annotation\022*.org.jetbrains.kot" + + "lin.metadata.Constructor\030\252\001 \003(\0132).org.je" + + "tbrains.kotlin.metadata.Annotation:\201\001\n\023c" + + "onstructor_uniq_id\022*.org.jetbrains.kotli" + + "n.metadata.Constructor\030\254\001 \001(\01327.org.jetb" + + "rains.kotlin.library.metadata.Descriptor" + + "UniqId:p\n\023function_annotation\022\'.org.jetb", + "rains.kotlin.metadata.Function\030\252\001 \003(\0132)." + + "org.jetbrains.kotlin.metadata.Annotation" + + ":?\n\rfunction_file\022\'.org.jetbrains.kotlin" + + ".metadata.Function\030\254\001 \001(\005:{\n\020function_un" + + "iq_id\022\'.org.jetbrains.kotlin.metadata.Fu" + + "nction\030\255\001 \001(\01327.org.jetbrains.kotlin.lib" + + "rary.metadata.DescriptorUniqId:p\n\023proper" + + "ty_annotation\022\'.org.jetbrains.kotlin.met" + + "adata.Property\030\252\001 \003(\0132).org.jetbrains.ko" + + "tlin.metadata.Annotation:w\n\032property_get", + "ter_annotation\022\'.org.jetbrains.kotlin.me" + + "tadata.Property\030\261\001 \003(\0132).org.jetbrains.k" + + "otlin.metadata.Annotation:w\n\032property_se" + + "tter_annotation\022\'.org.jetbrains.kotlin.m" + + "etadata.Property\030\262\001 \003(\0132).org.jetbrains." + + "kotlin.metadata.Annotation:~\n\022compile_ti" + + "me_value\022\'.org.jetbrains.kotlin.metadata" + + ".Property\030\255\001 \001(\01328.org.jetbrains.kotlin." + + "metadata.Annotation.Argument.Value:?\n\rpr" + + "operty_file\022\'.org.jetbrains.kotlin.metad", + "ata.Property\030\260\001 \001(\005:{\n\020property_uniq_id\022" + + "\'.org.jetbrains.kotlin.metadata.Property" + + "\030\263\001 \001(\01327.org.jetbrains.kotlin.library.m" + + "etadata.DescriptorUniqId:s\n\025enum_entry_a" + + "nnotation\022(.org.jetbrains.kotlin.metadat" + + "a.EnumEntry\030\252\001 \003(\0132).org.jetbrains.kotli" + + "n.metadata.Annotation:E\n\022enum_entry_ordi" + + "nal\022(.org.jetbrains.kotlin.metadata.Enum" + + "Entry\030\253\001 \001(\005:~\n\022enum_entry_uniq_id\022(.org" + + ".jetbrains.kotlin.metadata.EnumEntry\030\254\001 ", + "\001(\01327.org.jetbrains.kotlin.library.metad" + + "ata.DescriptorUniqId:w\n\024parameter_annota" + + "tion\022-.org.jetbrains.kotlin.metadata.Val" + + "ueParameter\030\252\001 \003(\0132).org.jetbrains.kotli" + + "n.metadata.Annotation:h\n\017type_annotation" + + "\022#.org.jetbrains.kotlin.metadata.Type\030\252\001" + + " \003(\0132).org.jetbrains.kotlin.metadata.Ann" + + "otation:{\n\031type_parameter_annotation\022,.o" + + "rg.jetbrains.kotlin.metadata.TypeParamet" + + "er\030\252\001 \003(\0132).org.jetbrains.kotlin.metadat", + "a.Annotation:\202\001\n\022type_param_uniq_id\022,.or" + + "g.jetbrains.kotlin.metadata.TypeParamete" + + "r\030\253\001 \001(\01327.org.jetbrains.kotlin.library." + + "metadata.DescriptorUniqId:O\n\026package_fra" + + "gment_files\022..org.jetbrains.kotlin.metad" + + "ata.PackageFragment\030\252\001 \003(\005:A\n\010is_empty\022." + + ".org.jetbrains.kotlin.metadata.PackageFr" + + "agment\030\254\001 \001(\010:@\n\007fq_name\022..org.jetbrains" + + ".kotlin.metadata.PackageFragment\030\255\001 \001(\t:" + + "G\n\nclass_name\022..org.jetbrains.kotlin.met", + "adata.PackageFragment\030\256\001 \003(\005B\002\020\001:~\n\022type" + + "_alias_uniq_id\022(.org.jetbrains.kotlin.me" + + "tadata.TypeAlias\030\203\001 \001(\01327.org.jetbrains." + + "kotlin.library.metadata.DescriptorUniqId" + + "B\033B\031DebugKlibMetadataProtoBuf" + }; + org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public org.jetbrains.kotlin.protobuf.ExtensionRegistry assignDescriptors( + org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new org.jetbrains.kotlin.protobuf.Descriptors.FileDescriptor[] { + org.jetbrains.kotlin.metadata.DebugProtoBuf.getDescriptor(), + }, assigner); + internal_static_org_jetbrains_kotlin_library_metadata_Header_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_org_jetbrains_kotlin_library_metadata_Header_fieldAccessorTable = new + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_library_metadata_Header_descriptor, + new java.lang.String[] { "ModuleName", "Flags", "Strings", "QualifiedNames", "Annotation", "PackageFragmentName", "EmptyPackage", "File", }); + internal_static_org_jetbrains_kotlin_library_metadata_File_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_org_jetbrains_kotlin_library_metadata_File_fieldAccessorTable = new + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_library_metadata_File_descriptor, + new java.lang.String[] { "Name", }); + internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_fieldAccessorTable = new + org.jetbrains.kotlin.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_org_jetbrains_kotlin_library_metadata_DescriptorUniqId_descriptor, + new java.lang.String[] { "Index", }); + packageFqName.internalInit(descriptor.getExtensions().get(0)); + classAnnotation.internalInit(descriptor.getExtensions().get(1)); + classFile.internalInit(descriptor.getExtensions().get(2)); + classUniqId.internalInit(descriptor.getExtensions().get(3)); + constructorAnnotation.internalInit(descriptor.getExtensions().get(4)); + constructorUniqId.internalInit(descriptor.getExtensions().get(5)); + functionAnnotation.internalInit(descriptor.getExtensions().get(6)); + functionFile.internalInit(descriptor.getExtensions().get(7)); + functionUniqId.internalInit(descriptor.getExtensions().get(8)); + propertyAnnotation.internalInit(descriptor.getExtensions().get(9)); + propertyGetterAnnotation.internalInit(descriptor.getExtensions().get(10)); + propertySetterAnnotation.internalInit(descriptor.getExtensions().get(11)); + compileTimeValue.internalInit(descriptor.getExtensions().get(12)); + propertyFile.internalInit(descriptor.getExtensions().get(13)); + propertyUniqId.internalInit(descriptor.getExtensions().get(14)); + enumEntryAnnotation.internalInit(descriptor.getExtensions().get(15)); + enumEntryOrdinal.internalInit(descriptor.getExtensions().get(16)); + enumEntryUniqId.internalInit(descriptor.getExtensions().get(17)); + parameterAnnotation.internalInit(descriptor.getExtensions().get(18)); + typeAnnotation.internalInit(descriptor.getExtensions().get(19)); + typeParameterAnnotation.internalInit(descriptor.getExtensions().get(20)); + typeParamUniqId.internalInit(descriptor.getExtensions().get(21)); + packageFragmentFiles.internalInit(descriptor.getExtensions().get(22)); + isEmpty.internalInit(descriptor.getExtensions().get(23)); + fqName.internalInit(descriptor.getExtensions().get(24)); + className.internalInit(descriptor.getExtensions().get(25)); + typeAliasUniqId.internalInit(descriptor.getExtensions().get(26)); + org.jetbrains.kotlin.metadata.DebugProtoBuf.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} \ No newline at end of file diff --git a/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBuf.kt b/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBuf.kt index 5ab7a657c44..32330e03341 100644 --- a/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBuf.kt +++ b/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBuf.kt @@ -58,7 +58,7 @@ val PROTO_PATHS: List = listOf( ProtoPath("core/metadata.jvm/src/jvm_metadata.proto"), ProtoPath("core/metadata.jvm/src/jvm_module.proto"), ProtoPath("build-common/src/java_descriptors.proto"), - ProtoPath("compiler/util-klib-metadata/src/KlibMetadataProtoBuf.proto", false), + ProtoPath("compiler/util-klib-metadata/src/KlibMetadataProtoBuf.proto"), ProtoPath("compiler/ir/serialization.common/src/KotlinIr.proto", false) ) diff --git a/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBufCompare.kt b/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBufCompare.kt index def496b6ac5..3ba65d03596 100644 --- a/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBufCompare.kt +++ b/generators/tests/org/jetbrains/kotlin/generators/protobuf/GenerateProtoBufCompare.kt @@ -17,6 +17,7 @@ package org.jetbrains.kotlin.generators.protobuf import org.jetbrains.kotlin.generators.util.GeneratorsFileUtil +import org.jetbrains.kotlin.library.metadata.DebugKlibMetadataProtoBuf import org.jetbrains.kotlin.metadata.DebugExtOptionsProtoBuf import org.jetbrains.kotlin.metadata.DebugProtoBuf import org.jetbrains.kotlin.metadata.builtins.DebugBuiltInsProtoBuf @@ -43,13 +44,13 @@ class GenerateProtoBufCompare { } private val JAVA_TYPES_WITH_INLINED_EQUALS: EnumSet = EnumSet.of( - Descriptors.FieldDescriptor.JavaType.INT, - Descriptors.FieldDescriptor.JavaType.LONG, - Descriptors.FieldDescriptor.JavaType.FLOAT, - Descriptors.FieldDescriptor.JavaType.DOUBLE, - Descriptors.FieldDescriptor.JavaType.BOOLEAN, - Descriptors.FieldDescriptor.JavaType.STRING, - Descriptors.FieldDescriptor.JavaType.ENUM + Descriptors.FieldDescriptor.JavaType.INT, + Descriptors.FieldDescriptor.JavaType.LONG, + Descriptors.FieldDescriptor.JavaType.FLOAT, + Descriptors.FieldDescriptor.JavaType.DOUBLE, + Descriptors.FieldDescriptor.JavaType.BOOLEAN, + Descriptors.FieldDescriptor.JavaType.STRING, + Descriptors.FieldDescriptor.JavaType.ENUM ) @@ -63,11 +64,34 @@ class GenerateProtoBufCompare { private val CHECK_CLASS_ID_EQUALS_NAME = "checkClassIdEquals" private val HASH_CODE_NAME = "hashCode" - private val jvmExtensions = DebugJvmProtoBuf.getDescriptor().extensions - private val jsExtensions = DebugJsProtoBuf.getDescriptor().extensions - private val javaExtensions = DebugJavaClassProtoBuf.getDescriptor().extensions - private val builtInsExtensions = DebugBuiltInsProtoBuf.getDescriptor().extensions - private val extensionsMap = (jvmExtensions + jsExtensions + javaExtensions + builtInsExtensions).groupBy { it.containingType } + private val extensions = object { + val jvm = DebugJvmProtoBuf.getDescriptor().extensions + val js = DebugJsProtoBuf.getDescriptor().extensions + val java = DebugJavaClassProtoBuf.getDescriptor().extensions + val builtIns = DebugBuiltInsProtoBuf.getDescriptor().extensions + val klib = DebugKlibMetadataProtoBuf.getDescriptor().extensions + + private val extensionsMap = (jvm + js + java + builtIns + klib).groupBy { it.containingType } + + operator fun get(desc: Descriptors.Descriptor): List? = extensionsMap[desc] + + fun getEnumName(fieldDescriptor: Descriptors.FieldDescriptor): String { + var extensionPrefix = "" + if (fieldDescriptor.isExtension) { + extensionPrefix = when { + fieldDescriptor in jvm -> "jvmExt_" + fieldDescriptor in js -> "jsExt_" + fieldDescriptor in java -> "javaExt_" + fieldDescriptor in builtIns -> "builtInsExt_" + fieldDescriptor in klib -> "klibExt_" + else -> error("Unknown extension") + } + } + return (extensionPrefix + fieldDescriptor.name.javaName + (if (fieldDescriptor.isRepeated) "List" else "")) + .replace("[A-Z]".toRegex()) { "_" + it.value } + .toUpperCase() + } + } private val allMessages: MutableSet = linkedSetOf() private val messagesToProcess: Queue = LinkedList() @@ -80,6 +104,7 @@ class GenerateProtoBufCompare { p.println("package org.jetbrains.kotlin.incremental") p.println() + p.println("import org.jetbrains.kotlin.library.metadata.KlibMetadataProtoBuf") p.println("import org.jetbrains.kotlin.metadata.ProtoBuf") p.println("import org.jetbrains.kotlin.metadata.builtins.BuiltInsProtoBuf") p.println("import org.jetbrains.kotlin.metadata.deserialization.NameResolver") @@ -178,7 +203,7 @@ class GenerateProtoBufCompare { val typeName = descriptor.typeName val fields = descriptor.fields.filter { !it.isSkip } - val extFields = extensionsMap[descriptor]?.filter { !it.isSkip } ?: emptyList() + val extFields = extensions[descriptor]?.filter { !it.isSkip } ?: emptyList() p.println() p.println("fun $typeName.$HASH_CODE_NAME(stringIndexes: (Int) -> Int, fqNameIndexes: (Int) -> Int): Int {") @@ -211,11 +236,9 @@ class GenerateProtoBufCompare { p.println(" $HASH_CODE_NAME = 31 * $HASH_CODE_NAME + ${fieldToHashCode(field, repeatedFieldValue)}") p.println("}") - } - else if (field.isRequired) { + } else if (field.isRequired) { p.println("$HASH_CODE_NAME = 31 * $HASH_CODE_NAME + ${fieldToHashCode(field, fieldValue)}") - } - else if (field.isOptional) { + } else if (field.isOptional) { p.println("if ($hasMethod) {") p.println(" $HASH_CODE_NAME = 31 * $HASH_CODE_NAME + ${fieldToHashCode(field, fieldValue)}") p.println("}") @@ -226,7 +249,7 @@ class GenerateProtoBufCompare { val typeName = descriptor.typeName val fields = descriptor.fields.filter { !it.isSkip } - val extFields = extensionsMap[descriptor]?.filter { !it.isSkip } ?: emptyList() + val extFields = extensions[descriptor]?.filter { !it.isSkip } ?: emptyList() p.println("open fun $CHECK_EQUALS_NAME(old: $typeName, new: $typeName): Boolean {") p.pushIndent() @@ -245,11 +268,11 @@ class GenerateProtoBufCompare { val className = typeName.replace(".", "") val fields = descriptor.fields.filter { !it.isSkip } - val extFields = extensionsMap[descriptor]?.filter { !it.isSkip } ?: emptyList() + val extFields = extensions[descriptor]?.filter { !it.isSkip } ?: emptyList() val allFields = fields + extFields p.println("enum class ${className}Kind {") - p.println(allFields.joinToString(",\n ") { " " + it.enumName }) + p.println(allFields.joinToString(",\n ") { " " + extensions.getEnumName(it) }) p.println("}") p.println() @@ -299,11 +322,9 @@ class GenerateProtoBufCompare { fun generate() { if (field.isRepeated) { printRepeatedField() - } - else if (field.isRequired) { + } else if (field.isRequired) { printRequiredField() - } - else if (field.isOptional) { + } else if (field.isOptional) { printOptionalField() } @@ -348,7 +369,8 @@ class GenerateProtoBufCompare { val fullFieldName = "$outerClassName.$fieldName" override fun printRepeatedField() { - p.printlnMultiline(""" + p.printlnMultiline( + """ if (old.getExtensionCount($fullFieldName) != new.getExtensionCount($fullFieldName)) { $statement } @@ -357,7 +379,8 @@ class GenerateProtoBufCompare { ${ifWithComparison(field, "getExtension($fullFieldName, i)", statement)} } } - """) + """ + ) } override fun printRequiredField() { @@ -379,11 +402,11 @@ class GenerateProtoBufCompare { } inner class ExtFieldGeneratorForDiff(field: Descriptors.FieldDescriptor, p: Printer) : ExtFieldGeneratorImpl(field, p) { - override fun Descriptors.FieldDescriptor.getStatement(): String = statementForDiff + override fun Descriptors.FieldDescriptor.getStatement(): String = statementForDiff } private val Descriptors.FieldDescriptor.statementForDiff: String - get() = "$RESULT_NAME.add(${containingType.typeName.replace(".", "")}Kind.$enumName)" + get() = "$RESULT_NAME.add(${containingType.typeName.replace(".", "")}Kind.${extensions.getEnumName(this)})" private val Descriptors.FieldDescriptor.isSkip: Boolean get() = options.getExtension(DebugExtOptionsProtoBuf.skipInComparison) @@ -402,17 +425,17 @@ class GenerateProtoBufCompare { } private fun ifWithComparison(field: Descriptors.FieldDescriptor, expr: String, statement: String) = - when { - field.options.getExtension(DebugExtOptionsProtoBuf.stringIdInTable) || - field.options.getExtension(DebugExtOptionsProtoBuf.nameIdInTable) -> - "if (!$CHECK_STRING_EQUALS_NAME(old.$expr, new.$expr)) $statement" - field.options.getExtension(DebugExtOptionsProtoBuf.fqNameIdInTable) -> - "if (!$CHECK_CLASS_ID_EQUALS_NAME(old.$expr, new.$expr)) $statement" - field.javaType in JAVA_TYPES_WITH_INLINED_EQUALS -> - "if (old.$expr != new.$expr) $statement" - else -> - "if (!$CHECK_EQUALS_NAME(old.$expr, new.$expr)) $statement" - } + when { + field.options.getExtension(DebugExtOptionsProtoBuf.stringIdInTable) || + field.options.getExtension(DebugExtOptionsProtoBuf.nameIdInTable) -> + "if (!$CHECK_STRING_EQUALS_NAME(old.$expr, new.$expr)) $statement" + field.options.getExtension(DebugExtOptionsProtoBuf.fqNameIdInTable) -> + "if (!$CHECK_CLASS_ID_EQUALS_NAME(old.$expr, new.$expr)) $statement" + field.javaType in JAVA_TYPES_WITH_INLINED_EQUALS -> + "if (old.$expr != new.$expr) $statement" + else -> + "if (!$CHECK_EQUALS_NAME(old.$expr, new.$expr)) $statement" + } private fun Printer.printlnIfWithComparison(field: Descriptors.FieldDescriptor, expr: String, statement: String = "return false") { this.println(ifWithComparison(field, expr, statement)) @@ -427,7 +450,7 @@ class GenerateProtoBufCompare { private fun fieldToHashCode(field: Descriptors.FieldDescriptor, expr: String): String = when { field.options.getExtension(DebugExtOptionsProtoBuf.stringIdInTable) || - field.options.getExtension(DebugExtOptionsProtoBuf.nameIdInTable) -> + field.options.getExtension(DebugExtOptionsProtoBuf.nameIdInTable) -> "stringIndexes($expr)" field.options.getExtension(DebugExtOptionsProtoBuf.fqNameIdInTable) -> "fqNameIndexes($expr)" @@ -446,26 +469,6 @@ class GenerateProtoBufCompare { return outerClassName + fullName.removePrefix(packageHeader) } - private val Descriptors.FieldDescriptor.enumName: String - get() { - var extensionPrefix = "" - if (isExtension) { - if (this in jvmExtensions) { - extensionPrefix = "jvmExt_" - } - if (this in jsExtensions) { - extensionPrefix = "jsExt_" - } - if (this in javaExtensions) { - extensionPrefix = "javaExt_" - } - if (this in builtInsExtensions) { - extensionPrefix = "builtInsExt_" - } - } - return (extensionPrefix + name.javaName + (if (isRepeated) "List" else "")).replace("[A-Z]".toRegex()) { "_" + it.value }.toUpperCase() - } - private fun Descriptors.FieldDescriptor.helperMethodName(): String { val packageHeader = this.file.`package` val descriptor = this.containingType