diff --git a/compiler/tests/org/jetbrains/kotlin/serialization/js/DebugJsProtoBuf.java b/compiler/tests/org/jetbrains/kotlin/serialization/js/DebugJsProtoBuf.java index 98de7858305..f726479765c 100644 --- a/compiler/tests/org/jetbrains/kotlin/serialization/js/DebugJsProtoBuf.java +++ b/compiler/tests/org/jetbrains/kotlin/serialization/js/DebugJsProtoBuf.java @@ -3,27 +3,18 @@ package org.jetbrains.kotlin.serialization.js; -import com.google.protobuf.*; -import org.jetbrains.kotlin.serialization.DebugProtoBuf; - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - public final class DebugJsProtoBuf { private DebugJsProtoBuf() {} public static void registerAllExtensions( - ExtensionRegistry registry) { - registry.add(DebugJsProtoBuf.classAnnotation); - registry.add(DebugJsProtoBuf.callableAnnotation); - registry.add(DebugJsProtoBuf.compileTimeValue); - registry.add(DebugJsProtoBuf.parameterAnnotation); + com.google.protobuf.ExtensionRegistry registry) { + registry.add(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.classAnnotation); + registry.add(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.callableAnnotation); + registry.add(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.compileTimeValue); + registry.add(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.parameterAnnotation); + registry.add(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.typeAnnotation); } public interface ClassesOrBuilder - extends MessageOrBuilder { + extends com.google.protobuf.MessageOrBuilder { // repeated int32 class_name = 1 [packed = true]; /** @@ -33,7 +24,7 @@ public final class DebugJsProtoBuf { * id in StringTable * */ - List getClassNameList(); + java.util.List getClassNameList(); /** * repeated int32 class_name = 1 [packed = true]; * @@ -55,14 +46,14 @@ public final class DebugJsProtoBuf { * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Classes} */ public static final class Classes extends - GeneratedMessage + com.google.protobuf.GeneratedMessage implements ClassesOrBuilder { // Use Classes.newBuilder() to construct. - private Classes(GeneratedMessage.Builder builder) { + private Classes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - private Classes(boolean noInit) { this.unknownFields = UnknownFieldSet.getDefaultInstance(); } + private Classes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Classes defaultInstance; public static Classes getDefaultInstance() { @@ -73,20 +64,20 @@ public final class DebugJsProtoBuf { return defaultInstance; } - private final UnknownFieldSet unknownFields; - @Override - public final UnknownFieldSet + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Classes( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; - UnknownFieldSet.Builder unknownFields = - UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -104,7 +95,7 @@ public final class DebugJsProtoBuf { } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - className_ = new ArrayList(); + className_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } className_.add(input.readInt32()); @@ -114,7 +105,7 @@ public final class DebugJsProtoBuf { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - className_ = new ArrayList(); + className_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { @@ -125,49 +116,49 @@ public final class DebugJsProtoBuf { } } } - } catch (InvalidProtocolBufferException e) { + } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); - } catch (IOException e) { - throw new InvalidProtocolBufferException( + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - className_ = Collections.unmodifiableList(className_); + className_ = java.util.Collections.unmodifiableList(className_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final Descriptors.Descriptor + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; } - protected GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_fieldAccessorTable + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugJsProtoBuf.Classes.class, DebugJsProtoBuf.Classes.Builder.class); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.class, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.Builder.class); } - public static Parser PARSER = - new AbstractParser() { + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { public Classes parsePartialFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return new Classes(input, extensionRegistry); } }; - @Override - public Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated int32 class_name = 1 [packed = true]; public static final int CLASS_NAME_FIELD_NUMBER = 1; - private List className_; + private java.util.List className_; /** * repeated int32 class_name = 1 [packed = true]; * @@ -175,7 +166,7 @@ public final class DebugJsProtoBuf { * id in StringTable * */ - public List + public java.util.List getClassNameList() { return className_; } @@ -202,7 +193,7 @@ public final class DebugJsProtoBuf { private int classNameMemoizedSerializedSize = -1; private void initFields() { - className_ = Collections.emptyList(); + className_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -213,8 +204,8 @@ public final class DebugJsProtoBuf { return true; } - public void writeTo(CodedOutputStream output) - throws IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getClassNameList().size() > 0) { output.writeRawVarint32(10); @@ -235,13 +226,13 @@ public final class DebugJsProtoBuf { { int dataSize = 0; for (int i = 0; i < className_.size(); i++) { - dataSize += CodedOutputStream + dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(className_.get(i)); } size += dataSize; if (!getClassNameList().isEmpty()) { size += 1; - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } classNameMemoizedSerializedSize = dataSize; @@ -252,75 +243,75 @@ public final class DebugJsProtoBuf { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws ObjectStreamException { + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { return super.writeReplace(); } - public static DebugJsProtoBuf.Classes parseFrom( - ByteString data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugJsProtoBuf.Classes parseFrom( - ByteString data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugJsProtoBuf.Classes parseFrom(byte[] data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugJsProtoBuf.Classes parseFrom( + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom( byte[] data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugJsProtoBuf.Classes parseFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static DebugJsProtoBuf.Classes parseFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static DebugJsProtoBuf.Classes parseDelimitedFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static DebugJsProtoBuf.Classes parseDelimitedFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static DebugJsProtoBuf.Classes parseFrom( - CodedInputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static DebugJsProtoBuf.Classes parseFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(DebugJsProtoBuf.Classes prototype) { + public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -328,18 +319,18 @@ public final class DebugJsProtoBuf { * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Classes} */ public static final class Builder extends - GeneratedMessage.Builder - implements DebugJsProtoBuf.ClassesOrBuilder { - public static final Descriptors.Descriptor + com.google.protobuf.GeneratedMessage.Builder + implements org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.ClassesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; } - protected GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_fieldAccessorTable + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugJsProtoBuf.Classes.class, DebugJsProtoBuf.Classes.Builder.class); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.class, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.Builder.class); } // Construct using org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.newBuilder() @@ -348,12 +339,12 @@ public final class DebugJsProtoBuf { } private Builder( - GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { @@ -362,7 +353,7 @@ public final class DebugJsProtoBuf { public Builder clear() { super.clear(); - className_ = Collections.emptyList(); + className_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -371,28 +362,28 @@ public final class DebugJsProtoBuf { return create().mergeFrom(buildPartial()); } - public Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; } - public DebugJsProtoBuf.Classes getDefaultInstanceForType() { - return getDefaultInstance(); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.getDefaultInstance(); } - public DebugJsProtoBuf.Classes build() { - DebugJsProtoBuf.Classes result = buildPartial(); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes build() { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public DebugJsProtoBuf.Classes buildPartial() { - DebugJsProtoBuf.Classes result = new DebugJsProtoBuf.Classes(this); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes buildPartial() { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes result = new org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { - className_ = Collections.unmodifiableList(className_); + className_ = java.util.Collections.unmodifiableList(className_); bitField0_ = (bitField0_ & ~0x00000001); } result.className_ = className_; @@ -400,17 +391,17 @@ public final class DebugJsProtoBuf { return result; } - public Builder mergeFrom(Message other) { - if (other instanceof DebugJsProtoBuf.Classes) { - return mergeFrom((DebugJsProtoBuf.Classes)other); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes) { + return mergeFrom((org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(DebugJsProtoBuf.Classes other) { - if (other == getDefaultInstance()) return this; + public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes other) { + if (other == org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes.getDefaultInstance()) return this; if (!other.className_.isEmpty()) { if (className_.isEmpty()) { className_ = other.className_; @@ -430,14 +421,14 @@ public final class DebugJsProtoBuf { } public Builder mergeFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { - DebugJsProtoBuf.Classes parsedMessage = null; + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (InvalidProtocolBufferException e) { - parsedMessage = (DebugJsProtoBuf.Classes) e.getUnfinishedMessage(); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Classes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -449,10 +440,10 @@ public final class DebugJsProtoBuf { private int bitField0_; // repeated int32 class_name = 1 [packed = true]; - private List className_ = Collections.emptyList(); + private java.util.List className_ = java.util.Collections.emptyList(); private void ensureClassNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { - className_ = new ArrayList(className_); + className_ = new java.util.ArrayList(className_); bitField0_ |= 0x00000001; } } @@ -463,9 +454,9 @@ public final class DebugJsProtoBuf { * id in StringTable * */ - public List + public java.util.List getClassNameList() { - return Collections.unmodifiableList(className_); + return java.util.Collections.unmodifiableList(className_); } /** * repeated int32 class_name = 1 [packed = true]; @@ -522,9 +513,9 @@ public final class DebugJsProtoBuf { * */ public Builder addAllClassName( - Iterable values) { + java.lang.Iterable values) { ensureClassNameIsMutable(); - addAll(values, className_); + super.addAll(values, className_); onChanged(); return this; } @@ -536,7 +527,7 @@ public final class DebugJsProtoBuf { * */ public Builder clearClassName() { - className_ = Collections.emptyList(); + className_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -554,18 +545,18 @@ public final class DebugJsProtoBuf { } public interface LibraryOrBuilder - extends MessageOrBuilder { + extends com.google.protobuf.MessageOrBuilder { // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - List + java.util.List getEntryList(); /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - DebugJsProtoBuf.Library.FileEntry getEntry(int index); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry getEntry(int index); /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ @@ -573,30 +564,26 @@ public final class DebugJsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - List + java.util.List getEntryOrBuilderList(); /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - DebugJsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library} - * - *
-   * For Kotlin/Javascript we reuse builtins serialization code.
-   * 
*/ public static final class Library extends - GeneratedMessage + com.google.protobuf.GeneratedMessage implements LibraryOrBuilder { // Use Library.newBuilder() to construct. - private Library(GeneratedMessage.Builder builder) { + private Library(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - private Library(boolean noInit) { this.unknownFields = UnknownFieldSet.getDefaultInstance(); } + private Library(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Library defaultInstance; public static Library getDefaultInstance() { @@ -607,20 +594,20 @@ public final class DebugJsProtoBuf { return defaultInstance; } - private final UnknownFieldSet unknownFields; - @Override - public final UnknownFieldSet + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Library( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; - UnknownFieldSet.Builder unknownFields = - UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -638,56 +625,56 @@ public final class DebugJsProtoBuf { } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = new ArrayList(); + entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - entry_.add(input.readMessage(DebugJsProtoBuf.Library.FileEntry.PARSER, extensionRegistry)); + entry_.add(input.readMessage(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.PARSER, extensionRegistry)); break; } } } - } catch (InvalidProtocolBufferException e) { + } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); - } catch (IOException e) { - throw new InvalidProtocolBufferException( + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = Collections.unmodifiableList(entry_); + entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final Descriptors.Descriptor + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; } - protected GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_fieldAccessorTable + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugJsProtoBuf.Library.class, DebugJsProtoBuf.Library.Builder.class); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.class, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.Builder.class); } - public static Parser PARSER = - new AbstractParser() { + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { public Library parsePartialFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return new Library(input, extensionRegistry); } }; - @Override - public Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface FileEntryOrBuilder - extends MessageOrBuilder { + extends com.google.protobuf.MessageOrBuilder { // required string path = 1; /** @@ -697,11 +684,11 @@ public final class DebugJsProtoBuf { /** * required string path = 1; */ - String getPath(); + java.lang.String getPath(); /** * required string path = 1; */ - ByteString + com.google.protobuf.ByteString getPathBytes(); // required bytes content = 2; @@ -712,20 +699,20 @@ public final class DebugJsProtoBuf { /** * required bytes content = 2; */ - ByteString getContent(); + com.google.protobuf.ByteString getContent(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library.FileEntry} */ public static final class FileEntry extends - GeneratedMessage + com.google.protobuf.GeneratedMessage implements FileEntryOrBuilder { // Use FileEntry.newBuilder() to construct. - private FileEntry(GeneratedMessage.Builder builder) { + private FileEntry(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } - private FileEntry(boolean noInit) { this.unknownFields = UnknownFieldSet.getDefaultInstance(); } + private FileEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileEntry defaultInstance; public static FileEntry getDefaultInstance() { @@ -736,20 +723,20 @@ public final class DebugJsProtoBuf { return defaultInstance; } - private final UnknownFieldSet unknownFields; - @Override - public final UnknownFieldSet + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileEntry( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; - UnknownFieldSet.Builder unknownFields = - UnknownFieldSet.newBuilder(); + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -777,47 +764,47 @@ public final class DebugJsProtoBuf { } } } - } catch (InvalidProtocolBufferException e) { + } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); - } catch (IOException e) { - throw new InvalidProtocolBufferException( + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final Descriptors.Descriptor + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; } - protected GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_fieldAccessorTable + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugJsProtoBuf.Library.FileEntry.class, DebugJsProtoBuf.Library.FileEntry.Builder.class); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.class, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder.class); } - public static Parser PARSER = - new AbstractParser() { + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { public FileEntry parsePartialFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return new FileEntry(input, extensionRegistry); } }; - @Override - public Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string path = 1; public static final int PATH_FIELD_NUMBER = 1; - private Object path_; + private java.lang.Object path_; /** * required string path = 1; */ @@ -827,14 +814,14 @@ public final class DebugJsProtoBuf { /** * required string path = 1; */ - public String getPath() { - Object ref = path_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - ByteString bs = - (ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } @@ -844,23 +831,23 @@ public final class DebugJsProtoBuf { /** * required string path = 1; */ - public ByteString + public com.google.protobuf.ByteString getPathBytes() { - Object ref = path_; - if (ref instanceof String) { - ByteString b = - ByteString.copyFromUtf8( - (String) ref); + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { - return (ByteString) ref; + return (com.google.protobuf.ByteString) ref; } } // required bytes content = 2; public static final int CONTENT_FIELD_NUMBER = 2; - private ByteString content_; + private com.google.protobuf.ByteString content_; /** * required bytes content = 2; */ @@ -870,13 +857,13 @@ public final class DebugJsProtoBuf { /** * required bytes content = 2; */ - public ByteString getContent() { + public com.google.protobuf.ByteString getContent() { return content_; } private void initFields() { path_ = ""; - content_ = ByteString.EMPTY; + content_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -895,8 +882,8 @@ public final class DebugJsProtoBuf { return true; } - public void writeTo(CodedOutputStream output) - throws IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPathBytes()); @@ -914,11 +901,11 @@ public final class DebugJsProtoBuf { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, content_); } size += getUnknownFields().getSerializedSize(); @@ -927,75 +914,75 @@ public final class DebugJsProtoBuf { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws ObjectStreamException { + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { return super.writeReplace(); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom( - ByteString data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom( - ByteString data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom(byte[] data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom( + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom( byte[] data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static DebugJsProtoBuf.Library.FileEntry parseDelimitedFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static DebugJsProtoBuf.Library.FileEntry parseDelimitedFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom( - CodedInputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static DebugJsProtoBuf.Library.FileEntry parseFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(DebugJsProtoBuf.Library.FileEntry prototype) { + public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1003,18 +990,18 @@ public final class DebugJsProtoBuf { * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library.FileEntry} */ public static final class Builder extends - GeneratedMessage.Builder - implements DebugJsProtoBuf.Library.FileEntryOrBuilder { - public static final Descriptors.Descriptor + com.google.protobuf.GeneratedMessage.Builder + implements org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; } - protected GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_fieldAccessorTable + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugJsProtoBuf.Library.FileEntry.class, DebugJsProtoBuf.Library.FileEntry.Builder.class); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.class, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder.class); } // Construct using org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.newBuilder() @@ -1023,12 +1010,12 @@ public final class DebugJsProtoBuf { } private Builder( - GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { @@ -1039,7 +1026,7 @@ public final class DebugJsProtoBuf { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - content_ = ByteString.EMPTY; + content_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1048,25 +1035,25 @@ public final class DebugJsProtoBuf { return create().mergeFrom(buildPartial()); } - public Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; } - public DebugJsProtoBuf.Library.FileEntry getDefaultInstanceForType() { - return getDefaultInstance(); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.getDefaultInstance(); } - public DebugJsProtoBuf.Library.FileEntry build() { - DebugJsProtoBuf.Library.FileEntry result = buildPartial(); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry build() { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public DebugJsProtoBuf.Library.FileEntry buildPartial() { - DebugJsProtoBuf.Library.FileEntry result = new DebugJsProtoBuf.Library.FileEntry(this); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry buildPartial() { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry result = new org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -1082,17 +1069,17 @@ public final class DebugJsProtoBuf { return result; } - public Builder mergeFrom(Message other) { - if (other instanceof DebugJsProtoBuf.Library.FileEntry) { - return mergeFrom((DebugJsProtoBuf.Library.FileEntry)other); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry) { + return mergeFrom((org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(DebugJsProtoBuf.Library.FileEntry other) { - if (other == getDefaultInstance()) return this; + public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry other) { + if (other == org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; @@ -1118,14 +1105,14 @@ public final class DebugJsProtoBuf { } public Builder mergeFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { - DebugJsProtoBuf.Library.FileEntry parsedMessage = null; + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (InvalidProtocolBufferException e) { - parsedMessage = (DebugJsProtoBuf.Library.FileEntry) e.getUnfinishedMessage(); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -1137,7 +1124,7 @@ public final class DebugJsProtoBuf { private int bitField0_; // required string path = 1; - private Object path_ = ""; + private java.lang.Object path_ = ""; /** * required string path = 1; */ @@ -1147,38 +1134,38 @@ public final class DebugJsProtoBuf { /** * required string path = 1; */ - public String getPath() { - Object ref = path_; - if (!(ref instanceof String)) { - String s = ((ByteString) ref) + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** * required string path = 1; */ - public ByteString + public com.google.protobuf.ByteString getPathBytes() { - Object ref = path_; + java.lang.Object ref = path_; if (ref instanceof String) { - ByteString b = - ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { - return (ByteString) ref; + return (com.google.protobuf.ByteString) ref; } } /** * required string path = 1; */ public Builder setPath( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1200,7 +1187,7 @@ public final class DebugJsProtoBuf { * required string path = 1; */ public Builder setPathBytes( - ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -1211,7 +1198,7 @@ public final class DebugJsProtoBuf { } // required bytes content = 2; - private ByteString content_ = ByteString.EMPTY; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes content = 2; */ @@ -1221,13 +1208,13 @@ public final class DebugJsProtoBuf { /** * required bytes content = 2; */ - public ByteString getContent() { + public com.google.protobuf.ByteString getContent() { return content_; } /** * required bytes content = 2; */ - public Builder setContent(ByteString value) { + public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -1259,17 +1246,17 @@ public final class DebugJsProtoBuf { // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; - private List entry_; + private java.util.List entry_; /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List getEntryList() { + public java.util.List getEntryList() { return entry_; } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List + public java.util.List getEntryOrBuilderList() { return entry_; } @@ -1282,19 +1269,19 @@ public final class DebugJsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntry getEntry(int index) { + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry getEntry(int index) { return entry_.get(index); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { - entry_ = Collections.emptyList(); + entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1311,8 +1298,8 @@ public final class DebugJsProtoBuf { return true; } - public void writeTo(CodedOutputStream output) - throws IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.get(i)); @@ -1327,7 +1314,7 @@ public final class DebugJsProtoBuf { size = 0; for (int i = 0; i < entry_.size(); i++) { - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.get(i)); } size += getUnknownFields().getSerializedSize(); @@ -1336,98 +1323,94 @@ public final class DebugJsProtoBuf { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws ObjectStreamException { + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { return super.writeReplace(); } - public static DebugJsProtoBuf.Library parseFrom( - ByteString data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugJsProtoBuf.Library parseFrom( - ByteString data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugJsProtoBuf.Library parseFrom(byte[] data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static DebugJsProtoBuf.Library parseFrom( + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom( byte[] data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static DebugJsProtoBuf.Library parseFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static DebugJsProtoBuf.Library parseFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static DebugJsProtoBuf.Library parseDelimitedFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static DebugJsProtoBuf.Library parseDelimitedFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static DebugJsProtoBuf.Library parseFrom( - CodedInputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static DebugJsProtoBuf.Library parseFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(DebugJsProtoBuf.Library prototype) { + public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library} - * - *
-     * For Kotlin/Javascript we reuse builtins serialization code.
-     * 
*/ public static final class Builder extends - GeneratedMessage.Builder - implements DebugJsProtoBuf.LibraryOrBuilder { - public static final Descriptors.Descriptor + com.google.protobuf.GeneratedMessage.Builder + implements org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.LibraryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; } - protected GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_fieldAccessorTable + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_fieldAccessorTable .ensureFieldAccessorsInitialized( - DebugJsProtoBuf.Library.class, DebugJsProtoBuf.Library.Builder.class); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.class, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.Builder.class); } // Construct using org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.newBuilder() @@ -1436,12 +1419,12 @@ public final class DebugJsProtoBuf { } private Builder( - GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } @@ -1452,7 +1435,7 @@ public final class DebugJsProtoBuf { public Builder clear() { super.clear(); if (entryBuilder_ == null) { - entry_ = Collections.emptyList(); + entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); @@ -1464,29 +1447,29 @@ public final class DebugJsProtoBuf { return create().mergeFrom(buildPartial()); } - public Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; } - public DebugJsProtoBuf.Library getDefaultInstanceForType() { - return getDefaultInstance(); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.getDefaultInstance(); } - public DebugJsProtoBuf.Library build() { - DebugJsProtoBuf.Library result = buildPartial(); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library build() { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public DebugJsProtoBuf.Library buildPartial() { - DebugJsProtoBuf.Library result = new DebugJsProtoBuf.Library(this); + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library buildPartial() { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library result = new org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = Collections.unmodifiableList(entry_); + entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; @@ -1497,17 +1480,17 @@ public final class DebugJsProtoBuf { return result; } - public Builder mergeFrom(Message other) { - if (other instanceof DebugJsProtoBuf.Library) { - return mergeFrom((DebugJsProtoBuf.Library)other); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library) { + return mergeFrom((org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(DebugJsProtoBuf.Library other) { - if (other == getDefaultInstance()) return this; + public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library other) { + if (other == org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { @@ -1527,7 +1510,7 @@ public final class DebugJsProtoBuf { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = - GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); @@ -1549,14 +1532,14 @@ public final class DebugJsProtoBuf { } public Builder mergeFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { - DebugJsProtoBuf.Library parsedMessage = null; + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (InvalidProtocolBufferException e) { - parsedMessage = (DebugJsProtoBuf.Library) e.getUnfinishedMessage(); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -1568,24 +1551,24 @@ public final class DebugJsProtoBuf { private int bitField0_; // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; - private List entry_ = - Collections.emptyList(); + private java.util.List entry_ = + java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = new ArrayList(entry_); + entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } - private RepeatedFieldBuilder< - DebugJsProtoBuf.Library.FileEntry, DebugJsProtoBuf.Library.FileEntry.Builder, DebugJsProtoBuf.Library.FileEntryOrBuilder> entryBuilder_; + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder> entryBuilder_; /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List getEntryList() { + public java.util.List getEntryList() { if (entryBuilder_ == null) { - return Collections.unmodifiableList(entry_); + return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } @@ -1603,7 +1586,7 @@ public final class DebugJsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntry getEntry(int index) { + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { @@ -1614,7 +1597,7 @@ public final class DebugJsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder setEntry( - int index, DebugJsProtoBuf.Library.FileEntry value) { + int index, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1631,7 +1614,7 @@ public final class DebugJsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder setEntry( - int index, DebugJsProtoBuf.Library.FileEntry.Builder builderForValue) { + int index, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); @@ -1644,7 +1627,7 @@ public final class DebugJsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public Builder addEntry(DebugJsProtoBuf.Library.FileEntry value) { + public Builder addEntry(org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1661,7 +1644,7 @@ public final class DebugJsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addEntry( - int index, DebugJsProtoBuf.Library.FileEntry value) { + int index, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1678,7 +1661,7 @@ public final class DebugJsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addEntry( - DebugJsProtoBuf.Library.FileEntry.Builder builderForValue) { + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); @@ -1692,7 +1675,7 @@ public final class DebugJsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addEntry( - int index, DebugJsProtoBuf.Library.FileEntry.Builder builderForValue) { + int index, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); @@ -1706,10 +1689,10 @@ public final class DebugJsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addAllEntry( - Iterable values) { + java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); - addAll(values, entry_); + super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); @@ -1721,7 +1704,7 @@ public final class DebugJsProtoBuf { */ public Builder clearEntry() { if (entryBuilder_ == null) { - entry_ = Collections.emptyList(); + entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { @@ -1745,14 +1728,14 @@ public final class DebugJsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntry.Builder getEntryBuilder( + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { @@ -1762,42 +1745,42 @@ public final class DebugJsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List + public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { - return Collections.unmodifiableList(entry_); + return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntry.Builder addEntryBuilder() { + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( - DebugJsProtoBuf.Library.FileEntry.getDefaultInstance()); + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.getDefaultInstance()); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public DebugJsProtoBuf.Library.FileEntry.Builder addEntryBuilder( + public org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( - index, DebugJsProtoBuf.Library.FileEntry.getDefaultInstance()); + index, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.getDefaultInstance()); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List + public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } - private RepeatedFieldBuilder< - DebugJsProtoBuf.Library.FileEntry, DebugJsProtoBuf.Library.FileEntry.Builder, DebugJsProtoBuf.Library.FileEntryOrBuilder> + private com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { - entryBuilder_ = new RepeatedFieldBuilder< - DebugJsProtoBuf.Library.FileEntry, DebugJsProtoBuf.Library.FileEntry.Builder, DebugJsProtoBuf.Library.FileEntryOrBuilder>( + entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntry.Builder, org.jetbrains.kotlin.serialization.js.DebugJsProtoBuf.Library.FileEntryOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -1823,69 +1806,80 @@ public final class DebugJsProtoBuf { * extend .org.jetbrains.kotlin.serialization.Class { ... } */ public static final - GeneratedMessage.GeneratedExtension< - DebugProtoBuf.Class, - List> classAnnotation = GeneratedMessage + com.google.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Class, + java.util.List> classAnnotation = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( - DebugProtoBuf.Annotation.class, - DebugProtoBuf.Annotation.getDefaultInstance()); + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.getDefaultInstance()); public static final int CALLABLE_ANNOTATION_FIELD_NUMBER = 130; /** * extend .org.jetbrains.kotlin.serialization.Callable { ... } */ public static final - GeneratedMessage.GeneratedExtension< - DebugProtoBuf.Callable, - List> callableAnnotation = GeneratedMessage + com.google.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable, + java.util.List> callableAnnotation = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( - DebugProtoBuf.Annotation.class, - DebugProtoBuf.Annotation.getDefaultInstance()); + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.getDefaultInstance()); public static final int COMPILE_TIME_VALUE_FIELD_NUMBER = 131; /** * extend .org.jetbrains.kotlin.serialization.Callable { ... } */ public static final - GeneratedMessage.GeneratedExtension< - DebugProtoBuf.Callable, - DebugProtoBuf.Annotation.Argument.Value> compileTimeValue = GeneratedMessage + com.google.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable, + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.Argument.Value> compileTimeValue = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( - DebugProtoBuf.Annotation.Argument.Value.class, - DebugProtoBuf.Annotation.Argument.Value.getDefaultInstance()); + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.Argument.Value.class, + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.Argument.Value.getDefaultInstance()); public static final int PARAMETER_ANNOTATION_FIELD_NUMBER = 130; /** * extend .org.jetbrains.kotlin.serialization.Callable.ValueParameter { ... } */ public static final - GeneratedMessage.GeneratedExtension< - DebugProtoBuf.Callable.ValueParameter, - List> parameterAnnotation = GeneratedMessage + com.google.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Callable.ValueParameter, + java.util.List> parameterAnnotation = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( - DebugProtoBuf.Annotation.class, - DebugProtoBuf.Annotation.getDefaultInstance()); - private static Descriptors.Descriptor + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.getDefaultInstance()); + public static final int TYPE_ANNOTATION_FIELD_NUMBER = 130; + /** + * extend .org.jetbrains.kotlin.serialization.Type { ... } + */ + public static final + com.google.protobuf.GeneratedMessage.GeneratedExtension< + org.jetbrains.kotlin.serialization.DebugProtoBuf.Type, + java.util.List> typeAnnotation = com.google.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.class, + org.jetbrains.kotlin.serialization.DebugProtoBuf.Annotation.getDefaultInstance()); + private static com.google.protobuf.Descriptors.Descriptor internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor; private static - GeneratedMessage.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_jetbrains_kotlin_serialization_js_Classes_fieldAccessorTable; - private static Descriptors.Descriptor + private static com.google.protobuf.Descriptors.Descriptor internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor; private static - GeneratedMessage.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_jetbrains_kotlin_serialization_js_Library_fieldAccessorTable; - private static Descriptors.Descriptor + private static com.google.protobuf.Descriptors.Descriptor internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor; private static - GeneratedMessage.FieldAccessorTable + com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_fieldAccessorTable; - public static Descriptors.FileDescriptor + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static Descriptors.FileDescriptor + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n#js/js.serializer/src/js.debug.proto\022%o" + "rg.jetbrains.kotlin.serialization.js\0320co" + "re/deserialization/src/descriptors.debug" + @@ -1906,42 +1900,46 @@ public final class DebugJsProtoBuf { "eter_annotation\022;.org.jetbrains.kotlin.s" + "erialization.Callable.ValueParameter\030\202\001 " + "\003(\0132..org.jetbrains.kotlin.serialization", - ".AnnotationB\021B\017DebugJsProtoBuf" + ".Annotation:r\n\017type_annotation\022(.org.jet" + + "brains.kotlin.serialization.Type\030\202\001 \003(\0132" + + "..org.jetbrains.kotlin.serialization.Ann" + + "otationB\021B\017DebugJsProtoBuf" }; - Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public ExtensionRegistry assignDescriptors( - Descriptors.FileDescriptor root) { + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_org_jetbrains_kotlin_serialization_js_Classes_fieldAccessorTable = new - GeneratedMessage.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_js_Classes_descriptor, - new String[] { "ClassName", }); + new java.lang.String[] { "ClassName", }); internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_org_jetbrains_kotlin_serialization_js_Library_fieldAccessorTable = new - GeneratedMessage.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor, - new String[] { "Entry", }); + new java.lang.String[] { "Entry", }); internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor = internal_static_org_jetbrains_kotlin_serialization_js_Library_descriptor.getNestedTypes().get(0); internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_fieldAccessorTable = new - GeneratedMessage.FieldAccessorTable( + com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_jetbrains_kotlin_serialization_js_Library_FileEntry_descriptor, - new String[] { "Path", "Content", }); + new java.lang.String[] { "Path", "Content", }); classAnnotation.internalInit(descriptor.getExtensions().get(0)); callableAnnotation.internalInit(descriptor.getExtensions().get(1)); compileTimeValue.internalInit(descriptor.getExtensions().get(2)); parameterAnnotation.internalInit(descriptor.getExtensions().get(3)); + typeAnnotation.internalInit(descriptor.getExtensions().get(4)); return null; } }; - Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, - new Descriptors.FileDescriptor[] { - DebugProtoBuf.getDescriptor(), + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.jetbrains.kotlin.serialization.DebugProtoBuf.getDescriptor(), }, assigner); } diff --git a/js/js.serializer/src/js.proto b/js/js.serializer/src/js.proto index 77b022ab142..e6aca789b89 100644 --- a/js/js.serializer/src/js.proto +++ b/js/js.serializer/src/js.proto @@ -34,6 +34,10 @@ extend Callable.ValueParameter { repeated Annotation parameter_annotation = 130; } +extend Type { + repeated Annotation type_annotation = 130; +} + message Classes { // id in StringTable repeated int32 class_name = 1 [packed = true]; diff --git a/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/JsProtoBuf.java b/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/JsProtoBuf.java index f0ae8845798..98b7570e261 100644 --- a/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/JsProtoBuf.java +++ b/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/JsProtoBuf.java @@ -3,27 +3,18 @@ package org.jetbrains.kotlin.serialization.js; -import com.google.protobuf.*; -import org.jetbrains.kotlin.serialization.ProtoBuf; - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - public final class JsProtoBuf { private JsProtoBuf() {} public static void registerAllExtensions( - ExtensionRegistryLite registry) { - registry.add(JsProtoBuf.classAnnotation); - registry.add(JsProtoBuf.callableAnnotation); - registry.add(JsProtoBuf.compileTimeValue); - registry.add(JsProtoBuf.parameterAnnotation); + com.google.protobuf.ExtensionRegistryLite registry) { + registry.add(org.jetbrains.kotlin.serialization.js.JsProtoBuf.classAnnotation); + registry.add(org.jetbrains.kotlin.serialization.js.JsProtoBuf.callableAnnotation); + registry.add(org.jetbrains.kotlin.serialization.js.JsProtoBuf.compileTimeValue); + registry.add(org.jetbrains.kotlin.serialization.js.JsProtoBuf.parameterAnnotation); + registry.add(org.jetbrains.kotlin.serialization.js.JsProtoBuf.typeAnnotation); } public interface ClassesOrBuilder - extends MessageLiteOrBuilder { + extends com.google.protobuf.MessageLiteOrBuilder { // repeated int32 class_name = 1 [packed = true]; /** @@ -33,7 +24,7 @@ public final class JsProtoBuf { * id in StringTable * */ - List getClassNameList(); + java.util.List getClassNameList(); /** * repeated int32 class_name = 1 [packed = true]; * @@ -55,10 +46,10 @@ public final class JsProtoBuf { * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Classes} */ public static final class Classes extends - GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite implements ClassesOrBuilder { // Use Classes.newBuilder() to construct. - private Classes(GeneratedMessageLite.Builder builder) { + private Classes(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } @@ -74,9 +65,9 @@ public final class JsProtoBuf { } private Classes( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { @@ -96,7 +87,7 @@ public final class JsProtoBuf { } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - className_ = new ArrayList(); + className_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } className_.add(input.readInt32()); @@ -106,7 +97,7 @@ public final class JsProtoBuf { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - className_ = new ArrayList(); + className_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { @@ -117,36 +108,36 @@ public final class JsProtoBuf { } } } - } catch (InvalidProtocolBufferException e) { + } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); - } catch (IOException e) { - throw new InvalidProtocolBufferException( + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - className_ = Collections.unmodifiableList(className_); + className_ = java.util.Collections.unmodifiableList(className_); } makeExtensionsImmutable(); } } - public static Parser PARSER = - new AbstractParser() { + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { public Classes parsePartialFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return new Classes(input, extensionRegistry); } }; - @Override - public Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated int32 class_name = 1 [packed = true]; public static final int CLASS_NAME_FIELD_NUMBER = 1; - private List className_; + private java.util.List className_; /** * repeated int32 class_name = 1 [packed = true]; * @@ -154,7 +145,7 @@ public final class JsProtoBuf { * id in StringTable * */ - public List + public java.util.List getClassNameList() { return className_; } @@ -181,7 +172,7 @@ public final class JsProtoBuf { private int classNameMemoizedSerializedSize = -1; private void initFields() { - className_ = Collections.emptyList(); + className_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -192,8 +183,8 @@ public final class JsProtoBuf { return true; } - public void writeTo(CodedOutputStream output) - throws IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getClassNameList().size() > 0) { output.writeRawVarint32(10); @@ -213,13 +204,13 @@ public final class JsProtoBuf { { int dataSize = 0; for (int i = 0; i < className_.size(); i++) { - dataSize += CodedOutputStream + dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(className_.get(i)); } size += dataSize; if (!getClassNameList().isEmpty()) { size += 1; - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } classNameMemoizedSerializedSize = dataSize; @@ -229,68 +220,68 @@ public final class JsProtoBuf { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws ObjectStreamException { + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { return super.writeReplace(); } - public static JsProtoBuf.Classes parseFrom( - ByteString data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static JsProtoBuf.Classes parseFrom( - ByteString data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static JsProtoBuf.Classes parseFrom(byte[] data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static JsProtoBuf.Classes parseFrom( + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom( byte[] data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static JsProtoBuf.Classes parseFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static JsProtoBuf.Classes parseFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static JsProtoBuf.Classes parseDelimitedFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static JsProtoBuf.Classes parseDelimitedFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static JsProtoBuf.Classes parseFrom( - CodedInputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static JsProtoBuf.Classes parseFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(JsProtoBuf.Classes prototype) { + public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @@ -299,9 +290,9 @@ public final class JsProtoBuf { * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Classes} */ public static final class Builder extends - GeneratedMessageLite.Builder< - JsProtoBuf.Classes, Builder> - implements JsProtoBuf.ClassesOrBuilder { + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes, Builder> + implements org.jetbrains.kotlin.serialization.js.JsProtoBuf.ClassesOrBuilder { // Construct using org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes.newBuilder() private Builder() { maybeForceBuilderInitialization(); @@ -315,7 +306,7 @@ public final class JsProtoBuf { public Builder clear() { super.clear(); - className_ = Collections.emptyList(); + className_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -324,31 +315,31 @@ public final class JsProtoBuf { return create().mergeFrom(buildPartial()); } - public JsProtoBuf.Classes getDefaultInstanceForType() { - return getDefaultInstance(); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes.getDefaultInstance(); } - public JsProtoBuf.Classes build() { - JsProtoBuf.Classes result = buildPartial(); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes build() { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public JsProtoBuf.Classes buildPartial() { - JsProtoBuf.Classes result = new JsProtoBuf.Classes(this); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes buildPartial() { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes result = new org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { - className_ = Collections.unmodifiableList(className_); + className_ = java.util.Collections.unmodifiableList(className_); bitField0_ = (bitField0_ & ~0x00000001); } result.className_ = className_; return result; } - public Builder mergeFrom(JsProtoBuf.Classes other) { - if (other == getDefaultInstance()) return this; + public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes other) { + if (other == org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes.getDefaultInstance()) return this; if (!other.className_.isEmpty()) { if (className_.isEmpty()) { className_ = other.className_; @@ -367,14 +358,14 @@ public final class JsProtoBuf { } public Builder mergeFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { - JsProtoBuf.Classes parsedMessage = null; + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (InvalidProtocolBufferException e) { - parsedMessage = (JsProtoBuf.Classes) e.getUnfinishedMessage(); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.js.JsProtoBuf.Classes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -386,10 +377,10 @@ public final class JsProtoBuf { private int bitField0_; // repeated int32 class_name = 1 [packed = true]; - private List className_ = Collections.emptyList(); + private java.util.List className_ = java.util.Collections.emptyList(); private void ensureClassNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { - className_ = new ArrayList(className_); + className_ = new java.util.ArrayList(className_); bitField0_ |= 0x00000001; } } @@ -400,9 +391,9 @@ public final class JsProtoBuf { * id in StringTable * */ - public List + public java.util.List getClassNameList() { - return Collections.unmodifiableList(className_); + return java.util.Collections.unmodifiableList(className_); } /** * repeated int32 class_name = 1 [packed = true]; @@ -459,9 +450,9 @@ public final class JsProtoBuf { * */ public Builder addAllClassName( - Iterable values) { + java.lang.Iterable values) { ensureClassNameIsMutable(); - addAll(values, className_); + super.addAll(values, className_); return this; } @@ -473,7 +464,7 @@ public final class JsProtoBuf { * */ public Builder clearClassName() { - className_ = Collections.emptyList(); + className_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -491,18 +482,18 @@ public final class JsProtoBuf { } public interface LibraryOrBuilder - extends MessageLiteOrBuilder { + extends com.google.protobuf.MessageLiteOrBuilder { // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - List + java.util.List getEntryList(); /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - JsProtoBuf.Library.FileEntry getEntry(int index); + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getEntry(int index); /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ @@ -510,16 +501,12 @@ public final class JsProtoBuf { } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library} - * - *
-   * For Kotlin/Javascript we reuse builtins serialization code.
-   * 
*/ public static final class Library extends - GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite implements LibraryOrBuilder { // Use Library.newBuilder() to construct. - private Library(GeneratedMessageLite.Builder builder) { + private Library(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } @@ -535,9 +522,9 @@ public final class JsProtoBuf { } private Library( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { @@ -557,43 +544,43 @@ public final class JsProtoBuf { } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = new ArrayList(); + entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - entry_.add(input.readMessage(JsProtoBuf.Library.FileEntry.PARSER, extensionRegistry)); + entry_.add(input.readMessage(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.PARSER, extensionRegistry)); break; } } } - } catch (InvalidProtocolBufferException e) { + } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); - } catch (IOException e) { - throw new InvalidProtocolBufferException( + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = Collections.unmodifiableList(entry_); + entry_ = java.util.Collections.unmodifiableList(entry_); } makeExtensionsImmutable(); } } - public static Parser PARSER = - new AbstractParser() { + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { public Library parsePartialFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return new Library(input, extensionRegistry); } }; - @Override - public Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface FileEntryOrBuilder - extends MessageLiteOrBuilder { + extends com.google.protobuf.MessageLiteOrBuilder { // required string path = 1; /** @@ -603,11 +590,11 @@ public final class JsProtoBuf { /** * required string path = 1; */ - String getPath(); + java.lang.String getPath(); /** * required string path = 1; */ - ByteString + com.google.protobuf.ByteString getPathBytes(); // required bytes content = 2; @@ -618,16 +605,16 @@ public final class JsProtoBuf { /** * required bytes content = 2; */ - ByteString getContent(); + com.google.protobuf.ByteString getContent(); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library.FileEntry} */ public static final class FileEntry extends - GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite implements FileEntryOrBuilder { // Use FileEntry.newBuilder() to construct. - private FileEntry(GeneratedMessageLite.Builder builder) { + private FileEntry(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); } @@ -643,9 +630,9 @@ public final class JsProtoBuf { } private FileEntry( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; try { @@ -675,34 +662,34 @@ public final class JsProtoBuf { } } } - } catch (InvalidProtocolBufferException e) { + } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); - } catch (IOException e) { - throw new InvalidProtocolBufferException( + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } - public static Parser PARSER = - new AbstractParser() { + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { public FileEntry parsePartialFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return new FileEntry(input, extensionRegistry); } }; - @Override - public Parser getParserForType() { + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string path = 1; public static final int PATH_FIELD_NUMBER = 1; - private Object path_; + private java.lang.Object path_; /** * required string path = 1; */ @@ -712,14 +699,14 @@ public final class JsProtoBuf { /** * required string path = 1; */ - public String getPath() { - Object ref = path_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - ByteString bs = - (ByteString) ref; - String s = bs.toStringUtf8(); + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } @@ -729,23 +716,23 @@ public final class JsProtoBuf { /** * required string path = 1; */ - public ByteString + public com.google.protobuf.ByteString getPathBytes() { - Object ref = path_; - if (ref instanceof String) { - ByteString b = - ByteString.copyFromUtf8( - (String) ref); + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { - return (ByteString) ref; + return (com.google.protobuf.ByteString) ref; } } // required bytes content = 2; public static final int CONTENT_FIELD_NUMBER = 2; - private ByteString content_; + private com.google.protobuf.ByteString content_; /** * required bytes content = 2; */ @@ -755,13 +742,13 @@ public final class JsProtoBuf { /** * required bytes content = 2; */ - public ByteString getContent() { + public com.google.protobuf.ByteString getContent() { return content_; } private void initFields() { path_ = ""; - content_ = ByteString.EMPTY; + content_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -780,8 +767,8 @@ public final class JsProtoBuf { return true; } - public void writeTo(CodedOutputStream output) - throws IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPathBytes()); @@ -798,11 +785,11 @@ public final class JsProtoBuf { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, content_); } memoizedSerializedSize = size; @@ -810,68 +797,68 @@ public final class JsProtoBuf { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws ObjectStreamException { + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { return super.writeReplace(); } - public static JsProtoBuf.Library.FileEntry parseFrom( - ByteString data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static JsProtoBuf.Library.FileEntry parseFrom( - ByteString data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static JsProtoBuf.Library.FileEntry parseFrom(byte[] data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static JsProtoBuf.Library.FileEntry parseFrom( + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( byte[] data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static JsProtoBuf.Library.FileEntry parseFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static JsProtoBuf.Library.FileEntry parseFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static JsProtoBuf.Library.FileEntry parseDelimitedFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static JsProtoBuf.Library.FileEntry parseDelimitedFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static JsProtoBuf.Library.FileEntry parseFrom( - CodedInputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static JsProtoBuf.Library.FileEntry parseFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(JsProtoBuf.Library.FileEntry prototype) { + public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @@ -880,9 +867,9 @@ public final class JsProtoBuf { * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library.FileEntry} */ public static final class Builder extends - GeneratedMessageLite.Builder< - JsProtoBuf.Library.FileEntry, Builder> - implements JsProtoBuf.Library.FileEntryOrBuilder { + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry, Builder> + implements org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntryOrBuilder { // Construct using org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); @@ -898,7 +885,7 @@ public final class JsProtoBuf { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - content_ = ByteString.EMPTY; + content_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -907,20 +894,20 @@ public final class JsProtoBuf { return create().mergeFrom(buildPartial()); } - public JsProtoBuf.Library.FileEntry getDefaultInstanceForType() { - return getDefaultInstance(); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.getDefaultInstance(); } - public JsProtoBuf.Library.FileEntry build() { - JsProtoBuf.Library.FileEntry result = buildPartial(); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry build() { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public JsProtoBuf.Library.FileEntry buildPartial() { - JsProtoBuf.Library.FileEntry result = new JsProtoBuf.Library.FileEntry(this); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry buildPartial() { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry result = new org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -935,8 +922,8 @@ public final class JsProtoBuf { return result; } - public Builder mergeFrom(JsProtoBuf.Library.FileEntry other) { - if (other == getDefaultInstance()) return this; + public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry other) { + if (other == org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; @@ -961,14 +948,14 @@ public final class JsProtoBuf { } public Builder mergeFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { - JsProtoBuf.Library.FileEntry parsedMessage = null; + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (InvalidProtocolBufferException e) { - parsedMessage = (JsProtoBuf.Library.FileEntry) e.getUnfinishedMessage(); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -980,7 +967,7 @@ public final class JsProtoBuf { private int bitField0_; // required string path = 1; - private Object path_ = ""; + private java.lang.Object path_ = ""; /** * required string path = 1; */ @@ -990,38 +977,38 @@ public final class JsProtoBuf { /** * required string path = 1; */ - public String getPath() { - Object ref = path_; - if (!(ref instanceof String)) { - String s = ((ByteString) ref) + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** * required string path = 1; */ - public ByteString + public com.google.protobuf.ByteString getPathBytes() { - Object ref = path_; + java.lang.Object ref = path_; if (ref instanceof String) { - ByteString b = - ByteString.copyFromUtf8( - (String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { - return (ByteString) ref; + return (com.google.protobuf.ByteString) ref; } } /** * required string path = 1; */ public Builder setPath( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1043,7 +1030,7 @@ public final class JsProtoBuf { * required string path = 1; */ public Builder setPathBytes( - ByteString value) { + com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -1054,7 +1041,7 @@ public final class JsProtoBuf { } // required bytes content = 2; - private ByteString content_ = ByteString.EMPTY; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes content = 2; */ @@ -1064,13 +1051,13 @@ public final class JsProtoBuf { /** * required bytes content = 2; */ - public ByteString getContent() { + public com.google.protobuf.ByteString getContent() { return content_; } /** * required bytes content = 2; */ - public Builder setContent(ByteString value) { + public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -1102,17 +1089,17 @@ public final class JsProtoBuf { // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; - private List entry_; + private java.util.List entry_; /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List getEntryList() { + public java.util.List getEntryList() { return entry_; } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List + public java.util.List getEntryOrBuilderList() { return entry_; } @@ -1125,19 +1112,19 @@ public final class JsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public JsProtoBuf.Library.FileEntry getEntry(int index) { + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getEntry(int index) { return entry_.get(index); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public JsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntryOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { - entry_ = Collections.emptyList(); + entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1154,8 +1141,8 @@ public final class JsProtoBuf { return true; } - public void writeTo(CodedOutputStream output) - throws IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.get(i)); @@ -1169,7 +1156,7 @@ public final class JsProtoBuf { size = 0; for (int i = 0; i < entry_.size(); i++) { - size += CodedOutputStream + size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.get(i)); } memoizedSerializedSize = size; @@ -1177,83 +1164,79 @@ public final class JsProtoBuf { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws ObjectStreamException { + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { return super.writeReplace(); } - public static JsProtoBuf.Library parseFrom( - ByteString data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static JsProtoBuf.Library parseFrom( - ByteString data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static JsProtoBuf.Library parseFrom(byte[] data) - throws InvalidProtocolBufferException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static JsProtoBuf.Library parseFrom( + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( byte[] data, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static JsProtoBuf.Library parseFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static JsProtoBuf.Library parseFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static JsProtoBuf.Library parseDelimitedFrom(InputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static JsProtoBuf.Library parseDelimitedFrom( - InputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static JsProtoBuf.Library parseFrom( - CodedInputStream input) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { return PARSER.parseFrom(input); } - public static JsProtoBuf.Library parseFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { + public static org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(JsProtoBuf.Library prototype) { + public static Builder newBuilder(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code org.jetbrains.kotlin.serialization.js.Library} - * - *
-     * For Kotlin/Javascript we reuse builtins serialization code.
-     * 
*/ public static final class Builder extends - GeneratedMessageLite.Builder< - JsProtoBuf.Library, Builder> - implements JsProtoBuf.LibraryOrBuilder { + com.google.protobuf.GeneratedMessageLite.Builder< + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library, Builder> + implements org.jetbrains.kotlin.serialization.js.JsProtoBuf.LibraryOrBuilder { // Construct using org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.newBuilder() private Builder() { maybeForceBuilderInitialization(); @@ -1267,7 +1250,7 @@ public final class JsProtoBuf { public Builder clear() { super.clear(); - entry_ = Collections.emptyList(); + entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1276,31 +1259,31 @@ public final class JsProtoBuf { return create().mergeFrom(buildPartial()); } - public JsProtoBuf.Library getDefaultInstanceForType() { - return getDefaultInstance(); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library getDefaultInstanceForType() { + return org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.getDefaultInstance(); } - public JsProtoBuf.Library build() { - JsProtoBuf.Library result = buildPartial(); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library build() { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public JsProtoBuf.Library buildPartial() { - JsProtoBuf.Library result = new JsProtoBuf.Library(this); + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library buildPartial() { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library result = new org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = Collections.unmodifiableList(entry_); + entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; return result; } - public Builder mergeFrom(JsProtoBuf.Library other) { - if (other == getDefaultInstance()) return this; + public Builder mergeFrom(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library other) { + if (other == org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.getDefaultInstance()) return this; if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; @@ -1325,14 +1308,14 @@ public final class JsProtoBuf { } public Builder mergeFrom( - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws IOException { - JsProtoBuf.Library parsedMessage = null; + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (InvalidProtocolBufferException e) { - parsedMessage = (JsProtoBuf.Library) e.getUnfinishedMessage(); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -1344,11 +1327,11 @@ public final class JsProtoBuf { private int bitField0_; // repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; - private List entry_ = - Collections.emptyList(); + private java.util.List entry_ = + java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { - entry_ = new ArrayList(entry_); + entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } @@ -1356,8 +1339,8 @@ public final class JsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public List getEntryList() { - return Collections.unmodifiableList(entry_); + public java.util.List getEntryList() { + return java.util.Collections.unmodifiableList(entry_); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; @@ -1368,14 +1351,14 @@ public final class JsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public JsProtoBuf.Library.FileEntry getEntry(int index) { + public org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry getEntry(int index) { return entry_.get(index); } /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder setEntry( - int index, JsProtoBuf.Library.FileEntry value) { + int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry value) { if (value == null) { throw new NullPointerException(); } @@ -1388,7 +1371,7 @@ public final class JsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder setEntry( - int index, JsProtoBuf.Library.FileEntry.Builder builderForValue) { + int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.Builder builderForValue) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); @@ -1397,7 +1380,7 @@ public final class JsProtoBuf { /** * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ - public Builder addEntry(JsProtoBuf.Library.FileEntry value) { + public Builder addEntry(org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry value) { if (value == null) { throw new NullPointerException(); } @@ -1410,7 +1393,7 @@ public final class JsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addEntry( - int index, JsProtoBuf.Library.FileEntry value) { + int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry value) { if (value == null) { throw new NullPointerException(); } @@ -1423,7 +1406,7 @@ public final class JsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addEntry( - JsProtoBuf.Library.FileEntry.Builder builderForValue) { + org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.Builder builderForValue) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); @@ -1433,7 +1416,7 @@ public final class JsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addEntry( - int index, JsProtoBuf.Library.FileEntry.Builder builderForValue) { + int index, org.jetbrains.kotlin.serialization.js.JsProtoBuf.Library.FileEntry.Builder builderForValue) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); @@ -1443,9 +1426,9 @@ public final class JsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder addAllEntry( - Iterable values) { + java.lang.Iterable values) { ensureEntryIsMutable(); - addAll(values, entry_); + super.addAll(values, entry_); return this; } @@ -1453,7 +1436,7 @@ public final class JsProtoBuf { * repeated .org.jetbrains.kotlin.serialization.js.Library.FileEntry entry = 1; */ public Builder clearEntry() { - entry_ = Collections.emptyList(); + entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -1484,60 +1467,75 @@ public final class JsProtoBuf { * extend .org.jetbrains.kotlin.serialization.Class { ... } */ public static final - GeneratedMessageLite.GeneratedExtension< - ProtoBuf.Class, - List> classAnnotation = GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite.GeneratedExtension< + org.jetbrains.kotlin.serialization.ProtoBuf.Class, + java.util.List> classAnnotation = com.google.protobuf.GeneratedMessageLite .newRepeatedGeneratedExtension( - ProtoBuf.Class.getDefaultInstance(), - ProtoBuf.Annotation.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Class.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.getDefaultInstance(), null, 130, - WireFormat.FieldType.MESSAGE, + com.google.protobuf.WireFormat.FieldType.MESSAGE, false); public static final int CALLABLE_ANNOTATION_FIELD_NUMBER = 130; /** * extend .org.jetbrains.kotlin.serialization.Callable { ... } */ public static final - GeneratedMessageLite.GeneratedExtension< - ProtoBuf.Callable, - List> callableAnnotation = GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite.GeneratedExtension< + org.jetbrains.kotlin.serialization.ProtoBuf.Callable, + java.util.List> callableAnnotation = com.google.protobuf.GeneratedMessageLite .newRepeatedGeneratedExtension( - ProtoBuf.Callable.getDefaultInstance(), - ProtoBuf.Annotation.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Callable.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.getDefaultInstance(), null, 130, - WireFormat.FieldType.MESSAGE, + com.google.protobuf.WireFormat.FieldType.MESSAGE, false); public static final int COMPILE_TIME_VALUE_FIELD_NUMBER = 131; /** * extend .org.jetbrains.kotlin.serialization.Callable { ... } */ public static final - GeneratedMessageLite.GeneratedExtension< - ProtoBuf.Callable, - ProtoBuf.Annotation.Argument.Value> compileTimeValue = GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite.GeneratedExtension< + org.jetbrains.kotlin.serialization.ProtoBuf.Callable, + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.Argument.Value> compileTimeValue = com.google.protobuf.GeneratedMessageLite .newSingularGeneratedExtension( - ProtoBuf.Callable.getDefaultInstance(), - ProtoBuf.Annotation.Argument.Value.getDefaultInstance(), - ProtoBuf.Annotation.Argument.Value.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Callable.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.Argument.Value.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.Argument.Value.getDefaultInstance(), null, 131, - WireFormat.FieldType.MESSAGE); + com.google.protobuf.WireFormat.FieldType.MESSAGE); public static final int PARAMETER_ANNOTATION_FIELD_NUMBER = 130; /** * extend .org.jetbrains.kotlin.serialization.Callable.ValueParameter { ... } */ public static final - GeneratedMessageLite.GeneratedExtension< - ProtoBuf.Callable.ValueParameter, - List> parameterAnnotation = GeneratedMessageLite + com.google.protobuf.GeneratedMessageLite.GeneratedExtension< + org.jetbrains.kotlin.serialization.ProtoBuf.Callable.ValueParameter, + java.util.List> parameterAnnotation = com.google.protobuf.GeneratedMessageLite .newRepeatedGeneratedExtension( - ProtoBuf.Callable.ValueParameter.getDefaultInstance(), - ProtoBuf.Annotation.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Callable.ValueParameter.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.getDefaultInstance(), null, 130, - WireFormat.FieldType.MESSAGE, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + false); + public static final int TYPE_ANNOTATION_FIELD_NUMBER = 130; + /** + * extend .org.jetbrains.kotlin.serialization.Type { ... } + */ + public static final + com.google.protobuf.GeneratedMessageLite.GeneratedExtension< + org.jetbrains.kotlin.serialization.ProtoBuf.Type, + java.util.List> typeAnnotation = com.google.protobuf.GeneratedMessageLite + .newRepeatedGeneratedExtension( + org.jetbrains.kotlin.serialization.ProtoBuf.Type.getDefaultInstance(), + org.jetbrains.kotlin.serialization.ProtoBuf.Annotation.getDefaultInstance(), + null, + 130, + com.google.protobuf.WireFormat.FieldType.MESSAGE, false); static { diff --git a/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptAnnotationAndConstantLoader.kt b/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptAnnotationAndConstantLoader.kt index 070281a8687..33e9db38c2f 100644 --- a/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptAnnotationAndConstantLoader.kt +++ b/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptAnnotationAndConstantLoader.kt @@ -58,8 +58,8 @@ class KotlinJavascriptAnnotationAndConstantLoader( } override fun loadTypeAnnotations(proto: ProtoBuf.Type, nameResolver: NameResolver): List { - // TODO: support type annotations for js descriptors - return listOf() + val annotations = proto.getExtension(JsProtoBuf.typeAnnotation).orEmpty() + return annotations.map { proto -> deserializer.deserializeAnnotation(proto, nameResolver) } } override fun loadPropertyConstant( diff --git a/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptSerializerExtension.kt b/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptSerializerExtension.kt index d2baa935376..90d5eec26a9 100644 --- a/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptSerializerExtension.kt +++ b/js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptSerializerExtension.kt @@ -16,11 +16,17 @@ package org.jetbrains.kotlin.serialization.js -import org.jetbrains.kotlin.descriptors.* +import org.jetbrains.kotlin.descriptors.CallableMemberDescriptor +import org.jetbrains.kotlin.descriptors.ClassDescriptor +import org.jetbrains.kotlin.descriptors.PropertyDescriptor +import org.jetbrains.kotlin.descriptors.ValueParameterDescriptor import org.jetbrains.kotlin.resolve.constants.NullValue import org.jetbrains.kotlin.resolve.descriptorUtil.builtIns -import org.jetbrains.kotlin.resolve.scopes.DescriptorKindFilter -import org.jetbrains.kotlin.serialization.* +import org.jetbrains.kotlin.serialization.AnnotationSerializer +import org.jetbrains.kotlin.serialization.ProtoBuf +import org.jetbrains.kotlin.serialization.SerializerExtension +import org.jetbrains.kotlin.serialization.StringTable +import org.jetbrains.kotlin.types.JetType public object KotlinJavascriptSerializerExtension : SerializerExtension() { override fun serializeClass(descriptor: ClassDescriptor, proto: ProtoBuf.Class.Builder, stringTable: StringTable) { @@ -54,4 +60,10 @@ public object KotlinJavascriptSerializerExtension : SerializerExtension() { proto.addExtension(JsProtoBuf.parameterAnnotation, AnnotationSerializer.serializeAnnotation(annotation, stringTable)) } } -} \ No newline at end of file + + override fun serializeType(type: JetType, proto: ProtoBuf.Type.Builder, stringTable: StringTable) { + for (annotation in type.getAnnotations()) { + proto.addExtension(JsProtoBuf.typeAnnotation, AnnotationSerializer.serializeAnnotation(annotation, stringTable)) + } + } +}