Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.jetbrains.kotlin.backend.common.serialization.proto.IrFile Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: compiler/ir/serialization.common/src/KotlinIr.proto
package org.jetbrains.kotlin.backend.common.serialization.proto;
/**
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrFile}
*/
public final class IrFile extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrFile)
IrFileOrBuilder {
// Use IrFile.newBuilder() to construct.
private IrFile(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IrFile(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
private static final IrFile defaultInstance;
public static IrFile getDefaultInstance() {
return defaultInstance;
}
public IrFile getDefaultInstanceForType() {
return defaultInstance;
}
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
private IrFile(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput =
org.jetbrains.kotlin.protobuf.ByteString.newOutput();
org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput =
org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput, 1);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
declarationId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
declarationId_.add(input.readInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
declarationId_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
declarationId_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 18: {
org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = fileEntry_.toBuilder();
}
fileEntry_ = input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fileEntry_);
fileEntry_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fqName_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
fqName_.add(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
fqName_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
fqName_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
annotation_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
annotation_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.PARSER, extensionRegistry));
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
explicitlyExportedToCompiler_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
explicitlyExportedToCompiler_.add(input.readInt64());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
explicitlyExportedToCompiler_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
explicitlyExportedToCompiler_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
actuals_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
actuals_.add(input.readMessage(org.jetbrains.kotlin.backend.common.serialization.proto.Actual.PARSER, extensionRegistry));
break;
}
}
}
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
declarationId_ = java.util.Collections.unmodifiableList(declarationId_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fqName_ = java.util.Collections.unmodifiableList(fqName_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
annotation_ = java.util.Collections.unmodifiableList(annotation_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
explicitlyExportedToCompiler_ = java.util.Collections.unmodifiableList(explicitlyExportedToCompiler_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
actuals_ = java.util.Collections.unmodifiableList(actuals_);
}
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static org.jetbrains.kotlin.protobuf.Parser PARSER =
new org.jetbrains.kotlin.protobuf.AbstractParser() {
public IrFile parsePartialFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return new IrFile(input, extensionRegistry);
}
};
@java.lang.Override
public org.jetbrains.kotlin.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int DECLARATION_ID_FIELD_NUMBER = 1;
private java.util.List declarationId_;
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public java.util.List
getDeclarationIdList() {
return declarationId_;
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public int getDeclarationIdCount() {
return declarationId_.size();
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public int getDeclarationId(int index) {
return declarationId_.get(index);
}
private int declarationIdMemoizedSerializedSize = -1;
public static final int FILE_ENTRY_FIELD_NUMBER = 2;
private org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry fileEntry_;
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public boolean hasFileEntry() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry getFileEntry() {
return fileEntry_;
}
public static final int FQ_NAME_FIELD_NUMBER = 3;
private java.util.List fqName_;
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public java.util.List
getFqNameList() {
return fqName_;
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public int getFqNameCount() {
return fqName_.size();
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public int getFqName(int index) {
return fqName_.get(index);
}
private int fqNameMemoizedSerializedSize = -1;
public static final int ANNOTATION_FIELD_NUMBER = 4;
private java.util.List annotation_;
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public java.util.List getAnnotationList() {
return annotation_;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public java.util.List
getAnnotationOrBuilderList() {
return annotation_;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public int getAnnotationCount() {
return annotation_.size();
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) {
return annotation_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCallOrBuilder getAnnotationOrBuilder(
int index) {
return annotation_.get(index);
}
public static final int EXPLICITLY_EXPORTED_TO_COMPILER_FIELD_NUMBER = 5;
private java.util.List explicitlyExportedToCompiler_;
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public java.util.List
getExplicitlyExportedToCompilerList() {
return explicitlyExportedToCompiler_;
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public int getExplicitlyExportedToCompilerCount() {
return explicitlyExportedToCompiler_.size();
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public long getExplicitlyExportedToCompiler(int index) {
return explicitlyExportedToCompiler_.get(index);
}
private int explicitlyExportedToCompilerMemoizedSerializedSize = -1;
public static final int ACTUALS_FIELD_NUMBER = 6;
private java.util.List actuals_;
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public java.util.List getActualsList() {
return actuals_;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public java.util.List
getActualsOrBuilderList() {
return actuals_;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public int getActualsCount() {
return actuals_.size();
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.Actual getActuals(int index) {
return actuals_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.ActualOrBuilder getActualsOrBuilder(
int index) {
return actuals_.get(index);
}
private void initFields() {
declarationId_ = java.util.Collections.emptyList();
fileEntry_ = org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance();
fqName_ = java.util.Collections.emptyList();
annotation_ = java.util.Collections.emptyList();
explicitlyExportedToCompiler_ = java.util.Collections.emptyList();
actuals_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasFileEntry()) {
memoizedIsInitialized = 0;
return false;
}
if (!getFileEntry().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getAnnotationCount(); i++) {
if (!getAnnotation(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getActualsCount(); i++) {
if (!getActuals(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getDeclarationIdList().size() > 0) {
output.writeRawVarint32(10);
output.writeRawVarint32(declarationIdMemoizedSerializedSize);
}
for (int i = 0; i < declarationId_.size(); i++) {
output.writeInt32NoTag(declarationId_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, fileEntry_);
}
if (getFqNameList().size() > 0) {
output.writeRawVarint32(26);
output.writeRawVarint32(fqNameMemoizedSerializedSize);
}
for (int i = 0; i < fqName_.size(); i++) {
output.writeInt32NoTag(fqName_.get(i));
}
for (int i = 0; i < annotation_.size(); i++) {
output.writeMessage(4, annotation_.get(i));
}
if (getExplicitlyExportedToCompilerList().size() > 0) {
output.writeRawVarint32(42);
output.writeRawVarint32(explicitlyExportedToCompilerMemoizedSerializedSize);
}
for (int i = 0; i < explicitlyExportedToCompiler_.size(); i++) {
output.writeInt64NoTag(explicitlyExportedToCompiler_.get(i));
}
for (int i = 0; i < actuals_.size(); i++) {
output.writeMessage(6, actuals_.get(i));
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < declarationId_.size(); i++) {
dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32SizeNoTag(declarationId_.get(i));
}
size += dataSize;
if (!getDeclarationIdList().isEmpty()) {
size += 1;
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
declarationIdMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(2, fileEntry_);
}
{
int dataSize = 0;
for (int i = 0; i < fqName_.size(); i++) {
dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32SizeNoTag(fqName_.get(i));
}
size += dataSize;
if (!getFqNameList().isEmpty()) {
size += 1;
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
fqNameMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < annotation_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(4, annotation_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < explicitlyExportedToCompiler_.size(); i++) {
dataSize += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt64SizeNoTag(explicitlyExportedToCompiler_.get(i));
}
size += dataSize;
if (!getExplicitlyExportedToCompilerList().isEmpty()) {
size += 1;
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
explicitlyExportedToCompilerMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < actuals_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(6, actuals_.get(i));
}
size += unknownFields.size();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(
byte[] data,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(
java.io.InputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseDelimitedFrom(
java.io.InputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.jetbrains.kotlin.backend.common.serialization.proto.IrFile prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrFile}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
org.jetbrains.kotlin.backend.common.serialization.proto.IrFile, Builder>
implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.backend.common.serialization.proto.IrFile)
org.jetbrains.kotlin.backend.common.serialization.proto.IrFileOrBuilder {
// Construct using org.jetbrains.kotlin.backend.common.serialization.proto.IrFile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
declarationId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
fileEntry_ = org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
fqName_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
annotation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
explicitlyExportedToCompiler_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
actuals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.backend.common.serialization.proto.IrFile getDefaultInstanceForType() {
return org.jetbrains.kotlin.backend.common.serialization.proto.IrFile.getDefaultInstance();
}
public org.jetbrains.kotlin.backend.common.serialization.proto.IrFile build() {
org.jetbrains.kotlin.backend.common.serialization.proto.IrFile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.backend.common.serialization.proto.IrFile buildPartial() {
org.jetbrains.kotlin.backend.common.serialization.proto.IrFile result = new org.jetbrains.kotlin.backend.common.serialization.proto.IrFile(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
declarationId_ = java.util.Collections.unmodifiableList(declarationId_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.declarationId_ = declarationId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.fileEntry_ = fileEntry_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
fqName_ = java.util.Collections.unmodifiableList(fqName_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fqName_ = fqName_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
annotation_ = java.util.Collections.unmodifiableList(annotation_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.annotation_ = annotation_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
explicitlyExportedToCompiler_ = java.util.Collections.unmodifiableList(explicitlyExportedToCompiler_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.explicitlyExportedToCompiler_ = explicitlyExportedToCompiler_;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
actuals_ = java.util.Collections.unmodifiableList(actuals_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.actuals_ = actuals_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.backend.common.serialization.proto.IrFile other) {
if (other == org.jetbrains.kotlin.backend.common.serialization.proto.IrFile.getDefaultInstance()) return this;
if (!other.declarationId_.isEmpty()) {
if (declarationId_.isEmpty()) {
declarationId_ = other.declarationId_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeclarationIdIsMutable();
declarationId_.addAll(other.declarationId_);
}
}
if (other.hasFileEntry()) {
mergeFileEntry(other.getFileEntry());
}
if (!other.fqName_.isEmpty()) {
if (fqName_.isEmpty()) {
fqName_ = other.fqName_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFqNameIsMutable();
fqName_.addAll(other.fqName_);
}
}
if (!other.annotation_.isEmpty()) {
if (annotation_.isEmpty()) {
annotation_ = other.annotation_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAnnotationIsMutable();
annotation_.addAll(other.annotation_);
}
}
if (!other.explicitlyExportedToCompiler_.isEmpty()) {
if (explicitlyExportedToCompiler_.isEmpty()) {
explicitlyExportedToCompiler_ = other.explicitlyExportedToCompiler_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureExplicitlyExportedToCompilerIsMutable();
explicitlyExportedToCompiler_.addAll(other.explicitlyExportedToCompiler_);
}
}
if (!other.actuals_.isEmpty()) {
if (actuals_.isEmpty()) {
actuals_ = other.actuals_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureActualsIsMutable();
actuals_.addAll(other.actuals_);
}
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
if (!hasFileEntry()) {
return false;
}
if (!getFileEntry().isInitialized()) {
return false;
}
for (int i = 0; i < getAnnotationCount(); i++) {
if (!getAnnotation(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getActualsCount(); i++) {
if (!getActuals(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.jetbrains.kotlin.backend.common.serialization.proto.IrFile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.backend.common.serialization.proto.IrFile) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List declarationId_ = java.util.Collections.emptyList();
private void ensureDeclarationIdIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
declarationId_ = new java.util.ArrayList(declarationId_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public java.util.List
getDeclarationIdList() {
return java.util.Collections.unmodifiableList(declarationId_);
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public int getDeclarationIdCount() {
return declarationId_.size();
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public int getDeclarationId(int index) {
return declarationId_.get(index);
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public Builder setDeclarationId(
int index, int value) {
ensureDeclarationIdIsMutable();
declarationId_.set(index, value);
return this;
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public Builder addDeclarationId(int value) {
ensureDeclarationIdIsMutable();
declarationId_.add(value);
return this;
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public Builder addAllDeclarationId(
java.lang.Iterable values) {
ensureDeclarationIdIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, declarationId_);
return this;
}
/**
* repeated int32 declaration_id = 1 [packed = true];
*/
public Builder clearDeclarationId() {
declarationId_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
private org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry fileEntry_ = org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance();
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public boolean hasFileEntry() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry getFileEntry() {
return fileEntry_;
}
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public Builder setFileEntry(org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry value) {
if (value == null) {
throw new NullPointerException();
}
fileEntry_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public Builder setFileEntry(
org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.Builder builderForValue) {
fileEntry_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public Builder mergeFileEntry(org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
fileEntry_ != org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance()) {
fileEntry_ =
org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.newBuilder(fileEntry_).mergeFrom(value).buildPartial();
} else {
fileEntry_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry file_entry = 2;
*/
public Builder clearFileEntry() {
fileEntry_ = org.jetbrains.kotlin.backend.common.serialization.proto.FileEntry.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
private java.util.List fqName_ = java.util.Collections.emptyList();
private void ensureFqNameIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
fqName_ = new java.util.ArrayList(fqName_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public java.util.List
getFqNameList() {
return java.util.Collections.unmodifiableList(fqName_);
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public int getFqNameCount() {
return fqName_.size();
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public int getFqName(int index) {
return fqName_.get(index);
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public Builder setFqName(
int index, int value) {
ensureFqNameIsMutable();
fqName_.set(index, value);
return this;
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public Builder addFqName(int value) {
ensureFqNameIsMutable();
fqName_.add(value);
return this;
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public Builder addAllFqName(
java.lang.Iterable values) {
ensureFqNameIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, fqName_);
return this;
}
/**
* repeated int32 fq_name = 3 [packed = true];
*/
public Builder clearFqName() {
fqName_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
private java.util.List annotation_ =
java.util.Collections.emptyList();
private void ensureAnnotationIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
annotation_ = new java.util.ArrayList(annotation_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public java.util.List getAnnotationList() {
return java.util.Collections.unmodifiableList(annotation_);
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public int getAnnotationCount() {
return annotation_.size();
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index) {
return annotation_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder setAnnotation(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) {
if (value == null) {
throw new NullPointerException();
}
ensureAnnotationIsMutable();
annotation_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder setAnnotation(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) {
ensureAnnotationIsMutable();
annotation_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder addAnnotation(org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) {
if (value == null) {
throw new NullPointerException();
}
ensureAnnotationIsMutable();
annotation_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder addAnnotation(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall value) {
if (value == null) {
throw new NullPointerException();
}
ensureAnnotationIsMutable();
annotation_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder addAnnotation(
org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) {
ensureAnnotationIsMutable();
annotation_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder addAnnotation(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall.Builder builderForValue) {
ensureAnnotationIsMutable();
annotation_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder addAllAnnotation(
java.lang.Iterable values) {
ensureAnnotationIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, annotation_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder clearAnnotation() {
annotation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall annotation = 4;
*/
public Builder removeAnnotation(int index) {
ensureAnnotationIsMutable();
annotation_.remove(index);
return this;
}
private java.util.List explicitlyExportedToCompiler_ = java.util.Collections.emptyList();
private void ensureExplicitlyExportedToCompilerIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
explicitlyExportedToCompiler_ = new java.util.ArrayList(explicitlyExportedToCompiler_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public java.util.List
getExplicitlyExportedToCompilerList() {
return java.util.Collections.unmodifiableList(explicitlyExportedToCompiler_);
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public int getExplicitlyExportedToCompilerCount() {
return explicitlyExportedToCompiler_.size();
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public long getExplicitlyExportedToCompiler(int index) {
return explicitlyExportedToCompiler_.get(index);
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public Builder setExplicitlyExportedToCompiler(
int index, long value) {
ensureExplicitlyExportedToCompilerIsMutable();
explicitlyExportedToCompiler_.set(index, value);
return this;
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public Builder addExplicitlyExportedToCompiler(long value) {
ensureExplicitlyExportedToCompilerIsMutable();
explicitlyExportedToCompiler_.add(value);
return this;
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public Builder addAllExplicitlyExportedToCompiler(
java.lang.Iterable values) {
ensureExplicitlyExportedToCompilerIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, explicitlyExportedToCompiler_);
return this;
}
/**
* repeated int64 explicitly_exported_to_compiler = 5 [packed = true];
*/
public Builder clearExplicitlyExportedToCompiler() {
explicitlyExportedToCompiler_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
private java.util.List actuals_ =
java.util.Collections.emptyList();
private void ensureActualsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
actuals_ = new java.util.ArrayList(actuals_);
bitField0_ |= 0x00000020;
}
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public java.util.List getActualsList() {
return java.util.Collections.unmodifiableList(actuals_);
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public int getActualsCount() {
return actuals_.size();
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public org.jetbrains.kotlin.backend.common.serialization.proto.Actual getActuals(int index) {
return actuals_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder setActuals(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.Actual value) {
if (value == null) {
throw new NullPointerException();
}
ensureActualsIsMutable();
actuals_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder setActuals(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.Actual.Builder builderForValue) {
ensureActualsIsMutable();
actuals_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder addActuals(org.jetbrains.kotlin.backend.common.serialization.proto.Actual value) {
if (value == null) {
throw new NullPointerException();
}
ensureActualsIsMutable();
actuals_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder addActuals(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.Actual value) {
if (value == null) {
throw new NullPointerException();
}
ensureActualsIsMutable();
actuals_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder addActuals(
org.jetbrains.kotlin.backend.common.serialization.proto.Actual.Builder builderForValue) {
ensureActualsIsMutable();
actuals_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder addActuals(
int index, org.jetbrains.kotlin.backend.common.serialization.proto.Actual.Builder builderForValue) {
ensureActualsIsMutable();
actuals_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder addAllActuals(
java.lang.Iterable values) {
ensureActualsIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, actuals_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder clearActuals() {
actuals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* repeated .org.jetbrains.kotlin.backend.common.serialization.proto.Actual actuals = 6;
*/
public Builder removeActuals(int index) {
ensureActualsIsMutable();
actuals_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrFile)
}
static {
defaultInstance = new IrFile(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.backend.common.serialization.proto.IrFile)
}