FunctionInformationMap.java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/google/javascript/jscomp/function_info.proto
package com.google.javascript.jscomp;
/**
* Protobuf type {@code jscomp.FunctionInformationMap}
*/
public final class FunctionInformationMap extends
com.google.protobuf.GeneratedMessage
implements FunctionInformationMapOrBuilder {
// Use FunctionInformationMap.newBuilder() to construct.
private FunctionInformationMap(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FunctionInformationMap(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FunctionInformationMap defaultInstance;
public static FunctionInformationMap getDefaultInstance() {
return defaultInstance;
}
public FunctionInformationMap getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FunctionInformationMap(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 11: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList<com.google.javascript.jscomp.FunctionInformationMap.Entry>();
mutable_bitField0_ |= 0x00000001;
}
entry_.add(input.readGroup(1, com.google.javascript.jscomp.FunctionInformationMap.Entry.PARSER,
extensionRegistry));
break;
}
case 811: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
module_ = new java.util.ArrayList<com.google.javascript.jscomp.FunctionInformationMap.Module>();
mutable_bitField0_ |= 0x00000002;
}
module_.add(input.readGroup(101, com.google.javascript.jscomp.FunctionInformationMap.Module.PARSER,
extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
module_ = java.util.Collections.unmodifiableList(module_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.javascript.jscomp.FunctionInformationMap.class, com.google.javascript.jscomp.FunctionInformationMap.Builder.class);
}
public static com.google.protobuf.Parser<FunctionInformationMap> PARSER =
new com.google.protobuf.AbstractParser<FunctionInformationMap>() {
public FunctionInformationMap parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FunctionInformationMap(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<FunctionInformationMap> getParserForType() {
return PARSER;
}
public interface EntryOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required int32 id = 2;
/**
* <code>required int32 id = 2;</code>
*/
boolean hasId();
/**
* <code>required int32 id = 2;</code>
*/
int getId();
// required string source_name = 3;
/**
* <code>required string source_name = 3;</code>
*/
boolean hasSourceName();
/**
* <code>required string source_name = 3;</code>
*/
java.lang.String getSourceName();
/**
* <code>required string source_name = 3;</code>
*/
com.google.protobuf.ByteString
getSourceNameBytes();
// required int32 line_number = 4;
/**
* <code>required int32 line_number = 4;</code>
*/
boolean hasLineNumber();
/**
* <code>required int32 line_number = 4;</code>
*/
int getLineNumber();
// required string module_name = 5;
/**
* <code>required string module_name = 5;</code>
*/
boolean hasModuleName();
/**
* <code>required string module_name = 5;</code>
*/
java.lang.String getModuleName();
/**
* <code>required string module_name = 5;</code>
*/
com.google.protobuf.ByteString
getModuleNameBytes();
// required int32 size = 6;
/**
* <code>required int32 size = 6;</code>
*/
boolean hasSize();
/**
* <code>required int32 size = 6;</code>
*/
int getSize();
// required string name = 7;
/**
* <code>required string name = 7;</code>
*/
boolean hasName();
/**
* <code>required string name = 7;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 7;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
// required string compiled_source = 8;
/**
* <code>required string compiled_source = 8;</code>
*/
boolean hasCompiledSource();
/**
* <code>required string compiled_source = 8;</code>
*/
java.lang.String getCompiledSource();
/**
* <code>required string compiled_source = 8;</code>
*/
com.google.protobuf.ByteString
getCompiledSourceBytes();
}
/**
* Protobuf type {@code jscomp.FunctionInformationMap.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessage
implements EntryOrBuilder {
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Entry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Entry defaultInstance;
public static Entry getDefaultInstance() {
return defaultInstance;
}
public Entry getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Entry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 16: {
bitField0_ |= 0x00000001;
id_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000002;
sourceName_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000004;
lineNumber_ = input.readInt32();
break;
}
case 42: {
bitField0_ |= 0x00000008;
moduleName_ = input.readBytes();
break;
}
case 48: {
bitField0_ |= 0x00000010;
size_ = input.readInt32();
break;
}
case 58: {
bitField0_ |= 0x00000020;
name_ = input.readBytes();
break;
}
case 66: {
bitField0_ |= 0x00000040;
compiledSource_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Entry_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.javascript.jscomp.FunctionInformationMap.Entry.class, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder.class);
}
public static com.google.protobuf.Parser<Entry> PARSER =
new com.google.protobuf.AbstractParser<Entry>() {
public Entry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Entry(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Entry> getParserForType() {
return PARSER;
}
private int bitField0_;
// required int32 id = 2;
public static final int ID_FIELD_NUMBER = 2;
private int id_;
/**
* <code>required int32 id = 2;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required int32 id = 2;</code>
*/
public int getId() {
return id_;
}
// required string source_name = 3;
public static final int SOURCE_NAME_FIELD_NUMBER = 3;
private java.lang.Object sourceName_;
/**
* <code>required string source_name = 3;</code>
*/
public boolean hasSourceName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string source_name = 3;</code>
*/
public java.lang.String getSourceName() {
java.lang.Object ref = sourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sourceName_ = s;
}
return s;
}
}
/**
* <code>required string source_name = 3;</code>
*/
public com.google.protobuf.ByteString
getSourceNameBytes() {
java.lang.Object ref = sourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 line_number = 4;
public static final int LINE_NUMBER_FIELD_NUMBER = 4;
private int lineNumber_;
/**
* <code>required int32 line_number = 4;</code>
*/
public boolean hasLineNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required int32 line_number = 4;</code>
*/
public int getLineNumber() {
return lineNumber_;
}
// required string module_name = 5;
public static final int MODULE_NAME_FIELD_NUMBER = 5;
private java.lang.Object moduleName_;
/**
* <code>required string module_name = 5;</code>
*/
public boolean hasModuleName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>required string module_name = 5;</code>
*/
public java.lang.String getModuleName() {
java.lang.Object ref = moduleName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
moduleName_ = s;
}
return s;
}
}
/**
* <code>required string module_name = 5;</code>
*/
public com.google.protobuf.ByteString
getModuleNameBytes() {
java.lang.Object ref = moduleName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moduleName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 size = 6;
public static final int SIZE_FIELD_NUMBER = 6;
private int size_;
/**
* <code>required int32 size = 6;</code>
*/
public boolean hasSize() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>required int32 size = 6;</code>
*/
public int getSize() {
return size_;
}
// required string name = 7;
public static final int NAME_FIELD_NUMBER = 7;
private java.lang.Object name_;
/**
* <code>required string name = 7;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>required string name = 7;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* <code>required string name = 7;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string compiled_source = 8;
public static final int COMPILED_SOURCE_FIELD_NUMBER = 8;
private java.lang.Object compiledSource_;
/**
* <code>required string compiled_source = 8;</code>
*/
public boolean hasCompiledSource() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>required string compiled_source = 8;</code>
*/
public java.lang.String getCompiledSource() {
java.lang.Object ref = compiledSource_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
compiledSource_ = s;
}
return s;
}
}
/**
* <code>required string compiled_source = 8;</code>
*/
public com.google.protobuf.ByteString
getCompiledSourceBytes() {
java.lang.Object ref = compiledSource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
compiledSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
id_ = 0;
sourceName_ = "";
lineNumber_ = 0;
moduleName_ = "";
size_ = 0;
name_ = "";
compiledSource_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSourceName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLineNumber()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasModuleName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSize()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCompiledSource()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(3, getSourceNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(4, lineNumber_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(5, getModuleNameBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(6, size_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(7, getNameBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(8, getCompiledSourceBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getSourceNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, lineNumber_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getModuleNameBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, size_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getNameBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getCompiledSourceBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Entry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.javascript.jscomp.FunctionInformationMap.Entry prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code jscomp.FunctionInformationMap.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Entry_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.javascript.jscomp.FunctionInformationMap.Entry.class, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder.class);
}
// Construct using com.google.javascript.jscomp.FunctionInformationMap.Entry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
sourceName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
lineNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
moduleName_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
size_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
compiledSource_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Entry_descriptor;
}
public com.google.javascript.jscomp.FunctionInformationMap.Entry getDefaultInstanceForType() {
return com.google.javascript.jscomp.FunctionInformationMap.Entry.getDefaultInstance();
}
public com.google.javascript.jscomp.FunctionInformationMap.Entry build() {
com.google.javascript.jscomp.FunctionInformationMap.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.javascript.jscomp.FunctionInformationMap.Entry buildPartial() {
com.google.javascript.jscomp.FunctionInformationMap.Entry result = new com.google.javascript.jscomp.FunctionInformationMap.Entry(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.sourceName_ = sourceName_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.lineNumber_ = lineNumber_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.moduleName_ = moduleName_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.size_ = size_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.compiledSource_ = compiledSource_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.javascript.jscomp.FunctionInformationMap.Entry) {
return mergeFrom((com.google.javascript.jscomp.FunctionInformationMap.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.javascript.jscomp.FunctionInformationMap.Entry other) {
if (other == com.google.javascript.jscomp.FunctionInformationMap.Entry.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasSourceName()) {
bitField0_ |= 0x00000002;
sourceName_ = other.sourceName_;
onChanged();
}
if (other.hasLineNumber()) {
setLineNumber(other.getLineNumber());
}
if (other.hasModuleName()) {
bitField0_ |= 0x00000008;
moduleName_ = other.moduleName_;
onChanged();
}
if (other.hasSize()) {
setSize(other.getSize());
}
if (other.hasName()) {
bitField0_ |= 0x00000020;
name_ = other.name_;
onChanged();
}
if (other.hasCompiledSource()) {
bitField0_ |= 0x00000040;
compiledSource_ = other.compiledSource_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasId()) {
return false;
}
if (!hasSourceName()) {
return false;
}
if (!hasLineNumber()) {
return false;
}
if (!hasModuleName()) {
return false;
}
if (!hasSize()) {
return false;
}
if (!hasName()) {
return false;
}
if (!hasCompiledSource()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.javascript.jscomp.FunctionInformationMap.Entry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.javascript.jscomp.FunctionInformationMap.Entry) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required int32 id = 2;
private int id_ ;
/**
* <code>required int32 id = 2;</code>
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required int32 id = 2;</code>
*/
public int getId() {
return id_;
}
/**
* <code>required int32 id = 2;</code>
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* <code>required int32 id = 2;</code>
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
// required string source_name = 3;
private java.lang.Object sourceName_ = "";
/**
* <code>required string source_name = 3;</code>
*/
public boolean hasSourceName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string source_name = 3;</code>
*/
public java.lang.String getSourceName() {
java.lang.Object ref = sourceName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
sourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string source_name = 3;</code>
*/
public com.google.protobuf.ByteString
getSourceNameBytes() {
java.lang.Object ref = sourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string source_name = 3;</code>
*/
public Builder setSourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
sourceName_ = value;
onChanged();
return this;
}
/**
* <code>required string source_name = 3;</code>
*/
public Builder clearSourceName() {
bitField0_ = (bitField0_ & ~0x00000002);
sourceName_ = getDefaultInstance().getSourceName();
onChanged();
return this;
}
/**
* <code>required string source_name = 3;</code>
*/
public Builder setSourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
sourceName_ = value;
onChanged();
return this;
}
// required int32 line_number = 4;
private int lineNumber_ ;
/**
* <code>required int32 line_number = 4;</code>
*/
public boolean hasLineNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required int32 line_number = 4;</code>
*/
public int getLineNumber() {
return lineNumber_;
}
/**
* <code>required int32 line_number = 4;</code>
*/
public Builder setLineNumber(int value) {
bitField0_ |= 0x00000004;
lineNumber_ = value;
onChanged();
return this;
}
/**
* <code>required int32 line_number = 4;</code>
*/
public Builder clearLineNumber() {
bitField0_ = (bitField0_ & ~0x00000004);
lineNumber_ = 0;
onChanged();
return this;
}
// required string module_name = 5;
private java.lang.Object moduleName_ = "";
/**
* <code>required string module_name = 5;</code>
*/
public boolean hasModuleName() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>required string module_name = 5;</code>
*/
public java.lang.String getModuleName() {
java.lang.Object ref = moduleName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
moduleName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string module_name = 5;</code>
*/
public com.google.protobuf.ByteString
getModuleNameBytes() {
java.lang.Object ref = moduleName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moduleName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string module_name = 5;</code>
*/
public Builder setModuleName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
moduleName_ = value;
onChanged();
return this;
}
/**
* <code>required string module_name = 5;</code>
*/
public Builder clearModuleName() {
bitField0_ = (bitField0_ & ~0x00000008);
moduleName_ = getDefaultInstance().getModuleName();
onChanged();
return this;
}
/**
* <code>required string module_name = 5;</code>
*/
public Builder setModuleNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
moduleName_ = value;
onChanged();
return this;
}
// required int32 size = 6;
private int size_ ;
/**
* <code>required int32 size = 6;</code>
*/
public boolean hasSize() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>required int32 size = 6;</code>
*/
public int getSize() {
return size_;
}
/**
* <code>required int32 size = 6;</code>
*/
public Builder setSize(int value) {
bitField0_ |= 0x00000010;
size_ = value;
onChanged();
return this;
}
/**
* <code>required int32 size = 6;</code>
*/
public Builder clearSize() {
bitField0_ = (bitField0_ & ~0x00000010);
size_ = 0;
onChanged();
return this;
}
// required string name = 7;
private java.lang.Object name_ = "";
/**
* <code>required string name = 7;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>required string name = 7;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string name = 7;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string name = 7;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 7;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000020);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 7;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
name_ = value;
onChanged();
return this;
}
// required string compiled_source = 8;
private java.lang.Object compiledSource_ = "";
/**
* <code>required string compiled_source = 8;</code>
*/
public boolean hasCompiledSource() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>required string compiled_source = 8;</code>
*/
public java.lang.String getCompiledSource() {
java.lang.Object ref = compiledSource_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
compiledSource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string compiled_source = 8;</code>
*/
public com.google.protobuf.ByteString
getCompiledSourceBytes() {
java.lang.Object ref = compiledSource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
compiledSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string compiled_source = 8;</code>
*/
public Builder setCompiledSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
compiledSource_ = value;
onChanged();
return this;
}
/**
* <code>required string compiled_source = 8;</code>
*/
public Builder clearCompiledSource() {
bitField0_ = (bitField0_ & ~0x00000040);
compiledSource_ = getDefaultInstance().getCompiledSource();
onChanged();
return this;
}
/**
* <code>required string compiled_source = 8;</code>
*/
public Builder setCompiledSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
compiledSource_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:jscomp.FunctionInformationMap.Entry)
}
static {
defaultInstance = new Entry(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:jscomp.FunctionInformationMap.Entry)
}
public interface ModuleOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 102;
/**
* <code>required string name = 102;</code>
*/
boolean hasName();
/**
* <code>required string name = 102;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 102;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
// required string compiled_source = 103;
/**
* <code>required string compiled_source = 103;</code>
*/
boolean hasCompiledSource();
/**
* <code>required string compiled_source = 103;</code>
*/
java.lang.String getCompiledSource();
/**
* <code>required string compiled_source = 103;</code>
*/
com.google.protobuf.ByteString
getCompiledSourceBytes();
}
/**
* Protobuf type {@code jscomp.FunctionInformationMap.Module}
*/
public static final class Module extends
com.google.protobuf.GeneratedMessage
implements ModuleOrBuilder {
// Use Module.newBuilder() to construct.
private Module(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Module(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Module defaultInstance;
public static Module getDefaultInstance() {
return defaultInstance;
}
public Module getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Module(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 818: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 826: {
bitField0_ |= 0x00000002;
compiledSource_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Module_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Module_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.javascript.jscomp.FunctionInformationMap.Module.class, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder.class);
}
public static com.google.protobuf.Parser<Module> PARSER =
new com.google.protobuf.AbstractParser<Module>() {
public Module parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Module(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Module> getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 102;
public static final int NAME_FIELD_NUMBER = 102;
private java.lang.Object name_;
/**
* <code>required string name = 102;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 102;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* <code>required string name = 102;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string compiled_source = 103;
public static final int COMPILED_SOURCE_FIELD_NUMBER = 103;
private java.lang.Object compiledSource_;
/**
* <code>required string compiled_source = 103;</code>
*/
public boolean hasCompiledSource() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string compiled_source = 103;</code>
*/
public java.lang.String getCompiledSource() {
java.lang.Object ref = compiledSource_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
compiledSource_ = s;
}
return s;
}
}
/**
* <code>required string compiled_source = 103;</code>
*/
public com.google.protobuf.ByteString
getCompiledSourceBytes() {
java.lang.Object ref = compiledSource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
compiledSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
compiledSource_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCompiledSource()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(102, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(103, getCompiledSourceBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(102, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(103, getCompiledSourceBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap.Module parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.javascript.jscomp.FunctionInformationMap.Module prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code jscomp.FunctionInformationMap.Module}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Module_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Module_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.javascript.jscomp.FunctionInformationMap.Module.class, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder.class);
}
// Construct using com.google.javascript.jscomp.FunctionInformationMap.Module.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
compiledSource_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_Module_descriptor;
}
public com.google.javascript.jscomp.FunctionInformationMap.Module getDefaultInstanceForType() {
return com.google.javascript.jscomp.FunctionInformationMap.Module.getDefaultInstance();
}
public com.google.javascript.jscomp.FunctionInformationMap.Module build() {
com.google.javascript.jscomp.FunctionInformationMap.Module result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.javascript.jscomp.FunctionInformationMap.Module buildPartial() {
com.google.javascript.jscomp.FunctionInformationMap.Module result = new com.google.javascript.jscomp.FunctionInformationMap.Module(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.compiledSource_ = compiledSource_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.javascript.jscomp.FunctionInformationMap.Module) {
return mergeFrom((com.google.javascript.jscomp.FunctionInformationMap.Module)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.javascript.jscomp.FunctionInformationMap.Module other) {
if (other == com.google.javascript.jscomp.FunctionInformationMap.Module.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasCompiledSource()) {
bitField0_ |= 0x00000002;
compiledSource_ = other.compiledSource_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasCompiledSource()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.javascript.jscomp.FunctionInformationMap.Module parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.javascript.jscomp.FunctionInformationMap.Module) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string name = 102;
private java.lang.Object name_ = "";
/**
* <code>required string name = 102;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 102;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string name = 102;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string name = 102;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 102;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 102;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// required string compiled_source = 103;
private java.lang.Object compiledSource_ = "";
/**
* <code>required string compiled_source = 103;</code>
*/
public boolean hasCompiledSource() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string compiled_source = 103;</code>
*/
public java.lang.String getCompiledSource() {
java.lang.Object ref = compiledSource_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
compiledSource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string compiled_source = 103;</code>
*/
public com.google.protobuf.ByteString
getCompiledSourceBytes() {
java.lang.Object ref = compiledSource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
compiledSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string compiled_source = 103;</code>
*/
public Builder setCompiledSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
compiledSource_ = value;
onChanged();
return this;
}
/**
* <code>required string compiled_source = 103;</code>
*/
public Builder clearCompiledSource() {
bitField0_ = (bitField0_ & ~0x00000002);
compiledSource_ = getDefaultInstance().getCompiledSource();
onChanged();
return this;
}
/**
* <code>required string compiled_source = 103;</code>
*/
public Builder setCompiledSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
compiledSource_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:jscomp.FunctionInformationMap.Module)
}
static {
defaultInstance = new Module(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:jscomp.FunctionInformationMap.Module)
}
// repeated group Entry = 1 {
public static final int ENTRY_FIELD_NUMBER = 1;
private java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Entry> entry_;
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Entry> getEntryList() {
return entry_;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public java.util.List<? extends com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public int getEntryCount() {
return entry_.size();
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Entry getEntry(int index) {
return entry_.get(index);
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
// repeated group Module = 101 {
public static final int MODULE_FIELD_NUMBER = 101;
private java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Module> module_;
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Module> getModuleList() {
return module_;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public java.util.List<? extends com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder>
getModuleOrBuilderList() {
return module_;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public int getModuleCount() {
return module_.size();
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Module getModule(int index) {
return module_.get(index);
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder getModuleOrBuilder(
int index) {
return module_.get(index);
}
private void initFields() {
entry_ = java.util.Collections.emptyList();
module_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getModuleCount(); i++) {
if (!getModule(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < entry_.size(); i++) {
output.writeGroup(1, entry_.get(i));
}
for (int i = 0; i < module_.size(); i++) {
output.writeGroup(101, module_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(1, entry_.get(i));
}
for (int i = 0; i < module_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeGroupSize(101, module_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.javascript.jscomp.FunctionInformationMap parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.javascript.jscomp.FunctionInformationMap prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code jscomp.FunctionInformationMap}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements com.google.javascript.jscomp.FunctionInformationMapOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.javascript.jscomp.FunctionInformationMap.class, com.google.javascript.jscomp.FunctionInformationMap.Builder.class);
}
// Construct using com.google.javascript.jscomp.FunctionInformationMap.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getEntryFieldBuilder();
getModuleFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entryBuilder_.clear();
}
if (moduleBuilder_ == null) {
module_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
moduleBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.javascript.jscomp.FunctionInfo.internal_static_jscomp_FunctionInformationMap_descriptor;
}
public com.google.javascript.jscomp.FunctionInformationMap getDefaultInstanceForType() {
return com.google.javascript.jscomp.FunctionInformationMap.getDefaultInstance();
}
public com.google.javascript.jscomp.FunctionInformationMap build() {
com.google.javascript.jscomp.FunctionInformationMap result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.javascript.jscomp.FunctionInformationMap buildPartial() {
com.google.javascript.jscomp.FunctionInformationMap result = new com.google.javascript.jscomp.FunctionInformationMap(this);
int from_bitField0_ = bitField0_;
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entry_ = entry_;
} else {
result.entry_ = entryBuilder_.build();
}
if (moduleBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
module_ = java.util.Collections.unmodifiableList(module_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.module_ = module_;
} else {
result.module_ = moduleBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.javascript.jscomp.FunctionInformationMap) {
return mergeFrom((com.google.javascript.jscomp.FunctionInformationMap)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.javascript.jscomp.FunctionInformationMap other) {
if (other == com.google.javascript.jscomp.FunctionInformationMap.getDefaultInstance()) return this;
if (entryBuilder_ == null) {
if (!other.entry_.isEmpty()) {
if (entry_.isEmpty()) {
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntryIsMutable();
entry_.addAll(other.entry_);
}
onChanged();
}
} else {
if (!other.entry_.isEmpty()) {
if (entryBuilder_.isEmpty()) {
entryBuilder_.dispose();
entryBuilder_ = null;
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
entryBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntryFieldBuilder() : null;
} else {
entryBuilder_.addAllMessages(other.entry_);
}
}
}
if (moduleBuilder_ == null) {
if (!other.module_.isEmpty()) {
if (module_.isEmpty()) {
module_ = other.module_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureModuleIsMutable();
module_.addAll(other.module_);
}
onChanged();
}
} else {
if (!other.module_.isEmpty()) {
if (moduleBuilder_.isEmpty()) {
moduleBuilder_.dispose();
moduleBuilder_ = null;
module_ = other.module_;
bitField0_ = (bitField0_ & ~0x00000002);
moduleBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getModuleFieldBuilder() : null;
} else {
moduleBuilder_.addAllMessages(other.module_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getModuleCount(); i++) {
if (!getModule(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.javascript.jscomp.FunctionInformationMap parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.javascript.jscomp.FunctionInformationMap) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated group Entry = 1 {
private java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Entry> entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList<com.google.javascript.jscomp.FunctionInformationMap.Entry>(entry_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.javascript.jscomp.FunctionInformationMap.Entry, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder, com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder> entryBuilder_;
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Entry> getEntryList() {
if (entryBuilder_ == null) {
return java.util.Collections.unmodifiableList(entry_);
} else {
return entryBuilder_.getMessageList();
}
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public int getEntryCount() {
if (entryBuilder_ == null) {
return entry_.size();
} else {
return entryBuilder_.getCount();
}
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Entry getEntry(int index) {
if (entryBuilder_ == null) {
return entry_.get(index);
} else {
return entryBuilder_.getMessage(index);
}
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder setEntry(
int index, com.google.javascript.jscomp.FunctionInformationMap.Entry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.set(index, value);
onChanged();
} else {
entryBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder setEntry(
int index, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.set(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder addEntry(com.google.javascript.jscomp.FunctionInformationMap.Entry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(value);
onChanged();
} else {
entryBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder addEntry(
int index, com.google.javascript.jscomp.FunctionInformationMap.Entry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(index, value);
onChanged();
} else {
entryBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder addEntry(
com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder addEntry(
int index, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder addAllEntry(
java.lang.Iterable<? extends com.google.javascript.jscomp.FunctionInformationMap.Entry> values) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
super.addAll(values, entry_);
onChanged();
} else {
entryBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder clearEntry() {
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entryBuilder_.clear();
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public Builder removeEntry(int index) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.remove(index);
onChanged();
} else {
entryBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder getEntryBuilder(
int index) {
return getEntryFieldBuilder().getBuilder(index);
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder getEntryOrBuilder(
int index) {
if (entryBuilder_ == null) {
return entry_.get(index); } else {
return entryBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public java.util.List<? extends com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder>
getEntryOrBuilderList() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entry_);
}
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder addEntryBuilder() {
return getEntryFieldBuilder().addBuilder(
com.google.javascript.jscomp.FunctionInformationMap.Entry.getDefaultInstance());
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder addEntryBuilder(
int index) {
return getEntryFieldBuilder().addBuilder(
index, com.google.javascript.jscomp.FunctionInformationMap.Entry.getDefaultInstance());
}
/**
* <code>repeated group Entry = 1 { ... }</code>
*/
public java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder>
getEntryBuilderList() {
return getEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.javascript.jscomp.FunctionInformationMap.Entry, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder, com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder>
getEntryFieldBuilder() {
if (entryBuilder_ == null) {
entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.google.javascript.jscomp.FunctionInformationMap.Entry, com.google.javascript.jscomp.FunctionInformationMap.Entry.Builder, com.google.javascript.jscomp.FunctionInformationMap.EntryOrBuilder>(
entry_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
entry_ = null;
}
return entryBuilder_;
}
// repeated group Module = 101 {
private java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Module> module_ =
java.util.Collections.emptyList();
private void ensureModuleIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
module_ = new java.util.ArrayList<com.google.javascript.jscomp.FunctionInformationMap.Module>(module_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.javascript.jscomp.FunctionInformationMap.Module, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder, com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder> moduleBuilder_;
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Module> getModuleList() {
if (moduleBuilder_ == null) {
return java.util.Collections.unmodifiableList(module_);
} else {
return moduleBuilder_.getMessageList();
}
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public int getModuleCount() {
if (moduleBuilder_ == null) {
return module_.size();
} else {
return moduleBuilder_.getCount();
}
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Module getModule(int index) {
if (moduleBuilder_ == null) {
return module_.get(index);
} else {
return moduleBuilder_.getMessage(index);
}
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder setModule(
int index, com.google.javascript.jscomp.FunctionInformationMap.Module value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModuleIsMutable();
module_.set(index, value);
onChanged();
} else {
moduleBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder setModule(
int index, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder builderForValue) {
if (moduleBuilder_ == null) {
ensureModuleIsMutable();
module_.set(index, builderForValue.build());
onChanged();
} else {
moduleBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder addModule(com.google.javascript.jscomp.FunctionInformationMap.Module value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModuleIsMutable();
module_.add(value);
onChanged();
} else {
moduleBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder addModule(
int index, com.google.javascript.jscomp.FunctionInformationMap.Module value) {
if (moduleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureModuleIsMutable();
module_.add(index, value);
onChanged();
} else {
moduleBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder addModule(
com.google.javascript.jscomp.FunctionInformationMap.Module.Builder builderForValue) {
if (moduleBuilder_ == null) {
ensureModuleIsMutable();
module_.add(builderForValue.build());
onChanged();
} else {
moduleBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder addModule(
int index, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder builderForValue) {
if (moduleBuilder_ == null) {
ensureModuleIsMutable();
module_.add(index, builderForValue.build());
onChanged();
} else {
moduleBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder addAllModule(
java.lang.Iterable<? extends com.google.javascript.jscomp.FunctionInformationMap.Module> values) {
if (moduleBuilder_ == null) {
ensureModuleIsMutable();
super.addAll(values, module_);
onChanged();
} else {
moduleBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder clearModule() {
if (moduleBuilder_ == null) {
module_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
moduleBuilder_.clear();
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public Builder removeModule(int index) {
if (moduleBuilder_ == null) {
ensureModuleIsMutable();
module_.remove(index);
onChanged();
} else {
moduleBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Module.Builder getModuleBuilder(
int index) {
return getModuleFieldBuilder().getBuilder(index);
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder getModuleOrBuilder(
int index) {
if (moduleBuilder_ == null) {
return module_.get(index); } else {
return moduleBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public java.util.List<? extends com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder>
getModuleOrBuilderList() {
if (moduleBuilder_ != null) {
return moduleBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(module_);
}
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Module.Builder addModuleBuilder() {
return getModuleFieldBuilder().addBuilder(
com.google.javascript.jscomp.FunctionInformationMap.Module.getDefaultInstance());
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public com.google.javascript.jscomp.FunctionInformationMap.Module.Builder addModuleBuilder(
int index) {
return getModuleFieldBuilder().addBuilder(
index, com.google.javascript.jscomp.FunctionInformationMap.Module.getDefaultInstance());
}
/**
* <code>repeated group Module = 101 { ... }</code>
*/
public java.util.List<com.google.javascript.jscomp.FunctionInformationMap.Module.Builder>
getModuleBuilderList() {
return getModuleFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.javascript.jscomp.FunctionInformationMap.Module, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder, com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder>
getModuleFieldBuilder() {
if (moduleBuilder_ == null) {
moduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.google.javascript.jscomp.FunctionInformationMap.Module, com.google.javascript.jscomp.FunctionInformationMap.Module.Builder, com.google.javascript.jscomp.FunctionInformationMap.ModuleOrBuilder>(
module_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
module_ = null;
}
return moduleBuilder_;
}
// @@protoc_insertion_point(builder_scope:jscomp.FunctionInformationMap)
}
static {
defaultInstance = new FunctionInformationMap(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:jscomp.FunctionInformationMap)
}