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.
*/
public static final int INTERNAL_VALUE = 0;
/**
* PRIVATE = 1;
*/
public static final int PRIVATE_VALUE = 1;
/**
* PROTECTED = 2;
*/
public static final int PROTECTED_VALUE = 2;
/**
* PUBLIC = 3;
*/
public static final int PUBLIC_VALUE = 3;
/**
* PRIVATE_TO_THIS = 4;
*/
public static final int PRIVATE_TO_THIS_VALUE = 4;
/**
* LOCAL = 5;
*/
public static final int LOCAL_VALUE = 5;
public final int getNumber() { return value; }
public static Visibility valueOf(int value) {
switch (value) {
case 0: return INTERNAL;
case 1: return PRIVATE;
case 2: return PROTECTED;
case 3: return PUBLIC;
case 4: return PRIVATE_TO_THIS;
case 5: return LOCAL;
default: return null;
}
}
public static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap
internalValueMap =
new org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap() {
public Visibility findValueByNumber(int number) {
return Visibility.valueOf(number);
}
};
private final int value;
private Visibility(int index, int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org.jetbrains.kotlin.metadata.Visibility)
}
/**
* Protobuf enum {@code org.jetbrains.kotlin.metadata.MemberKind}
*/
public enum MemberKind
implements org.jetbrains.kotlin.protobuf.Internal.EnumLite {
/**
* DECLARATION = 0;
*
*
*/
public Builder clearShortName() {
bitField0_ = (bitField0_ & ~0x00000002);
shortName_ = 0;
return this;
}
private org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Kind kind_ = org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE;
/**
* optional .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Kind getKind() {
return kind_;
}
/**
* optional .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];
*/
public Builder setKind(org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Kind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
kind_ = value;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName.Kind kind = 3 [default = PACKAGE];
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000004);
kind_ = org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Kind.PACKAGE;
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName)
}
static {
defaultInstance = new QualifiedName(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName)
}
public static final int QUALIFIED_NAME_FIELD_NUMBER = 1;
private java.util.List qualifiedName_;
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public java.util.List getQualifiedNameList() {
return qualifiedName_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public java.util.List
getQualifiedNameOrBuilderList() {
return qualifiedName_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public int getQualifiedNameCount() {
return qualifiedName_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedName(int index) {
return qualifiedName_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedNameOrBuilder getQualifiedNameOrBuilder(
int index) {
return qualifiedName_.get(index);
}
private void initFields() {
qualifiedName_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getQualifiedNameCount(); i++) {
if (!getQualifiedName(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < qualifiedName_.size(); i++) {
output.writeMessage(1, qualifiedName_.get(i));
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < qualifiedName_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(1, qualifiedName_.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.metadata.ProtoBuf.QualifiedNameTable parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable 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.metadata.ProtoBuf.QualifiedNameTable parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable 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.metadata.ProtoBuf.QualifiedNameTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable 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.metadata.ProtoBuf.QualifiedNameTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable 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.metadata.ProtoBuf.QualifiedNameTable parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable 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.metadata.ProtoBuf.QualifiedNameTable prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.QualifiedNameTable}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable, Builder>
implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.metadata.QualifiedNameTable)
org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTableOrBuilder {
// Construct using org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
qualifiedName_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable getDefaultInstanceForType() {
return org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.getDefaultInstance();
}
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable build() {
org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable buildPartial() {
org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable result = new org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
qualifiedName_ = java.util.Collections.unmodifiableList(qualifiedName_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.qualifiedName_ = qualifiedName_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable other) {
if (other == org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.getDefaultInstance()) return this;
if (!other.qualifiedName_.isEmpty()) {
if (qualifiedName_.isEmpty()) {
qualifiedName_ = other.qualifiedName_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQualifiedNameIsMutable();
qualifiedName_.addAll(other.qualifiedName_);
}
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getQualifiedNameCount(); i++) {
if (!getQualifiedName(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.metadata.ProtoBuf.QualifiedNameTable parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List qualifiedName_ =
java.util.Collections.emptyList();
private void ensureQualifiedNameIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
qualifiedName_ = new java.util.ArrayList(qualifiedName_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public java.util.List getQualifiedNameList() {
return java.util.Collections.unmodifiableList(qualifiedName_);
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public int getQualifiedNameCount() {
return qualifiedName_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName getQualifiedName(int index) {
return qualifiedName_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder setQualifiedName(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName value) {
if (value == null) {
throw new NullPointerException();
}
ensureQualifiedNameIsMutable();
qualifiedName_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder setQualifiedName(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) {
ensureQualifiedNameIsMutable();
qualifiedName_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder addQualifiedName(org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName value) {
if (value == null) {
throw new NullPointerException();
}
ensureQualifiedNameIsMutable();
qualifiedName_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder addQualifiedName(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName value) {
if (value == null) {
throw new NullPointerException();
}
ensureQualifiedNameIsMutable();
qualifiedName_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder addQualifiedName(
org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) {
ensureQualifiedNameIsMutable();
qualifiedName_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder addQualifiedName(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.QualifiedNameTable.QualifiedName.Builder builderForValue) {
ensureQualifiedNameIsMutable();
qualifiedName_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder addAllQualifiedName(
java.lang.Iterable values) {
ensureQualifiedNameIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, qualifiedName_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder clearQualifiedName() {
qualifiedName_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.QualifiedNameTable.QualifiedName qualified_name = 1;
*/
public Builder removeQualifiedName(int index) {
ensureQualifiedNameIsMutable();
qualifiedName_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.QualifiedNameTable)
}
static {
defaultInstance = new QualifiedNameTable(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.QualifiedNameTable)
}
public interface AnnotationOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.metadata.Annotation)
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
/**
* required int32 id = 1;
*/
boolean hasId();
/**
* required int32 id = 1;
*/
int getId();
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
java.util.List
getArgumentList();
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument getArgument(int index);
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
int getArgumentCount();
}
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Annotation}
*/
public static final class Annotation extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.metadata.Annotation)
AnnotationOrBuilder {
// Use Annotation.newBuilder() to construct.
private Annotation(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Annotation(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
private static final Annotation defaultInstance;
public static Annotation getDefaultInstance() {
return defaultInstance;
}
public Annotation getDefaultInstanceForType() {
return defaultInstance;
}
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
private Annotation(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput =
org.jetbrains.kotlin.protobuf.ByteString.newOutput();
org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput =
org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput, 1);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
id_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
argument_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
argument_.add(input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.PARSER, extensionRegistry));
break;
}
}
}
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
argument_ = java.util.Collections.unmodifiableList(argument_);
}
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 Annotation parsePartialFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return new Annotation(input, extensionRegistry);
}
};
@java.lang.Override
public org.jetbrains.kotlin.protobuf.Parser getParserForType() {
return PARSER;
}
public interface ArgumentOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.metadata.Annotation.Argument)
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
/**
* required int32 name_id = 1;
*/
boolean hasNameId();
/**
* required int32 name_id = 1;
*/
int getNameId();
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
boolean hasValue();
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value getValue();
}
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Annotation.Argument}
*/
public static final class Argument extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.metadata.Annotation.Argument)
ArgumentOrBuilder {
// Use Argument.newBuilder() to construct.
private Argument(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Argument(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
private static final Argument defaultInstance;
public static Argument getDefaultInstance() {
return defaultInstance;
}
public Argument getDefaultInstanceForType() {
return defaultInstance;
}
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
private Argument(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput =
org.jetbrains.kotlin.protobuf.ByteString.newOutput();
org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput =
org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput, 1);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
nameId_ = input.readInt32();
break;
}
case 18: {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static org.jetbrains.kotlin.protobuf.Parser PARSER =
new org.jetbrains.kotlin.protobuf.AbstractParser() {
public Argument parsePartialFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return new Argument(input, extensionRegistry);
}
};
@java.lang.Override
public org.jetbrains.kotlin.protobuf.Parser getParserForType() {
return PARSER;
}
public interface ValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.metadata.Annotation.Argument.Value)
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
/**
* optional .org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type type = 1;
*
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
*/
int getFlags();
}
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Annotation.Argument.Value}
*/
public static final class Value extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.metadata.Annotation.Argument.Value)
ValueOrBuilder {
// Use Value.newBuilder() to construct.
private Value(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Value(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
private static final Value defaultInstance;
public static Value getDefaultInstance() {
return defaultInstance;
}
public Value getDefaultInstanceForType() {
return defaultInstance;
}
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
private Value(
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: {
int rawValue = input.readEnum();
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type value = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type.valueOf(rawValue);
if (value == null) {
unknownFieldsCodedOutput.writeRawVarint32(tag);
unknownFieldsCodedOutput.writeRawVarint32(rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
intValue_ = input.readSInt64();
break;
}
case 29: {
bitField0_ |= 0x00000004;
floatValue_ = input.readFloat();
break;
}
case 33: {
bitField0_ |= 0x00000008;
doubleValue_ = input.readDouble();
break;
}
case 40: {
bitField0_ |= 0x00000010;
stringValue_ = input.readInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
classId_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
enumValueId_ = input.readInt32();
break;
}
case 66: {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = annotation_.toBuilder();
}
annotation_ = input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(annotation_);
annotation_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
arrayElement_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
arrayElement_.add(input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.PARSER, extensionRegistry));
break;
}
case 80: {
bitField0_ |= 0x00000200;
flags_ = input.readInt32();
break;
}
case 88: {
bitField0_ |= 0x00000100;
arrayDimensionCount_ = input.readInt32();
break;
}
}
}
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
arrayElement_ = java.util.Collections.unmodifiableList(arrayElement_);
}
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 Value parsePartialFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return new Value(input, extensionRegistry);
}
};
@java.lang.Override
public org.jetbrains.kotlin.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type}
*/
public enum Type
implements org.jetbrains.kotlin.protobuf.Internal.EnumLite {
/**
* BYTE = 0;
*/
BYTE(0, 0),
/**
* CHAR = 1;
*/
CHAR(1, 1),
/**
* SHORT = 2;
*/
SHORT(2, 2),
/**
* INT = 3;
*/
INT(3, 3),
/**
* LONG = 4;
*/
LONG(4, 4),
/**
* FLOAT = 5;
*/
FLOAT(5, 5),
/**
* DOUBLE = 6;
*/
DOUBLE(6, 6),
/**
* BOOLEAN = 7;
*/
BOOLEAN(7, 7),
/**
* STRING = 8;
*/
STRING(8, 8),
/**
* CLASS = 9;
*/
CLASS(9, 9),
/**
* ENUM = 10;
*/
ENUM(10, 10),
/**
* ANNOTATION = 11;
*/
ANNOTATION(11, 11),
/**
* ARRAY = 12;
*/
ARRAY(12, 12),
;
/**
* BYTE = 0;
*/
public static final int BYTE_VALUE = 0;
/**
* CHAR = 1;
*/
public static final int CHAR_VALUE = 1;
/**
* SHORT = 2;
*/
public static final int SHORT_VALUE = 2;
/**
* INT = 3;
*/
public static final int INT_VALUE = 3;
/**
* LONG = 4;
*/
public static final int LONG_VALUE = 4;
/**
* FLOAT = 5;
*/
public static final int FLOAT_VALUE = 5;
/**
* DOUBLE = 6;
*/
public static final int DOUBLE_VALUE = 6;
/**
* BOOLEAN = 7;
*/
public static final int BOOLEAN_VALUE = 7;
/**
* STRING = 8;
*/
public static final int STRING_VALUE = 8;
/**
* CLASS = 9;
*/
public static final int CLASS_VALUE = 9;
/**
* ENUM = 10;
*/
public static final int ENUM_VALUE = 10;
/**
* ANNOTATION = 11;
*/
public static final int ANNOTATION_VALUE = 11;
/**
* ARRAY = 12;
*/
public static final int ARRAY_VALUE = 12;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 0: return BYTE;
case 1: return CHAR;
case 2: return SHORT;
case 3: return INT;
case 4: return LONG;
case 5: return FLOAT;
case 6: return DOUBLE;
case 7: return BOOLEAN;
case 8: return STRING;
case 9: return CLASS;
case 10: return ENUM;
case 11: return ANNOTATION;
case 12: return ARRAY;
default: return null;
}
}
public static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap
internalValueMap =
new org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
private final int value;
private Type(int index, int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type type_;
/**
* optional .org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type type = 1;
*
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type getType() {
return type_;
}
public static final int INT_VALUE_FIELD_NUMBER = 2;
private long intValue_;
/**
* optional sint64 int_value = 2;
*/
public boolean hasIntValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint64 int_value = 2;
*/
public long getIntValue() {
return intValue_;
}
public static final int FLOAT_VALUE_FIELD_NUMBER = 3;
private float floatValue_;
/**
* optional float float_value = 3;
*/
public boolean hasFloatValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional float float_value = 3;
*/
public float getFloatValue() {
return floatValue_;
}
public static final int DOUBLE_VALUE_FIELD_NUMBER = 4;
private double doubleValue_;
/**
* optional double double_value = 4;
*/
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double double_value = 4;
*/
public double getDoubleValue() {
return doubleValue_;
}
public static final int STRING_VALUE_FIELD_NUMBER = 5;
private int stringValue_;
/**
* optional int32 string_value = 5;
*/
public boolean hasStringValue() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 string_value = 5;
*/
public int getStringValue() {
return stringValue_;
}
public static final int CLASS_ID_FIELD_NUMBER = 6;
private int classId_;
/**
* optional int32 class_id = 6;
*
*
* If type = CLASS, FQ name of the referenced class; if type = ENUM, FQ name of the enum class
*
* If type = CLASS, FQ name of the referenced class; if type = ENUM, FQ name of the enum class
*
*/
public int getClassId() {
return classId_;
}
public static final int ENUM_VALUE_ID_FIELD_NUMBER = 7;
private int enumValueId_;
/**
* optional int32 enum_value_id = 7;
*/
public boolean hasEnumValueId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 enum_value_id = 7;
*/
public int getEnumValueId() {
return enumValueId_;
}
public static final int ANNOTATION_FIELD_NUMBER = 8;
private org.jetbrains.kotlin.metadata.ProtoBuf.Annotation annotation_;
/**
* optional .org.jetbrains.kotlin.metadata.Annotation annotation = 8;
*/
public boolean hasAnnotation() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .org.jetbrains.kotlin.metadata.Annotation annotation = 8;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation getAnnotation() {
return annotation_;
}
public static final int ARRAY_ELEMENT_FIELD_NUMBER = 9;
private java.util.List arrayElement_;
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument.Value array_element = 9;
*/
public java.util.List getArrayElementList() {
return arrayElement_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument.Value array_element = 9;
*/
public java.util.List
getArrayElementOrBuilderList() {
return arrayElement_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument.Value array_element = 9;
*/
public int getArrayElementCount() {
return arrayElement_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument.Value array_element = 9;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value getArrayElement(int index) {
return arrayElement_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument.Value array_element = 9;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.ValueOrBuilder getArrayElementOrBuilder(
int index) {
return arrayElement_.get(index);
}
public static final int ARRAY_DIMENSION_COUNT_FIELD_NUMBER = 11;
private int arrayDimensionCount_;
/**
* optional int32 array_dimension_count = 11 [default = 0];
*
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
*/
public int getArrayDimensionCount() {
return arrayDimensionCount_;
}
public static final int FLAGS_FIELD_NUMBER = 10;
private int flags_;
/**
* optional int32 flags = 10 [default = 0];
*
*
*/
public int getFlags() {
return flags_;
}
private void initFields() {
type_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type.BYTE;
intValue_ = 0L;
floatValue_ = 0F;
doubleValue_ = 0D;
stringValue_ = 0;
classId_ = 0;
enumValueId_ = 0;
annotation_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.getDefaultInstance();
arrayElement_ = java.util.Collections.emptyList();
arrayDimensionCount_ = 0;
flags_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasAnnotation()) {
if (!getAnnotation().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getArrayElementCount(); i++) {
if (!getArrayElement(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt64(2, intValue_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, floatValue_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, doubleValue_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, stringValue_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, classId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(7, enumValueId_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, annotation_);
}
for (int i = 0; i < arrayElement_.size(); i++) {
output.writeMessage(9, arrayElement_.get(i));
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt32(10, flags_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(11, arrayDimensionCount_);
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeEnumSize(1, type_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeSInt64Size(2, intValue_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeFloatSize(3, floatValue_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeDoubleSize(4, doubleValue_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(5, stringValue_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(6, classId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(7, enumValueId_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(8, annotation_);
}
for (int i = 0; i < arrayElement_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(9, arrayElement_.get(i));
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(10, flags_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(11, arrayDimensionCount_);
}
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.metadata.ProtoBuf.Annotation.Argument.Value parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value 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.metadata.ProtoBuf.Annotation.Argument.Value parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value 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.metadata.ProtoBuf.Annotation.Argument.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value 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.metadata.ProtoBuf.Annotation.Argument.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value 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.metadata.ProtoBuf.Annotation.Argument.Value parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value 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.metadata.ProtoBuf.Annotation.Argument.Value prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Annotation.Argument.Value}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value, Builder>
implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.metadata.Annotation.Argument.Value)
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.ValueOrBuilder {
// Construct using org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type.BYTE;
bitField0_ = (bitField0_ & ~0x00000001);
intValue_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
floatValue_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
doubleValue_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
stringValue_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
classId_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
enumValueId_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
annotation_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000080);
arrayElement_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
arrayDimensionCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
flags_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value getDefaultInstanceForType() {
return org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance();
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value build() {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value buildPartial() {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value result = new org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.intValue_ = intValue_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.floatValue_ = floatValue_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.doubleValue_ = doubleValue_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.stringValue_ = stringValue_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.classId_ = classId_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.enumValueId_ = enumValueId_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.annotation_ = annotation_;
if (((bitField0_ & 0x00000100) == 0x00000100)) {
arrayElement_ = java.util.Collections.unmodifiableList(arrayElement_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.arrayElement_ = arrayElement_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000100;
}
result.arrayDimensionCount_ = arrayDimensionCount_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000200;
}
result.flags_ = flags_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value other) {
if (other == org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasIntValue()) {
setIntValue(other.getIntValue());
}
if (other.hasFloatValue()) {
setFloatValue(other.getFloatValue());
}
if (other.hasDoubleValue()) {
setDoubleValue(other.getDoubleValue());
}
if (other.hasStringValue()) {
setStringValue(other.getStringValue());
}
if (other.hasClassId()) {
setClassId(other.getClassId());
}
if (other.hasEnumValueId()) {
setEnumValueId(other.getEnumValueId());
}
if (other.hasAnnotation()) {
mergeAnnotation(other.getAnnotation());
}
if (!other.arrayElement_.isEmpty()) {
if (arrayElement_.isEmpty()) {
arrayElement_ = other.arrayElement_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureArrayElementIsMutable();
arrayElement_.addAll(other.arrayElement_);
}
}
if (other.hasArrayDimensionCount()) {
setArrayDimensionCount(other.getArrayDimensionCount());
}
if (other.hasFlags()) {
setFlags(other.getFlags());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
if (hasAnnotation()) {
if (!getAnnotation().isInitialized()) {
return false;
}
}
for (int i = 0; i < getArrayElementCount(); i++) {
if (!getArrayElement(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.metadata.ProtoBuf.Annotation.Argument.Value parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type type_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type.BYTE;
/**
* optional .org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type type = 1;
*
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type getType() {
return type_;
}
/**
* optional .org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type type = 1;
*
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
*/
public Builder setType(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.Annotation.Argument.Value.Type type = 1;
*
*
* Note: a *Value* has a Type, not an Argument! This is done for future language features which may involve using arrays
* of elements of different types. Such entries are allowed in the constant pool of JVM class files.
* However, to save space, this field is optional: in case of homogeneous arrays, only the type of the first element is required
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
*/
public int getArrayDimensionCount() {
return arrayDimensionCount_;
}
/**
* optional int32 array_dimension_count = 11 [default = 0];
*
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
* If type = CLASS, the number of dimensions of the array of the class specified in class_id.
* E.g. if class_id = kotlin/String, this annotation argument value denotes:
* - String::class, if array_dimension_count = 0
* - Array<String>::class, if array_dimension_count = 1
* - Array<Array<String>>::class, if array_dimension_count = 2
* - etc.
* Other forms of array class literals are not supported by this format, see KT-26568
*
*/
public Builder clearFlags() {
bitField0_ = (bitField0_ & ~0x00000400);
flags_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.Annotation.Argument.Value)
}
static {
defaultInstance = new Value(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.Annotation.Argument.Value)
}
private int bitField0_;
public static final int NAME_ID_FIELD_NUMBER = 1;
private int nameId_;
/**
* required int32 name_id = 1;
*/
public boolean hasNameId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 name_id = 1;
*/
public int getNameId() {
return nameId_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value value_;
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value getValue() {
return value_;
}
private void initFields() {
nameId_ = 0;
value_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasNameId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
if (!getValue().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, nameId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, value_);
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(1, nameId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(2, value_);
}
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.metadata.ProtoBuf.Annotation.Argument parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument 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.metadata.ProtoBuf.Annotation.Argument parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument 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.metadata.ProtoBuf.Annotation.Argument parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument 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.metadata.ProtoBuf.Annotation.Argument parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument 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.metadata.ProtoBuf.Annotation.Argument parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument 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.metadata.ProtoBuf.Annotation.Argument prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Annotation.Argument}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument, Builder>
implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.metadata.Annotation.Argument)
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.ArgumentOrBuilder {
// Construct using org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
nameId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
value_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument getDefaultInstanceForType() {
return org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.getDefaultInstance();
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument build() {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument buildPartial() {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument result = new org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.nameId_ = nameId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument other) {
if (other == org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.getDefaultInstance()) return this;
if (other.hasNameId()) {
setNameId(other.getNameId());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
if (!hasNameId()) {
return false;
}
if (!hasValue()) {
return false;
}
if (!getValue().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.metadata.ProtoBuf.Annotation.Argument parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int nameId_ ;
/**
* required int32 name_id = 1;
*/
public boolean hasNameId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 name_id = 1;
*/
public int getNameId() {
return nameId_;
}
/**
* required int32 name_id = 1;
*/
public Builder setNameId(int value) {
bitField0_ |= 0x00000001;
nameId_ = value;
return this;
}
/**
* required int32 name_id = 1;
*/
public Builder clearNameId() {
bitField0_ = (bitField0_ & ~0x00000001);
nameId_ = 0;
return this;
}
private org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value value_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance();
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value getValue() {
return value_;
}
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public Builder setValue(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
bitField0_ |= 0x00000002;
return this;
}
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public Builder setValue(
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.Builder builderForValue) {
value_ = builderForValue.build();
bitField0_ |= 0x00000002;
return this;
}
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public Builder mergeValue(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value value) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
value_ != org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance()) {
value_ =
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .org.jetbrains.kotlin.metadata.Annotation.Argument.Value value = 2;
*/
public Builder clearValue() {
value_ = org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Value.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.Annotation.Argument)
}
static {
defaultInstance = new Argument(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.Annotation.Argument)
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* required int32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 id = 1;
*/
public int getId() {
return id_;
}
public static final int ARGUMENT_FIELD_NUMBER = 2;
private java.util.List argument_;
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public java.util.List getArgumentList() {
return argument_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public java.util.List
getArgumentOrBuilderList() {
return argument_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public int getArgumentCount() {
return argument_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument getArgument(int index) {
return argument_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.ArgumentOrBuilder getArgumentOrBuilder(
int index) {
return argument_.get(index);
}
private void initFields() {
id_ = 0;
argument_ = 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 (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getArgumentCount(); i++) {
if (!getArgument(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, id_);
}
for (int i = 0; i < argument_.size(); i++) {
output.writeMessage(2, argument_.get(i));
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
for (int i = 0; i < argument_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(2, argument_.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.metadata.ProtoBuf.Annotation parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation 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.metadata.ProtoBuf.Annotation parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation 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.metadata.ProtoBuf.Annotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation 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.metadata.ProtoBuf.Annotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation 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.metadata.ProtoBuf.Annotation parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Annotation 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.metadata.ProtoBuf.Annotation prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Annotation}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation, Builder>
implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.metadata.Annotation)
org.jetbrains.kotlin.metadata.ProtoBuf.AnnotationOrBuilder {
// Construct using org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
argument_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation getDefaultInstanceForType() {
return org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.getDefaultInstance();
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation build() {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation buildPartial() {
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation result = new org.jetbrains.kotlin.metadata.ProtoBuf.Annotation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
argument_ = java.util.Collections.unmodifiableList(argument_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.argument_ = argument_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation other) {
if (other == org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (!other.argument_.isEmpty()) {
if (argument_.isEmpty()) {
argument_ = other.argument_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureArgumentIsMutable();
argument_.addAll(other.argument_);
}
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
for (int i = 0; i < getArgumentCount(); i++) {
if (!getArgument(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.metadata.ProtoBuf.Annotation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.metadata.ProtoBuf.Annotation) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int id_ ;
/**
* required int32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 id = 1;
*/
public int getId() {
return id_;
}
/**
* required int32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
return this;
}
/**
* required int32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
return this;
}
private java.util.List argument_ =
java.util.Collections.emptyList();
private void ensureArgumentIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
argument_ = new java.util.ArrayList(argument_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public java.util.List getArgumentList() {
return java.util.Collections.unmodifiableList(argument_);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public int getArgumentCount() {
return argument_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument getArgument(int index) {
return argument_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder setArgument(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentIsMutable();
argument_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder setArgument(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Builder builderForValue) {
ensureArgumentIsMutable();
argument_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder addArgument(org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentIsMutable();
argument_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder addArgument(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument value) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentIsMutable();
argument_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder addArgument(
org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Builder builderForValue) {
ensureArgumentIsMutable();
argument_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder addArgument(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Annotation.Argument.Builder builderForValue) {
ensureArgumentIsMutable();
argument_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder addAllArgument(
java.lang.Iterable values) {
ensureArgumentIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, argument_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder clearArgument() {
argument_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Annotation.Argument argument = 2;
*/
public Builder removeArgument(int index) {
ensureArgumentIsMutable();
argument_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.Annotation)
}
static {
defaultInstance = new Annotation(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.Annotation)
}
public interface TypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.metadata.Type)
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.
ExtendableMessageOrBuilder {
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
java.util.List
getArgumentList();
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.Type.Argument getArgument(int index);
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
int getArgumentCount();
/**
* optional bool nullable = 3 [default = false];
*/
boolean hasNullable();
/**
* optional bool nullable = 3 [default = false];
*/
boolean getNullable();
/**
* optional int32 flexible_type_capabilities_id = 4;
*
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
* When projection is STAR, no type is written, otherwise type must be specified
*
*/
public Builder clearType() {
type_ = org.jetbrains.kotlin.metadata.ProtoBuf.Type.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
private int typeId_ ;
/**
* optional int32 type_id = 3;
*/
public boolean hasTypeId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 type_id = 3;
*/
public int getTypeId() {
return typeId_;
}
/**
* optional int32 type_id = 3;
*/
public Builder setTypeId(int value) {
bitField0_ |= 0x00000004;
typeId_ = value;
return this;
}
/**
* optional int32 type_id = 3;
*/
public Builder clearTypeId() {
bitField0_ = (bitField0_ & ~0x00000004);
typeId_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.Type.Argument)
}
static {
defaultInstance = new Argument(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.Type.Argument)
}
private int bitField0_;
public static final int ARGUMENT_FIELD_NUMBER = 2;
private java.util.List argument_;
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
public java.util.List getArgumentList() {
return argument_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
public java.util.List
getArgumentOrBuilderList() {
return argument_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
public int getArgumentCount() {
return argument_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Type.Argument getArgument(int index) {
return argument_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type.Argument argument = 2;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Type.ArgumentOrBuilder getArgumentOrBuilder(
int index) {
return argument_.get(index);
}
public static final int NULLABLE_FIELD_NUMBER = 3;
private boolean nullable_;
/**
* optional bool nullable = 3 [default = false];
*/
public boolean hasNullable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bool nullable = 3 [default = false];
*/
public boolean getNullable() {
return nullable_;
}
public static final int FLEXIBLE_TYPE_CAPABILITIES_ID_FIELD_NUMBER = 4;
private int flexibleTypeCapabilitiesId_;
/**
* optional int32 flexible_type_capabilities_id = 4;
*
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
*/
public int getFlexibleTypeCapabilitiesId() {
return flexibleTypeCapabilitiesId_;
}
public static final int FLEXIBLE_UPPER_BOUND_FIELD_NUMBER = 5;
private org.jetbrains.kotlin.metadata.ProtoBuf.Type flexibleUpperBound_;
/**
* optional .org.jetbrains.kotlin.metadata.Type flexible_upper_bound = 5;
*/
public boolean hasFlexibleUpperBound() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .org.jetbrains.kotlin.metadata.Type flexible_upper_bound = 5;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Type getFlexibleUpperBound() {
return flexibleUpperBound_;
}
public static final int FLEXIBLE_UPPER_BOUND_ID_FIELD_NUMBER = 8;
private int flexibleUpperBoundId_;
/**
* optional int32 flexible_upper_bound_id = 8;
*/
public boolean hasFlexibleUpperBoundId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 flexible_upper_bound_id = 8;
*/
public int getFlexibleUpperBoundId() {
return flexibleUpperBoundId_;
}
public static final int CLASS_NAME_FIELD_NUMBER = 6;
private int className_;
/**
* optional int32 class_name = 6;
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 class_name = 6;
*/
public int getClassName() {
return className_;
}
public static final int TYPE_PARAMETER_FIELD_NUMBER = 7;
private int typeParameter_;
/**
* optional int32 type_parameter = 7;
*
*
*/
public int getTypeParameter() {
return typeParameter_;
}
public static final int TYPE_PARAMETER_NAME_FIELD_NUMBER = 9;
private int typeParameterName_;
/**
* optional int32 type_parameter_name = 9;
*
*
* Name of the type parameter in the immediate owner
*
* Name of the type parameter in the immediate owner
*
*/
public int getTypeParameterName() {
return typeParameterName_;
}
public static final int TYPE_ALIAS_NAME_FIELD_NUMBER = 12;
private int typeAliasName_;
/**
* optional int32 type_alias_name = 12;
*
*
* Note that this may be present only for abbreviated_type
* Top level types are always fully expanded
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
*/
public int getFlexibleTypeCapabilitiesId() {
return flexibleTypeCapabilitiesId_;
}
/**
* optional int32 flexible_type_capabilities_id = 4;
*
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
* If this field is set, the type is flexible.
* All the other fields and extensions represent its lower bound, and flexible_upper_bound must be set and represents its upper bound.
*
*/
public static final int CLASS_VALUE = 0;
/**
* INTERFACE = 1;
*/
public static final int INTERFACE_VALUE = 1;
/**
* ENUM_CLASS = 2;
*/
public static final int ENUM_CLASS_VALUE = 2;
/**
* ENUM_ENTRY = 3;
*/
public static final int ENUM_ENTRY_VALUE = 3;
/**
* ANNOTATION_CLASS = 4;
*/
public static final int ANNOTATION_CLASS_VALUE = 4;
/**
* OBJECT = 5;
*/
public static final int OBJECT_VALUE = 5;
/**
* COMPANION_OBJECT = 6;
*/
public static final int COMPANION_OBJECT_VALUE = 6;
public final int getNumber() { return value; }
public static Kind valueOf(int value) {
switch (value) {
case 0: return CLASS;
case 1: return INTERFACE;
case 2: return ENUM_CLASS;
case 3: return ENUM_ENTRY;
case 4: return ANNOTATION_CLASS;
case 5: return OBJECT;
case 6: return COMPANION_OBJECT;
default: return null;
}
}
public static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap
internalValueMap =
new org.jetbrains.kotlin.protobuf.Internal.EnumLiteMap() {
public Kind findValueByNumber(int number) {
return Kind.valueOf(number);
}
};
private final int value;
private Kind(int index, int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org.jetbrains.kotlin.metadata.Class.Kind)
}
private int bitField0_;
public static final int FLAGS_FIELD_NUMBER = 1;
private int flags_;
/**
* optional int32 flags = 1 [default = 6];
*
*
*/
public Builder clearVersionRequirement() {
versionRequirement_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
private org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable versionRequirementTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance();
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public boolean hasVersionRequirementTable() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable getVersionRequirementTable() {
return versionRequirementTable_;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder setVersionRequirementTable(org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable value) {
if (value == null) {
throw new NullPointerException();
}
versionRequirementTable_ = value;
bitField0_ |= 0x00008000;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder setVersionRequirementTable(
org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.Builder builderForValue) {
versionRequirementTable_ = builderForValue.build();
bitField0_ |= 0x00008000;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder mergeVersionRequirementTable(org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable value) {
if (((bitField0_ & 0x00008000) == 0x00008000) &&
versionRequirementTable_ != org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance()) {
versionRequirementTable_ =
org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.newBuilder(versionRequirementTable_).mergeFrom(value).buildPartial();
} else {
versionRequirementTable_ = value;
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder clearVersionRequirementTable() {
versionRequirementTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.Class)
}
static {
defaultInstance = new Class(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.Class)
}
public interface PackageOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.metadata.Package)
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.
ExtendableMessageOrBuilder {
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
java.util.List
getFunctionList();
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.Function getFunction(int index);
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
int getFunctionCount();
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
java.util.List
getPropertyList();
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.Property getProperty(int index);
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
int getPropertyCount();
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
java.util.List
getTypeAliasList();
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias getTypeAlias(int index);
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
int getTypeAliasCount();
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
boolean hasTypeTable();
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable getTypeTable();
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
boolean hasVersionRequirementTable();
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable getVersionRequirementTable();
}
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Package}
*/
public static final class Package extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.ExtendableMessage<
Package> implements
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.metadata.Package)
PackageOrBuilder {
// Use Package.newBuilder() to construct.
private Package(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.ExtendableBuilder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Package(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
private static final Package defaultInstance;
public static Package getDefaultInstance() {
return defaultInstance;
}
public Package getDefaultInstanceForType() {
return defaultInstance;
}
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
private Package(
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 26: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
function_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
function_.add(input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Function.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
property_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
property_.add(input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Property.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
typeAlias_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
typeAlias_.add(input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias.PARSER, extensionRegistry));
break;
}
case 242: {
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = typeTable_.toBuilder();
}
typeTable_ = input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(typeTable_);
typeTable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 258: {
org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = versionRequirementTable_.toBuilder();
}
versionRequirementTable_ = input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(versionRequirementTable_);
versionRequirementTable_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
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)) {
function_ = java.util.Collections.unmodifiableList(function_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
property_ = java.util.Collections.unmodifiableList(property_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
typeAlias_ = java.util.Collections.unmodifiableList(typeAlias_);
}
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 Package parsePartialFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return new Package(input, extensionRegistry);
}
};
@java.lang.Override
public org.jetbrains.kotlin.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int FUNCTION_FIELD_NUMBER = 3;
private java.util.List function_;
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public java.util.List getFunctionList() {
return function_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public java.util.List
getFunctionOrBuilderList() {
return function_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public int getFunctionCount() {
return function_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Function getFunction(int index) {
return function_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.FunctionOrBuilder getFunctionOrBuilder(
int index) {
return function_.get(index);
}
public static final int PROPERTY_FIELD_NUMBER = 4;
private java.util.List property_;
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public java.util.List getPropertyList() {
return property_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public java.util.List
getPropertyOrBuilderList() {
return property_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public int getPropertyCount() {
return property_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Property getProperty(int index) {
return property_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.PropertyOrBuilder getPropertyOrBuilder(
int index) {
return property_.get(index);
}
public static final int TYPE_ALIAS_FIELD_NUMBER = 5;
private java.util.List typeAlias_;
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public java.util.List getTypeAliasList() {
return typeAlias_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public java.util.List
getTypeAliasOrBuilderList() {
return typeAlias_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public int getTypeAliasCount() {
return typeAlias_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias getTypeAlias(int index) {
return typeAlias_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeAliasOrBuilder getTypeAliasOrBuilder(
int index) {
return typeAlias_.get(index);
}
public static final int TYPE_TABLE_FIELD_NUMBER = 30;
private org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable typeTable_;
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public boolean hasTypeTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable getTypeTable() {
return typeTable_;
}
public static final int VERSION_REQUIREMENT_TABLE_FIELD_NUMBER = 32;
private org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable versionRequirementTable_;
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public boolean hasVersionRequirementTable() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable getVersionRequirementTable() {
return versionRequirementTable_;
}
private void initFields() {
function_ = java.util.Collections.emptyList();
property_ = java.util.Collections.emptyList();
typeAlias_ = java.util.Collections.emptyList();
typeTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance();
versionRequirementTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getFunctionCount(); i++) {
if (!getFunction(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getPropertyCount(); i++) {
if (!getProperty(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getTypeAliasCount(); i++) {
if (!getTypeAlias(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasTypeTable()) {
if (!getTypeTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
org.jetbrains.kotlin.protobuf.GeneratedMessageLite
.ExtendableMessage.ExtensionWriter extensionWriter =
newExtensionWriter();
for (int i = 0; i < function_.size(); i++) {
output.writeMessage(3, function_.get(i));
}
for (int i = 0; i < property_.size(); i++) {
output.writeMessage(4, property_.get(i));
}
for (int i = 0; i < typeAlias_.size(); i++) {
output.writeMessage(5, typeAlias_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(30, typeTable_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(32, versionRequirementTable_);
}
extensionWriter.writeUntil(200, output);
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < function_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(3, function_.get(i));
}
for (int i = 0; i < property_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(4, property_.get(i));
}
for (int i = 0; i < typeAlias_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(5, typeAlias_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(30, typeTable_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(32, versionRequirementTable_);
}
size += extensionsSerializedSize();
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.metadata.ProtoBuf.Package parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Package 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.metadata.ProtoBuf.Package parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Package 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.metadata.ProtoBuf.Package parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Package 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.metadata.ProtoBuf.Package parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Package 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.metadata.ProtoBuf.Package parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.Package 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.metadata.ProtoBuf.Package prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.Package}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.ExtendableBuilder<
org.jetbrains.kotlin.metadata.ProtoBuf.Package, Builder> implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.metadata.Package)
org.jetbrains.kotlin.metadata.ProtoBuf.PackageOrBuilder {
// Construct using org.jetbrains.kotlin.metadata.ProtoBuf.Package.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
function_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
property_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
typeAlias_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
typeTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
versionRequirementTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Package getDefaultInstanceForType() {
return org.jetbrains.kotlin.metadata.ProtoBuf.Package.getDefaultInstance();
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Package build() {
org.jetbrains.kotlin.metadata.ProtoBuf.Package result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.metadata.ProtoBuf.Package buildPartial() {
org.jetbrains.kotlin.metadata.ProtoBuf.Package result = new org.jetbrains.kotlin.metadata.ProtoBuf.Package(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
function_ = java.util.Collections.unmodifiableList(function_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.function_ = function_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
property_ = java.util.Collections.unmodifiableList(property_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.property_ = property_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
typeAlias_ = java.util.Collections.unmodifiableList(typeAlias_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.typeAlias_ = typeAlias_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000001;
}
result.typeTable_ = typeTable_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000002;
}
result.versionRequirementTable_ = versionRequirementTable_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.metadata.ProtoBuf.Package other) {
if (other == org.jetbrains.kotlin.metadata.ProtoBuf.Package.getDefaultInstance()) return this;
if (!other.function_.isEmpty()) {
if (function_.isEmpty()) {
function_ = other.function_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFunctionIsMutable();
function_.addAll(other.function_);
}
}
if (!other.property_.isEmpty()) {
if (property_.isEmpty()) {
property_ = other.property_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePropertyIsMutable();
property_.addAll(other.property_);
}
}
if (!other.typeAlias_.isEmpty()) {
if (typeAlias_.isEmpty()) {
typeAlias_ = other.typeAlias_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTypeAliasIsMutable();
typeAlias_.addAll(other.typeAlias_);
}
}
if (other.hasTypeTable()) {
mergeTypeTable(other.getTypeTable());
}
if (other.hasVersionRequirementTable()) {
mergeVersionRequirementTable(other.getVersionRequirementTable());
}
this.mergeExtensionFields(other);
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getFunctionCount(); i++) {
if (!getFunction(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getPropertyCount(); i++) {
if (!getProperty(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getTypeAliasCount(); i++) {
if (!getTypeAlias(i).isInitialized()) {
return false;
}
}
if (hasTypeTable()) {
if (!getTypeTable().isInitialized()) {
return false;
}
}
if (!extensionsAreInitialized()) {
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.metadata.ProtoBuf.Package parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.metadata.ProtoBuf.Package) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List function_ =
java.util.Collections.emptyList();
private void ensureFunctionIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
function_ = new java.util.ArrayList(function_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public java.util.List getFunctionList() {
return java.util.Collections.unmodifiableList(function_);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public int getFunctionCount() {
return function_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Function getFunction(int index) {
return function_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder setFunction(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Function value) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionIsMutable();
function_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder setFunction(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Function.Builder builderForValue) {
ensureFunctionIsMutable();
function_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder addFunction(org.jetbrains.kotlin.metadata.ProtoBuf.Function value) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionIsMutable();
function_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder addFunction(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Function value) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionIsMutable();
function_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder addFunction(
org.jetbrains.kotlin.metadata.ProtoBuf.Function.Builder builderForValue) {
ensureFunctionIsMutable();
function_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder addFunction(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Function.Builder builderForValue) {
ensureFunctionIsMutable();
function_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder addAllFunction(
java.lang.Iterable values) {
ensureFunctionIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, function_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder clearFunction() {
function_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Function function = 3;
*/
public Builder removeFunction(int index) {
ensureFunctionIsMutable();
function_.remove(index);
return this;
}
private java.util.List property_ =
java.util.Collections.emptyList();
private void ensurePropertyIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
property_ = new java.util.ArrayList(property_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public java.util.List getPropertyList() {
return java.util.Collections.unmodifiableList(property_);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public int getPropertyCount() {
return property_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Property getProperty(int index) {
return property_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder setProperty(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Property value) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder setProperty(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Property.Builder builderForValue) {
ensurePropertyIsMutable();
property_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder addProperty(org.jetbrains.kotlin.metadata.ProtoBuf.Property value) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder addProperty(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Property value) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertyIsMutable();
property_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder addProperty(
org.jetbrains.kotlin.metadata.ProtoBuf.Property.Builder builderForValue) {
ensurePropertyIsMutable();
property_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder addProperty(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Property.Builder builderForValue) {
ensurePropertyIsMutable();
property_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder addAllProperty(
java.lang.Iterable values) {
ensurePropertyIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, property_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder clearProperty() {
property_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Property property = 4;
*/
public Builder removeProperty(int index) {
ensurePropertyIsMutable();
property_.remove(index);
return this;
}
private java.util.List typeAlias_ =
java.util.Collections.emptyList();
private void ensureTypeAliasIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
typeAlias_ = new java.util.ArrayList(typeAlias_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public java.util.List getTypeAliasList() {
return java.util.Collections.unmodifiableList(typeAlias_);
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public int getTypeAliasCount() {
return typeAlias_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias getTypeAlias(int index) {
return typeAlias_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder setTypeAlias(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeAliasIsMutable();
typeAlias_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder setTypeAlias(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias.Builder builderForValue) {
ensureTypeAliasIsMutable();
typeAlias_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder addTypeAlias(org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeAliasIsMutable();
typeAlias_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder addTypeAlias(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeAliasIsMutable();
typeAlias_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder addTypeAlias(
org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias.Builder builderForValue) {
ensureTypeAliasIsMutable();
typeAlias_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder addTypeAlias(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.TypeAlias.Builder builderForValue) {
ensureTypeAliasIsMutable();
typeAlias_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder addAllTypeAlias(
java.lang.Iterable values) {
ensureTypeAliasIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, typeAlias_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder clearTypeAlias() {
typeAlias_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.TypeAlias type_alias = 5;
*/
public Builder removeTypeAlias(int index) {
ensureTypeAliasIsMutable();
typeAlias_.remove(index);
return this;
}
private org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable typeTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance();
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public boolean hasTypeTable() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable getTypeTable() {
return typeTable_;
}
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public Builder setTypeTable(org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable value) {
if (value == null) {
throw new NullPointerException();
}
typeTable_ = value;
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public Builder setTypeTable(
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.Builder builderForValue) {
typeTable_ = builderForValue.build();
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public Builder mergeTypeTable(org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable value) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
typeTable_ != org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance()) {
typeTable_ =
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.newBuilder(typeTable_).mergeFrom(value).buildPartial();
} else {
typeTable_ = value;
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.TypeTable type_table = 30;
*/
public Builder clearTypeTable() {
typeTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
private org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable versionRequirementTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance();
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public boolean hasVersionRequirementTable() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable getVersionRequirementTable() {
return versionRequirementTable_;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder setVersionRequirementTable(org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable value) {
if (value == null) {
throw new NullPointerException();
}
versionRequirementTable_ = value;
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder setVersionRequirementTable(
org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.Builder builderForValue) {
versionRequirementTable_ = builderForValue.build();
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder mergeVersionRequirementTable(org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable value) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
versionRequirementTable_ != org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance()) {
versionRequirementTable_ =
org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.newBuilder(versionRequirementTable_).mergeFrom(value).buildPartial();
} else {
versionRequirementTable_ = value;
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .org.jetbrains.kotlin.metadata.VersionRequirementTable version_requirement_table = 32;
*/
public Builder clearVersionRequirementTable() {
versionRequirementTable_ = org.jetbrains.kotlin.metadata.ProtoBuf.VersionRequirementTable.getDefaultInstance();
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
// @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.metadata.Package)
}
static {
defaultInstance = new Package(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.metadata.Package)
}
public interface TypeTableOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.metadata.TypeTable)
org.jetbrains.kotlin.protobuf.MessageLiteOrBuilder {
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
java.util.List
getTypeList();
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
org.jetbrains.kotlin.metadata.ProtoBuf.Type getType(int index);
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
int getTypeCount();
/**
* optional int32 first_nullable = 2 [default = -1];
*
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
*/
int getFirstNullable();
}
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.TypeTable}
*/
public static final class TypeTable extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.metadata.TypeTable)
TypeTableOrBuilder {
// Use TypeTable.newBuilder() to construct.
private TypeTable(org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TypeTable(boolean noInit) { this.unknownFields = org.jetbrains.kotlin.protobuf.ByteString.EMPTY;}
private static final TypeTable defaultInstance;
public static TypeTable getDefaultInstance() {
return defaultInstance;
}
public TypeTable getDefaultInstanceForType() {
return defaultInstance;
}
private final org.jetbrains.kotlin.protobuf.ByteString unknownFields;
private TypeTable(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
org.jetbrains.kotlin.protobuf.ByteString.Output unknownFieldsOutput =
org.jetbrains.kotlin.protobuf.ByteString.newOutput();
org.jetbrains.kotlin.protobuf.CodedOutputStream unknownFieldsCodedOutput =
org.jetbrains.kotlin.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput, 1);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
type_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
type_.add(input.readMessage(org.jetbrains.kotlin.metadata.ProtoBuf.Type.PARSER, extensionRegistry));
break;
}
case 16: {
bitField0_ |= 0x00000001;
firstNullable_ = input.readInt32();
break;
}
}
}
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
type_ = java.util.Collections.unmodifiableList(type_);
}
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 TypeTable parsePartialFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input,
org.jetbrains.kotlin.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return new TypeTable(input, extensionRegistry);
}
};
@java.lang.Override
public org.jetbrains.kotlin.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private java.util.List type_;
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public java.util.List getTypeList() {
return type_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public java.util.List
getTypeOrBuilderList() {
return type_;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public int getTypeCount() {
return type_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Type getType(int index) {
return type_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeOrBuilder getTypeOrBuilder(
int index) {
return type_.get(index);
}
public static final int FIRST_NULLABLE_FIELD_NUMBER = 2;
private int firstNullable_;
/**
* optional int32 first_nullable = 2 [default = -1];
*
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
*/
public int getFirstNullable() {
return firstNullable_;
}
private void initFields() {
type_ = java.util.Collections.emptyList();
firstNullable_ = -1;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getTypeCount(); i++) {
if (!getType(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.jetbrains.kotlin.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < type_.size(); i++) {
output.writeMessage(1, type_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, firstNullable_);
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < type_.size(); i++) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeMessageSize(1, type_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += org.jetbrains.kotlin.protobuf.CodedOutputStream
.computeInt32Size(2, firstNullable_);
}
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.metadata.ProtoBuf.TypeTable parseFrom(
org.jetbrains.kotlin.protobuf.ByteString data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable 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.metadata.ProtoBuf.TypeTable parseFrom(byte[] data)
throws org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable 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.metadata.ProtoBuf.TypeTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable 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.metadata.ProtoBuf.TypeTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable 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.metadata.ProtoBuf.TypeTable parseFrom(
org.jetbrains.kotlin.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable 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.metadata.ProtoBuf.TypeTable prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code org.jetbrains.kotlin.metadata.TypeTable}
*/
public static final class Builder extends
org.jetbrains.kotlin.protobuf.GeneratedMessageLite.Builder<
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable, Builder>
implements
// @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.metadata.TypeTable)
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTableOrBuilder {
// Construct using org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
type_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
firstNullable_ = -1;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable getDefaultInstanceForType() {
return org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance();
}
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable build() {
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable buildPartial() {
org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable result = new org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
type_ = java.util.Collections.unmodifiableList(type_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.firstNullable_ = firstNullable_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable other) {
if (other == org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable.getDefaultInstance()) return this;
if (!other.type_.isEmpty()) {
if (type_.isEmpty()) {
type_ = other.type_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTypeIsMutable();
type_.addAll(other.type_);
}
}
if (other.hasFirstNullable()) {
setFirstNullable(other.getFirstNullable());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getTypeCount(); i++) {
if (!getType(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.metadata.ProtoBuf.TypeTable parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.jetbrains.kotlin.metadata.ProtoBuf.TypeTable) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List type_ =
java.util.Collections.emptyList();
private void ensureTypeIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
type_ = new java.util.ArrayList(type_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public java.util.List getTypeList() {
return java.util.Collections.unmodifiableList(type_);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public int getTypeCount() {
return type_.size();
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public org.jetbrains.kotlin.metadata.ProtoBuf.Type getType(int index) {
return type_.get(index);
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder setType(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Type value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeIsMutable();
type_.set(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder setType(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Type.Builder builderForValue) {
ensureTypeIsMutable();
type_.set(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder addType(org.jetbrains.kotlin.metadata.ProtoBuf.Type value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeIsMutable();
type_.add(value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder addType(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Type value) {
if (value == null) {
throw new NullPointerException();
}
ensureTypeIsMutable();
type_.add(index, value);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder addType(
org.jetbrains.kotlin.metadata.ProtoBuf.Type.Builder builderForValue) {
ensureTypeIsMutable();
type_.add(builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder addType(
int index, org.jetbrains.kotlin.metadata.ProtoBuf.Type.Builder builderForValue) {
ensureTypeIsMutable();
type_.add(index, builderForValue.build());
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder addAllType(
java.lang.Iterable values) {
ensureTypeIsMutable();
org.jetbrains.kotlin.protobuf.AbstractMessageLite.Builder.addAll(
values, type_);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder clearType() {
type_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* repeated .org.jetbrains.kotlin.metadata.Type type = 1;
*/
public Builder removeType(int index) {
ensureTypeIsMutable();
type_.remove(index);
return this;
}
private int firstNullable_ = -1;
/**
* optional int32 first_nullable = 2 [default = -1];
*
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
*/
public int getFirstNullable() {
return firstNullable_;
}
/**
* optional int32 first_nullable = 2 [default = -1];
*
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*
* Index starting from which all types are nullable, or nothing if all types in this table are non-null.
* Note that the 'nullable' field of Type messages is ignored and shouldn't be written because it wastes too much space
*