edu.stanford.nlp.pipeline.CoreNLPProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-corenlp Show documentation
Show all versions of stanford-corenlp Show documentation
Stanford CoreNLP provides a set of natural language analysis tools which can take raw English language text input and give the base forms of words, their parts of speech, whether they are names of companies, people, etc., normalize dates, times, and numeric quantities, mark up the structure of sentences in terms of phrases and word dependencies, and indicate which noun phrases refer to the same entities. It provides the foundational building blocks for higher level text understanding applications.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CoreNLP.proto
package edu.stanford.nlp.pipeline;
public final class CoreNLPProtos {
private CoreNLPProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code edu.stanford.nlp.pipeline.Language}
*
*
* An enumeration for the valid languages allowed in CoreNLP
*
*/
public enum Language
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Unknown = 0;
*/
Unknown(0, 0),
/**
* Any = 1;
*/
Any(1, 1),
/**
* Arabic = 2;
*/
Arabic(2, 2),
/**
* Chinese = 3;
*/
Chinese(3, 3),
/**
* English = 4;
*/
English(4, 4),
/**
* German = 5;
*/
German(5, 5),
/**
* French = 6;
*/
French(6, 6),
/**
* Hebrew = 7;
*/
Hebrew(7, 7),
/**
* Spanish = 8;
*/
Spanish(8, 8),
/**
* UniversalEnglish = 9;
*/
UniversalEnglish(9, 9),
/**
* UniversalChinese = 10;
*/
UniversalChinese(10, 10),
;
/**
* Unknown = 0;
*/
public static final int Unknown_VALUE = 0;
/**
* Any = 1;
*/
public static final int Any_VALUE = 1;
/**
* Arabic = 2;
*/
public static final int Arabic_VALUE = 2;
/**
* Chinese = 3;
*/
public static final int Chinese_VALUE = 3;
/**
* English = 4;
*/
public static final int English_VALUE = 4;
/**
* German = 5;
*/
public static final int German_VALUE = 5;
/**
* French = 6;
*/
public static final int French_VALUE = 6;
/**
* Hebrew = 7;
*/
public static final int Hebrew_VALUE = 7;
/**
* Spanish = 8;
*/
public static final int Spanish_VALUE = 8;
/**
* UniversalEnglish = 9;
*/
public static final int UniversalEnglish_VALUE = 9;
/**
* UniversalChinese = 10;
*/
public static final int UniversalChinese_VALUE = 10;
public final int getNumber() { return value; }
public static Language valueOf(int value) {
switch (value) {
case 0: return Unknown;
case 1: return Any;
case 2: return Arabic;
case 3: return Chinese;
case 4: return English;
case 5: return German;
case 6: return French;
case 7: return Hebrew;
case 8: return Spanish;
case 9: return UniversalEnglish;
case 10: return UniversalChinese;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Language findValueByNumber(int number) {
return Language.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.getDescriptor().getEnumTypes().get(0);
}
private static final Language[] VALUES = values();
public static Language valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Language(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:edu.stanford.nlp.pipeline.Language)
}
/**
* Protobuf enum {@code edu.stanford.nlp.pipeline.Sentiment}
*
*
* An enumeration of valid sentiment values for the sentiment classifier.
*
*/
public enum Sentiment
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STRONG_NEGATIVE = 0;
*/
STRONG_NEGATIVE(0, 0),
/**
* WEAK_NEGATIVE = 1;
*/
WEAK_NEGATIVE(1, 1),
/**
* NEUTRAL = 2;
*/
NEUTRAL(2, 2),
/**
* WEAK_POSITIVE = 3;
*/
WEAK_POSITIVE(3, 3),
/**
* STRONG_POSITIVE = 4;
*/
STRONG_POSITIVE(4, 4),
;
/**
* STRONG_NEGATIVE = 0;
*/
public static final int STRONG_NEGATIVE_VALUE = 0;
/**
* WEAK_NEGATIVE = 1;
*/
public static final int WEAK_NEGATIVE_VALUE = 1;
/**
* NEUTRAL = 2;
*/
public static final int NEUTRAL_VALUE = 2;
/**
* WEAK_POSITIVE = 3;
*/
public static final int WEAK_POSITIVE_VALUE = 3;
/**
* STRONG_POSITIVE = 4;
*/
public static final int STRONG_POSITIVE_VALUE = 4;
public final int getNumber() { return value; }
public static Sentiment valueOf(int value) {
switch (value) {
case 0: return STRONG_NEGATIVE;
case 1: return WEAK_NEGATIVE;
case 2: return NEUTRAL;
case 3: return WEAK_POSITIVE;
case 4: return STRONG_POSITIVE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Sentiment findValueByNumber(int number) {
return Sentiment.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.getDescriptor().getEnumTypes().get(1);
}
private static final Sentiment[] VALUES = values();
public static Sentiment valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Sentiment(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:edu.stanford.nlp.pipeline.Sentiment)
}
/**
* Protobuf enum {@code edu.stanford.nlp.pipeline.NaturalLogicRelation}
*
*
* The seven informative Natural Logic relations
*
*/
public enum NaturalLogicRelation
implements com.google.protobuf.ProtocolMessageEnum {
/**
* EQUIVALENCE = 0;
*/
EQUIVALENCE(0, 0),
/**
* FORWARD_ENTAILMENT = 1;
*/
FORWARD_ENTAILMENT(1, 1),
/**
* REVERSE_ENTAILMENT = 2;
*/
REVERSE_ENTAILMENT(2, 2),
/**
* NEGATION = 3;
*/
NEGATION(3, 3),
/**
* ALTERNATION = 4;
*/
ALTERNATION(4, 4),
/**
* COVER = 5;
*/
COVER(5, 5),
/**
* INDEPENDENCE = 6;
*/
INDEPENDENCE(6, 6),
;
/**
* EQUIVALENCE = 0;
*/
public static final int EQUIVALENCE_VALUE = 0;
/**
* FORWARD_ENTAILMENT = 1;
*/
public static final int FORWARD_ENTAILMENT_VALUE = 1;
/**
* REVERSE_ENTAILMENT = 2;
*/
public static final int REVERSE_ENTAILMENT_VALUE = 2;
/**
* NEGATION = 3;
*/
public static final int NEGATION_VALUE = 3;
/**
* ALTERNATION = 4;
*/
public static final int ALTERNATION_VALUE = 4;
/**
* COVER = 5;
*/
public static final int COVER_VALUE = 5;
/**
* INDEPENDENCE = 6;
*/
public static final int INDEPENDENCE_VALUE = 6;
public final int getNumber() { return value; }
public static NaturalLogicRelation valueOf(int value) {
switch (value) {
case 0: return EQUIVALENCE;
case 1: return FORWARD_ENTAILMENT;
case 2: return REVERSE_ENTAILMENT;
case 3: return NEGATION;
case 4: return ALTERNATION;
case 5: return COVER;
case 6: return INDEPENDENCE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NaturalLogicRelation findValueByNumber(int number) {
return NaturalLogicRelation.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.getDescriptor().getEnumTypes().get(2);
}
private static final NaturalLogicRelation[] VALUES = values();
public static NaturalLogicRelation valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private NaturalLogicRelation(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:edu.stanford.nlp.pipeline.NaturalLogicRelation)
}
public interface DocumentOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Document)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
* required string text = 1;
*/
boolean hasText();
/**
* required string text = 1;
*/
java.lang.String getText();
/**
* required string text = 1;
*/
com.google.protobuf.ByteString
getTextBytes();
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
java.util.List
getSentenceList();
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getSentence(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
int getSentenceCount();
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
java.util.List
getSentenceOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentenceOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
java.util.List
getCorefChainList();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain getCorefChain(int index);
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
int getCorefChainCount();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
java.util.List
getCorefChainOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuilder(
int index);
/**
* optional string docID = 4;
*/
boolean hasDocID();
/**
* optional string docID = 4;
*/
java.lang.String getDocID();
/**
* optional string docID = 4;
*/
com.google.protobuf.ByteString
getDocIDBytes();
/**
* optional string docDate = 7;
*/
boolean hasDocDate();
/**
* optional string docDate = 7;
*/
java.lang.String getDocDate();
/**
* optional string docDate = 7;
*/
com.google.protobuf.ByteString
getDocDateBytes();
/**
* optional uint64 calendar = 8;
*/
boolean hasCalendar();
/**
* optional uint64 calendar = 8;
*/
long getCalendar();
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
java.util.List
getSentencelessTokenList();
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Token getSentencelessToken(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
int getSentencelessTokenCount();
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
java.util.List
getSentencelessTokenOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
java.util.List
getCharacterList();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Token getCharacter(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
int getCharacterCount();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
java.util.List
getCharacterOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
java.util.List
getQuoteList();
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote getQuote(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
int getQuoteCount();
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
java.util.List
getQuoteOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder getQuoteOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
java.util.List
getMentionsList();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index);
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
int getMentionsCount();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
java.util.List
getMentionsOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(
int index);
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.Document}
*
*
* A document; that is, the equivalent of an Annotation.
*
*/
public static final class Document extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
Document> implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Document)
DocumentOrBuilder {
// Use Document.newBuilder() to construct.
private Document(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Document(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Document defaultInstance;
public static Document getDefaultInstance() {
return defaultInstance;
}
public Document getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Document(
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 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
text_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
sentence_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
sentence_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
corefChain_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
corefChain_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.PARSER, extensionRegistry));
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
docID_ = bs;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
sentencelessToken_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
sentencelessToken_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
quote_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
quote_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.PARSER, extensionRegistry));
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
docDate_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000008;
calendar_ = input.readUInt64();
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
mentions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
mentions_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.PARSER, extensionRegistry));
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
character_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
character_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.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_ & 0x00000002) == 0x00000002)) {
sentence_ = java.util.Collections.unmodifiableList(sentence_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
corefChain_ = java.util.Collections.unmodifiableList(corefChain_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
sentencelessToken_ = java.util.Collections.unmodifiableList(sentencelessToken_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
quote_ = java.util.Collections.unmodifiableList(quote_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
mentions_ = java.util.Collections.unmodifiableList(mentions_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
character_ = java.util.Collections.unmodifiableList(character_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Document.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Document.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Document parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Document(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TEXT_FIELD_NUMBER = 1;
private java.lang.Object text_;
/**
* required string text = 1;
*/
public boolean hasText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string text = 1;
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
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()) {
text_ = s;
}
return s;
}
}
/**
* required string text = 1;
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SENTENCE_FIELD_NUMBER = 2;
private java.util.List sentence_;
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public java.util.List getSentenceList() {
return sentence_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public java.util.List
getSentenceOrBuilderList() {
return sentence_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public int getSentenceCount() {
return sentence_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getSentence(int index) {
return sentence_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentenceOrBuilder(
int index) {
return sentence_.get(index);
}
public static final int COREFCHAIN_FIELD_NUMBER = 3;
private java.util.List corefChain_;
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public java.util.List getCorefChainList() {
return corefChain_;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public java.util.List
getCorefChainOrBuilderList() {
return corefChain_;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public int getCorefChainCount() {
return corefChain_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain getCorefChain(int index) {
return corefChain_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuilder(
int index) {
return corefChain_.get(index);
}
public static final int DOCID_FIELD_NUMBER = 4;
private java.lang.Object docID_;
/**
* optional string docID = 4;
*/
public boolean hasDocID() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string docID = 4;
*/
public java.lang.String getDocID() {
java.lang.Object ref = docID_;
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()) {
docID_ = s;
}
return s;
}
}
/**
* optional string docID = 4;
*/
public com.google.protobuf.ByteString
getDocIDBytes() {
java.lang.Object ref = docID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DOCDATE_FIELD_NUMBER = 7;
private java.lang.Object docDate_;
/**
* optional string docDate = 7;
*/
public boolean hasDocDate() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string docDate = 7;
*/
public java.lang.String getDocDate() {
java.lang.Object ref = docDate_;
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()) {
docDate_ = s;
}
return s;
}
}
/**
* optional string docDate = 7;
*/
public com.google.protobuf.ByteString
getDocDateBytes() {
java.lang.Object ref = docDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CALENDAR_FIELD_NUMBER = 8;
private long calendar_;
/**
* optional uint64 calendar = 8;
*/
public boolean hasCalendar() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 calendar = 8;
*/
public long getCalendar() {
return calendar_;
}
public static final int SENTENCELESSTOKEN_FIELD_NUMBER = 5;
private java.util.List sentencelessToken_;
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public java.util.List getSentencelessTokenList() {
return sentencelessToken_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public java.util.List
getSentencelessTokenOrBuilderList() {
return sentencelessToken_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public int getSentencelessTokenCount() {
return sentencelessToken_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getSentencelessToken(int index) {
return sentencelessToken_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder(
int index) {
return sentencelessToken_.get(index);
}
public static final int CHARACTER_FIELD_NUMBER = 10;
private java.util.List character_;
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public java.util.List getCharacterList() {
return character_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public java.util.List
getCharacterOrBuilderList() {
return character_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public int getCharacterCount() {
return character_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getCharacter(int index) {
return character_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(
int index) {
return character_.get(index);
}
public static final int QUOTE_FIELD_NUMBER = 6;
private java.util.List quote_;
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public java.util.List getQuoteList() {
return quote_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public java.util.List
getQuoteOrBuilderList() {
return quote_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public int getQuoteCount() {
return quote_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote getQuote(int index) {
return quote_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder getQuoteOrBuilder(
int index) {
return quote_.get(index);
}
public static final int MENTIONS_FIELD_NUMBER = 9;
private java.util.List mentions_;
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public java.util.List getMentionsList() {
return mentions_;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public java.util.List
getMentionsOrBuilderList() {
return mentions_;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public int getMentionsCount() {
return mentions_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index) {
return mentions_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(
int index) {
return mentions_.get(index);
}
private void initFields() {
text_ = "";
sentence_ = java.util.Collections.emptyList();
corefChain_ = java.util.Collections.emptyList();
docID_ = "";
docDate_ = "";
calendar_ = 0L;
sentencelessToken_ = java.util.Collections.emptyList();
character_ = java.util.Collections.emptyList();
quote_ = java.util.Collections.emptyList();
mentions_ = 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 (!hasText()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getSentenceCount(); i++) {
if (!getSentence(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCorefChainCount(); i++) {
if (!getCorefChain(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getSentencelessTokenCount(); i++) {
if (!getSentencelessToken(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCharacterCount(); i++) {
if (!getCharacter(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getMentionsCount(); i++) {
if (!getMentions(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionWriter extensionWriter =
newExtensionWriter();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getTextBytes());
}
for (int i = 0; i < sentence_.size(); i++) {
output.writeMessage(2, sentence_.get(i));
}
for (int i = 0; i < corefChain_.size(); i++) {
output.writeMessage(3, corefChain_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(4, getDocIDBytes());
}
for (int i = 0; i < sentencelessToken_.size(); i++) {
output.writeMessage(5, sentencelessToken_.get(i));
}
for (int i = 0; i < quote_.size(); i++) {
output.writeMessage(6, quote_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(7, getDocDateBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(8, calendar_);
}
for (int i = 0; i < mentions_.size(); i++) {
output.writeMessage(9, mentions_.get(i));
}
for (int i = 0; i < character_.size(); i++) {
output.writeMessage(10, character_.get(i));
}
extensionWriter.writeUntil(256, output);
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(1, getTextBytes());
}
for (int i = 0; i < sentence_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, sentence_.get(i));
}
for (int i = 0; i < corefChain_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, corefChain_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getDocIDBytes());
}
for (int i = 0; i < sentencelessToken_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, sentencelessToken_.get(i));
}
for (int i = 0; i < quote_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, quote_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getDocDateBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, calendar_);
}
for (int i = 0; i < mentions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, mentions_.get(i));
}
for (int i = 0; i < character_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, character_.get(i));
}
size += extensionsSerializedSize();
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 edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document 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(edu.stanford.nlp.pipeline.CoreNLPProtos.Document 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 edu.stanford.nlp.pipeline.Document}
*
*
* A document; that is, the equivalent of an Annotation.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Document, Builder> implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Document)
edu.stanford.nlp.pipeline.CoreNLPProtos.DocumentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Document.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Document.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Document.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getSentenceFieldBuilder();
getCorefChainFieldBuilder();
getSentencelessTokenFieldBuilder();
getCharacterFieldBuilder();
getQuoteFieldBuilder();
getMentionsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
text_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (sentenceBuilder_ == null) {
sentence_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
sentenceBuilder_.clear();
}
if (corefChainBuilder_ == null) {
corefChain_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
corefChainBuilder_.clear();
}
docID_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
docDate_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
calendar_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
if (sentencelessTokenBuilder_ == null) {
sentencelessToken_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
sentencelessTokenBuilder_.clear();
}
if (characterBuilder_ == null) {
character_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
characterBuilder_.clear();
}
if (quoteBuilder_ == null) {
quote_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
quoteBuilder_.clear();
}
if (mentionsBuilder_ == null) {
mentions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
mentionsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Document getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.Document.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Document build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Document result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Document buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Document result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Document(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.text_ = text_;
if (sentenceBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
sentence_ = java.util.Collections.unmodifiableList(sentence_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.sentence_ = sentence_;
} else {
result.sentence_ = sentenceBuilder_.build();
}
if (corefChainBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
corefChain_ = java.util.Collections.unmodifiableList(corefChain_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.corefChain_ = corefChain_;
} else {
result.corefChain_ = corefChainBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
result.docID_ = docID_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.docDate_ = docDate_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000008;
}
result.calendar_ = calendar_;
if (sentencelessTokenBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
sentencelessToken_ = java.util.Collections.unmodifiableList(sentencelessToken_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.sentencelessToken_ = sentencelessToken_;
} else {
result.sentencelessToken_ = sentencelessTokenBuilder_.build();
}
if (characterBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
character_ = java.util.Collections.unmodifiableList(character_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.character_ = character_;
} else {
result.character_ = characterBuilder_.build();
}
if (quoteBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
quote_ = java.util.Collections.unmodifiableList(quote_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.quote_ = quote_;
} else {
result.quote_ = quoteBuilder_.build();
}
if (mentionsBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
mentions_ = java.util.Collections.unmodifiableList(mentions_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.mentions_ = mentions_;
} else {
result.mentions_ = mentionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Document) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Document)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Document.getDefaultInstance()) return this;
if (other.hasText()) {
bitField0_ |= 0x00000001;
text_ = other.text_;
onChanged();
}
if (sentenceBuilder_ == null) {
if (!other.sentence_.isEmpty()) {
if (sentence_.isEmpty()) {
sentence_ = other.sentence_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSentenceIsMutable();
sentence_.addAll(other.sentence_);
}
onChanged();
}
} else {
if (!other.sentence_.isEmpty()) {
if (sentenceBuilder_.isEmpty()) {
sentenceBuilder_.dispose();
sentenceBuilder_ = null;
sentence_ = other.sentence_;
bitField0_ = (bitField0_ & ~0x00000002);
sentenceBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSentenceFieldBuilder() : null;
} else {
sentenceBuilder_.addAllMessages(other.sentence_);
}
}
}
if (corefChainBuilder_ == null) {
if (!other.corefChain_.isEmpty()) {
if (corefChain_.isEmpty()) {
corefChain_ = other.corefChain_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCorefChainIsMutable();
corefChain_.addAll(other.corefChain_);
}
onChanged();
}
} else {
if (!other.corefChain_.isEmpty()) {
if (corefChainBuilder_.isEmpty()) {
corefChainBuilder_.dispose();
corefChainBuilder_ = null;
corefChain_ = other.corefChain_;
bitField0_ = (bitField0_ & ~0x00000004);
corefChainBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCorefChainFieldBuilder() : null;
} else {
corefChainBuilder_.addAllMessages(other.corefChain_);
}
}
}
if (other.hasDocID()) {
bitField0_ |= 0x00000008;
docID_ = other.docID_;
onChanged();
}
if (other.hasDocDate()) {
bitField0_ |= 0x00000010;
docDate_ = other.docDate_;
onChanged();
}
if (other.hasCalendar()) {
setCalendar(other.getCalendar());
}
if (sentencelessTokenBuilder_ == null) {
if (!other.sentencelessToken_.isEmpty()) {
if (sentencelessToken_.isEmpty()) {
sentencelessToken_ = other.sentencelessToken_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSentencelessTokenIsMutable();
sentencelessToken_.addAll(other.sentencelessToken_);
}
onChanged();
}
} else {
if (!other.sentencelessToken_.isEmpty()) {
if (sentencelessTokenBuilder_.isEmpty()) {
sentencelessTokenBuilder_.dispose();
sentencelessTokenBuilder_ = null;
sentencelessToken_ = other.sentencelessToken_;
bitField0_ = (bitField0_ & ~0x00000040);
sentencelessTokenBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSentencelessTokenFieldBuilder() : null;
} else {
sentencelessTokenBuilder_.addAllMessages(other.sentencelessToken_);
}
}
}
if (characterBuilder_ == null) {
if (!other.character_.isEmpty()) {
if (character_.isEmpty()) {
character_ = other.character_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureCharacterIsMutable();
character_.addAll(other.character_);
}
onChanged();
}
} else {
if (!other.character_.isEmpty()) {
if (characterBuilder_.isEmpty()) {
characterBuilder_.dispose();
characterBuilder_ = null;
character_ = other.character_;
bitField0_ = (bitField0_ & ~0x00000080);
characterBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCharacterFieldBuilder() : null;
} else {
characterBuilder_.addAllMessages(other.character_);
}
}
}
if (quoteBuilder_ == null) {
if (!other.quote_.isEmpty()) {
if (quote_.isEmpty()) {
quote_ = other.quote_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureQuoteIsMutable();
quote_.addAll(other.quote_);
}
onChanged();
}
} else {
if (!other.quote_.isEmpty()) {
if (quoteBuilder_.isEmpty()) {
quoteBuilder_.dispose();
quoteBuilder_ = null;
quote_ = other.quote_;
bitField0_ = (bitField0_ & ~0x00000100);
quoteBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getQuoteFieldBuilder() : null;
} else {
quoteBuilder_.addAllMessages(other.quote_);
}
}
}
if (mentionsBuilder_ == null) {
if (!other.mentions_.isEmpty()) {
if (mentions_.isEmpty()) {
mentions_ = other.mentions_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureMentionsIsMutable();
mentions_.addAll(other.mentions_);
}
onChanged();
}
} else {
if (!other.mentions_.isEmpty()) {
if (mentionsBuilder_.isEmpty()) {
mentionsBuilder_.dispose();
mentionsBuilder_ = null;
mentions_ = other.mentions_;
bitField0_ = (bitField0_ & ~0x00000200);
mentionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMentionsFieldBuilder() : null;
} else {
mentionsBuilder_.addAllMessages(other.mentions_);
}
}
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasText()) {
return false;
}
for (int i = 0; i < getSentenceCount(); i++) {
if (!getSentence(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getCorefChainCount(); i++) {
if (!getCorefChain(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getSentencelessTokenCount(); i++) {
if (!getSentencelessToken(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getCharacterCount(); i++) {
if (!getCharacter(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getMentionsCount(); i++) {
if (!getMentions(i).isInitialized()) {
return false;
}
}
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.Document parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Document) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object text_ = "";
/**
* required string text = 1;
*/
public boolean hasText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string text = 1;
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
text_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string text = 1;
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string text = 1;
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
/**
* required string text = 1;
*/
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00000001);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* required string text = 1;
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
private java.util.List sentence_ =
java.util.Collections.emptyList();
private void ensureSentenceIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
sentence_ = new java.util.ArrayList(sentence_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder> sentenceBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public java.util.List getSentenceList() {
if (sentenceBuilder_ == null) {
return java.util.Collections.unmodifiableList(sentence_);
} else {
return sentenceBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public int getSentenceCount() {
if (sentenceBuilder_ == null) {
return sentence_.size();
} else {
return sentenceBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getSentence(int index) {
if (sentenceBuilder_ == null) {
return sentence_.get(index);
} else {
return sentenceBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder setSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence value) {
if (sentenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSentenceIsMutable();
sentence_.set(index, value);
onChanged();
} else {
sentenceBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder setSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder builderForValue) {
if (sentenceBuilder_ == null) {
ensureSentenceIsMutable();
sentence_.set(index, builderForValue.build());
onChanged();
} else {
sentenceBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder addSentence(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence value) {
if (sentenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSentenceIsMutable();
sentence_.add(value);
onChanged();
} else {
sentenceBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder addSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence value) {
if (sentenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSentenceIsMutable();
sentence_.add(index, value);
onChanged();
} else {
sentenceBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder addSentence(
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder builderForValue) {
if (sentenceBuilder_ == null) {
ensureSentenceIsMutable();
sentence_.add(builderForValue.build());
onChanged();
} else {
sentenceBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder addSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder builderForValue) {
if (sentenceBuilder_ == null) {
ensureSentenceIsMutable();
sentence_.add(index, builderForValue.build());
onChanged();
} else {
sentenceBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder addAllSentence(
java.lang.Iterable values) {
if (sentenceBuilder_ == null) {
ensureSentenceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sentence_);
onChanged();
} else {
sentenceBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder clearSentence() {
if (sentenceBuilder_ == null) {
sentence_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
sentenceBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public Builder removeSentence(int index) {
if (sentenceBuilder_ == null) {
ensureSentenceIsMutable();
sentence_.remove(index);
onChanged();
} else {
sentenceBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder getSentenceBuilder(
int index) {
return getSentenceFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentenceOrBuilder(
int index) {
if (sentenceBuilder_ == null) {
return sentence_.get(index); } else {
return sentenceBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public java.util.List
getSentenceOrBuilderList() {
if (sentenceBuilder_ != null) {
return sentenceBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sentence_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder addSentenceBuilder() {
return getSentenceFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder addSentenceBuilder(
int index) {
return getSentenceFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2;
*/
public java.util.List
getSentenceBuilderList() {
return getSentenceFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder>
getSentenceFieldBuilder() {
if (sentenceBuilder_ == null) {
sentenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder>(
sentence_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
sentence_ = null;
}
return sentenceBuilder_;
}
private java.util.List corefChain_ =
java.util.Collections.emptyList();
private void ensureCorefChainIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
corefChain_ = new java.util.ArrayList(corefChain_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder> corefChainBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public java.util.List getCorefChainList() {
if (corefChainBuilder_ == null) {
return java.util.Collections.unmodifiableList(corefChain_);
} else {
return corefChainBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public int getCorefChainCount() {
if (corefChainBuilder_ == null) {
return corefChain_.size();
} else {
return corefChainBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain getCorefChain(int index) {
if (corefChainBuilder_ == null) {
return corefChain_.get(index);
} else {
return corefChainBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder setCorefChain(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain value) {
if (corefChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCorefChainIsMutable();
corefChain_.set(index, value);
onChanged();
} else {
corefChainBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder setCorefChain(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder builderForValue) {
if (corefChainBuilder_ == null) {
ensureCorefChainIsMutable();
corefChain_.set(index, builderForValue.build());
onChanged();
} else {
corefChainBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder addCorefChain(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain value) {
if (corefChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCorefChainIsMutable();
corefChain_.add(value);
onChanged();
} else {
corefChainBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder addCorefChain(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain value) {
if (corefChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCorefChainIsMutable();
corefChain_.add(index, value);
onChanged();
} else {
corefChainBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder addCorefChain(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder builderForValue) {
if (corefChainBuilder_ == null) {
ensureCorefChainIsMutable();
corefChain_.add(builderForValue.build());
onChanged();
} else {
corefChainBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder addCorefChain(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder builderForValue) {
if (corefChainBuilder_ == null) {
ensureCorefChainIsMutable();
corefChain_.add(index, builderForValue.build());
onChanged();
} else {
corefChainBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder addAllCorefChain(
java.lang.Iterable values) {
if (corefChainBuilder_ == null) {
ensureCorefChainIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, corefChain_);
onChanged();
} else {
corefChainBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder clearCorefChain() {
if (corefChainBuilder_ == null) {
corefChain_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
corefChainBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public Builder removeCorefChain(int index) {
if (corefChainBuilder_ == null) {
ensureCorefChainIsMutable();
corefChain_.remove(index);
onChanged();
} else {
corefChainBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder getCorefChainBuilder(
int index) {
return getCorefChainFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuilder(
int index) {
if (corefChainBuilder_ == null) {
return corefChain_.get(index); } else {
return corefChainBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public java.util.List
getCorefChainOrBuilderList() {
if (corefChainBuilder_ != null) {
return corefChainBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(corefChain_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder addCorefChainBuilder() {
return getCorefChainFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder addCorefChainBuilder(
int index) {
return getCorefChainFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3;
*/
public java.util.List
getCorefChainBuilderList() {
return getCorefChainFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder>
getCorefChainFieldBuilder() {
if (corefChainBuilder_ == null) {
corefChainBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder>(
corefChain_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
corefChain_ = null;
}
return corefChainBuilder_;
}
private java.lang.Object docID_ = "";
/**
* optional string docID = 4;
*/
public boolean hasDocID() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string docID = 4;
*/
public java.lang.String getDocID() {
java.lang.Object ref = docID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
docID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string docID = 4;
*/
public com.google.protobuf.ByteString
getDocIDBytes() {
java.lang.Object ref = docID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string docID = 4;
*/
public Builder setDocID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
docID_ = value;
onChanged();
return this;
}
/**
* optional string docID = 4;
*/
public Builder clearDocID() {
bitField0_ = (bitField0_ & ~0x00000008);
docID_ = getDefaultInstance().getDocID();
onChanged();
return this;
}
/**
* optional string docID = 4;
*/
public Builder setDocIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
docID_ = value;
onChanged();
return this;
}
private java.lang.Object docDate_ = "";
/**
* optional string docDate = 7;
*/
public boolean hasDocDate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string docDate = 7;
*/
public java.lang.String getDocDate() {
java.lang.Object ref = docDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
docDate_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string docDate = 7;
*/
public com.google.protobuf.ByteString
getDocDateBytes() {
java.lang.Object ref = docDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string docDate = 7;
*/
public Builder setDocDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
docDate_ = value;
onChanged();
return this;
}
/**
* optional string docDate = 7;
*/
public Builder clearDocDate() {
bitField0_ = (bitField0_ & ~0x00000010);
docDate_ = getDefaultInstance().getDocDate();
onChanged();
return this;
}
/**
* optional string docDate = 7;
*/
public Builder setDocDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
docDate_ = value;
onChanged();
return this;
}
private long calendar_ ;
/**
* optional uint64 calendar = 8;
*/
public boolean hasCalendar() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint64 calendar = 8;
*/
public long getCalendar() {
return calendar_;
}
/**
* optional uint64 calendar = 8;
*/
public Builder setCalendar(long value) {
bitField0_ |= 0x00000020;
calendar_ = value;
onChanged();
return this;
}
/**
* optional uint64 calendar = 8;
*/
public Builder clearCalendar() {
bitField0_ = (bitField0_ & ~0x00000020);
calendar_ = 0L;
onChanged();
return this;
}
private java.util.List sentencelessToken_ =
java.util.Collections.emptyList();
private void ensureSentencelessTokenIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
sentencelessToken_ = new java.util.ArrayList(sentencelessToken_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> sentencelessTokenBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public java.util.List getSentencelessTokenList() {
if (sentencelessTokenBuilder_ == null) {
return java.util.Collections.unmodifiableList(sentencelessToken_);
} else {
return sentencelessTokenBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public int getSentencelessTokenCount() {
if (sentencelessTokenBuilder_ == null) {
return sentencelessToken_.size();
} else {
return sentencelessTokenBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getSentencelessToken(int index) {
if (sentencelessTokenBuilder_ == null) {
return sentencelessToken_.get(index);
} else {
return sentencelessTokenBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder setSentencelessToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (sentencelessTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSentencelessTokenIsMutable();
sentencelessToken_.set(index, value);
onChanged();
} else {
sentencelessTokenBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder setSentencelessToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (sentencelessTokenBuilder_ == null) {
ensureSentencelessTokenIsMutable();
sentencelessToken_.set(index, builderForValue.build());
onChanged();
} else {
sentencelessTokenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder addSentencelessToken(edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (sentencelessTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSentencelessTokenIsMutable();
sentencelessToken_.add(value);
onChanged();
} else {
sentencelessTokenBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder addSentencelessToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (sentencelessTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSentencelessTokenIsMutable();
sentencelessToken_.add(index, value);
onChanged();
} else {
sentencelessTokenBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder addSentencelessToken(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (sentencelessTokenBuilder_ == null) {
ensureSentencelessTokenIsMutable();
sentencelessToken_.add(builderForValue.build());
onChanged();
} else {
sentencelessTokenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder addSentencelessToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (sentencelessTokenBuilder_ == null) {
ensureSentencelessTokenIsMutable();
sentencelessToken_.add(index, builderForValue.build());
onChanged();
} else {
sentencelessTokenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder addAllSentencelessToken(
java.lang.Iterable values) {
if (sentencelessTokenBuilder_ == null) {
ensureSentencelessTokenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sentencelessToken_);
onChanged();
} else {
sentencelessTokenBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder clearSentencelessToken() {
if (sentencelessTokenBuilder_ == null) {
sentencelessToken_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
sentencelessTokenBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public Builder removeSentencelessToken(int index) {
if (sentencelessTokenBuilder_ == null) {
ensureSentencelessTokenIsMutable();
sentencelessToken_.remove(index);
onChanged();
} else {
sentencelessTokenBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder getSentencelessTokenBuilder(
int index) {
return getSentencelessTokenFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder(
int index) {
if (sentencelessTokenBuilder_ == null) {
return sentencelessToken_.get(index); } else {
return sentencelessTokenBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public java.util.List
getSentencelessTokenOrBuilderList() {
if (sentencelessTokenBuilder_ != null) {
return sentencelessTokenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sentencelessToken_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addSentencelessTokenBuilder() {
return getSentencelessTokenFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addSentencelessTokenBuilder(
int index) {
return getSentencelessTokenFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5;
*
*
**
* A peculiar field, for the corner case when a Document is
* serialized without any sentences. Otherwise
*
*/
public java.util.List
getSentencelessTokenBuilderList() {
return getSentencelessTokenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>
getSentencelessTokenFieldBuilder() {
if (sentencelessTokenBuilder_ == null) {
sentencelessTokenBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>(
sentencelessToken_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
sentencelessToken_ = null;
}
return sentencelessTokenBuilder_;
}
private java.util.List character_ =
java.util.Collections.emptyList();
private void ensureCharacterIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
character_ = new java.util.ArrayList(character_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> characterBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public java.util.List getCharacterList() {
if (characterBuilder_ == null) {
return java.util.Collections.unmodifiableList(character_);
} else {
return characterBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public int getCharacterCount() {
if (characterBuilder_ == null) {
return character_.size();
} else {
return characterBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getCharacter(int index) {
if (characterBuilder_ == null) {
return character_.get(index);
} else {
return characterBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder setCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (characterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharacterIsMutable();
character_.set(index, value);
onChanged();
} else {
characterBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder setCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.set(index, builderForValue.build());
onChanged();
} else {
characterBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder addCharacter(edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (characterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharacterIsMutable();
character_.add(value);
onChanged();
} else {
characterBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder addCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (characterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharacterIsMutable();
character_.add(index, value);
onChanged();
} else {
characterBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder addCharacter(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.add(builderForValue.build());
onChanged();
} else {
characterBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder addCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.add(index, builderForValue.build());
onChanged();
} else {
characterBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder addAllCharacter(
java.lang.Iterable values) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, character_);
onChanged();
} else {
characterBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder clearCharacter() {
if (characterBuilder_ == null) {
character_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
characterBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public Builder removeCharacter(int index) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.remove(index);
onChanged();
} else {
characterBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder getCharacterBuilder(
int index) {
return getCharacterFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(
int index) {
if (characterBuilder_ == null) {
return character_.get(index); } else {
return characterBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public java.util.List
getCharacterOrBuilderList() {
if (characterBuilder_ != null) {
return characterBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(character_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder() {
return getCharacterFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder(
int index) {
return getCharacterFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 10;
*/
public java.util.List
getCharacterBuilderList() {
return getCharacterFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>
getCharacterFieldBuilder() {
if (characterBuilder_ == null) {
characterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>(
character_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
character_ = null;
}
return characterBuilder_;
}
private java.util.List quote_ =
java.util.Collections.emptyList();
private void ensureQuoteIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
quote_ = new java.util.ArrayList(quote_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder> quoteBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public java.util.List getQuoteList() {
if (quoteBuilder_ == null) {
return java.util.Collections.unmodifiableList(quote_);
} else {
return quoteBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public int getQuoteCount() {
if (quoteBuilder_ == null) {
return quote_.size();
} else {
return quoteBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote getQuote(int index) {
if (quoteBuilder_ == null) {
return quote_.get(index);
} else {
return quoteBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder setQuote(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote value) {
if (quoteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuoteIsMutable();
quote_.set(index, value);
onChanged();
} else {
quoteBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder setQuote(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder builderForValue) {
if (quoteBuilder_ == null) {
ensureQuoteIsMutable();
quote_.set(index, builderForValue.build());
onChanged();
} else {
quoteBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder addQuote(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote value) {
if (quoteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuoteIsMutable();
quote_.add(value);
onChanged();
} else {
quoteBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder addQuote(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote value) {
if (quoteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuoteIsMutable();
quote_.add(index, value);
onChanged();
} else {
quoteBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder addQuote(
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder builderForValue) {
if (quoteBuilder_ == null) {
ensureQuoteIsMutable();
quote_.add(builderForValue.build());
onChanged();
} else {
quoteBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder addQuote(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder builderForValue) {
if (quoteBuilder_ == null) {
ensureQuoteIsMutable();
quote_.add(index, builderForValue.build());
onChanged();
} else {
quoteBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder addAllQuote(
java.lang.Iterable values) {
if (quoteBuilder_ == null) {
ensureQuoteIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, quote_);
onChanged();
} else {
quoteBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder clearQuote() {
if (quoteBuilder_ == null) {
quote_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
quoteBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public Builder removeQuote(int index) {
if (quoteBuilder_ == null) {
ensureQuoteIsMutable();
quote_.remove(index);
onChanged();
} else {
quoteBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder getQuoteBuilder(
int index) {
return getQuoteFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder getQuoteOrBuilder(
int index) {
if (quoteBuilder_ == null) {
return quote_.get(index); } else {
return quoteBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public java.util.List
getQuoteOrBuilderList() {
if (quoteBuilder_ != null) {
return quoteBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(quote_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder addQuoteBuilder() {
return getQuoteFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder addQuoteBuilder(
int index) {
return getQuoteFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Quote quote = 6;
*/
public java.util.List
getQuoteBuilderList() {
return getQuoteFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder>
getQuoteFieldBuilder() {
if (quoteBuilder_ == null) {
quoteBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder>(
quote_,
((bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(),
isClean());
quote_ = null;
}
return quoteBuilder_;
}
private java.util.List mentions_ =
java.util.Collections.emptyList();
private void ensureMentionsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
mentions_ = new java.util.ArrayList(mentions_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder> mentionsBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public java.util.List getMentionsList() {
if (mentionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(mentions_);
} else {
return mentionsBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public int getMentionsCount() {
if (mentionsBuilder_ == null) {
return mentions_.size();
} else {
return mentionsBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index) {
if (mentionsBuilder_ == null) {
return mentions_.get(index);
} else {
return mentionsBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder setMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) {
if (mentionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsIsMutable();
mentions_.set(index, value);
onChanged();
} else {
mentionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder setMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.set(index, builderForValue.build());
onChanged();
} else {
mentionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder addMentions(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) {
if (mentionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsIsMutable();
mentions_.add(value);
onChanged();
} else {
mentionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder addMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) {
if (mentionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsIsMutable();
mentions_.add(index, value);
onChanged();
} else {
mentionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder addMentions(
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.add(builderForValue.build());
onChanged();
} else {
mentionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder addMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.add(index, builderForValue.build());
onChanged();
} else {
mentionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder addAllMentions(
java.lang.Iterable values) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mentions_);
onChanged();
} else {
mentionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder clearMentions() {
if (mentionsBuilder_ == null) {
mentions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
mentionsBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public Builder removeMentions(int index) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.remove(index);
onChanged();
} else {
mentionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder getMentionsBuilder(
int index) {
return getMentionsFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(
int index) {
if (mentionsBuilder_ == null) {
return mentions_.get(index); } else {
return mentionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public java.util.List
getMentionsOrBuilderList() {
if (mentionsBuilder_ != null) {
return mentionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mentions_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBuilder() {
return getMentionsFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBuilder(
int index) {
return getMentionsFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9;
*
*
**
* This field is for entity mentions across the document.
*
*/
public java.util.List
getMentionsBuilderList() {
return getMentionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder>
getMentionsFieldBuilder() {
if (mentionsBuilder_ == null) {
mentionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder>(
mentions_,
((bitField0_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
mentions_ = null;
}
return mentionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Document)
}
static {
defaultInstance = new Document(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Document)
}
public interface SentenceOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Sentence)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
java.util.List
getTokenList();
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Token getToken(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
int getTokenCount();
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
java.util.List
getTokenOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder(
int index);
/**
* required uint32 tokenOffsetBegin = 2;
*/
boolean hasTokenOffsetBegin();
/**
* required uint32 tokenOffsetBegin = 2;
*/
int getTokenOffsetBegin();
/**
* required uint32 tokenOffsetEnd = 3;
*/
boolean hasTokenOffsetEnd();
/**
* required uint32 tokenOffsetEnd = 3;
*/
int getTokenOffsetEnd();
/**
* optional uint32 sentenceIndex = 4;
*/
boolean hasSentenceIndex();
/**
* optional uint32 sentenceIndex = 4;
*/
int getSentenceIndex();
/**
* optional uint32 characterOffsetBegin = 5;
*/
boolean hasCharacterOffsetBegin();
/**
* optional uint32 characterOffsetBegin = 5;
*/
int getCharacterOffsetBegin();
/**
* optional uint32 characterOffsetEnd = 6;
*/
boolean hasCharacterOffsetEnd();
/**
* optional uint32 characterOffsetEnd = 6;
*/
int getCharacterOffsetEnd();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
boolean hasParseTree();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getParseTree();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
boolean hasBinarizedParseTree();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getBinarizedParseTree();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedParseTreeOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
boolean hasAnnotatedParseTree();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getAnnotatedParseTree();
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedParseTreeOrBuilder();
/**
* optional string sentiment = 33;
*/
boolean hasSentiment();
/**
* optional string sentiment = 33;
*/
java.lang.String getSentiment();
/**
* optional string sentiment = 33;
*/
com.google.protobuf.ByteString
getSentimentBytes();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
java.util.List
getKBestParseTreesList();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getKBestParseTrees(int index);
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
int getKBestParseTreesCount();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
java.util.List
getKBestParseTreesOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrBuilder(
int index);
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
boolean hasBasicDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getBasicDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasicDependenciesOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
boolean hasCollapsedDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedDependenciesOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
boolean hasCollapsedCCProcessedDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedCCProcessedDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedCCProcessedDependenciesOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
boolean hasAlternativeDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getAlternativeDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlternativeDependenciesOrBuilder();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
java.util.List
getOpenieTripleList();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getOpenieTriple(int index);
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
int getOpenieTripleCount();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
java.util.List
getOpenieTripleOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenieTripleOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
java.util.List
getKbpTripleList();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getKbpTriple(int index);
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
int getKbpTripleCount();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
java.util.List
getKbpTripleOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTripleOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
java.util.List
getEntailedSentenceList();
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedSentence(int index);
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
int getEntailedSentenceCount();
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
java.util.List
getEntailedSentenceOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedSentenceOrBuilder(
int index);
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
boolean hasEnhancedDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedDependenciesOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
boolean hasEnhancedPlusPlusDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedPlusPlusDependencies();
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedPlusPlusDependenciesOrBuilder();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
java.util.List
getCharacterList();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Token getCharacter(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
int getCharacterCount();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
java.util.List
getCharacterOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(
int index);
/**
* optional uint32 paragraph = 11;
*/
boolean hasParagraph();
/**
* optional uint32 paragraph = 11;
*/
int getParagraph();
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
boolean hasText();
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
java.lang.String getText();
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
com.google.protobuf.ByteString
getTextBytes();
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
boolean hasHasRelationAnnotations();
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
boolean getHasRelationAnnotations();
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
java.util.List
getEntityList();
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getEntity(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
int getEntityCount();
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
java.util.List
getEntityOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getEntityOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
java.util.List
getRelationList();
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Relation getRelation(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
int getRelationCount();
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
java.util.List
getRelationOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBuilder(
int index);
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
boolean hasHasNumerizedTokensAnnotation();
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
boolean getHasNumerizedTokensAnnotation();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
java.util.List
getMentionsList();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index);
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
int getMentionsCount();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
java.util.List
getMentionsOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
java.util.List
getMentionsForCorefList();
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention getMentionsForCoref(int index);
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
int getMentionsForCorefCount();
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
java.util.List
getMentionsForCorefOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder getMentionsForCorefOrBuilder(
int index);
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
boolean hasHasCorefMentionsAnnotation();
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
boolean getHasCorefMentionsAnnotation();
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
boolean hasSentenceID();
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
java.lang.String getSentenceID();
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
com.google.protobuf.ByteString
getSentenceIDBytes();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.Sentence}
*
*
* The serialized version of a CoreMap representing a sentence.
*
*/
public static final class Sentence extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
Sentence> implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Sentence)
SentenceOrBuilder {
// Use Sentence.newBuilder() to construct.
private Sentence(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Sentence(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Sentence defaultInstance;
public static Sentence getDefaultInstance() {
return defaultInstance;
}
public Sentence getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Sentence(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
token_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
token_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry));
break;
}
case 16: {
bitField0_ |= 0x00000001;
tokenOffsetBegin_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000002;
tokenOffsetEnd_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000004;
sentenceIndex_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000008;
characterOffsetBegin_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000010;
characterOffsetEnd_ = input.readUInt32();
break;
}
case 58: {
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = parseTree_.toBuilder();
}
parseTree_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parseTree_);
parseTree_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 66: {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = basicDependencies_.toBuilder();
}
basicDependencies_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(basicDependencies_);
basicDependencies_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 74: {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
subBuilder = collapsedDependencies_.toBuilder();
}
collapsedDependencies_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collapsedDependencies_);
collapsedDependencies_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 82: {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
subBuilder = collapsedCCProcessedDependencies_.toBuilder();
}
collapsedCCProcessedDependencies_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collapsedCCProcessedDependencies_);
collapsedCCProcessedDependencies_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000800;
break;
}
case 88: {
bitField0_ |= 0x00008000;
paragraph_ = input.readUInt32();
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00010000;
text_ = bs;
break;
}
case 106: {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null;
if (((bitField0_ & 0x00001000) == 0x00001000)) {
subBuilder = alternativeDependencies_.toBuilder();
}
alternativeDependencies_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(alternativeDependencies_);
alternativeDependencies_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00001000;
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
openieTriple_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
openieTriple_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.PARSER, extensionRegistry));
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) {
entailedSentence_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00020000;
}
entailedSentence_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.PARSER, extensionRegistry));
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
kbpTriple_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
kbpTriple_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.PARSER, extensionRegistry));
break;
}
case 138: {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
subBuilder = enhancedDependencies_.toBuilder();
}
enhancedDependencies_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enhancedDependencies_);
enhancedDependencies_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00002000;
break;
}
case 146: {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null;
if (((bitField0_ & 0x00004000) == 0x00004000)) {
subBuilder = enhancedPlusPlusDependencies_.toBuilder();
}
enhancedPlusPlusDependencies_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enhancedPlusPlusDependencies_);
enhancedPlusPlusDependencies_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00004000;
break;
}
case 154: {
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
character_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00100000;
}
character_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry));
break;
}
case 250: {
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = binarizedParseTree_.toBuilder();
}
binarizedParseTree_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(binarizedParseTree_);
binarizedParseTree_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 258: {
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = annotatedParseTree_.toBuilder();
}
annotatedParseTree_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(annotatedParseTree_);
annotatedParseTree_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 266: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
sentiment_ = bs;
break;
}
case 274: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
kBestParseTrees_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
kBestParseTrees_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry));
break;
}
case 408: {
bitField0_ |= 0x00020000;
hasRelationAnnotations_ = input.readBool();
break;
}
case 418: {
if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
entity_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x01000000;
}
entity_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.PARSER, extensionRegistry));
break;
}
case 426: {
if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
relation_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x02000000;
}
relation_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.PARSER, extensionRegistry));
break;
}
case 432: {
bitField0_ |= 0x00040000;
hasNumerizedTokensAnnotation_ = input.readBool();
break;
}
case 442: {
if (!((mutable_bitField0_ & 0x08000000) == 0x08000000)) {
mentions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x08000000;
}
mentions_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.PARSER, extensionRegistry));
break;
}
case 450: {
if (!((mutable_bitField0_ & 0x10000000) == 0x10000000)) {
mentionsForCoref_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x10000000;
}
mentionsForCoref_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.PARSER, extensionRegistry));
break;
}
case 456: {
bitField0_ |= 0x00080000;
hasCorefMentionsAnnotation_ = input.readBool();
break;
}
case 466: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00100000;
sentenceID_ = bs;
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)) {
token_ = java.util.Collections.unmodifiableList(token_);
}
if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
openieTriple_ = java.util.Collections.unmodifiableList(openieTriple_);
}
if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) {
entailedSentence_ = java.util.Collections.unmodifiableList(entailedSentence_);
}
if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
kbpTriple_ = java.util.Collections.unmodifiableList(kbpTriple_);
}
if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
character_ = java.util.Collections.unmodifiableList(character_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
kBestParseTrees_ = java.util.Collections.unmodifiableList(kBestParseTrees_);
}
if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
entity_ = java.util.Collections.unmodifiableList(entity_);
}
if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
relation_ = java.util.Collections.unmodifiableList(relation_);
}
if (((mutable_bitField0_ & 0x08000000) == 0x08000000)) {
mentions_ = java.util.Collections.unmodifiableList(mentions_);
}
if (((mutable_bitField0_ & 0x10000000) == 0x10000000)) {
mentionsForCoref_ = java.util.Collections.unmodifiableList(mentionsForCoref_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Sentence parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Sentence(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private java.util.List token_;
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public java.util.List getTokenList() {
return token_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public java.util.List
getTokenOrBuilderList() {
return token_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public int getTokenCount() {
return token_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getToken(int index) {
return token_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder(
int index) {
return token_.get(index);
}
public static final int TOKENOFFSETBEGIN_FIELD_NUMBER = 2;
private int tokenOffsetBegin_;
/**
* required uint32 tokenOffsetBegin = 2;
*/
public boolean hasTokenOffsetBegin() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 tokenOffsetBegin = 2;
*/
public int getTokenOffsetBegin() {
return tokenOffsetBegin_;
}
public static final int TOKENOFFSETEND_FIELD_NUMBER = 3;
private int tokenOffsetEnd_;
/**
* required uint32 tokenOffsetEnd = 3;
*/
public boolean hasTokenOffsetEnd() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 tokenOffsetEnd = 3;
*/
public int getTokenOffsetEnd() {
return tokenOffsetEnd_;
}
public static final int SENTENCEINDEX_FIELD_NUMBER = 4;
private int sentenceIndex_;
/**
* optional uint32 sentenceIndex = 4;
*/
public boolean hasSentenceIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 sentenceIndex = 4;
*/
public int getSentenceIndex() {
return sentenceIndex_;
}
public static final int CHARACTEROFFSETBEGIN_FIELD_NUMBER = 5;
private int characterOffsetBegin_;
/**
* optional uint32 characterOffsetBegin = 5;
*/
public boolean hasCharacterOffsetBegin() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 characterOffsetBegin = 5;
*/
public int getCharacterOffsetBegin() {
return characterOffsetBegin_;
}
public static final int CHARACTEROFFSETEND_FIELD_NUMBER = 6;
private int characterOffsetEnd_;
/**
* optional uint32 characterOffsetEnd = 6;
*/
public boolean hasCharacterOffsetEnd() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 characterOffsetEnd = 6;
*/
public int getCharacterOffsetEnd() {
return characterOffsetEnd_;
}
public static final int PARSETREE_FIELD_NUMBER = 7;
private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseTree_;
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public boolean hasParseTree() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getParseTree() {
return parseTree_;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOrBuilder() {
return parseTree_;
}
public static final int BINARIZEDPARSETREE_FIELD_NUMBER = 31;
private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree binarizedParseTree_;
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public boolean hasBinarizedParseTree() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getBinarizedParseTree() {
return binarizedParseTree_;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedParseTreeOrBuilder() {
return binarizedParseTree_;
}
public static final int ANNOTATEDPARSETREE_FIELD_NUMBER = 32;
private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree annotatedParseTree_;
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public boolean hasAnnotatedParseTree() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getAnnotatedParseTree() {
return annotatedParseTree_;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedParseTreeOrBuilder() {
return annotatedParseTree_;
}
public static final int SENTIMENT_FIELD_NUMBER = 33;
private java.lang.Object sentiment_;
/**
* optional string sentiment = 33;
*/
public boolean hasSentiment() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string sentiment = 33;
*/
public java.lang.String getSentiment() {
java.lang.Object ref = sentiment_;
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()) {
sentiment_ = s;
}
return s;
}
}
/**
* optional string sentiment = 33;
*/
public com.google.protobuf.ByteString
getSentimentBytes() {
java.lang.Object ref = sentiment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sentiment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KBESTPARSETREES_FIELD_NUMBER = 34;
private java.util.List kBestParseTrees_;
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public java.util.List getKBestParseTreesList() {
return kBestParseTrees_;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public java.util.List
getKBestParseTreesOrBuilderList() {
return kBestParseTrees_;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public int getKBestParseTreesCount() {
return kBestParseTrees_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getKBestParseTrees(int index) {
return kBestParseTrees_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrBuilder(
int index) {
return kBestParseTrees_.get(index);
}
public static final int BASICDEPENDENCIES_FIELD_NUMBER = 8;
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph basicDependencies_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public boolean hasBasicDependencies() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getBasicDependencies() {
return basicDependencies_;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasicDependenciesOrBuilder() {
return basicDependencies_;
}
public static final int COLLAPSEDDEPENDENCIES_FIELD_NUMBER = 9;
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedDependencies_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public boolean hasCollapsedDependencies() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedDependencies() {
return collapsedDependencies_;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedDependenciesOrBuilder() {
return collapsedDependencies_;
}
public static final int COLLAPSEDCCPROCESSEDDEPENDENCIES_FIELD_NUMBER = 10;
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedCCProcessedDependencies_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public boolean hasCollapsedCCProcessedDependencies() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedCCProcessedDependencies() {
return collapsedCCProcessedDependencies_;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedCCProcessedDependenciesOrBuilder() {
return collapsedCCProcessedDependencies_;
}
public static final int ALTERNATIVEDEPENDENCIES_FIELD_NUMBER = 13;
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph alternativeDependencies_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public boolean hasAlternativeDependencies() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getAlternativeDependencies() {
return alternativeDependencies_;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlternativeDependenciesOrBuilder() {
return alternativeDependencies_;
}
public static final int OPENIETRIPLE_FIELD_NUMBER = 14;
private java.util.List openieTriple_;
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public java.util.List getOpenieTripleList() {
return openieTriple_;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public java.util.List
getOpenieTripleOrBuilderList() {
return openieTriple_;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public int getOpenieTripleCount() {
return openieTriple_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getOpenieTriple(int index) {
return openieTriple_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenieTripleOrBuilder(
int index) {
return openieTriple_.get(index);
}
public static final int KBPTRIPLE_FIELD_NUMBER = 16;
private java.util.List kbpTriple_;
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public java.util.List getKbpTripleList() {
return kbpTriple_;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public java.util.List
getKbpTripleOrBuilderList() {
return kbpTriple_;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public int getKbpTripleCount() {
return kbpTriple_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getKbpTriple(int index) {
return kbpTriple_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTripleOrBuilder(
int index) {
return kbpTriple_.get(index);
}
public static final int ENTAILEDSENTENCE_FIELD_NUMBER = 15;
private java.util.List entailedSentence_;
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public java.util.List getEntailedSentenceList() {
return entailedSentence_;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public java.util.List
getEntailedSentenceOrBuilderList() {
return entailedSentence_;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public int getEntailedSentenceCount() {
return entailedSentence_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedSentence(int index) {
return entailedSentence_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedSentenceOrBuilder(
int index) {
return entailedSentence_.get(index);
}
public static final int ENHANCEDDEPENDENCIES_FIELD_NUMBER = 17;
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedDependencies_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public boolean hasEnhancedDependencies() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedDependencies() {
return enhancedDependencies_;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedDependenciesOrBuilder() {
return enhancedDependencies_;
}
public static final int ENHANCEDPLUSPLUSDEPENDENCIES_FIELD_NUMBER = 18;
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedPlusPlusDependencies_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public boolean hasEnhancedPlusPlusDependencies() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedPlusPlusDependencies() {
return enhancedPlusPlusDependencies_;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedPlusPlusDependenciesOrBuilder() {
return enhancedPlusPlusDependencies_;
}
public static final int CHARACTER_FIELD_NUMBER = 19;
private java.util.List character_;
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public java.util.List getCharacterList() {
return character_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public java.util.List
getCharacterOrBuilderList() {
return character_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public int getCharacterCount() {
return character_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getCharacter(int index) {
return character_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(
int index) {
return character_.get(index);
}
public static final int PARAGRAPH_FIELD_NUMBER = 11;
private int paragraph_;
/**
* optional uint32 paragraph = 11;
*/
public boolean hasParagraph() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional uint32 paragraph = 11;
*/
public int getParagraph() {
return paragraph_;
}
public static final int TEXT_FIELD_NUMBER = 12;
private java.lang.Object text_;
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public boolean hasText() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
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()) {
text_ = s;
}
return s;
}
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASRELATIONANNOTATIONS_FIELD_NUMBER = 51;
private boolean hasRelationAnnotations_;
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public boolean hasHasRelationAnnotations() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public boolean getHasRelationAnnotations() {
return hasRelationAnnotations_;
}
public static final int ENTITY_FIELD_NUMBER = 52;
private java.util.List entity_;
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public java.util.List getEntityList() {
return entity_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public java.util.List
getEntityOrBuilderList() {
return entity_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public int getEntityCount() {
return entity_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getEntity(int index) {
return entity_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getEntityOrBuilder(
int index) {
return entity_.get(index);
}
public static final int RELATION_FIELD_NUMBER = 53;
private java.util.List relation_;
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public java.util.List getRelationList() {
return relation_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public java.util.List
getRelationOrBuilderList() {
return relation_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public int getRelationCount() {
return relation_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation getRelation(int index) {
return relation_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBuilder(
int index) {
return relation_.get(index);
}
public static final int HASNUMERIZEDTOKENSANNOTATION_FIELD_NUMBER = 54;
private boolean hasNumerizedTokensAnnotation_;
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
public boolean hasHasNumerizedTokensAnnotation() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
public boolean getHasNumerizedTokensAnnotation() {
return hasNumerizedTokensAnnotation_;
}
public static final int MENTIONS_FIELD_NUMBER = 55;
private java.util.List mentions_;
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public java.util.List getMentionsList() {
return mentions_;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public java.util.List
getMentionsOrBuilderList() {
return mentions_;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public int getMentionsCount() {
return mentions_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index) {
return mentions_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(
int index) {
return mentions_.get(index);
}
public static final int MENTIONSFORCOREF_FIELD_NUMBER = 56;
private java.util.List mentionsForCoref_;
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public java.util.List getMentionsForCorefList() {
return mentionsForCoref_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public java.util.List
getMentionsForCorefOrBuilderList() {
return mentionsForCoref_;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public int getMentionsForCorefCount() {
return mentionsForCoref_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention getMentionsForCoref(int index) {
return mentionsForCoref_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder getMentionsForCorefOrBuilder(
int index) {
return mentionsForCoref_.get(index);
}
public static final int HASCOREFMENTIONSANNOTATION_FIELD_NUMBER = 57;
private boolean hasCorefMentionsAnnotation_;
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
public boolean hasHasCorefMentionsAnnotation() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
public boolean getHasCorefMentionsAnnotation() {
return hasCorefMentionsAnnotation_;
}
public static final int SENTENCEID_FIELD_NUMBER = 58;
private java.lang.Object sentenceID_;
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public boolean hasSentenceID() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public java.lang.String getSentenceID() {
java.lang.Object ref = sentenceID_;
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()) {
sentenceID_ = s;
}
return s;
}
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public com.google.protobuf.ByteString
getSentenceIDBytes() {
java.lang.Object ref = sentenceID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sentenceID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
token_ = java.util.Collections.emptyList();
tokenOffsetBegin_ = 0;
tokenOffsetEnd_ = 0;
sentenceIndex_ = 0;
characterOffsetBegin_ = 0;
characterOffsetEnd_ = 0;
parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
sentiment_ = "";
kBestParseTrees_ = java.util.Collections.emptyList();
basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
openieTriple_ = java.util.Collections.emptyList();
kbpTriple_ = java.util.Collections.emptyList();
entailedSentence_ = java.util.Collections.emptyList();
enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
character_ = java.util.Collections.emptyList();
paragraph_ = 0;
text_ = "";
hasRelationAnnotations_ = false;
entity_ = java.util.Collections.emptyList();
relation_ = java.util.Collections.emptyList();
hasNumerizedTokensAnnotation_ = false;
mentions_ = java.util.Collections.emptyList();
mentionsForCoref_ = java.util.Collections.emptyList();
hasCorefMentionsAnnotation_ = false;
sentenceID_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTokenOffsetBegin()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTokenOffsetEnd()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getTokenCount(); i++) {
if (!getToken(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasBasicDependencies()) {
if (!getBasicDependencies().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCollapsedDependencies()) {
if (!getCollapsedDependencies().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCollapsedCCProcessedDependencies()) {
if (!getCollapsedCCProcessedDependencies().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAlternativeDependencies()) {
if (!getAlternativeDependencies().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getOpenieTripleCount(); i++) {
if (!getOpenieTriple(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getKbpTripleCount(); i++) {
if (!getKbpTriple(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasEnhancedDependencies()) {
if (!getEnhancedDependencies().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasEnhancedPlusPlusDependencies()) {
if (!getEnhancedPlusPlusDependencies().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCharacterCount(); i++) {
if (!getCharacter(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getMentionsCount(); i++) {
if (!getMentions(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionWriter extensionWriter =
newExtensionWriter();
for (int i = 0; i < token_.size(); i++) {
output.writeMessage(1, token_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(2, tokenOffsetBegin_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(3, tokenOffsetEnd_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(4, sentenceIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(5, characterOffsetBegin_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(6, characterOffsetEnd_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(7, parseTree_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(8, basicDependencies_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeMessage(9, collapsedDependencies_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeMessage(10, collapsedCCProcessedDependencies_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeUInt32(11, paragraph_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeBytes(12, getTextBytes());
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeMessage(13, alternativeDependencies_);
}
for (int i = 0; i < openieTriple_.size(); i++) {
output.writeMessage(14, openieTriple_.get(i));
}
for (int i = 0; i < entailedSentence_.size(); i++) {
output.writeMessage(15, entailedSentence_.get(i));
}
for (int i = 0; i < kbpTriple_.size(); i++) {
output.writeMessage(16, kbpTriple_.get(i));
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeMessage(17, enhancedDependencies_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeMessage(18, enhancedPlusPlusDependencies_);
}
for (int i = 0; i < character_.size(); i++) {
output.writeMessage(19, character_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(31, binarizedParseTree_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(32, annotatedParseTree_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeBytes(33, getSentimentBytes());
}
for (int i = 0; i < kBestParseTrees_.size(); i++) {
output.writeMessage(34, kBestParseTrees_.get(i));
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
output.writeBool(51, hasRelationAnnotations_);
}
for (int i = 0; i < entity_.size(); i++) {
output.writeMessage(52, entity_.get(i));
}
for (int i = 0; i < relation_.size(); i++) {
output.writeMessage(53, relation_.get(i));
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
output.writeBool(54, hasNumerizedTokensAnnotation_);
}
for (int i = 0; i < mentions_.size(); i++) {
output.writeMessage(55, mentions_.get(i));
}
for (int i = 0; i < mentionsForCoref_.size(); i++) {
output.writeMessage(56, mentionsForCoref_.get(i));
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
output.writeBool(57, hasCorefMentionsAnnotation_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
output.writeBytes(58, getSentenceIDBytes());
}
extensionWriter.writeUntil(256, output);
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 < token_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, token_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, tokenOffsetBegin_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, tokenOffsetEnd_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, sentenceIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, characterOffsetBegin_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, characterOffsetEnd_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, parseTree_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, basicDependencies_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, collapsedDependencies_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, collapsedCCProcessedDependencies_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, paragraph_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(12, getTextBytes());
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, alternativeDependencies_);
}
for (int i = 0; i < openieTriple_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, openieTriple_.get(i));
}
for (int i = 0; i < entailedSentence_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, entailedSentence_.get(i));
}
for (int i = 0; i < kbpTriple_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, kbpTriple_.get(i));
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, enhancedDependencies_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, enhancedPlusPlusDependencies_);
}
for (int i = 0; i < character_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, character_.get(i));
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, binarizedParseTree_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, annotatedParseTree_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(33, getSentimentBytes());
}
for (int i = 0; i < kBestParseTrees_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, kBestParseTrees_.get(i));
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(51, hasRelationAnnotations_);
}
for (int i = 0; i < entity_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(52, entity_.get(i));
}
for (int i = 0; i < relation_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(53, relation_.get(i));
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(54, hasNumerizedTokensAnnotation_);
}
for (int i = 0; i < mentions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(55, mentions_.get(i));
}
for (int i = 0; i < mentionsForCoref_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(56, mentionsForCoref_.get(i));
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(57, hasCorefMentionsAnnotation_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(58, getSentenceIDBytes());
}
size += extensionsSerializedSize();
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 edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence 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(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence 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 edu.stanford.nlp.pipeline.Sentence}
*
*
* The serialized version of a CoreMap representing a sentence.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, Builder> implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Sentence)
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTokenFieldBuilder();
getParseTreeFieldBuilder();
getBinarizedParseTreeFieldBuilder();
getAnnotatedParseTreeFieldBuilder();
getKBestParseTreesFieldBuilder();
getBasicDependenciesFieldBuilder();
getCollapsedDependenciesFieldBuilder();
getCollapsedCCProcessedDependenciesFieldBuilder();
getAlternativeDependenciesFieldBuilder();
getOpenieTripleFieldBuilder();
getKbpTripleFieldBuilder();
getEntailedSentenceFieldBuilder();
getEnhancedDependenciesFieldBuilder();
getEnhancedPlusPlusDependenciesFieldBuilder();
getCharacterFieldBuilder();
getEntityFieldBuilder();
getRelationFieldBuilder();
getMentionsFieldBuilder();
getMentionsForCorefFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (tokenBuilder_ == null) {
token_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
tokenBuilder_.clear();
}
tokenOffsetBegin_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
tokenOffsetEnd_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
sentenceIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
characterOffsetBegin_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
characterOffsetEnd_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
if (parseTreeBuilder_ == null) {
parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
} else {
parseTreeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (binarizedParseTreeBuilder_ == null) {
binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
} else {
binarizedParseTreeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (annotatedParseTreeBuilder_ == null) {
annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
} else {
annotatedParseTreeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
sentiment_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
if (kBestParseTreesBuilder_ == null) {
kBestParseTrees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
kBestParseTreesBuilder_.clear();
}
if (basicDependenciesBuilder_ == null) {
basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
} else {
basicDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (collapsedDependenciesBuilder_ == null) {
collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
} else {
collapsedDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
if (collapsedCCProcessedDependenciesBuilder_ == null) {
collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
} else {
collapsedCCProcessedDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
if (alternativeDependenciesBuilder_ == null) {
alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
} else {
alternativeDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
if (openieTripleBuilder_ == null) {
openieTriple_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
openieTripleBuilder_.clear();
}
if (kbpTripleBuilder_ == null) {
kbpTriple_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
} else {
kbpTripleBuilder_.clear();
}
if (entailedSentenceBuilder_ == null) {
entailedSentence_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
} else {
entailedSentenceBuilder_.clear();
}
if (enhancedDependenciesBuilder_ == null) {
enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
} else {
enhancedDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
if (enhancedPlusPlusDependenciesBuilder_ == null) {
enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
} else {
enhancedPlusPlusDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00080000);
if (characterBuilder_ == null) {
character_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
} else {
characterBuilder_.clear();
}
paragraph_ = 0;
bitField0_ = (bitField0_ & ~0x00200000);
text_ = "";
bitField0_ = (bitField0_ & ~0x00400000);
hasRelationAnnotations_ = false;
bitField0_ = (bitField0_ & ~0x00800000);
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x01000000);
} else {
entityBuilder_.clear();
}
if (relationBuilder_ == null) {
relation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x02000000);
} else {
relationBuilder_.clear();
}
hasNumerizedTokensAnnotation_ = false;
bitField0_ = (bitField0_ & ~0x04000000);
if (mentionsBuilder_ == null) {
mentions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x08000000);
} else {
mentionsBuilder_.clear();
}
if (mentionsForCorefBuilder_ == null) {
mentionsForCoref_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x10000000);
} else {
mentionsForCorefBuilder_.clear();
}
hasCorefMentionsAnnotation_ = false;
bitField0_ = (bitField0_ & ~0x20000000);
sentenceID_ = "";
bitField0_ = (bitField0_ & ~0x40000000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (tokenBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
token_ = java.util.Collections.unmodifiableList(token_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.token_ = token_;
} else {
result.token_ = tokenBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.tokenOffsetBegin_ = tokenOffsetBegin_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.tokenOffsetEnd_ = tokenOffsetEnd_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.sentenceIndex_ = sentenceIndex_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.characterOffsetBegin_ = characterOffsetBegin_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.characterOffsetEnd_ = characterOffsetEnd_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
if (parseTreeBuilder_ == null) {
result.parseTree_ = parseTree_;
} else {
result.parseTree_ = parseTreeBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000040;
}
if (binarizedParseTreeBuilder_ == null) {
result.binarizedParseTree_ = binarizedParseTree_;
} else {
result.binarizedParseTree_ = binarizedParseTreeBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000080;
}
if (annotatedParseTreeBuilder_ == null) {
result.annotatedParseTree_ = annotatedParseTree_;
} else {
result.annotatedParseTree_ = annotatedParseTreeBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000100;
}
result.sentiment_ = sentiment_;
if (kBestParseTreesBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400)) {
kBestParseTrees_ = java.util.Collections.unmodifiableList(kBestParseTrees_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.kBestParseTrees_ = kBestParseTrees_;
} else {
result.kBestParseTrees_ = kBestParseTreesBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000200;
}
if (basicDependenciesBuilder_ == null) {
result.basicDependencies_ = basicDependencies_;
} else {
result.basicDependencies_ = basicDependenciesBuilder_.build();
}
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00000400;
}
if (collapsedDependenciesBuilder_ == null) {
result.collapsedDependencies_ = collapsedDependencies_;
} else {
result.collapsedDependencies_ = collapsedDependenciesBuilder_.build();
}
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00000800;
}
if (collapsedCCProcessedDependenciesBuilder_ == null) {
result.collapsedCCProcessedDependencies_ = collapsedCCProcessedDependencies_;
} else {
result.collapsedCCProcessedDependencies_ = collapsedCCProcessedDependenciesBuilder_.build();
}
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00001000;
}
if (alternativeDependenciesBuilder_ == null) {
result.alternativeDependencies_ = alternativeDependencies_;
} else {
result.alternativeDependencies_ = alternativeDependenciesBuilder_.build();
}
if (openieTripleBuilder_ == null) {
if (((bitField0_ & 0x00008000) == 0x00008000)) {
openieTriple_ = java.util.Collections.unmodifiableList(openieTriple_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.openieTriple_ = openieTriple_;
} else {
result.openieTriple_ = openieTripleBuilder_.build();
}
if (kbpTripleBuilder_ == null) {
if (((bitField0_ & 0x00010000) == 0x00010000)) {
kbpTriple_ = java.util.Collections.unmodifiableList(kbpTriple_);
bitField0_ = (bitField0_ & ~0x00010000);
}
result.kbpTriple_ = kbpTriple_;
} else {
result.kbpTriple_ = kbpTripleBuilder_.build();
}
if (entailedSentenceBuilder_ == null) {
if (((bitField0_ & 0x00020000) == 0x00020000)) {
entailedSentence_ = java.util.Collections.unmodifiableList(entailedSentence_);
bitField0_ = (bitField0_ & ~0x00020000);
}
result.entailedSentence_ = entailedSentence_;
} else {
result.entailedSentence_ = entailedSentenceBuilder_.build();
}
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00002000;
}
if (enhancedDependenciesBuilder_ == null) {
result.enhancedDependencies_ = enhancedDependencies_;
} else {
result.enhancedDependencies_ = enhancedDependenciesBuilder_.build();
}
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00004000;
}
if (enhancedPlusPlusDependenciesBuilder_ == null) {
result.enhancedPlusPlusDependencies_ = enhancedPlusPlusDependencies_;
} else {
result.enhancedPlusPlusDependencies_ = enhancedPlusPlusDependenciesBuilder_.build();
}
if (characterBuilder_ == null) {
if (((bitField0_ & 0x00100000) == 0x00100000)) {
character_ = java.util.Collections.unmodifiableList(character_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.character_ = character_;
} else {
result.character_ = characterBuilder_.build();
}
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00008000;
}
result.paragraph_ = paragraph_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00010000;
}
result.text_ = text_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00020000;
}
result.hasRelationAnnotations_ = hasRelationAnnotations_;
if (entityBuilder_ == null) {
if (((bitField0_ & 0x01000000) == 0x01000000)) {
entity_ = java.util.Collections.unmodifiableList(entity_);
bitField0_ = (bitField0_ & ~0x01000000);
}
result.entity_ = entity_;
} else {
result.entity_ = entityBuilder_.build();
}
if (relationBuilder_ == null) {
if (((bitField0_ & 0x02000000) == 0x02000000)) {
relation_ = java.util.Collections.unmodifiableList(relation_);
bitField0_ = (bitField0_ & ~0x02000000);
}
result.relation_ = relation_;
} else {
result.relation_ = relationBuilder_.build();
}
if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
to_bitField0_ |= 0x00040000;
}
result.hasNumerizedTokensAnnotation_ = hasNumerizedTokensAnnotation_;
if (mentionsBuilder_ == null) {
if (((bitField0_ & 0x08000000) == 0x08000000)) {
mentions_ = java.util.Collections.unmodifiableList(mentions_);
bitField0_ = (bitField0_ & ~0x08000000);
}
result.mentions_ = mentions_;
} else {
result.mentions_ = mentionsBuilder_.build();
}
if (mentionsForCorefBuilder_ == null) {
if (((bitField0_ & 0x10000000) == 0x10000000)) {
mentionsForCoref_ = java.util.Collections.unmodifiableList(mentionsForCoref_);
bitField0_ = (bitField0_ & ~0x10000000);
}
result.mentionsForCoref_ = mentionsForCoref_;
} else {
result.mentionsForCoref_ = mentionsForCorefBuilder_.build();
}
if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
to_bitField0_ |= 0x00080000;
}
result.hasCorefMentionsAnnotation_ = hasCorefMentionsAnnotation_;
if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
to_bitField0_ |= 0x00100000;
}
result.sentenceID_ = sentenceID_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.getDefaultInstance()) return this;
if (tokenBuilder_ == null) {
if (!other.token_.isEmpty()) {
if (token_.isEmpty()) {
token_ = other.token_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTokenIsMutable();
token_.addAll(other.token_);
}
onChanged();
}
} else {
if (!other.token_.isEmpty()) {
if (tokenBuilder_.isEmpty()) {
tokenBuilder_.dispose();
tokenBuilder_ = null;
token_ = other.token_;
bitField0_ = (bitField0_ & ~0x00000001);
tokenBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTokenFieldBuilder() : null;
} else {
tokenBuilder_.addAllMessages(other.token_);
}
}
}
if (other.hasTokenOffsetBegin()) {
setTokenOffsetBegin(other.getTokenOffsetBegin());
}
if (other.hasTokenOffsetEnd()) {
setTokenOffsetEnd(other.getTokenOffsetEnd());
}
if (other.hasSentenceIndex()) {
setSentenceIndex(other.getSentenceIndex());
}
if (other.hasCharacterOffsetBegin()) {
setCharacterOffsetBegin(other.getCharacterOffsetBegin());
}
if (other.hasCharacterOffsetEnd()) {
setCharacterOffsetEnd(other.getCharacterOffsetEnd());
}
if (other.hasParseTree()) {
mergeParseTree(other.getParseTree());
}
if (other.hasBinarizedParseTree()) {
mergeBinarizedParseTree(other.getBinarizedParseTree());
}
if (other.hasAnnotatedParseTree()) {
mergeAnnotatedParseTree(other.getAnnotatedParseTree());
}
if (other.hasSentiment()) {
bitField0_ |= 0x00000200;
sentiment_ = other.sentiment_;
onChanged();
}
if (kBestParseTreesBuilder_ == null) {
if (!other.kBestParseTrees_.isEmpty()) {
if (kBestParseTrees_.isEmpty()) {
kBestParseTrees_ = other.kBestParseTrees_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureKBestParseTreesIsMutable();
kBestParseTrees_.addAll(other.kBestParseTrees_);
}
onChanged();
}
} else {
if (!other.kBestParseTrees_.isEmpty()) {
if (kBestParseTreesBuilder_.isEmpty()) {
kBestParseTreesBuilder_.dispose();
kBestParseTreesBuilder_ = null;
kBestParseTrees_ = other.kBestParseTrees_;
bitField0_ = (bitField0_ & ~0x00000400);
kBestParseTreesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getKBestParseTreesFieldBuilder() : null;
} else {
kBestParseTreesBuilder_.addAllMessages(other.kBestParseTrees_);
}
}
}
if (other.hasBasicDependencies()) {
mergeBasicDependencies(other.getBasicDependencies());
}
if (other.hasCollapsedDependencies()) {
mergeCollapsedDependencies(other.getCollapsedDependencies());
}
if (other.hasCollapsedCCProcessedDependencies()) {
mergeCollapsedCCProcessedDependencies(other.getCollapsedCCProcessedDependencies());
}
if (other.hasAlternativeDependencies()) {
mergeAlternativeDependencies(other.getAlternativeDependencies());
}
if (openieTripleBuilder_ == null) {
if (!other.openieTriple_.isEmpty()) {
if (openieTriple_.isEmpty()) {
openieTriple_ = other.openieTriple_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureOpenieTripleIsMutable();
openieTriple_.addAll(other.openieTriple_);
}
onChanged();
}
} else {
if (!other.openieTriple_.isEmpty()) {
if (openieTripleBuilder_.isEmpty()) {
openieTripleBuilder_.dispose();
openieTripleBuilder_ = null;
openieTriple_ = other.openieTriple_;
bitField0_ = (bitField0_ & ~0x00008000);
openieTripleBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getOpenieTripleFieldBuilder() : null;
} else {
openieTripleBuilder_.addAllMessages(other.openieTriple_);
}
}
}
if (kbpTripleBuilder_ == null) {
if (!other.kbpTriple_.isEmpty()) {
if (kbpTriple_.isEmpty()) {
kbpTriple_ = other.kbpTriple_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensureKbpTripleIsMutable();
kbpTriple_.addAll(other.kbpTriple_);
}
onChanged();
}
} else {
if (!other.kbpTriple_.isEmpty()) {
if (kbpTripleBuilder_.isEmpty()) {
kbpTripleBuilder_.dispose();
kbpTripleBuilder_ = null;
kbpTriple_ = other.kbpTriple_;
bitField0_ = (bitField0_ & ~0x00010000);
kbpTripleBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getKbpTripleFieldBuilder() : null;
} else {
kbpTripleBuilder_.addAllMessages(other.kbpTriple_);
}
}
}
if (entailedSentenceBuilder_ == null) {
if (!other.entailedSentence_.isEmpty()) {
if (entailedSentence_.isEmpty()) {
entailedSentence_ = other.entailedSentence_;
bitField0_ = (bitField0_ & ~0x00020000);
} else {
ensureEntailedSentenceIsMutable();
entailedSentence_.addAll(other.entailedSentence_);
}
onChanged();
}
} else {
if (!other.entailedSentence_.isEmpty()) {
if (entailedSentenceBuilder_.isEmpty()) {
entailedSentenceBuilder_.dispose();
entailedSentenceBuilder_ = null;
entailedSentence_ = other.entailedSentence_;
bitField0_ = (bitField0_ & ~0x00020000);
entailedSentenceBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntailedSentenceFieldBuilder() : null;
} else {
entailedSentenceBuilder_.addAllMessages(other.entailedSentence_);
}
}
}
if (other.hasEnhancedDependencies()) {
mergeEnhancedDependencies(other.getEnhancedDependencies());
}
if (other.hasEnhancedPlusPlusDependencies()) {
mergeEnhancedPlusPlusDependencies(other.getEnhancedPlusPlusDependencies());
}
if (characterBuilder_ == null) {
if (!other.character_.isEmpty()) {
if (character_.isEmpty()) {
character_ = other.character_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureCharacterIsMutable();
character_.addAll(other.character_);
}
onChanged();
}
} else {
if (!other.character_.isEmpty()) {
if (characterBuilder_.isEmpty()) {
characterBuilder_.dispose();
characterBuilder_ = null;
character_ = other.character_;
bitField0_ = (bitField0_ & ~0x00100000);
characterBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCharacterFieldBuilder() : null;
} else {
characterBuilder_.addAllMessages(other.character_);
}
}
}
if (other.hasParagraph()) {
setParagraph(other.getParagraph());
}
if (other.hasText()) {
bitField0_ |= 0x00400000;
text_ = other.text_;
onChanged();
}
if (other.hasHasRelationAnnotations()) {
setHasRelationAnnotations(other.getHasRelationAnnotations());
}
if (entityBuilder_ == null) {
if (!other.entity_.isEmpty()) {
if (entity_.isEmpty()) {
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x01000000);
} else {
ensureEntityIsMutable();
entity_.addAll(other.entity_);
}
onChanged();
}
} else {
if (!other.entity_.isEmpty()) {
if (entityBuilder_.isEmpty()) {
entityBuilder_.dispose();
entityBuilder_ = null;
entity_ = other.entity_;
bitField0_ = (bitField0_ & ~0x01000000);
entityBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntityFieldBuilder() : null;
} else {
entityBuilder_.addAllMessages(other.entity_);
}
}
}
if (relationBuilder_ == null) {
if (!other.relation_.isEmpty()) {
if (relation_.isEmpty()) {
relation_ = other.relation_;
bitField0_ = (bitField0_ & ~0x02000000);
} else {
ensureRelationIsMutable();
relation_.addAll(other.relation_);
}
onChanged();
}
} else {
if (!other.relation_.isEmpty()) {
if (relationBuilder_.isEmpty()) {
relationBuilder_.dispose();
relationBuilder_ = null;
relation_ = other.relation_;
bitField0_ = (bitField0_ & ~0x02000000);
relationBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRelationFieldBuilder() : null;
} else {
relationBuilder_.addAllMessages(other.relation_);
}
}
}
if (other.hasHasNumerizedTokensAnnotation()) {
setHasNumerizedTokensAnnotation(other.getHasNumerizedTokensAnnotation());
}
if (mentionsBuilder_ == null) {
if (!other.mentions_.isEmpty()) {
if (mentions_.isEmpty()) {
mentions_ = other.mentions_;
bitField0_ = (bitField0_ & ~0x08000000);
} else {
ensureMentionsIsMutable();
mentions_.addAll(other.mentions_);
}
onChanged();
}
} else {
if (!other.mentions_.isEmpty()) {
if (mentionsBuilder_.isEmpty()) {
mentionsBuilder_.dispose();
mentionsBuilder_ = null;
mentions_ = other.mentions_;
bitField0_ = (bitField0_ & ~0x08000000);
mentionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMentionsFieldBuilder() : null;
} else {
mentionsBuilder_.addAllMessages(other.mentions_);
}
}
}
if (mentionsForCorefBuilder_ == null) {
if (!other.mentionsForCoref_.isEmpty()) {
if (mentionsForCoref_.isEmpty()) {
mentionsForCoref_ = other.mentionsForCoref_;
bitField0_ = (bitField0_ & ~0x10000000);
} else {
ensureMentionsForCorefIsMutable();
mentionsForCoref_.addAll(other.mentionsForCoref_);
}
onChanged();
}
} else {
if (!other.mentionsForCoref_.isEmpty()) {
if (mentionsForCorefBuilder_.isEmpty()) {
mentionsForCorefBuilder_.dispose();
mentionsForCorefBuilder_ = null;
mentionsForCoref_ = other.mentionsForCoref_;
bitField0_ = (bitField0_ & ~0x10000000);
mentionsForCorefBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMentionsForCorefFieldBuilder() : null;
} else {
mentionsForCorefBuilder_.addAllMessages(other.mentionsForCoref_);
}
}
}
if (other.hasHasCorefMentionsAnnotation()) {
setHasCorefMentionsAnnotation(other.getHasCorefMentionsAnnotation());
}
if (other.hasSentenceID()) {
bitField0_ |= 0x40000000;
sentenceID_ = other.sentenceID_;
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTokenOffsetBegin()) {
return false;
}
if (!hasTokenOffsetEnd()) {
return false;
}
for (int i = 0; i < getTokenCount(); i++) {
if (!getToken(i).isInitialized()) {
return false;
}
}
if (hasBasicDependencies()) {
if (!getBasicDependencies().isInitialized()) {
return false;
}
}
if (hasCollapsedDependencies()) {
if (!getCollapsedDependencies().isInitialized()) {
return false;
}
}
if (hasCollapsedCCProcessedDependencies()) {
if (!getCollapsedCCProcessedDependencies().isInitialized()) {
return false;
}
}
if (hasAlternativeDependencies()) {
if (!getAlternativeDependencies().isInitialized()) {
return false;
}
}
for (int i = 0; i < getOpenieTripleCount(); i++) {
if (!getOpenieTriple(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getKbpTripleCount(); i++) {
if (!getKbpTriple(i).isInitialized()) {
return false;
}
}
if (hasEnhancedDependencies()) {
if (!getEnhancedDependencies().isInitialized()) {
return false;
}
}
if (hasEnhancedPlusPlusDependencies()) {
if (!getEnhancedPlusPlusDependencies().isInitialized()) {
return false;
}
}
for (int i = 0; i < getCharacterCount(); i++) {
if (!getCharacter(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getMentionsCount(); i++) {
if (!getMentions(i).isInitialized()) {
return false;
}
}
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List token_ =
java.util.Collections.emptyList();
private void ensureTokenIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
token_ = new java.util.ArrayList(token_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> tokenBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public java.util.List getTokenList() {
if (tokenBuilder_ == null) {
return java.util.Collections.unmodifiableList(token_);
} else {
return tokenBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public int getTokenCount() {
if (tokenBuilder_ == null) {
return token_.size();
} else {
return tokenBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getToken(int index) {
if (tokenBuilder_ == null) {
return token_.get(index);
} else {
return tokenBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder setToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (tokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenIsMutable();
token_.set(index, value);
onChanged();
} else {
tokenBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder setToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (tokenBuilder_ == null) {
ensureTokenIsMutable();
token_.set(index, builderForValue.build());
onChanged();
} else {
tokenBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder addToken(edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (tokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenIsMutable();
token_.add(value);
onChanged();
} else {
tokenBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder addToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (tokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenIsMutable();
token_.add(index, value);
onChanged();
} else {
tokenBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder addToken(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (tokenBuilder_ == null) {
ensureTokenIsMutable();
token_.add(builderForValue.build());
onChanged();
} else {
tokenBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder addToken(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (tokenBuilder_ == null) {
ensureTokenIsMutable();
token_.add(index, builderForValue.build());
onChanged();
} else {
tokenBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder addAllToken(
java.lang.Iterable values) {
if (tokenBuilder_ == null) {
ensureTokenIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, token_);
onChanged();
} else {
tokenBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder clearToken() {
if (tokenBuilder_ == null) {
token_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tokenBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public Builder removeToken(int index) {
if (tokenBuilder_ == null) {
ensureTokenIsMutable();
token_.remove(index);
onChanged();
} else {
tokenBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder getTokenBuilder(
int index) {
return getTokenFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder(
int index) {
if (tokenBuilder_ == null) {
return token_.get(index); } else {
return tokenBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public java.util.List
getTokenOrBuilderList() {
if (tokenBuilder_ != null) {
return tokenBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(token_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addTokenBuilder() {
return getTokenFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addTokenBuilder(
int index) {
return getTokenFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token token = 1;
*/
public java.util.List
getTokenBuilderList() {
return getTokenFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>
getTokenFieldBuilder() {
if (tokenBuilder_ == null) {
tokenBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>(
token_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
token_ = null;
}
return tokenBuilder_;
}
private int tokenOffsetBegin_ ;
/**
* required uint32 tokenOffsetBegin = 2;
*/
public boolean hasTokenOffsetBegin() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 tokenOffsetBegin = 2;
*/
public int getTokenOffsetBegin() {
return tokenOffsetBegin_;
}
/**
* required uint32 tokenOffsetBegin = 2;
*/
public Builder setTokenOffsetBegin(int value) {
bitField0_ |= 0x00000002;
tokenOffsetBegin_ = value;
onChanged();
return this;
}
/**
* required uint32 tokenOffsetBegin = 2;
*/
public Builder clearTokenOffsetBegin() {
bitField0_ = (bitField0_ & ~0x00000002);
tokenOffsetBegin_ = 0;
onChanged();
return this;
}
private int tokenOffsetEnd_ ;
/**
* required uint32 tokenOffsetEnd = 3;
*/
public boolean hasTokenOffsetEnd() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 tokenOffsetEnd = 3;
*/
public int getTokenOffsetEnd() {
return tokenOffsetEnd_;
}
/**
* required uint32 tokenOffsetEnd = 3;
*/
public Builder setTokenOffsetEnd(int value) {
bitField0_ |= 0x00000004;
tokenOffsetEnd_ = value;
onChanged();
return this;
}
/**
* required uint32 tokenOffsetEnd = 3;
*/
public Builder clearTokenOffsetEnd() {
bitField0_ = (bitField0_ & ~0x00000004);
tokenOffsetEnd_ = 0;
onChanged();
return this;
}
private int sentenceIndex_ ;
/**
* optional uint32 sentenceIndex = 4;
*/
public boolean hasSentenceIndex() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 sentenceIndex = 4;
*/
public int getSentenceIndex() {
return sentenceIndex_;
}
/**
* optional uint32 sentenceIndex = 4;
*/
public Builder setSentenceIndex(int value) {
bitField0_ |= 0x00000008;
sentenceIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 sentenceIndex = 4;
*/
public Builder clearSentenceIndex() {
bitField0_ = (bitField0_ & ~0x00000008);
sentenceIndex_ = 0;
onChanged();
return this;
}
private int characterOffsetBegin_ ;
/**
* optional uint32 characterOffsetBegin = 5;
*/
public boolean hasCharacterOffsetBegin() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 characterOffsetBegin = 5;
*/
public int getCharacterOffsetBegin() {
return characterOffsetBegin_;
}
/**
* optional uint32 characterOffsetBegin = 5;
*/
public Builder setCharacterOffsetBegin(int value) {
bitField0_ |= 0x00000010;
characterOffsetBegin_ = value;
onChanged();
return this;
}
/**
* optional uint32 characterOffsetBegin = 5;
*/
public Builder clearCharacterOffsetBegin() {
bitField0_ = (bitField0_ & ~0x00000010);
characterOffsetBegin_ = 0;
onChanged();
return this;
}
private int characterOffsetEnd_ ;
/**
* optional uint32 characterOffsetEnd = 6;
*/
public boolean hasCharacterOffsetEnd() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 characterOffsetEnd = 6;
*/
public int getCharacterOffsetEnd() {
return characterOffsetEnd_;
}
/**
* optional uint32 characterOffsetEnd = 6;
*/
public Builder setCharacterOffsetEnd(int value) {
bitField0_ |= 0x00000020;
characterOffsetEnd_ = value;
onChanged();
return this;
}
/**
* optional uint32 characterOffsetEnd = 6;
*/
public Builder clearCharacterOffsetEnd() {
bitField0_ = (bitField0_ & ~0x00000020);
characterOffsetEnd_ = 0;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> parseTreeBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public boolean hasParseTree() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getParseTree() {
if (parseTreeBuilder_ == null) {
return parseTree_;
} else {
return parseTreeBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public Builder setParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (parseTreeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parseTree_ = value;
onChanged();
} else {
parseTreeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public Builder setParseTree(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (parseTreeBuilder_ == null) {
parseTree_ = builderForValue.build();
onChanged();
} else {
parseTreeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public Builder mergeParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (parseTreeBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
parseTree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) {
parseTree_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder(parseTree_).mergeFrom(value).buildPartial();
} else {
parseTree_ = value;
}
onChanged();
} else {
parseTreeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public Builder clearParseTree() {
if (parseTreeBuilder_ == null) {
parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
onChanged();
} else {
parseTreeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder getParseTreeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getParseTreeFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOrBuilder() {
if (parseTreeBuilder_ != null) {
return parseTreeBuilder_.getMessageOrBuilder();
} else {
return parseTree_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>
getParseTreeFieldBuilder() {
if (parseTreeBuilder_ == null) {
parseTreeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>(
getParseTree(),
getParentForChildren(),
isClean());
parseTree_ = null;
}
return parseTreeBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> binarizedParseTreeBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public boolean hasBinarizedParseTree() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getBinarizedParseTree() {
if (binarizedParseTreeBuilder_ == null) {
return binarizedParseTree_;
} else {
return binarizedParseTreeBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public Builder setBinarizedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (binarizedParseTreeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
binarizedParseTree_ = value;
onChanged();
} else {
binarizedParseTreeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public Builder setBinarizedParseTree(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (binarizedParseTreeBuilder_ == null) {
binarizedParseTree_ = builderForValue.build();
onChanged();
} else {
binarizedParseTreeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public Builder mergeBinarizedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (binarizedParseTreeBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
binarizedParseTree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) {
binarizedParseTree_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder(binarizedParseTree_).mergeFrom(value).buildPartial();
} else {
binarizedParseTree_ = value;
}
onChanged();
} else {
binarizedParseTreeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public Builder clearBinarizedParseTree() {
if (binarizedParseTreeBuilder_ == null) {
binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
onChanged();
} else {
binarizedParseTreeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder getBinarizedParseTreeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getBinarizedParseTreeFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedParseTreeOrBuilder() {
if (binarizedParseTreeBuilder_ != null) {
return binarizedParseTreeBuilder_.getMessageOrBuilder();
} else {
return binarizedParseTree_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>
getBinarizedParseTreeFieldBuilder() {
if (binarizedParseTreeBuilder_ == null) {
binarizedParseTreeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>(
getBinarizedParseTree(),
getParentForChildren(),
isClean());
binarizedParseTree_ = null;
}
return binarizedParseTreeBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> annotatedParseTreeBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public boolean hasAnnotatedParseTree() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getAnnotatedParseTree() {
if (annotatedParseTreeBuilder_ == null) {
return annotatedParseTree_;
} else {
return annotatedParseTreeBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public Builder setAnnotatedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (annotatedParseTreeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
annotatedParseTree_ = value;
onChanged();
} else {
annotatedParseTreeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public Builder setAnnotatedParseTree(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (annotatedParseTreeBuilder_ == null) {
annotatedParseTree_ = builderForValue.build();
onChanged();
} else {
annotatedParseTreeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public Builder mergeAnnotatedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (annotatedParseTreeBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
annotatedParseTree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) {
annotatedParseTree_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder(annotatedParseTree_).mergeFrom(value).buildPartial();
} else {
annotatedParseTree_ = value;
}
onChanged();
} else {
annotatedParseTreeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public Builder clearAnnotatedParseTree() {
if (annotatedParseTreeBuilder_ == null) {
annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
onChanged();
} else {
annotatedParseTreeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder getAnnotatedParseTreeBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getAnnotatedParseTreeFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedParseTreeOrBuilder() {
if (annotatedParseTreeBuilder_ != null) {
return annotatedParseTreeBuilder_.getMessageOrBuilder();
} else {
return annotatedParseTree_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>
getAnnotatedParseTreeFieldBuilder() {
if (annotatedParseTreeBuilder_ == null) {
annotatedParseTreeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>(
getAnnotatedParseTree(),
getParentForChildren(),
isClean());
annotatedParseTree_ = null;
}
return annotatedParseTreeBuilder_;
}
private java.lang.Object sentiment_ = "";
/**
* optional string sentiment = 33;
*/
public boolean hasSentiment() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string sentiment = 33;
*/
public java.lang.String getSentiment() {
java.lang.Object ref = sentiment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sentiment_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sentiment = 33;
*/
public com.google.protobuf.ByteString
getSentimentBytes() {
java.lang.Object ref = sentiment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sentiment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sentiment = 33;
*/
public Builder setSentiment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
sentiment_ = value;
onChanged();
return this;
}
/**
* optional string sentiment = 33;
*/
public Builder clearSentiment() {
bitField0_ = (bitField0_ & ~0x00000200);
sentiment_ = getDefaultInstance().getSentiment();
onChanged();
return this;
}
/**
* optional string sentiment = 33;
*/
public Builder setSentimentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
sentiment_ = value;
onChanged();
return this;
}
private java.util.List kBestParseTrees_ =
java.util.Collections.emptyList();
private void ensureKBestParseTreesIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
kBestParseTrees_ = new java.util.ArrayList(kBestParseTrees_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> kBestParseTreesBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public java.util.List getKBestParseTreesList() {
if (kBestParseTreesBuilder_ == null) {
return java.util.Collections.unmodifiableList(kBestParseTrees_);
} else {
return kBestParseTreesBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public int getKBestParseTreesCount() {
if (kBestParseTreesBuilder_ == null) {
return kBestParseTrees_.size();
} else {
return kBestParseTreesBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getKBestParseTrees(int index) {
if (kBestParseTreesBuilder_ == null) {
return kBestParseTrees_.get(index);
} else {
return kBestParseTreesBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder setKBestParseTrees(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (kBestParseTreesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKBestParseTreesIsMutable();
kBestParseTrees_.set(index, value);
onChanged();
} else {
kBestParseTreesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder setKBestParseTrees(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (kBestParseTreesBuilder_ == null) {
ensureKBestParseTreesIsMutable();
kBestParseTrees_.set(index, builderForValue.build());
onChanged();
} else {
kBestParseTreesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder addKBestParseTrees(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (kBestParseTreesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKBestParseTreesIsMutable();
kBestParseTrees_.add(value);
onChanged();
} else {
kBestParseTreesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder addKBestParseTrees(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (kBestParseTreesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKBestParseTreesIsMutable();
kBestParseTrees_.add(index, value);
onChanged();
} else {
kBestParseTreesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder addKBestParseTrees(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (kBestParseTreesBuilder_ == null) {
ensureKBestParseTreesIsMutable();
kBestParseTrees_.add(builderForValue.build());
onChanged();
} else {
kBestParseTreesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder addKBestParseTrees(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (kBestParseTreesBuilder_ == null) {
ensureKBestParseTreesIsMutable();
kBestParseTrees_.add(index, builderForValue.build());
onChanged();
} else {
kBestParseTreesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder addAllKBestParseTrees(
java.lang.Iterable values) {
if (kBestParseTreesBuilder_ == null) {
ensureKBestParseTreesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, kBestParseTrees_);
onChanged();
} else {
kBestParseTreesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder clearKBestParseTrees() {
if (kBestParseTreesBuilder_ == null) {
kBestParseTrees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
kBestParseTreesBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public Builder removeKBestParseTrees(int index) {
if (kBestParseTreesBuilder_ == null) {
ensureKBestParseTreesIsMutable();
kBestParseTrees_.remove(index);
onChanged();
} else {
kBestParseTreesBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder getKBestParseTreesBuilder(
int index) {
return getKBestParseTreesFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrBuilder(
int index) {
if (kBestParseTreesBuilder_ == null) {
return kBestParseTrees_.get(index); } else {
return kBestParseTreesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public java.util.List
getKBestParseTreesOrBuilderList() {
if (kBestParseTreesBuilder_ != null) {
return kBestParseTreesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(kBestParseTrees_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addKBestParseTreesBuilder() {
return getKBestParseTreesFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addKBestParseTreesBuilder(
int index) {
return getKBestParseTreesFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34;
*/
public java.util.List
getKBestParseTreesBuilderList() {
return getKBestParseTreesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>
getKBestParseTreesFieldBuilder() {
if (kBestParseTreesBuilder_ == null) {
kBestParseTreesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>(
kBestParseTrees_,
((bitField0_ & 0x00000400) == 0x00000400),
getParentForChildren(),
isClean());
kBestParseTrees_ = null;
}
return kBestParseTreesBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> basicDependenciesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public boolean hasBasicDependencies() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getBasicDependencies() {
if (basicDependenciesBuilder_ == null) {
return basicDependencies_;
} else {
return basicDependenciesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public Builder setBasicDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (basicDependenciesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
basicDependencies_ = value;
onChanged();
} else {
basicDependenciesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public Builder setBasicDependencies(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) {
if (basicDependenciesBuilder_ == null) {
basicDependencies_ = builderForValue.build();
onChanged();
} else {
basicDependenciesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public Builder mergeBasicDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (basicDependenciesBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800) &&
basicDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) {
basicDependencies_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(basicDependencies_).mergeFrom(value).buildPartial();
} else {
basicDependencies_ = value;
}
onChanged();
} else {
basicDependenciesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public Builder clearBasicDependencies() {
if (basicDependenciesBuilder_ == null) {
basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
onChanged();
} else {
basicDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getBasicDependenciesBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getBasicDependenciesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasicDependenciesOrBuilder() {
if (basicDependenciesBuilder_ != null) {
return basicDependenciesBuilder_.getMessageOrBuilder();
} else {
return basicDependencies_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>
getBasicDependenciesFieldBuilder() {
if (basicDependenciesBuilder_ == null) {
basicDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>(
getBasicDependencies(),
getParentForChildren(),
isClean());
basicDependencies_ = null;
}
return basicDependenciesBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> collapsedDependenciesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public boolean hasCollapsedDependencies() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedDependencies() {
if (collapsedDependenciesBuilder_ == null) {
return collapsedDependencies_;
} else {
return collapsedDependenciesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public Builder setCollapsedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (collapsedDependenciesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collapsedDependencies_ = value;
onChanged();
} else {
collapsedDependenciesBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public Builder setCollapsedDependencies(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) {
if (collapsedDependenciesBuilder_ == null) {
collapsedDependencies_ = builderForValue.build();
onChanged();
} else {
collapsedDependenciesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public Builder mergeCollapsedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (collapsedDependenciesBuilder_ == null) {
if (((bitField0_ & 0x00001000) == 0x00001000) &&
collapsedDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) {
collapsedDependencies_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(collapsedDependencies_).mergeFrom(value).buildPartial();
} else {
collapsedDependencies_ = value;
}
onChanged();
} else {
collapsedDependenciesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public Builder clearCollapsedDependencies() {
if (collapsedDependenciesBuilder_ == null) {
collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
onChanged();
} else {
collapsedDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getCollapsedDependenciesBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getCollapsedDependenciesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedDependenciesOrBuilder() {
if (collapsedDependenciesBuilder_ != null) {
return collapsedDependenciesBuilder_.getMessageOrBuilder();
} else {
return collapsedDependencies_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>
getCollapsedDependenciesFieldBuilder() {
if (collapsedDependenciesBuilder_ == null) {
collapsedDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>(
getCollapsedDependencies(),
getParentForChildren(),
isClean());
collapsedDependencies_ = null;
}
return collapsedDependenciesBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> collapsedCCProcessedDependenciesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public boolean hasCollapsedCCProcessedDependencies() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedCCProcessedDependencies() {
if (collapsedCCProcessedDependenciesBuilder_ == null) {
return collapsedCCProcessedDependencies_;
} else {
return collapsedCCProcessedDependenciesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public Builder setCollapsedCCProcessedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (collapsedCCProcessedDependenciesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collapsedCCProcessedDependencies_ = value;
onChanged();
} else {
collapsedCCProcessedDependenciesBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public Builder setCollapsedCCProcessedDependencies(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) {
if (collapsedCCProcessedDependenciesBuilder_ == null) {
collapsedCCProcessedDependencies_ = builderForValue.build();
onChanged();
} else {
collapsedCCProcessedDependenciesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public Builder mergeCollapsedCCProcessedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (collapsedCCProcessedDependenciesBuilder_ == null) {
if (((bitField0_ & 0x00002000) == 0x00002000) &&
collapsedCCProcessedDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) {
collapsedCCProcessedDependencies_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(collapsedCCProcessedDependencies_).mergeFrom(value).buildPartial();
} else {
collapsedCCProcessedDependencies_ = value;
}
onChanged();
} else {
collapsedCCProcessedDependenciesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public Builder clearCollapsedCCProcessedDependencies() {
if (collapsedCCProcessedDependenciesBuilder_ == null) {
collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
onChanged();
} else {
collapsedCCProcessedDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getCollapsedCCProcessedDependenciesBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getCollapsedCCProcessedDependenciesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedCCProcessedDependenciesOrBuilder() {
if (collapsedCCProcessedDependenciesBuilder_ != null) {
return collapsedCCProcessedDependenciesBuilder_.getMessageOrBuilder();
} else {
return collapsedCCProcessedDependencies_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>
getCollapsedCCProcessedDependenciesFieldBuilder() {
if (collapsedCCProcessedDependenciesBuilder_ == null) {
collapsedCCProcessedDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>(
getCollapsedCCProcessedDependencies(),
getParentForChildren(),
isClean());
collapsedCCProcessedDependencies_ = null;
}
return collapsedCCProcessedDependenciesBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> alternativeDependenciesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public boolean hasAlternativeDependencies() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getAlternativeDependencies() {
if (alternativeDependenciesBuilder_ == null) {
return alternativeDependencies_;
} else {
return alternativeDependenciesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public Builder setAlternativeDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (alternativeDependenciesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
alternativeDependencies_ = value;
onChanged();
} else {
alternativeDependenciesBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public Builder setAlternativeDependencies(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) {
if (alternativeDependenciesBuilder_ == null) {
alternativeDependencies_ = builderForValue.build();
onChanged();
} else {
alternativeDependenciesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public Builder mergeAlternativeDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (alternativeDependenciesBuilder_ == null) {
if (((bitField0_ & 0x00004000) == 0x00004000) &&
alternativeDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) {
alternativeDependencies_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(alternativeDependencies_).mergeFrom(value).buildPartial();
} else {
alternativeDependencies_ = value;
}
onChanged();
} else {
alternativeDependenciesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public Builder clearAlternativeDependencies() {
if (alternativeDependenciesBuilder_ == null) {
alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
onChanged();
} else {
alternativeDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getAlternativeDependenciesBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getAlternativeDependenciesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlternativeDependenciesOrBuilder() {
if (alternativeDependenciesBuilder_ != null) {
return alternativeDependenciesBuilder_.getMessageOrBuilder();
} else {
return alternativeDependencies_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>
getAlternativeDependenciesFieldBuilder() {
if (alternativeDependenciesBuilder_ == null) {
alternativeDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>(
getAlternativeDependencies(),
getParentForChildren(),
isClean());
alternativeDependencies_ = null;
}
return alternativeDependenciesBuilder_;
}
private java.util.List openieTriple_ =
java.util.Collections.emptyList();
private void ensureOpenieTripleIsMutable() {
if (!((bitField0_ & 0x00008000) == 0x00008000)) {
openieTriple_ = new java.util.ArrayList(openieTriple_);
bitField0_ |= 0x00008000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder> openieTripleBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public java.util.List getOpenieTripleList() {
if (openieTripleBuilder_ == null) {
return java.util.Collections.unmodifiableList(openieTriple_);
} else {
return openieTripleBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public int getOpenieTripleCount() {
if (openieTripleBuilder_ == null) {
return openieTriple_.size();
} else {
return openieTripleBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getOpenieTriple(int index) {
if (openieTripleBuilder_ == null) {
return openieTriple_.get(index);
} else {
return openieTripleBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder setOpenieTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) {
if (openieTripleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOpenieTripleIsMutable();
openieTriple_.set(index, value);
onChanged();
} else {
openieTripleBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder setOpenieTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) {
if (openieTripleBuilder_ == null) {
ensureOpenieTripleIsMutable();
openieTriple_.set(index, builderForValue.build());
onChanged();
} else {
openieTripleBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder addOpenieTriple(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) {
if (openieTripleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOpenieTripleIsMutable();
openieTriple_.add(value);
onChanged();
} else {
openieTripleBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder addOpenieTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) {
if (openieTripleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOpenieTripleIsMutable();
openieTriple_.add(index, value);
onChanged();
} else {
openieTripleBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder addOpenieTriple(
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) {
if (openieTripleBuilder_ == null) {
ensureOpenieTripleIsMutable();
openieTriple_.add(builderForValue.build());
onChanged();
} else {
openieTripleBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder addOpenieTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) {
if (openieTripleBuilder_ == null) {
ensureOpenieTripleIsMutable();
openieTriple_.add(index, builderForValue.build());
onChanged();
} else {
openieTripleBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder addAllOpenieTriple(
java.lang.Iterable values) {
if (openieTripleBuilder_ == null) {
ensureOpenieTripleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, openieTriple_);
onChanged();
} else {
openieTripleBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder clearOpenieTriple() {
if (openieTripleBuilder_ == null) {
openieTriple_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
} else {
openieTripleBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public Builder removeOpenieTriple(int index) {
if (openieTripleBuilder_ == null) {
ensureOpenieTripleIsMutable();
openieTriple_.remove(index);
onChanged();
} else {
openieTripleBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder getOpenieTripleBuilder(
int index) {
return getOpenieTripleFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenieTripleOrBuilder(
int index) {
if (openieTripleBuilder_ == null) {
return openieTriple_.get(index); } else {
return openieTripleBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public java.util.List
getOpenieTripleOrBuilderList() {
if (openieTripleBuilder_ != null) {
return openieTripleBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(openieTriple_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addOpenieTripleBuilder() {
return getOpenieTripleFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addOpenieTripleBuilder(
int index) {
return getOpenieTripleFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14;
*
*
* The OpenIE triples in the sentence
*
*/
public java.util.List
getOpenieTripleBuilderList() {
return getOpenieTripleFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder>
getOpenieTripleFieldBuilder() {
if (openieTripleBuilder_ == null) {
openieTripleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder>(
openieTriple_,
((bitField0_ & 0x00008000) == 0x00008000),
getParentForChildren(),
isClean());
openieTriple_ = null;
}
return openieTripleBuilder_;
}
private java.util.List kbpTriple_ =
java.util.Collections.emptyList();
private void ensureKbpTripleIsMutable() {
if (!((bitField0_ & 0x00010000) == 0x00010000)) {
kbpTriple_ = new java.util.ArrayList(kbpTriple_);
bitField0_ |= 0x00010000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder> kbpTripleBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public java.util.List getKbpTripleList() {
if (kbpTripleBuilder_ == null) {
return java.util.Collections.unmodifiableList(kbpTriple_);
} else {
return kbpTripleBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public int getKbpTripleCount() {
if (kbpTripleBuilder_ == null) {
return kbpTriple_.size();
} else {
return kbpTripleBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getKbpTriple(int index) {
if (kbpTripleBuilder_ == null) {
return kbpTriple_.get(index);
} else {
return kbpTripleBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder setKbpTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) {
if (kbpTripleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKbpTripleIsMutable();
kbpTriple_.set(index, value);
onChanged();
} else {
kbpTripleBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder setKbpTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) {
if (kbpTripleBuilder_ == null) {
ensureKbpTripleIsMutable();
kbpTriple_.set(index, builderForValue.build());
onChanged();
} else {
kbpTripleBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder addKbpTriple(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) {
if (kbpTripleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKbpTripleIsMutable();
kbpTriple_.add(value);
onChanged();
} else {
kbpTripleBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder addKbpTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) {
if (kbpTripleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKbpTripleIsMutable();
kbpTriple_.add(index, value);
onChanged();
} else {
kbpTripleBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder addKbpTriple(
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) {
if (kbpTripleBuilder_ == null) {
ensureKbpTripleIsMutable();
kbpTriple_.add(builderForValue.build());
onChanged();
} else {
kbpTripleBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder addKbpTriple(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) {
if (kbpTripleBuilder_ == null) {
ensureKbpTripleIsMutable();
kbpTriple_.add(index, builderForValue.build());
onChanged();
} else {
kbpTripleBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder addAllKbpTriple(
java.lang.Iterable values) {
if (kbpTripleBuilder_ == null) {
ensureKbpTripleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, kbpTriple_);
onChanged();
} else {
kbpTripleBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder clearKbpTriple() {
if (kbpTripleBuilder_ == null) {
kbpTriple_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
} else {
kbpTripleBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public Builder removeKbpTriple(int index) {
if (kbpTripleBuilder_ == null) {
ensureKbpTripleIsMutable();
kbpTriple_.remove(index);
onChanged();
} else {
kbpTripleBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder getKbpTripleBuilder(
int index) {
return getKbpTripleFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTripleOrBuilder(
int index) {
if (kbpTripleBuilder_ == null) {
return kbpTriple_.get(index); } else {
return kbpTripleBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public java.util.List
getKbpTripleOrBuilderList() {
if (kbpTripleBuilder_ != null) {
return kbpTripleBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(kbpTriple_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addKbpTripleBuilder() {
return getKbpTripleFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addKbpTripleBuilder(
int index) {
return getKbpTripleFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16;
*
*
* The KBP triples in this sentence
*
*/
public java.util.List
getKbpTripleBuilderList() {
return getKbpTripleFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder>
getKbpTripleFieldBuilder() {
if (kbpTripleBuilder_ == null) {
kbpTripleBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder>(
kbpTriple_,
((bitField0_ & 0x00010000) == 0x00010000),
getParentForChildren(),
isClean());
kbpTriple_ = null;
}
return kbpTripleBuilder_;
}
private java.util.List entailedSentence_ =
java.util.Collections.emptyList();
private void ensureEntailedSentenceIsMutable() {
if (!((bitField0_ & 0x00020000) == 0x00020000)) {
entailedSentence_ = new java.util.ArrayList(entailedSentence_);
bitField0_ |= 0x00020000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder> entailedSentenceBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public java.util.List getEntailedSentenceList() {
if (entailedSentenceBuilder_ == null) {
return java.util.Collections.unmodifiableList(entailedSentence_);
} else {
return entailedSentenceBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public int getEntailedSentenceCount() {
if (entailedSentenceBuilder_ == null) {
return entailedSentence_.size();
} else {
return entailedSentenceBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedSentence(int index) {
if (entailedSentenceBuilder_ == null) {
return entailedSentence_.get(index);
} else {
return entailedSentenceBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder setEntailedSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) {
if (entailedSentenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntailedSentenceIsMutable();
entailedSentence_.set(index, value);
onChanged();
} else {
entailedSentenceBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder setEntailedSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) {
if (entailedSentenceBuilder_ == null) {
ensureEntailedSentenceIsMutable();
entailedSentence_.set(index, builderForValue.build());
onChanged();
} else {
entailedSentenceBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder addEntailedSentence(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) {
if (entailedSentenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntailedSentenceIsMutable();
entailedSentence_.add(value);
onChanged();
} else {
entailedSentenceBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder addEntailedSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) {
if (entailedSentenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntailedSentenceIsMutable();
entailedSentence_.add(index, value);
onChanged();
} else {
entailedSentenceBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder addEntailedSentence(
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) {
if (entailedSentenceBuilder_ == null) {
ensureEntailedSentenceIsMutable();
entailedSentence_.add(builderForValue.build());
onChanged();
} else {
entailedSentenceBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder addEntailedSentence(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) {
if (entailedSentenceBuilder_ == null) {
ensureEntailedSentenceIsMutable();
entailedSentence_.add(index, builderForValue.build());
onChanged();
} else {
entailedSentenceBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder addAllEntailedSentence(
java.lang.Iterable values) {
if (entailedSentenceBuilder_ == null) {
ensureEntailedSentenceIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entailedSentence_);
onChanged();
} else {
entailedSentenceBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder clearEntailedSentence() {
if (entailedSentenceBuilder_ == null) {
entailedSentence_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
} else {
entailedSentenceBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public Builder removeEntailedSentence(int index) {
if (entailedSentenceBuilder_ == null) {
ensureEntailedSentenceIsMutable();
entailedSentence_.remove(index);
onChanged();
} else {
entailedSentenceBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder getEntailedSentenceBuilder(
int index) {
return getEntailedSentenceFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedSentenceOrBuilder(
int index) {
if (entailedSentenceBuilder_ == null) {
return entailedSentence_.get(index); } else {
return entailedSentenceBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public java.util.List
getEntailedSentenceOrBuilderList() {
if (entailedSentenceBuilder_ != null) {
return entailedSentenceBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entailedSentence_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntailedSentenceBuilder() {
return getEntailedSentenceFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntailedSentenceBuilder(
int index) {
return getEntailedSentenceFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15;
*
*
* The entailed sentences, by natural logic
*
*/
public java.util.List
getEntailedSentenceBuilderList() {
return getEntailedSentenceFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder>
getEntailedSentenceFieldBuilder() {
if (entailedSentenceBuilder_ == null) {
entailedSentenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder>(
entailedSentence_,
((bitField0_ & 0x00020000) == 0x00020000),
getParentForChildren(),
isClean());
entailedSentence_ = null;
}
return entailedSentenceBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> enhancedDependenciesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public boolean hasEnhancedDependencies() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedDependencies() {
if (enhancedDependenciesBuilder_ == null) {
return enhancedDependencies_;
} else {
return enhancedDependenciesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public Builder setEnhancedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (enhancedDependenciesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enhancedDependencies_ = value;
onChanged();
} else {
enhancedDependenciesBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public Builder setEnhancedDependencies(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) {
if (enhancedDependenciesBuilder_ == null) {
enhancedDependencies_ = builderForValue.build();
onChanged();
} else {
enhancedDependenciesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public Builder mergeEnhancedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (enhancedDependenciesBuilder_ == null) {
if (((bitField0_ & 0x00040000) == 0x00040000) &&
enhancedDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) {
enhancedDependencies_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(enhancedDependencies_).mergeFrom(value).buildPartial();
} else {
enhancedDependencies_ = value;
}
onChanged();
} else {
enhancedDependenciesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public Builder clearEnhancedDependencies() {
if (enhancedDependenciesBuilder_ == null) {
enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
onChanged();
} else {
enhancedDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getEnhancedDependenciesBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getEnhancedDependenciesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedDependenciesOrBuilder() {
if (enhancedDependenciesBuilder_ != null) {
return enhancedDependenciesBuilder_.getMessageOrBuilder();
} else {
return enhancedDependencies_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>
getEnhancedDependenciesFieldBuilder() {
if (enhancedDependenciesBuilder_ == null) {
enhancedDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>(
getEnhancedDependencies(),
getParentForChildren(),
isClean());
enhancedDependencies_ = null;
}
return enhancedDependenciesBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> enhancedPlusPlusDependenciesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public boolean hasEnhancedPlusPlusDependencies() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedPlusPlusDependencies() {
if (enhancedPlusPlusDependenciesBuilder_ == null) {
return enhancedPlusPlusDependencies_;
} else {
return enhancedPlusPlusDependenciesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public Builder setEnhancedPlusPlusDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (enhancedPlusPlusDependenciesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enhancedPlusPlusDependencies_ = value;
onChanged();
} else {
enhancedPlusPlusDependenciesBuilder_.setMessage(value);
}
bitField0_ |= 0x00080000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public Builder setEnhancedPlusPlusDependencies(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) {
if (enhancedPlusPlusDependenciesBuilder_ == null) {
enhancedPlusPlusDependencies_ = builderForValue.build();
onChanged();
} else {
enhancedPlusPlusDependenciesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00080000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public Builder mergeEnhancedPlusPlusDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) {
if (enhancedPlusPlusDependenciesBuilder_ == null) {
if (((bitField0_ & 0x00080000) == 0x00080000) &&
enhancedPlusPlusDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) {
enhancedPlusPlusDependencies_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(enhancedPlusPlusDependencies_).mergeFrom(value).buildPartial();
} else {
enhancedPlusPlusDependencies_ = value;
}
onChanged();
} else {
enhancedPlusPlusDependenciesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00080000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public Builder clearEnhancedPlusPlusDependencies() {
if (enhancedPlusPlusDependenciesBuilder_ == null) {
enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
onChanged();
} else {
enhancedPlusPlusDependenciesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00080000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getEnhancedPlusPlusDependenciesBuilder() {
bitField0_ |= 0x00080000;
onChanged();
return getEnhancedPlusPlusDependenciesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedPlusPlusDependenciesOrBuilder() {
if (enhancedPlusPlusDependenciesBuilder_ != null) {
return enhancedPlusPlusDependenciesBuilder_.getMessageOrBuilder();
} else {
return enhancedPlusPlusDependencies_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>
getEnhancedPlusPlusDependenciesFieldBuilder() {
if (enhancedPlusPlusDependenciesBuilder_ == null) {
enhancedPlusPlusDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>(
getEnhancedPlusPlusDependencies(),
getParentForChildren(),
isClean());
enhancedPlusPlusDependencies_ = null;
}
return enhancedPlusPlusDependenciesBuilder_;
}
private java.util.List character_ =
java.util.Collections.emptyList();
private void ensureCharacterIsMutable() {
if (!((bitField0_ & 0x00100000) == 0x00100000)) {
character_ = new java.util.ArrayList(character_);
bitField0_ |= 0x00100000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> characterBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public java.util.List getCharacterList() {
if (characterBuilder_ == null) {
return java.util.Collections.unmodifiableList(character_);
} else {
return characterBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public int getCharacterCount() {
if (characterBuilder_ == null) {
return character_.size();
} else {
return characterBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getCharacter(int index) {
if (characterBuilder_ == null) {
return character_.get(index);
} else {
return characterBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder setCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (characterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharacterIsMutable();
character_.set(index, value);
onChanged();
} else {
characterBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder setCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.set(index, builderForValue.build());
onChanged();
} else {
characterBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder addCharacter(edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (characterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharacterIsMutable();
character_.add(value);
onChanged();
} else {
characterBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder addCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) {
if (characterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharacterIsMutable();
character_.add(index, value);
onChanged();
} else {
characterBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder addCharacter(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.add(builderForValue.build());
onChanged();
} else {
characterBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder addCharacter(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.add(index, builderForValue.build());
onChanged();
} else {
characterBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder addAllCharacter(
java.lang.Iterable values) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, character_);
onChanged();
} else {
characterBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder clearCharacter() {
if (characterBuilder_ == null) {
character_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
characterBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public Builder removeCharacter(int index) {
if (characterBuilder_ == null) {
ensureCharacterIsMutable();
character_.remove(index);
onChanged();
} else {
characterBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder getCharacterBuilder(
int index) {
return getCharacterFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder(
int index) {
if (characterBuilder_ == null) {
return character_.get(index); } else {
return characterBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public java.util.List
getCharacterOrBuilderList() {
if (characterBuilder_ != null) {
return characterBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(character_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder() {
return getCharacterFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder(
int index) {
return getCharacterFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Token character = 19;
*/
public java.util.List
getCharacterBuilderList() {
return getCharacterFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>
getCharacterFieldBuilder() {
if (characterBuilder_ == null) {
characterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>(
character_,
((bitField0_ & 0x00100000) == 0x00100000),
getParentForChildren(),
isClean());
character_ = null;
}
return characterBuilder_;
}
private int paragraph_ ;
/**
* optional uint32 paragraph = 11;
*/
public boolean hasParagraph() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional uint32 paragraph = 11;
*/
public int getParagraph() {
return paragraph_;
}
/**
* optional uint32 paragraph = 11;
*/
public Builder setParagraph(int value) {
bitField0_ |= 0x00200000;
paragraph_ = value;
onChanged();
return this;
}
/**
* optional uint32 paragraph = 11;
*/
public Builder clearParagraph() {
bitField0_ = (bitField0_ & ~0x00200000);
paragraph_ = 0;
onChanged();
return this;
}
private java.lang.Object text_ = "";
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public boolean hasText() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
text_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
text_ = value;
onChanged();
return this;
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00400000);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* optional string text = 12;
*
*
* Only needed if we're only saving the sentence.
*
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
text_ = value;
onChanged();
return this;
}
private boolean hasRelationAnnotations_ ;
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public boolean hasHasRelationAnnotations() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public boolean getHasRelationAnnotations() {
return hasRelationAnnotations_;
}
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public Builder setHasRelationAnnotations(boolean value) {
bitField0_ |= 0x00800000;
hasRelationAnnotations_ = value;
onChanged();
return this;
}
/**
* optional bool hasRelationAnnotations = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public Builder clearHasRelationAnnotations() {
bitField0_ = (bitField0_ & ~0x00800000);
hasRelationAnnotations_ = false;
onChanged();
return this;
}
private java.util.List entity_ =
java.util.Collections.emptyList();
private void ensureEntityIsMutable() {
if (!((bitField0_ & 0x01000000) == 0x01000000)) {
entity_ = new java.util.ArrayList(entity_);
bitField0_ |= 0x01000000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder> entityBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public java.util.List getEntityList() {
if (entityBuilder_ == null) {
return java.util.Collections.unmodifiableList(entity_);
} else {
return entityBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public int getEntityCount() {
if (entityBuilder_ == null) {
return entity_.size();
} else {
return entityBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getEntity(int index) {
if (entityBuilder_ == null) {
return entity_.get(index);
} else {
return entityBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder setEntity(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.set(index, value);
onChanged();
} else {
entityBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder setEntity(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.set(index, builderForValue.build());
onChanged();
} else {
entityBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder addEntity(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.add(value);
onChanged();
} else {
entityBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder addEntity(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity value) {
if (entityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntityIsMutable();
entity_.add(index, value);
onChanged();
} else {
entityBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder addEntity(
edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(builderForValue.build());
onChanged();
} else {
entityBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder addEntity(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder builderForValue) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.add(index, builderForValue.build());
onChanged();
} else {
entityBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder addAllEntity(
java.lang.Iterable values) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entity_);
onChanged();
} else {
entityBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder clearEntity() {
if (entityBuilder_ == null) {
entity_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x01000000);
onChanged();
} else {
entityBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public Builder removeEntity(int index) {
if (entityBuilder_ == null) {
ensureEntityIsMutable();
entity_.remove(index);
onChanged();
} else {
entityBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder getEntityBuilder(
int index) {
return getEntityFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getEntityOrBuilder(
int index) {
if (entityBuilder_ == null) {
return entity_.get(index); } else {
return entityBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public java.util.List
getEntityOrBuilderList() {
if (entityBuilder_ != null) {
return entityBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entity_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addEntityBuilder() {
return getEntityFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addEntityBuilder(
int index) {
return getEntityFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Entity entity = 52;
*/
public java.util.List
getEntityBuilderList() {
return getEntityFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder>
getEntityFieldBuilder() {
if (entityBuilder_ == null) {
entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder>(
entity_,
((bitField0_ & 0x01000000) == 0x01000000),
getParentForChildren(),
isClean());
entity_ = null;
}
return entityBuilder_;
}
private java.util.List relation_ =
java.util.Collections.emptyList();
private void ensureRelationIsMutable() {
if (!((bitField0_ & 0x02000000) == 0x02000000)) {
relation_ = new java.util.ArrayList(relation_);
bitField0_ |= 0x02000000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Relation, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder> relationBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public java.util.List getRelationList() {
if (relationBuilder_ == null) {
return java.util.Collections.unmodifiableList(relation_);
} else {
return relationBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public int getRelationCount() {
if (relationBuilder_ == null) {
return relation_.size();
} else {
return relationBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation getRelation(int index) {
if (relationBuilder_ == null) {
return relation_.get(index);
} else {
return relationBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder setRelation(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation value) {
if (relationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationIsMutable();
relation_.set(index, value);
onChanged();
} else {
relationBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder setRelation(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder builderForValue) {
if (relationBuilder_ == null) {
ensureRelationIsMutable();
relation_.set(index, builderForValue.build());
onChanged();
} else {
relationBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder addRelation(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation value) {
if (relationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationIsMutable();
relation_.add(value);
onChanged();
} else {
relationBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder addRelation(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation value) {
if (relationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRelationIsMutable();
relation_.add(index, value);
onChanged();
} else {
relationBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder addRelation(
edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder builderForValue) {
if (relationBuilder_ == null) {
ensureRelationIsMutable();
relation_.add(builderForValue.build());
onChanged();
} else {
relationBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder addRelation(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder builderForValue) {
if (relationBuilder_ == null) {
ensureRelationIsMutable();
relation_.add(index, builderForValue.build());
onChanged();
} else {
relationBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder addAllRelation(
java.lang.Iterable values) {
if (relationBuilder_ == null) {
ensureRelationIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, relation_);
onChanged();
} else {
relationBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder clearRelation() {
if (relationBuilder_ == null) {
relation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x02000000);
onChanged();
} else {
relationBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public Builder removeRelation(int index) {
if (relationBuilder_ == null) {
ensureRelationIsMutable();
relation_.remove(index);
onChanged();
} else {
relationBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder getRelationBuilder(
int index) {
return getRelationFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBuilder(
int index) {
if (relationBuilder_ == null) {
return relation_.get(index); } else {
return relationBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public java.util.List
getRelationOrBuilderList() {
if (relationBuilder_ != null) {
return relationBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(relation_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder addRelationBuilder() {
return getRelationFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder addRelationBuilder(
int index) {
return getRelationFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Relation relation = 53;
*/
public java.util.List
getRelationBuilderList() {
return getRelationFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Relation, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder>
getRelationFieldBuilder() {
if (relationBuilder_ == null) {
relationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Relation, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder>(
relation_,
((bitField0_ & 0x02000000) == 0x02000000),
getParentForChildren(),
isClean());
relation_ = null;
}
return relationBuilder_;
}
private boolean hasNumerizedTokensAnnotation_ ;
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
public boolean hasHasNumerizedTokensAnnotation() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
public boolean getHasNumerizedTokensAnnotation() {
return hasNumerizedTokensAnnotation_;
}
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
public Builder setHasNumerizedTokensAnnotation(boolean value) {
bitField0_ |= 0x04000000;
hasNumerizedTokensAnnotation_ = value;
onChanged();
return this;
}
/**
* optional bool hasNumerizedTokensAnnotation = 54;
*/
public Builder clearHasNumerizedTokensAnnotation() {
bitField0_ = (bitField0_ & ~0x04000000);
hasNumerizedTokensAnnotation_ = false;
onChanged();
return this;
}
private java.util.List mentions_ =
java.util.Collections.emptyList();
private void ensureMentionsIsMutable() {
if (!((bitField0_ & 0x08000000) == 0x08000000)) {
mentions_ = new java.util.ArrayList(mentions_);
bitField0_ |= 0x08000000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder> mentionsBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public java.util.List getMentionsList() {
if (mentionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(mentions_);
} else {
return mentionsBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public int getMentionsCount() {
if (mentionsBuilder_ == null) {
return mentions_.size();
} else {
return mentionsBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index) {
if (mentionsBuilder_ == null) {
return mentions_.get(index);
} else {
return mentionsBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder setMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) {
if (mentionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsIsMutable();
mentions_.set(index, value);
onChanged();
} else {
mentionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder setMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.set(index, builderForValue.build());
onChanged();
} else {
mentionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder addMentions(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) {
if (mentionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsIsMutable();
mentions_.add(value);
onChanged();
} else {
mentionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder addMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) {
if (mentionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsIsMutable();
mentions_.add(index, value);
onChanged();
} else {
mentionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder addMentions(
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.add(builderForValue.build());
onChanged();
} else {
mentionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder addMentions(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.add(index, builderForValue.build());
onChanged();
} else {
mentionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder addAllMentions(
java.lang.Iterable values) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mentions_);
onChanged();
} else {
mentionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder clearMentions() {
if (mentionsBuilder_ == null) {
mentions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x08000000);
onChanged();
} else {
mentionsBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public Builder removeMentions(int index) {
if (mentionsBuilder_ == null) {
ensureMentionsIsMutable();
mentions_.remove(index);
onChanged();
} else {
mentionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder getMentionsBuilder(
int index) {
return getMentionsFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder(
int index) {
if (mentionsBuilder_ == null) {
return mentions_.get(index); } else {
return mentionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public java.util.List
getMentionsOrBuilderList() {
if (mentionsBuilder_ != null) {
return mentionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mentions_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBuilder() {
return getMentionsFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBuilder(
int index) {
return getMentionsFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55;
*/
public java.util.List
getMentionsBuilderList() {
return getMentionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder>
getMentionsFieldBuilder() {
if (mentionsBuilder_ == null) {
mentionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder>(
mentions_,
((bitField0_ & 0x08000000) == 0x08000000),
getParentForChildren(),
isClean());
mentions_ = null;
}
return mentionsBuilder_;
}
private java.util.List mentionsForCoref_ =
java.util.Collections.emptyList();
private void ensureMentionsForCorefIsMutable() {
if (!((bitField0_ & 0x10000000) == 0x10000000)) {
mentionsForCoref_ = new java.util.ArrayList(mentionsForCoref_);
bitField0_ |= 0x10000000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder> mentionsForCorefBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public java.util.List getMentionsForCorefList() {
if (mentionsForCorefBuilder_ == null) {
return java.util.Collections.unmodifiableList(mentionsForCoref_);
} else {
return mentionsForCorefBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public int getMentionsForCorefCount() {
if (mentionsForCorefBuilder_ == null) {
return mentionsForCoref_.size();
} else {
return mentionsForCorefBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention getMentionsForCoref(int index) {
if (mentionsForCorefBuilder_ == null) {
return mentionsForCoref_.get(index);
} else {
return mentionsForCorefBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder setMentionsForCoref(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention value) {
if (mentionsForCorefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsForCorefIsMutable();
mentionsForCoref_.set(index, value);
onChanged();
} else {
mentionsForCorefBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder setMentionsForCoref(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder builderForValue) {
if (mentionsForCorefBuilder_ == null) {
ensureMentionsForCorefIsMutable();
mentionsForCoref_.set(index, builderForValue.build());
onChanged();
} else {
mentionsForCorefBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder addMentionsForCoref(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention value) {
if (mentionsForCorefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsForCorefIsMutable();
mentionsForCoref_.add(value);
onChanged();
} else {
mentionsForCorefBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder addMentionsForCoref(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention value) {
if (mentionsForCorefBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionsForCorefIsMutable();
mentionsForCoref_.add(index, value);
onChanged();
} else {
mentionsForCorefBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder addMentionsForCoref(
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder builderForValue) {
if (mentionsForCorefBuilder_ == null) {
ensureMentionsForCorefIsMutable();
mentionsForCoref_.add(builderForValue.build());
onChanged();
} else {
mentionsForCorefBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder addMentionsForCoref(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder builderForValue) {
if (mentionsForCorefBuilder_ == null) {
ensureMentionsForCorefIsMutable();
mentionsForCoref_.add(index, builderForValue.build());
onChanged();
} else {
mentionsForCorefBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder addAllMentionsForCoref(
java.lang.Iterable values) {
if (mentionsForCorefBuilder_ == null) {
ensureMentionsForCorefIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mentionsForCoref_);
onChanged();
} else {
mentionsForCorefBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder clearMentionsForCoref() {
if (mentionsForCorefBuilder_ == null) {
mentionsForCoref_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x10000000);
onChanged();
} else {
mentionsForCorefBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public Builder removeMentionsForCoref(int index) {
if (mentionsForCorefBuilder_ == null) {
ensureMentionsForCorefIsMutable();
mentionsForCoref_.remove(index);
onChanged();
} else {
mentionsForCorefBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder getMentionsForCorefBuilder(
int index) {
return getMentionsForCorefFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder getMentionsForCorefOrBuilder(
int index) {
if (mentionsForCorefBuilder_ == null) {
return mentionsForCoref_.get(index); } else {
return mentionsForCorefBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public java.util.List
getMentionsForCorefOrBuilderList() {
if (mentionsForCorefBuilder_ != null) {
return mentionsForCorefBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mentionsForCoref_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder addMentionsForCorefBuilder() {
return getMentionsForCorefFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder addMentionsForCorefBuilder(
int index) {
return getMentionsForCorefFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56;
*/
public java.util.List
getMentionsForCorefBuilderList() {
return getMentionsForCorefFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder>
getMentionsForCorefFieldBuilder() {
if (mentionsForCorefBuilder_ == null) {
mentionsForCorefBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder>(
mentionsForCoref_,
((bitField0_ & 0x10000000) == 0x10000000),
getParentForChildren(),
isClean());
mentionsForCoref_ = null;
}
return mentionsForCorefBuilder_;
}
private boolean hasCorefMentionsAnnotation_ ;
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
public boolean hasHasCorefMentionsAnnotation() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
public boolean getHasCorefMentionsAnnotation() {
return hasCorefMentionsAnnotation_;
}
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
public Builder setHasCorefMentionsAnnotation(boolean value) {
bitField0_ |= 0x20000000;
hasCorefMentionsAnnotation_ = value;
onChanged();
return this;
}
/**
* optional bool hasCorefMentionsAnnotation = 57;
*/
public Builder clearHasCorefMentionsAnnotation() {
bitField0_ = (bitField0_ & ~0x20000000);
hasCorefMentionsAnnotation_ = false;
onChanged();
return this;
}
private java.lang.Object sentenceID_ = "";
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public boolean hasSentenceID() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public java.lang.String getSentenceID() {
java.lang.Object ref = sentenceID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sentenceID_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public com.google.protobuf.ByteString
getSentenceIDBytes() {
java.lang.Object ref = sentenceID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sentenceID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public Builder setSentenceID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x40000000;
sentenceID_ = value;
onChanged();
return this;
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public Builder clearSentenceID() {
bitField0_ = (bitField0_ & ~0x40000000);
sentenceID_ = getDefaultInstance().getSentenceID();
onChanged();
return this;
}
/**
* optional string sentenceID = 58;
*
*
* Useful when storing sentences (e.g. ForEach)
*
*/
public Builder setSentenceIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x40000000;
sentenceID_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Sentence)
}
static {
defaultInstance = new Sentence(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Sentence)
}
public interface TokenOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Token)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
boolean hasWord();
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
java.lang.String getWord();
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
com.google.protobuf.ByteString
getWordBytes();
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
boolean hasPos();
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
java.lang.String getPos();
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
com.google.protobuf.ByteString
getPosBytes();
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
boolean hasValue();
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
java.lang.String getValue();
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
boolean hasCategory();
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
java.lang.String getCategory();
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
com.google.protobuf.ByteString
getCategoryBytes();
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
boolean hasBefore();
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
java.lang.String getBefore();
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
com.google.protobuf.ByteString
getBeforeBytes();
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
boolean hasAfter();
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
java.lang.String getAfter();
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
com.google.protobuf.ByteString
getAfterBytes();
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
boolean hasOriginalText();
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
java.lang.String getOriginalText();
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
com.google.protobuf.ByteString
getOriginalTextBytes();
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
boolean hasNer();
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
java.lang.String getNer();
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
com.google.protobuf.ByteString
getNerBytes();
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
boolean hasNormalizedNER();
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
java.lang.String getNormalizedNER();
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
com.google.protobuf.ByteString
getNormalizedNERBytes();
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
boolean hasLemma();
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
java.lang.String getLemma();
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
com.google.protobuf.ByteString
getLemmaBytes();
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
boolean hasBeginChar();
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
int getBeginChar();
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
boolean hasEndChar();
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
int getEndChar();
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
boolean hasUtterance();
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
int getUtterance();
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
boolean hasSpeaker();
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
java.lang.String getSpeaker();
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
com.google.protobuf.ByteString
getSpeakerBytes();
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
boolean hasBeginIndex();
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
int getBeginIndex();
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
boolean hasEndIndex();
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
int getEndIndex();
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
boolean hasTokenBeginIndex();
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
int getTokenBeginIndex();
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
boolean hasTokenEndIndex();
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
int getTokenEndIndex();
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
boolean hasTimexValue();
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimexValue();
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBuilder();
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
boolean hasHasXmlContext();
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
boolean getHasXmlContext();
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
com.google.protobuf.ProtocolStringList
getXmlContextList();
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
int getXmlContextCount();
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
java.lang.String getXmlContext(int index);
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
com.google.protobuf.ByteString
getXmlContextBytes(int index);
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
boolean hasCorefClusterID();
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
int getCorefClusterID();
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
boolean hasAnswer();
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
java.lang.String getAnswer();
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
com.google.protobuf.ByteString
getAnswerBytes();
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
boolean hasHeadWordIndex();
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
int getHeadWordIndex();
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
boolean hasOperator();
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getOperator();
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
boolean hasPolarity();
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getPolarity();
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
boolean hasSpan();
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Span getSpan();
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder();
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
boolean hasSentiment();
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
java.lang.String getSentiment();
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
com.google.protobuf.ByteString
getSentimentBytes();
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
boolean hasQuotationIndex();
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
int getQuotationIndex();
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
boolean hasConllUFeatures();
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getConllUFeatures();
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConllUFeaturesOrBuilder();
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
boolean hasCoarseTag();
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
java.lang.String getCoarseTag();
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
com.google.protobuf.ByteString
getCoarseTagBytes();
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
boolean hasConllUTokenSpan();
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Span getConllUTokenSpan();
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanOrBuilder();
/**
* optional string conllUMisc = 35;
*/
boolean hasConllUMisc();
/**
* optional string conllUMisc = 35;
*/
java.lang.String getConllUMisc();
/**
* optional string conllUMisc = 35;
*/
com.google.protobuf.ByteString
getConllUMiscBytes();
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
boolean hasConllUSecondaryDeps();
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getConllUSecondaryDeps();
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSecondaryDepsOrBuilder();
/**
* optional string wikipediaEntity = 37;
*/
boolean hasWikipediaEntity();
/**
* optional string wikipediaEntity = 37;
*/
java.lang.String getWikipediaEntity();
/**
* optional string wikipediaEntity = 37;
*/
com.google.protobuf.ByteString
getWikipediaEntityBytes();
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
boolean hasGender();
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
java.lang.String getGender();
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
com.google.protobuf.ByteString
getGenderBytes();
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
boolean hasTrueCase();
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
java.lang.String getTrueCase();
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
com.google.protobuf.ByteString
getTrueCaseBytes();
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
boolean hasTrueCaseText();
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
java.lang.String getTrueCaseText();
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
com.google.protobuf.ByteString
getTrueCaseTextBytes();
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
boolean hasChineseChar();
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
java.lang.String getChineseChar();
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
com.google.protobuf.ByteString
getChineseCharBytes();
/**
* optional string chineseSeg = 55;
*/
boolean hasChineseSeg();
/**
* optional string chineseSeg = 55;
*/
java.lang.String getChineseSeg();
/**
* optional string chineseSeg = 55;
*/
com.google.protobuf.ByteString
getChineseSegBytes();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.Token}
*
*
* The serialized version of a Token (a CoreLabel).
*
*/
public static final class Token extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
Token> implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Token)
TokenOrBuilder {
// Use Token.newBuilder() to construct.
private Token(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Token(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Token defaultInstance;
public static Token getDefaultInstance() {
return defaultInstance;
}
public Token getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Token(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
int mutable_bitField1_ = 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 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
word_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
pos_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
value_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
category_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
before_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
after_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
originalText_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
ner_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
normalizedNER_ = bs;
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
lemma_ = bs;
break;
}
case 88: {
bitField0_ |= 0x00000400;
beginChar_ = input.readUInt32();
break;
}
case 96: {
bitField0_ |= 0x00000800;
endChar_ = input.readUInt32();
break;
}
case 104: {
bitField0_ |= 0x00001000;
utterance_ = input.readUInt32();
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
speaker_ = bs;
break;
}
case 120: {
bitField0_ |= 0x00004000;
beginIndex_ = input.readUInt32();
break;
}
case 128: {
bitField0_ |= 0x00008000;
endIndex_ = input.readUInt32();
break;
}
case 136: {
bitField0_ |= 0x00010000;
tokenBeginIndex_ = input.readUInt32();
break;
}
case 144: {
bitField0_ |= 0x00020000;
tokenEndIndex_ = input.readUInt32();
break;
}
case 154: {
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder subBuilder = null;
if (((bitField0_ & 0x00040000) == 0x00040000)) {
subBuilder = timexValue_.toBuilder();
}
timexValue_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timexValue_);
timexValue_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00040000;
break;
}
case 168: {
bitField0_ |= 0x00080000;
hasXmlContext_ = input.readBool();
break;
}
case 178: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
xmlContext_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00100000;
}
xmlContext_.add(bs);
break;
}
case 184: {
bitField0_ |= 0x00100000;
corefClusterID_ = input.readUInt32();
break;
}
case 194: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00200000;
answer_ = bs;
break;
}
case 208: {
bitField0_ |= 0x00400000;
headWordIndex_ = input.readUInt32();
break;
}
case 218: {
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder subBuilder = null;
if (((bitField0_ & 0x00800000) == 0x00800000)) {
subBuilder = operator_.toBuilder();
}
operator_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operator_);
operator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00800000;
break;
}
case 226: {
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder subBuilder = null;
if (((bitField0_ & 0x01000000) == 0x01000000)) {
subBuilder = polarity_.toBuilder();
}
polarity_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(polarity_);
polarity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x01000000;
break;
}
case 234: {
edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder subBuilder = null;
if (((bitField0_ & 0x02000000) == 0x02000000)) {
subBuilder = span_.toBuilder();
}
span_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Span.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(span_);
span_ = subBuilder.buildPartial();
}
bitField0_ |= 0x02000000;
break;
}
case 242: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x04000000;
sentiment_ = bs;
break;
}
case 248: {
bitField0_ |= 0x08000000;
quotationIndex_ = input.readInt32();
break;
}
case 258: {
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder subBuilder = null;
if (((bitField0_ & 0x10000000) == 0x10000000)) {
subBuilder = conllUFeatures_.toBuilder();
}
conllUFeatures_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conllUFeatures_);
conllUFeatures_ = subBuilder.buildPartial();
}
bitField0_ |= 0x10000000;
break;
}
case 266: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x20000000;
coarseTag_ = bs;
break;
}
case 274: {
edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder subBuilder = null;
if (((bitField0_ & 0x40000000) == 0x40000000)) {
subBuilder = conllUTokenSpan_.toBuilder();
}
conllUTokenSpan_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Span.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conllUTokenSpan_);
conllUTokenSpan_ = subBuilder.buildPartial();
}
bitField0_ |= 0x40000000;
break;
}
case 282: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x80000000;
conllUMisc_ = bs;
break;
}
case 290: {
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder subBuilder = null;
if (((bitField1_ & 0x00000001) == 0x00000001)) {
subBuilder = conllUSecondaryDeps_.toBuilder();
}
conllUSecondaryDeps_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(conllUSecondaryDeps_);
conllUSecondaryDeps_ = subBuilder.buildPartial();
}
bitField1_ |= 0x00000001;
break;
}
case 298: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000002;
wikipediaEntity_ = bs;
break;
}
case 410: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000004;
gender_ = bs;
break;
}
case 418: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000008;
trueCase_ = bs;
break;
}
case 426: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000010;
trueCaseText_ = bs;
break;
}
case 434: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000020;
chineseChar_ = bs;
break;
}
case 442: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000040;
chineseSeg_ = bs;
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_ & 0x00100000) == 0x00100000)) {
xmlContext_ = xmlContext_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Token parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Token(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
private int bitField1_;
public static final int WORD_FIELD_NUMBER = 1;
private java.lang.Object word_;
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public boolean hasWord() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public java.lang.String getWord() {
java.lang.Object ref = word_;
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()) {
word_ = s;
}
return s;
}
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public com.google.protobuf.ByteString
getWordBytes() {
java.lang.Object ref = word_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
word_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POS_FIELD_NUMBER = 2;
private java.lang.Object pos_;
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public boolean hasPos() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public java.lang.String getPos() {
java.lang.Object ref = pos_;
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()) {
pos_ = s;
}
return s;
}
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public com.google.protobuf.ByteString
getPosBytes() {
java.lang.Object ref = pos_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pos_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private java.lang.Object value_;
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CATEGORY_FIELD_NUMBER = 4;
private java.lang.Object category_;
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public boolean hasCategory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public java.lang.String getCategory() {
java.lang.Object ref = category_;
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()) {
category_ = s;
}
return s;
}
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public com.google.protobuf.ByteString
getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
category_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEFORE_FIELD_NUMBER = 5;
private java.lang.Object before_;
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public boolean hasBefore() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public java.lang.String getBefore() {
java.lang.Object ref = before_;
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()) {
before_ = s;
}
return s;
}
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public com.google.protobuf.ByteString
getBeforeBytes() {
java.lang.Object ref = before_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
before_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AFTER_FIELD_NUMBER = 6;
private java.lang.Object after_;
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public boolean hasAfter() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public java.lang.String getAfter() {
java.lang.Object ref = after_;
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()) {
after_ = s;
}
return s;
}
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public com.google.protobuf.ByteString
getAfterBytes() {
java.lang.Object ref = after_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
after_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGINALTEXT_FIELD_NUMBER = 7;
private java.lang.Object originalText_;
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public boolean hasOriginalText() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public java.lang.String getOriginalText() {
java.lang.Object ref = originalText_;
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()) {
originalText_ = s;
}
return s;
}
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public com.google.protobuf.ByteString
getOriginalTextBytes() {
java.lang.Object ref = originalText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NER_FIELD_NUMBER = 8;
private java.lang.Object ner_;
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public boolean hasNer() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public java.lang.String getNer() {
java.lang.Object ref = ner_;
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()) {
ner_ = s;
}
return s;
}
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public com.google.protobuf.ByteString
getNerBytes() {
java.lang.Object ref = ner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NORMALIZEDNER_FIELD_NUMBER = 9;
private java.lang.Object normalizedNER_;
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public boolean hasNormalizedNER() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public java.lang.String getNormalizedNER() {
java.lang.Object ref = normalizedNER_;
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()) {
normalizedNER_ = s;
}
return s;
}
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public com.google.protobuf.ByteString
getNormalizedNERBytes() {
java.lang.Object ref = normalizedNER_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
normalizedNER_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEMMA_FIELD_NUMBER = 10;
private java.lang.Object lemma_;
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public boolean hasLemma() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public java.lang.String getLemma() {
java.lang.Object ref = lemma_;
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()) {
lemma_ = s;
}
return s;
}
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public com.google.protobuf.ByteString
getLemmaBytes() {
java.lang.Object ref = lemma_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lemma_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEGINCHAR_FIELD_NUMBER = 11;
private int beginChar_;
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
public boolean hasBeginChar() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
public int getBeginChar() {
return beginChar_;
}
public static final int ENDCHAR_FIELD_NUMBER = 12;
private int endChar_;
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
public boolean hasEndChar() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
public int getEndChar() {
return endChar_;
}
public static final int UTTERANCE_FIELD_NUMBER = 13;
private int utterance_;
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
public boolean hasUtterance() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
public int getUtterance() {
return utterance_;
}
public static final int SPEAKER_FIELD_NUMBER = 14;
private java.lang.Object speaker_;
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public boolean hasSpeaker() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public java.lang.String getSpeaker() {
java.lang.Object ref = speaker_;
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()) {
speaker_ = s;
}
return s;
}
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public com.google.protobuf.ByteString
getSpeakerBytes() {
java.lang.Object ref = speaker_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
speaker_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEGININDEX_FIELD_NUMBER = 15;
private int beginIndex_;
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
public boolean hasBeginIndex() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
public int getBeginIndex() {
return beginIndex_;
}
public static final int ENDINDEX_FIELD_NUMBER = 16;
private int endIndex_;
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
public boolean hasEndIndex() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
public int getEndIndex() {
return endIndex_;
}
public static final int TOKENBEGININDEX_FIELD_NUMBER = 17;
private int tokenBeginIndex_;
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
public boolean hasTokenBeginIndex() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
public int getTokenBeginIndex() {
return tokenBeginIndex_;
}
public static final int TOKENENDINDEX_FIELD_NUMBER = 18;
private int tokenEndIndex_;
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
public boolean hasTokenEndIndex() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
public int getTokenEndIndex() {
return tokenEndIndex_;
}
public static final int TIMEXVALUE_FIELD_NUMBER = 19;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timexValue_;
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public boolean hasTimexValue() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimexValue() {
return timexValue_;
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBuilder() {
return timexValue_;
}
public static final int HASXMLCONTEXT_FIELD_NUMBER = 21;
private boolean hasXmlContext_;
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
public boolean hasHasXmlContext() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
public boolean getHasXmlContext() {
return hasXmlContext_;
}
public static final int XMLCONTEXT_FIELD_NUMBER = 22;
private com.google.protobuf.LazyStringList xmlContext_;
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public com.google.protobuf.ProtocolStringList
getXmlContextList() {
return xmlContext_;
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public int getXmlContextCount() {
return xmlContext_.size();
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public java.lang.String getXmlContext(int index) {
return xmlContext_.get(index);
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public com.google.protobuf.ByteString
getXmlContextBytes(int index) {
return xmlContext_.getByteString(index);
}
public static final int COREFCLUSTERID_FIELD_NUMBER = 23;
private int corefClusterID_;
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
public boolean hasCorefClusterID() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
public int getCorefClusterID() {
return corefClusterID_;
}
public static final int ANSWER_FIELD_NUMBER = 24;
private java.lang.Object answer_;
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public boolean hasAnswer() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public java.lang.String getAnswer() {
java.lang.Object ref = answer_;
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()) {
answer_ = s;
}
return s;
}
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public com.google.protobuf.ByteString
getAnswerBytes() {
java.lang.Object ref = answer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
answer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HEADWORDINDEX_FIELD_NUMBER = 26;
private int headWordIndex_;
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
public boolean hasHeadWordIndex() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
public int getHeadWordIndex() {
return headWordIndex_;
}
public static final int OPERATOR_FIELD_NUMBER = 27;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Operator operator_;
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public boolean hasOperator() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getOperator() {
return operator_;
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBuilder() {
return operator_;
}
public static final int POLARITY_FIELD_NUMBER = 28;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity polarity_;
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public boolean hasPolarity() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getPolarity() {
return polarity_;
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBuilder() {
return polarity_;
}
public static final int SPAN_FIELD_NUMBER = 29;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Span span_;
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public boolean hasSpan() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getSpan() {
return span_;
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder() {
return span_;
}
public static final int SENTIMENT_FIELD_NUMBER = 30;
private java.lang.Object sentiment_;
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public boolean hasSentiment() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public java.lang.String getSentiment() {
java.lang.Object ref = sentiment_;
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()) {
sentiment_ = s;
}
return s;
}
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public com.google.protobuf.ByteString
getSentimentBytes() {
java.lang.Object ref = sentiment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sentiment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUOTATIONINDEX_FIELD_NUMBER = 31;
private int quotationIndex_;
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
public boolean hasQuotationIndex() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
public int getQuotationIndex() {
return quotationIndex_;
}
public static final int CONLLUFEATURES_FIELD_NUMBER = 32;
private edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString conllUFeatures_;
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public boolean hasConllUFeatures() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getConllUFeatures() {
return conllUFeatures_;
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConllUFeaturesOrBuilder() {
return conllUFeatures_;
}
public static final int COARSETAG_FIELD_NUMBER = 33;
private java.lang.Object coarseTag_;
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public boolean hasCoarseTag() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public java.lang.String getCoarseTag() {
java.lang.Object ref = coarseTag_;
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()) {
coarseTag_ = s;
}
return s;
}
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public com.google.protobuf.ByteString
getCoarseTagBytes() {
java.lang.Object ref = coarseTag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coarseTag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONLLUTOKENSPAN_FIELD_NUMBER = 34;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Span conllUTokenSpan_;
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public boolean hasConllUTokenSpan() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getConllUTokenSpan() {
return conllUTokenSpan_;
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanOrBuilder() {
return conllUTokenSpan_;
}
public static final int CONLLUMISC_FIELD_NUMBER = 35;
private java.lang.Object conllUMisc_;
/**
* optional string conllUMisc = 35;
*/
public boolean hasConllUMisc() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
* optional string conllUMisc = 35;
*/
public java.lang.String getConllUMisc() {
java.lang.Object ref = conllUMisc_;
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()) {
conllUMisc_ = s;
}
return s;
}
}
/**
* optional string conllUMisc = 35;
*/
public com.google.protobuf.ByteString
getConllUMiscBytes() {
java.lang.Object ref = conllUMisc_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conllUMisc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONLLUSECONDARYDEPS_FIELD_NUMBER = 36;
private edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString conllUSecondaryDeps_;
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public boolean hasConllUSecondaryDeps() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getConllUSecondaryDeps() {
return conllUSecondaryDeps_;
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSecondaryDepsOrBuilder() {
return conllUSecondaryDeps_;
}
public static final int WIKIPEDIAENTITY_FIELD_NUMBER = 37;
private java.lang.Object wikipediaEntity_;
/**
* optional string wikipediaEntity = 37;
*/
public boolean hasWikipediaEntity() {
return ((bitField1_ & 0x00000002) == 0x00000002);
}
/**
* optional string wikipediaEntity = 37;
*/
public java.lang.String getWikipediaEntity() {
java.lang.Object ref = wikipediaEntity_;
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()) {
wikipediaEntity_ = s;
}
return s;
}
}
/**
* optional string wikipediaEntity = 37;
*/
public com.google.protobuf.ByteString
getWikipediaEntityBytes() {
java.lang.Object ref = wikipediaEntity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wikipediaEntity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GENDER_FIELD_NUMBER = 51;
private java.lang.Object gender_;
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public boolean hasGender() {
return ((bitField1_ & 0x00000004) == 0x00000004);
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public java.lang.String getGender() {
java.lang.Object ref = gender_;
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()) {
gender_ = s;
}
return s;
}
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public com.google.protobuf.ByteString
getGenderBytes() {
java.lang.Object ref = gender_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRUECASE_FIELD_NUMBER = 52;
private java.lang.Object trueCase_;
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public boolean hasTrueCase() {
return ((bitField1_ & 0x00000008) == 0x00000008);
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public java.lang.String getTrueCase() {
java.lang.Object ref = trueCase_;
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()) {
trueCase_ = s;
}
return s;
}
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public com.google.protobuf.ByteString
getTrueCaseBytes() {
java.lang.Object ref = trueCase_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trueCase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRUECASETEXT_FIELD_NUMBER = 53;
private java.lang.Object trueCaseText_;
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public boolean hasTrueCaseText() {
return ((bitField1_ & 0x00000010) == 0x00000010);
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public java.lang.String getTrueCaseText() {
java.lang.Object ref = trueCaseText_;
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()) {
trueCaseText_ = s;
}
return s;
}
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public com.google.protobuf.ByteString
getTrueCaseTextBytes() {
java.lang.Object ref = trueCaseText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trueCaseText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHINESECHAR_FIELD_NUMBER = 54;
private java.lang.Object chineseChar_;
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public boolean hasChineseChar() {
return ((bitField1_ & 0x00000020) == 0x00000020);
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public java.lang.String getChineseChar() {
java.lang.Object ref = chineseChar_;
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()) {
chineseChar_ = s;
}
return s;
}
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public com.google.protobuf.ByteString
getChineseCharBytes() {
java.lang.Object ref = chineseChar_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chineseChar_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CHINESESEG_FIELD_NUMBER = 55;
private java.lang.Object chineseSeg_;
/**
* optional string chineseSeg = 55;
*/
public boolean hasChineseSeg() {
return ((bitField1_ & 0x00000040) == 0x00000040);
}
/**
* optional string chineseSeg = 55;
*/
public java.lang.String getChineseSeg() {
java.lang.Object ref = chineseSeg_;
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()) {
chineseSeg_ = s;
}
return s;
}
}
/**
* optional string chineseSeg = 55;
*/
public com.google.protobuf.ByteString
getChineseSegBytes() {
java.lang.Object ref = chineseSeg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chineseSeg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
word_ = "";
pos_ = "";
value_ = "";
category_ = "";
before_ = "";
after_ = "";
originalText_ = "";
ner_ = "";
normalizedNER_ = "";
lemma_ = "";
beginChar_ = 0;
endChar_ = 0;
utterance_ = 0;
speaker_ = "";
beginIndex_ = 0;
endIndex_ = 0;
tokenBeginIndex_ = 0;
tokenEndIndex_ = 0;
timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance();
hasXmlContext_ = false;
xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY;
corefClusterID_ = 0;
answer_ = "";
headWordIndex_ = 0;
operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance();
polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance();
span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
sentiment_ = "";
quotationIndex_ = 0;
conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance();
coarseTag_ = "";
conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
conllUMisc_ = "";
conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance();
wikipediaEntity_ = "";
gender_ = "";
trueCase_ = "";
trueCaseText_ = "";
chineseChar_ = "";
chineseSeg_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOperator()) {
if (!getOperator().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasPolarity()) {
if (!getPolarity().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSpan()) {
if (!getSpan().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasConllUTokenSpan()) {
if (!getConllUTokenSpan().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionWriter extensionWriter =
newExtensionWriter();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getWordBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getPosBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getValueBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getCategoryBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getBeforeBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(6, getAfterBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getOriginalTextBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getNerBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeBytes(9, getNormalizedNERBytes());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeBytes(10, getLemmaBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeUInt32(11, beginChar_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt32(12, endChar_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeUInt32(13, utterance_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBytes(14, getSpeakerBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeUInt32(15, beginIndex_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeUInt32(16, endIndex_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeUInt32(17, tokenBeginIndex_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
output.writeUInt32(18, tokenEndIndex_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
output.writeMessage(19, timexValue_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
output.writeBool(21, hasXmlContext_);
}
for (int i = 0; i < xmlContext_.size(); i++) {
output.writeBytes(22, xmlContext_.getByteString(i));
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
output.writeUInt32(23, corefClusterID_);
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
output.writeBytes(24, getAnswerBytes());
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
output.writeUInt32(26, headWordIndex_);
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
output.writeMessage(27, operator_);
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
output.writeMessage(28, polarity_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
output.writeMessage(29, span_);
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
output.writeBytes(30, getSentimentBytes());
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
output.writeInt32(31, quotationIndex_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
output.writeMessage(32, conllUFeatures_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
output.writeBytes(33, getCoarseTagBytes());
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
output.writeMessage(34, conllUTokenSpan_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
output.writeBytes(35, getConllUMiscBytes());
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
output.writeMessage(36, conllUSecondaryDeps_);
}
if (((bitField1_ & 0x00000002) == 0x00000002)) {
output.writeBytes(37, getWikipediaEntityBytes());
}
if (((bitField1_ & 0x00000004) == 0x00000004)) {
output.writeBytes(51, getGenderBytes());
}
if (((bitField1_ & 0x00000008) == 0x00000008)) {
output.writeBytes(52, getTrueCaseBytes());
}
if (((bitField1_ & 0x00000010) == 0x00000010)) {
output.writeBytes(53, getTrueCaseTextBytes());
}
if (((bitField1_ & 0x00000020) == 0x00000020)) {
output.writeBytes(54, getChineseCharBytes());
}
if (((bitField1_ & 0x00000040) == 0x00000040)) {
output.writeBytes(55, getChineseSegBytes());
}
extensionWriter.writeUntil(256, output);
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(1, getWordBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getPosBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getValueBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getCategoryBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getBeforeBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getAfterBytes());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getOriginalTextBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getNerBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, getNormalizedNERBytes());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, getLemmaBytes());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, beginChar_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, endChar_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, utterance_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, getSpeakerBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, beginIndex_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(16, endIndex_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(17, tokenBeginIndex_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(18, tokenEndIndex_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, timexValue_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(21, hasXmlContext_);
}
{
int dataSize = 0;
for (int i = 0; i < xmlContext_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(xmlContext_.getByteString(i));
}
size += dataSize;
size += 2 * getXmlContextList().size();
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(23, corefClusterID_);
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(24, getAnswerBytes());
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(26, headWordIndex_);
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, operator_);
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, polarity_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, span_);
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(30, getSentimentBytes());
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(31, quotationIndex_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, conllUFeatures_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(33, getCoarseTagBytes());
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, conllUTokenSpan_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(35, getConllUMiscBytes());
}
if (((bitField1_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, conllUSecondaryDeps_);
}
if (((bitField1_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(37, getWikipediaEntityBytes());
}
if (((bitField1_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(51, getGenderBytes());
}
if (((bitField1_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(52, getTrueCaseBytes());
}
if (((bitField1_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(53, getTrueCaseTextBytes());
}
if (((bitField1_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(54, getChineseCharBytes());
}
if (((bitField1_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(55, getChineseSegBytes());
}
size += extensionsSerializedSize();
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 edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token 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(edu.stanford.nlp.pipeline.CoreNLPProtos.Token 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 edu.stanford.nlp.pipeline.Token}
*
*
* The serialized version of a Token (a CoreLabel).
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Token, Builder> implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Token)
edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Token.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Token.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTimexValueFieldBuilder();
getOperatorFieldBuilder();
getPolarityFieldBuilder();
getSpanFieldBuilder();
getConllUFeaturesFieldBuilder();
getConllUTokenSpanFieldBuilder();
getConllUSecondaryDepsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
word_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
pos_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
category_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
before_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
after_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
originalText_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
ner_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
normalizedNER_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
lemma_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
beginChar_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
endChar_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
utterance_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
speaker_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
beginIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
endIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00008000);
tokenBeginIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00010000);
tokenEndIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00020000);
if (timexValueBuilder_ == null) {
timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance();
} else {
timexValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
hasXmlContext_ = false;
bitField0_ = (bitField0_ & ~0x00080000);
xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00100000);
corefClusterID_ = 0;
bitField0_ = (bitField0_ & ~0x00200000);
answer_ = "";
bitField0_ = (bitField0_ & ~0x00400000);
headWordIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00800000);
if (operatorBuilder_ == null) {
operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance();
} else {
operatorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x01000000);
if (polarityBuilder_ == null) {
polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance();
} else {
polarityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x02000000);
if (spanBuilder_ == null) {
span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
} else {
spanBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x04000000);
sentiment_ = "";
bitField0_ = (bitField0_ & ~0x08000000);
quotationIndex_ = 0;
bitField0_ = (bitField0_ & ~0x10000000);
if (conllUFeaturesBuilder_ == null) {
conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance();
} else {
conllUFeaturesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x20000000);
coarseTag_ = "";
bitField0_ = (bitField0_ & ~0x40000000);
if (conllUTokenSpanBuilder_ == null) {
conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
} else {
conllUTokenSpanBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x80000000);
conllUMisc_ = "";
bitField1_ = (bitField1_ & ~0x00000001);
if (conllUSecondaryDepsBuilder_ == null) {
conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance();
} else {
conllUSecondaryDepsBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00000002);
wikipediaEntity_ = "";
bitField1_ = (bitField1_ & ~0x00000004);
gender_ = "";
bitField1_ = (bitField1_ & ~0x00000008);
trueCase_ = "";
bitField1_ = (bitField1_ & ~0x00000010);
trueCaseText_ = "";
bitField1_ = (bitField1_ & ~0x00000020);
chineseChar_ = "";
bitField1_ = (bitField1_ & ~0x00000040);
chineseSeg_ = "";
bitField1_ = (bitField1_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Token result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Token buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Token result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Token(this);
int from_bitField0_ = bitField0_;
int from_bitField1_ = bitField1_;
int to_bitField0_ = 0;
int to_bitField1_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.word_ = word_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.pos_ = pos_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.category_ = category_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.before_ = before_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.after_ = after_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.originalText_ = originalText_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.ner_ = ner_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.normalizedNER_ = normalizedNER_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.lemma_ = lemma_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.beginChar_ = beginChar_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.endChar_ = endChar_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.utterance_ = utterance_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.speaker_ = speaker_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.beginIndex_ = beginIndex_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
result.endIndex_ = endIndex_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
result.tokenBeginIndex_ = tokenBeginIndex_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00020000;
}
result.tokenEndIndex_ = tokenEndIndex_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00040000;
}
if (timexValueBuilder_ == null) {
result.timexValue_ = timexValue_;
} else {
result.timexValue_ = timexValueBuilder_.build();
}
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00080000;
}
result.hasXmlContext_ = hasXmlContext_;
if (((bitField0_ & 0x00100000) == 0x00100000)) {
xmlContext_ = xmlContext_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00100000);
}
result.xmlContext_ = xmlContext_;
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00100000;
}
result.corefClusterID_ = corefClusterID_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00200000;
}
result.answer_ = answer_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00400000;
}
result.headWordIndex_ = headWordIndex_;
if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x00800000;
}
if (operatorBuilder_ == null) {
result.operator_ = operator_;
} else {
result.operator_ = operatorBuilder_.build();
}
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x01000000;
}
if (polarityBuilder_ == null) {
result.polarity_ = polarity_;
} else {
result.polarity_ = polarityBuilder_.build();
}
if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
to_bitField0_ |= 0x02000000;
}
if (spanBuilder_ == null) {
result.span_ = span_;
} else {
result.span_ = spanBuilder_.build();
}
if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
to_bitField0_ |= 0x04000000;
}
result.sentiment_ = sentiment_;
if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
to_bitField0_ |= 0x08000000;
}
result.quotationIndex_ = quotationIndex_;
if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
to_bitField0_ |= 0x10000000;
}
if (conllUFeaturesBuilder_ == null) {
result.conllUFeatures_ = conllUFeatures_;
} else {
result.conllUFeatures_ = conllUFeaturesBuilder_.build();
}
if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
to_bitField0_ |= 0x20000000;
}
result.coarseTag_ = coarseTag_;
if (((from_bitField0_ & 0x80000000) == 0x80000000)) {
to_bitField0_ |= 0x40000000;
}
if (conllUTokenSpanBuilder_ == null) {
result.conllUTokenSpan_ = conllUTokenSpan_;
} else {
result.conllUTokenSpan_ = conllUTokenSpanBuilder_.build();
}
if (((from_bitField1_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x80000000;
}
result.conllUMisc_ = conllUMisc_;
if (((from_bitField1_ & 0x00000002) == 0x00000002)) {
to_bitField1_ |= 0x00000001;
}
if (conllUSecondaryDepsBuilder_ == null) {
result.conllUSecondaryDeps_ = conllUSecondaryDeps_;
} else {
result.conllUSecondaryDeps_ = conllUSecondaryDepsBuilder_.build();
}
if (((from_bitField1_ & 0x00000004) == 0x00000004)) {
to_bitField1_ |= 0x00000002;
}
result.wikipediaEntity_ = wikipediaEntity_;
if (((from_bitField1_ & 0x00000008) == 0x00000008)) {
to_bitField1_ |= 0x00000004;
}
result.gender_ = gender_;
if (((from_bitField1_ & 0x00000010) == 0x00000010)) {
to_bitField1_ |= 0x00000008;
}
result.trueCase_ = trueCase_;
if (((from_bitField1_ & 0x00000020) == 0x00000020)) {
to_bitField1_ |= 0x00000010;
}
result.trueCaseText_ = trueCaseText_;
if (((from_bitField1_ & 0x00000040) == 0x00000040)) {
to_bitField1_ |= 0x00000020;
}
result.chineseChar_ = chineseChar_;
if (((from_bitField1_ & 0x00000080) == 0x00000080)) {
to_bitField1_ |= 0x00000040;
}
result.chineseSeg_ = chineseSeg_;
result.bitField0_ = to_bitField0_;
result.bitField1_ = to_bitField1_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Token) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Token)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Token other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Token.getDefaultInstance()) return this;
if (other.hasWord()) {
bitField0_ |= 0x00000001;
word_ = other.word_;
onChanged();
}
if (other.hasPos()) {
bitField0_ |= 0x00000002;
pos_ = other.pos_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000004;
value_ = other.value_;
onChanged();
}
if (other.hasCategory()) {
bitField0_ |= 0x00000008;
category_ = other.category_;
onChanged();
}
if (other.hasBefore()) {
bitField0_ |= 0x00000010;
before_ = other.before_;
onChanged();
}
if (other.hasAfter()) {
bitField0_ |= 0x00000020;
after_ = other.after_;
onChanged();
}
if (other.hasOriginalText()) {
bitField0_ |= 0x00000040;
originalText_ = other.originalText_;
onChanged();
}
if (other.hasNer()) {
bitField0_ |= 0x00000080;
ner_ = other.ner_;
onChanged();
}
if (other.hasNormalizedNER()) {
bitField0_ |= 0x00000100;
normalizedNER_ = other.normalizedNER_;
onChanged();
}
if (other.hasLemma()) {
bitField0_ |= 0x00000200;
lemma_ = other.lemma_;
onChanged();
}
if (other.hasBeginChar()) {
setBeginChar(other.getBeginChar());
}
if (other.hasEndChar()) {
setEndChar(other.getEndChar());
}
if (other.hasUtterance()) {
setUtterance(other.getUtterance());
}
if (other.hasSpeaker()) {
bitField0_ |= 0x00002000;
speaker_ = other.speaker_;
onChanged();
}
if (other.hasBeginIndex()) {
setBeginIndex(other.getBeginIndex());
}
if (other.hasEndIndex()) {
setEndIndex(other.getEndIndex());
}
if (other.hasTokenBeginIndex()) {
setTokenBeginIndex(other.getTokenBeginIndex());
}
if (other.hasTokenEndIndex()) {
setTokenEndIndex(other.getTokenEndIndex());
}
if (other.hasTimexValue()) {
mergeTimexValue(other.getTimexValue());
}
if (other.hasHasXmlContext()) {
setHasXmlContext(other.getHasXmlContext());
}
if (!other.xmlContext_.isEmpty()) {
if (xmlContext_.isEmpty()) {
xmlContext_ = other.xmlContext_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureXmlContextIsMutable();
xmlContext_.addAll(other.xmlContext_);
}
onChanged();
}
if (other.hasCorefClusterID()) {
setCorefClusterID(other.getCorefClusterID());
}
if (other.hasAnswer()) {
bitField0_ |= 0x00400000;
answer_ = other.answer_;
onChanged();
}
if (other.hasHeadWordIndex()) {
setHeadWordIndex(other.getHeadWordIndex());
}
if (other.hasOperator()) {
mergeOperator(other.getOperator());
}
if (other.hasPolarity()) {
mergePolarity(other.getPolarity());
}
if (other.hasSpan()) {
mergeSpan(other.getSpan());
}
if (other.hasSentiment()) {
bitField0_ |= 0x08000000;
sentiment_ = other.sentiment_;
onChanged();
}
if (other.hasQuotationIndex()) {
setQuotationIndex(other.getQuotationIndex());
}
if (other.hasConllUFeatures()) {
mergeConllUFeatures(other.getConllUFeatures());
}
if (other.hasCoarseTag()) {
bitField0_ |= 0x40000000;
coarseTag_ = other.coarseTag_;
onChanged();
}
if (other.hasConllUTokenSpan()) {
mergeConllUTokenSpan(other.getConllUTokenSpan());
}
if (other.hasConllUMisc()) {
bitField1_ |= 0x00000001;
conllUMisc_ = other.conllUMisc_;
onChanged();
}
if (other.hasConllUSecondaryDeps()) {
mergeConllUSecondaryDeps(other.getConllUSecondaryDeps());
}
if (other.hasWikipediaEntity()) {
bitField1_ |= 0x00000004;
wikipediaEntity_ = other.wikipediaEntity_;
onChanged();
}
if (other.hasGender()) {
bitField1_ |= 0x00000008;
gender_ = other.gender_;
onChanged();
}
if (other.hasTrueCase()) {
bitField1_ |= 0x00000010;
trueCase_ = other.trueCase_;
onChanged();
}
if (other.hasTrueCaseText()) {
bitField1_ |= 0x00000020;
trueCaseText_ = other.trueCaseText_;
onChanged();
}
if (other.hasChineseChar()) {
bitField1_ |= 0x00000040;
chineseChar_ = other.chineseChar_;
onChanged();
}
if (other.hasChineseSeg()) {
bitField1_ |= 0x00000080;
chineseSeg_ = other.chineseSeg_;
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasOperator()) {
if (!getOperator().isInitialized()) {
return false;
}
}
if (hasPolarity()) {
if (!getPolarity().isInitialized()) {
return false;
}
}
if (hasSpan()) {
if (!getSpan().isInitialized()) {
return false;
}
}
if (hasConllUTokenSpan()) {
if (!getConllUTokenSpan().isInitialized()) {
return false;
}
}
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.Token parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Token) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int bitField1_;
private java.lang.Object word_ = "";
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public boolean hasWord() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public java.lang.String getWord() {
java.lang.Object ref = word_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
word_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public com.google.protobuf.ByteString
getWordBytes() {
java.lang.Object ref = word_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
word_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public Builder setWord(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
word_ = value;
onChanged();
return this;
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public Builder clearWord() {
bitField0_ = (bitField0_ & ~0x00000001);
word_ = getDefaultInstance().getWord();
onChanged();
return this;
}
/**
* optional string word = 1;
*
*
* Fields set by the default annotators [new CoreNLP(new Properties())]
*
*/
public Builder setWordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
word_ = value;
onChanged();
return this;
}
private java.lang.Object pos_ = "";
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public boolean hasPos() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public java.lang.String getPos() {
java.lang.Object ref = pos_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pos_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public com.google.protobuf.ByteString
getPosBytes() {
java.lang.Object ref = pos_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pos_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public Builder setPos(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pos_ = value;
onChanged();
return this;
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public Builder clearPos() {
bitField0_ = (bitField0_ & ~0x00000002);
pos_ = getDefaultInstance().getPos();
onChanged();
return this;
}
/**
* optional string pos = 2;
*
*
* The word's part of speech tag
*
*/
public Builder setPosBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pos_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 3;
*
*
* The word's 'value', (e.g., parse tree node)
*
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
value_ = value;
onChanged();
return this;
}
private java.lang.Object category_ = "";
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public boolean hasCategory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public java.lang.String getCategory() {
java.lang.Object ref = category_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
category_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public com.google.protobuf.ByteString
getCategoryBytes() {
java.lang.Object ref = category_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
category_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public Builder setCategory(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
category_ = value;
onChanged();
return this;
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public Builder clearCategory() {
bitField0_ = (bitField0_ & ~0x00000008);
category_ = getDefaultInstance().getCategory();
onChanged();
return this;
}
/**
* optional string category = 4;
*
*
* The word's 'category' (e.g., parse tree node)
*
*/
public Builder setCategoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
category_ = value;
onChanged();
return this;
}
private java.lang.Object before_ = "";
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public boolean hasBefore() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public java.lang.String getBefore() {
java.lang.Object ref = before_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
before_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public com.google.protobuf.ByteString
getBeforeBytes() {
java.lang.Object ref = before_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
before_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public Builder setBefore(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
before_ = value;
onChanged();
return this;
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public Builder clearBefore() {
bitField0_ = (bitField0_ & ~0x00000010);
before_ = getDefaultInstance().getBefore();
onChanged();
return this;
}
/**
* optional string before = 5;
*
*
* The whitespace/xml before the token
*
*/
public Builder setBeforeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
before_ = value;
onChanged();
return this;
}
private java.lang.Object after_ = "";
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public boolean hasAfter() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public java.lang.String getAfter() {
java.lang.Object ref = after_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
after_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public com.google.protobuf.ByteString
getAfterBytes() {
java.lang.Object ref = after_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
after_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public Builder setAfter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
after_ = value;
onChanged();
return this;
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public Builder clearAfter() {
bitField0_ = (bitField0_ & ~0x00000020);
after_ = getDefaultInstance().getAfter();
onChanged();
return this;
}
/**
* optional string after = 6;
*
*
* The whitespace/xml after the token
*
*/
public Builder setAfterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
after_ = value;
onChanged();
return this;
}
private java.lang.Object originalText_ = "";
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public boolean hasOriginalText() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public java.lang.String getOriginalText() {
java.lang.Object ref = originalText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
originalText_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public com.google.protobuf.ByteString
getOriginalTextBytes() {
java.lang.Object ref = originalText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public Builder setOriginalText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
originalText_ = value;
onChanged();
return this;
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public Builder clearOriginalText() {
bitField0_ = (bitField0_ & ~0x00000040);
originalText_ = getDefaultInstance().getOriginalText();
onChanged();
return this;
}
/**
* optional string originalText = 7;
*
*
* The original text for this token
*
*/
public Builder setOriginalTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
originalText_ = value;
onChanged();
return this;
}
private java.lang.Object ner_ = "";
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public boolean hasNer() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public java.lang.String getNer() {
java.lang.Object ref = ner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ner_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public com.google.protobuf.ByteString
getNerBytes() {
java.lang.Object ref = ner_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ner_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public Builder setNer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
ner_ = value;
onChanged();
return this;
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public Builder clearNer() {
bitField0_ = (bitField0_ & ~0x00000080);
ner_ = getDefaultInstance().getNer();
onChanged();
return this;
}
/**
* optional string ner = 8;
*
*
* The word's NER tag
*
*/
public Builder setNerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
ner_ = value;
onChanged();
return this;
}
private java.lang.Object normalizedNER_ = "";
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public boolean hasNormalizedNER() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public java.lang.String getNormalizedNER() {
java.lang.Object ref = normalizedNER_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
normalizedNER_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public com.google.protobuf.ByteString
getNormalizedNERBytes() {
java.lang.Object ref = normalizedNER_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
normalizedNER_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public Builder setNormalizedNER(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
normalizedNER_ = value;
onChanged();
return this;
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public Builder clearNormalizedNER() {
bitField0_ = (bitField0_ & ~0x00000100);
normalizedNER_ = getDefaultInstance().getNormalizedNER();
onChanged();
return this;
}
/**
* optional string normalizedNER = 9;
*
*
* The word's normalized NER tag
*
*/
public Builder setNormalizedNERBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
normalizedNER_ = value;
onChanged();
return this;
}
private java.lang.Object lemma_ = "";
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public boolean hasLemma() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public java.lang.String getLemma() {
java.lang.Object ref = lemma_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
lemma_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public com.google.protobuf.ByteString
getLemmaBytes() {
java.lang.Object ref = lemma_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lemma_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public Builder setLemma(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
lemma_ = value;
onChanged();
return this;
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public Builder clearLemma() {
bitField0_ = (bitField0_ & ~0x00000200);
lemma_ = getDefaultInstance().getLemma();
onChanged();
return this;
}
/**
* optional string lemma = 10;
*
*
* The word's lemma
*
*/
public Builder setLemmaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
lemma_ = value;
onChanged();
return this;
}
private int beginChar_ ;
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
public boolean hasBeginChar() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
public int getBeginChar() {
return beginChar_;
}
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
public Builder setBeginChar(int value) {
bitField0_ |= 0x00000400;
beginChar_ = value;
onChanged();
return this;
}
/**
* optional uint32 beginChar = 11;
*
*
* The character offset begin, in the document
*
*/
public Builder clearBeginChar() {
bitField0_ = (bitField0_ & ~0x00000400);
beginChar_ = 0;
onChanged();
return this;
}
private int endChar_ ;
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
public boolean hasEndChar() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
public int getEndChar() {
return endChar_;
}
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
public Builder setEndChar(int value) {
bitField0_ |= 0x00000800;
endChar_ = value;
onChanged();
return this;
}
/**
* optional uint32 endChar = 12;
*
*
* The character offset end, in the document
*
*/
public Builder clearEndChar() {
bitField0_ = (bitField0_ & ~0x00000800);
endChar_ = 0;
onChanged();
return this;
}
private int utterance_ ;
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
public boolean hasUtterance() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
public int getUtterance() {
return utterance_;
}
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
public Builder setUtterance(int value) {
bitField0_ |= 0x00001000;
utterance_ = value;
onChanged();
return this;
}
/**
* optional uint32 utterance = 13;
*
*
* The utterance tag used in dcoref
*
*/
public Builder clearUtterance() {
bitField0_ = (bitField0_ & ~0x00001000);
utterance_ = 0;
onChanged();
return this;
}
private java.lang.Object speaker_ = "";
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public boolean hasSpeaker() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public java.lang.String getSpeaker() {
java.lang.Object ref = speaker_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
speaker_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public com.google.protobuf.ByteString
getSpeakerBytes() {
java.lang.Object ref = speaker_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
speaker_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public Builder setSpeaker(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
speaker_ = value;
onChanged();
return this;
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public Builder clearSpeaker() {
bitField0_ = (bitField0_ & ~0x00002000);
speaker_ = getDefaultInstance().getSpeaker();
onChanged();
return this;
}
/**
* optional string speaker = 14;
*
*
* The speaker speaking this word
*
*/
public Builder setSpeakerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
speaker_ = value;
onChanged();
return this;
}
private int beginIndex_ ;
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
public boolean hasBeginIndex() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
public int getBeginIndex() {
return beginIndex_;
}
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
public Builder setBeginIndex(int value) {
bitField0_ |= 0x00004000;
beginIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 beginIndex = 15;
*
*
* The begin index of, e.g., a span
*
*/
public Builder clearBeginIndex() {
bitField0_ = (bitField0_ & ~0x00004000);
beginIndex_ = 0;
onChanged();
return this;
}
private int endIndex_ ;
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
public boolean hasEndIndex() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
public int getEndIndex() {
return endIndex_;
}
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
public Builder setEndIndex(int value) {
bitField0_ |= 0x00008000;
endIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 endIndex = 16;
*
*
* The begin index of, e.g., a span
*
*/
public Builder clearEndIndex() {
bitField0_ = (bitField0_ & ~0x00008000);
endIndex_ = 0;
onChanged();
return this;
}
private int tokenBeginIndex_ ;
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
public boolean hasTokenBeginIndex() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
public int getTokenBeginIndex() {
return tokenBeginIndex_;
}
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
public Builder setTokenBeginIndex(int value) {
bitField0_ |= 0x00010000;
tokenBeginIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 tokenBeginIndex = 17;
*
*
* The begin index of the token
*
*/
public Builder clearTokenBeginIndex() {
bitField0_ = (bitField0_ & ~0x00010000);
tokenBeginIndex_ = 0;
onChanged();
return this;
}
private int tokenEndIndex_ ;
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
public boolean hasTokenEndIndex() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
public int getTokenEndIndex() {
return tokenEndIndex_;
}
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
public Builder setTokenEndIndex(int value) {
bitField0_ |= 0x00020000;
tokenEndIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 tokenEndIndex = 18;
*
*
* The end index of the token
*
*/
public Builder clearTokenEndIndex() {
bitField0_ = (bitField0_ & ~0x00020000);
tokenEndIndex_ = 0;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder> timexValueBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public boolean hasTimexValue() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimexValue() {
if (timexValueBuilder_ == null) {
return timexValue_;
} else {
return timexValueBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public Builder setTimexValue(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) {
if (timexValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timexValue_ = value;
onChanged();
} else {
timexValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public Builder setTimexValue(
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder builderForValue) {
if (timexValueBuilder_ == null) {
timexValue_ = builderForValue.build();
onChanged();
} else {
timexValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public Builder mergeTimexValue(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) {
if (timexValueBuilder_ == null) {
if (((bitField0_ & 0x00040000) == 0x00040000) &&
timexValue_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance()) {
timexValue_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.newBuilder(timexValue_).mergeFrom(value).buildPartial();
} else {
timexValue_ = value;
}
onChanged();
} else {
timexValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public Builder clearTimexValue() {
if (timexValueBuilder_ == null) {
timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance();
onChanged();
} else {
timexValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder getTimexValueBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getTimexValueFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBuilder() {
if (timexValueBuilder_ != null) {
return timexValueBuilder_.getMessageOrBuilder();
} else {
return timexValue_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.Timex timexValue = 19;
*
*
* The time this word refers to
*
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder>
getTimexValueFieldBuilder() {
if (timexValueBuilder_ == null) {
timexValueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder>(
getTimexValue(),
getParentForChildren(),
isClean());
timexValue_ = null;
}
return timexValueBuilder_;
}
private boolean hasXmlContext_ ;
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
public boolean hasHasXmlContext() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
public boolean getHasXmlContext() {
return hasXmlContext_;
}
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
public Builder setHasXmlContext(boolean value) {
bitField0_ |= 0x00080000;
hasXmlContext_ = value;
onChanged();
return this;
}
/**
* optional bool hasXmlContext = 21;
*
*
* Used by clean xml annotator
*
*/
public Builder clearHasXmlContext() {
bitField0_ = (bitField0_ & ~0x00080000);
hasXmlContext_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureXmlContextIsMutable() {
if (!((bitField0_ & 0x00100000) == 0x00100000)) {
xmlContext_ = new com.google.protobuf.LazyStringArrayList(xmlContext_);
bitField0_ |= 0x00100000;
}
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public com.google.protobuf.ProtocolStringList
getXmlContextList() {
return xmlContext_.getUnmodifiableView();
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public int getXmlContextCount() {
return xmlContext_.size();
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public java.lang.String getXmlContext(int index) {
return xmlContext_.get(index);
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public com.google.protobuf.ByteString
getXmlContextBytes(int index) {
return xmlContext_.getByteString(index);
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public Builder setXmlContext(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureXmlContextIsMutable();
xmlContext_.set(index, value);
onChanged();
return this;
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public Builder addXmlContext(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureXmlContextIsMutable();
xmlContext_.add(value);
onChanged();
return this;
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public Builder addAllXmlContext(
java.lang.Iterable values) {
ensureXmlContextIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, xmlContext_);
onChanged();
return this;
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public Builder clearXmlContext() {
xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
* repeated string xmlContext = 22;
*
*
* Used by clean xml annotator
*
*/
public Builder addXmlContextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureXmlContextIsMutable();
xmlContext_.add(value);
onChanged();
return this;
}
private int corefClusterID_ ;
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
public boolean hasCorefClusterID() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
public int getCorefClusterID() {
return corefClusterID_;
}
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
public Builder setCorefClusterID(int value) {
bitField0_ |= 0x00200000;
corefClusterID_ = value;
onChanged();
return this;
}
/**
* optional uint32 corefClusterID = 23;
*
*
* The [primary] cluster id for this token
*
*/
public Builder clearCorefClusterID() {
bitField0_ = (bitField0_ & ~0x00200000);
corefClusterID_ = 0;
onChanged();
return this;
}
private java.lang.Object answer_ = "";
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public boolean hasAnswer() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public java.lang.String getAnswer() {
java.lang.Object ref = answer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
answer_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public com.google.protobuf.ByteString
getAnswerBytes() {
java.lang.Object ref = answer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
answer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public Builder setAnswer(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
answer_ = value;
onChanged();
return this;
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public Builder clearAnswer() {
bitField0_ = (bitField0_ & ~0x00400000);
answer_ = getDefaultInstance().getAnswer();
onChanged();
return this;
}
/**
* optional string answer = 24;
*
*
* A temporary annotation which is occasionally left in
*
*/
public Builder setAnswerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00400000;
answer_ = value;
onChanged();
return this;
}
private int headWordIndex_ ;
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
public boolean hasHeadWordIndex() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
public int getHeadWordIndex() {
return headWordIndex_;
}
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
public Builder setHeadWordIndex(int value) {
bitField0_ |= 0x00800000;
headWordIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 headWordIndex = 26;
*
*
* optional string projectedCategory = 25; // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
*
*/
public Builder clearHeadWordIndex() {
bitField0_ = (bitField0_ & ~0x00800000);
headWordIndex_ = 0;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Operator operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator, edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder> operatorBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public boolean hasOperator() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getOperator() {
if (operatorBuilder_ == null) {
return operator_;
} else {
return operatorBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public Builder setOperator(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator value) {
if (operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operator_ = value;
onChanged();
} else {
operatorBuilder_.setMessage(value);
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public Builder setOperator(
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder builderForValue) {
if (operatorBuilder_ == null) {
operator_ = builderForValue.build();
onChanged();
} else {
operatorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public Builder mergeOperator(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator value) {
if (operatorBuilder_ == null) {
if (((bitField0_ & 0x01000000) == 0x01000000) &&
operator_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance()) {
operator_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.newBuilder(operator_).mergeFrom(value).buildPartial();
} else {
operator_ = value;
}
onChanged();
} else {
operatorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x01000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public Builder clearOperator() {
if (operatorBuilder_ == null) {
operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance();
onChanged();
} else {
operatorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x01000000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder getOperatorBuilder() {
bitField0_ |= 0x01000000;
onChanged();
return getOperatorFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBuilder() {
if (operatorBuilder_ != null) {
return operatorBuilder_.getMessageOrBuilder();
} else {
return operator_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.Operator operator = 27;
*
*
* If this is an operator, which one is it and what is its scope (as per Natural Logic)?
*
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator, edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder>
getOperatorFieldBuilder() {
if (operatorBuilder_ == null) {
operatorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Operator, edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder>(
getOperator(),
getParentForChildren(),
isClean());
operator_ = null;
}
return operatorBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity, edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder> polarityBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public boolean hasPolarity() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getPolarity() {
if (polarityBuilder_ == null) {
return polarity_;
} else {
return polarityBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public Builder setPolarity(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity value) {
if (polarityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
polarity_ = value;
onChanged();
} else {
polarityBuilder_.setMessage(value);
}
bitField0_ |= 0x02000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public Builder setPolarity(
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder builderForValue) {
if (polarityBuilder_ == null) {
polarity_ = builderForValue.build();
onChanged();
} else {
polarityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x02000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public Builder mergePolarity(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity value) {
if (polarityBuilder_ == null) {
if (((bitField0_ & 0x02000000) == 0x02000000) &&
polarity_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance()) {
polarity_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.newBuilder(polarity_).mergeFrom(value).buildPartial();
} else {
polarity_ = value;
}
onChanged();
} else {
polarityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x02000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public Builder clearPolarity() {
if (polarityBuilder_ == null) {
polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance();
onChanged();
} else {
polarityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x02000000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder getPolarityBuilder() {
bitField0_ |= 0x02000000;
onChanged();
return getPolarityFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBuilder() {
if (polarityBuilder_ != null) {
return polarityBuilder_.getMessageOrBuilder();
} else {
return polarity_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.Polarity polarity = 28;
*
*
* The polarity of this word, according to Natural Logic
*
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity, edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder>
getPolarityFieldBuilder() {
if (polarityBuilder_ == null) {
polarityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity, edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder>(
getPolarity(),
getParentForChildren(),
isClean());
polarity_ = null;
}
return polarityBuilder_;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Span span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder> spanBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public boolean hasSpan() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getSpan() {
if (spanBuilder_ == null) {
return span_;
} else {
return spanBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public Builder setSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) {
if (spanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
span_ = value;
onChanged();
} else {
spanBuilder_.setMessage(value);
}
bitField0_ |= 0x04000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public Builder setSpan(
edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder builderForValue) {
if (spanBuilder_ == null) {
span_ = builderForValue.build();
onChanged();
} else {
spanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x04000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public Builder mergeSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) {
if (spanBuilder_ == null) {
if (((bitField0_ & 0x04000000) == 0x04000000) &&
span_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance()) {
span_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.Span.newBuilder(span_).mergeFrom(value).buildPartial();
} else {
span_ = value;
}
onChanged();
} else {
spanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x04000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public Builder clearSpan() {
if (spanBuilder_ == null) {
span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
onChanged();
} else {
spanBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x04000000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder getSpanBuilder() {
bitField0_ |= 0x04000000;
onChanged();
return getSpanFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder() {
if (spanBuilder_ != null) {
return spanBuilder_.getMessageOrBuilder();
} else {
return span_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.Span span = 29;
*
*
* The span of a leaf node of a tree
*
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder>
getSpanFieldBuilder() {
if (spanBuilder_ == null) {
spanBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder>(
getSpan(),
getParentForChildren(),
isClean());
span_ = null;
}
return spanBuilder_;
}
private java.lang.Object sentiment_ = "";
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public boolean hasSentiment() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public java.lang.String getSentiment() {
java.lang.Object ref = sentiment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sentiment_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public com.google.protobuf.ByteString
getSentimentBytes() {
java.lang.Object ref = sentiment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sentiment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public Builder setSentiment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x08000000;
sentiment_ = value;
onChanged();
return this;
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public Builder clearSentiment() {
bitField0_ = (bitField0_ & ~0x08000000);
sentiment_ = getDefaultInstance().getSentiment();
onChanged();
return this;
}
/**
* optional string sentiment = 30;
*
*
* The final sentiment of the sentence
*
*/
public Builder setSentimentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x08000000;
sentiment_ = value;
onChanged();
return this;
}
private int quotationIndex_ ;
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
public boolean hasQuotationIndex() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
public int getQuotationIndex() {
return quotationIndex_;
}
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
public Builder setQuotationIndex(int value) {
bitField0_ |= 0x10000000;
quotationIndex_ = value;
onChanged();
return this;
}
/**
* optional int32 quotationIndex = 31;
*
*
* The index of the quotation this token refers to
*
*/
public Builder clearQuotationIndex() {
bitField0_ = (bitField0_ & ~0x10000000);
quotationIndex_ = 0;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder> conllUFeaturesBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public boolean hasConllUFeatures() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getConllUFeatures() {
if (conllUFeaturesBuilder_ == null) {
return conllUFeatures_;
} else {
return conllUFeaturesBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public Builder setConllUFeatures(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString value) {
if (conllUFeaturesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conllUFeatures_ = value;
onChanged();
} else {
conllUFeaturesBuilder_.setMessage(value);
}
bitField0_ |= 0x20000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public Builder setConllUFeatures(
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder builderForValue) {
if (conllUFeaturesBuilder_ == null) {
conllUFeatures_ = builderForValue.build();
onChanged();
} else {
conllUFeaturesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x20000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public Builder mergeConllUFeatures(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString value) {
if (conllUFeaturesBuilder_ == null) {
if (((bitField0_ & 0x20000000) == 0x20000000) &&
conllUFeatures_ != edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance()) {
conllUFeatures_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.newBuilder(conllUFeatures_).mergeFrom(value).buildPartial();
} else {
conllUFeatures_ = value;
}
onChanged();
} else {
conllUFeaturesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x20000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public Builder clearConllUFeatures() {
if (conllUFeaturesBuilder_ == null) {
conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance();
onChanged();
} else {
conllUFeaturesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x20000000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder getConllUFeaturesBuilder() {
bitField0_ |= 0x20000000;
onChanged();
return getConllUFeaturesFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConllUFeaturesOrBuilder() {
if (conllUFeaturesBuilder_ != null) {
return conllUFeaturesBuilder_.getMessageOrBuilder();
} else {
return conllUFeatures_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder>
getConllUFeaturesFieldBuilder() {
if (conllUFeaturesBuilder_ == null) {
conllUFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder>(
getConllUFeatures(),
getParentForChildren(),
isClean());
conllUFeatures_ = null;
}
return conllUFeaturesBuilder_;
}
private java.lang.Object coarseTag_ = "";
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public boolean hasCoarseTag() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public java.lang.String getCoarseTag() {
java.lang.Object ref = coarseTag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
coarseTag_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public com.google.protobuf.ByteString
getCoarseTagBytes() {
java.lang.Object ref = coarseTag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
coarseTag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public Builder setCoarseTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x40000000;
coarseTag_ = value;
onChanged();
return this;
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public Builder clearCoarseTag() {
bitField0_ = (bitField0_ & ~0x40000000);
coarseTag_ = getDefaultInstance().getCoarseTag();
onChanged();
return this;
}
/**
* optional string coarseTag = 33;
*
*
* The coarse POS tag (used to store the UPOS tag)
*
*/
public Builder setCoarseTagBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x40000000;
coarseTag_ = value;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Span conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder> conllUTokenSpanBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public boolean hasConllUTokenSpan() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getConllUTokenSpan() {
if (conllUTokenSpanBuilder_ == null) {
return conllUTokenSpan_;
} else {
return conllUTokenSpanBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public Builder setConllUTokenSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) {
if (conllUTokenSpanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conllUTokenSpan_ = value;
onChanged();
} else {
conllUTokenSpanBuilder_.setMessage(value);
}
bitField0_ |= 0x80000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public Builder setConllUTokenSpan(
edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder builderForValue) {
if (conllUTokenSpanBuilder_ == null) {
conllUTokenSpan_ = builderForValue.build();
onChanged();
} else {
conllUTokenSpanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x80000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public Builder mergeConllUTokenSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) {
if (conllUTokenSpanBuilder_ == null) {
if (((bitField0_ & 0x80000000) == 0x80000000) &&
conllUTokenSpan_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance()) {
conllUTokenSpan_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.Span.newBuilder(conllUTokenSpan_).mergeFrom(value).buildPartial();
} else {
conllUTokenSpan_ = value;
}
onChanged();
} else {
conllUTokenSpanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x80000000;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public Builder clearConllUTokenSpan() {
if (conllUTokenSpanBuilder_ == null) {
conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance();
onChanged();
} else {
conllUTokenSpanBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x80000000);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder getConllUTokenSpanBuilder() {
bitField0_ |= 0x80000000;
onChanged();
return getConllUTokenSpanFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanOrBuilder() {
if (conllUTokenSpanBuilder_ != null) {
return conllUTokenSpanBuilder_.getMessageOrBuilder();
} else {
return conllUTokenSpan_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder>
getConllUTokenSpanFieldBuilder() {
if (conllUTokenSpanBuilder_ == null) {
conllUTokenSpanBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder>(
getConllUTokenSpan(),
getParentForChildren(),
isClean());
conllUTokenSpan_ = null;
}
return conllUTokenSpanBuilder_;
}
private java.lang.Object conllUMisc_ = "";
/**
* optional string conllUMisc = 35;
*/
public boolean hasConllUMisc() {
return ((bitField1_ & 0x00000001) == 0x00000001);
}
/**
* optional string conllUMisc = 35;
*/
public java.lang.String getConllUMisc() {
java.lang.Object ref = conllUMisc_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
conllUMisc_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string conllUMisc = 35;
*/
public com.google.protobuf.ByteString
getConllUMiscBytes() {
java.lang.Object ref = conllUMisc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conllUMisc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string conllUMisc = 35;
*/
public Builder setConllUMisc(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000001;
conllUMisc_ = value;
onChanged();
return this;
}
/**
* optional string conllUMisc = 35;
*/
public Builder clearConllUMisc() {
bitField1_ = (bitField1_ & ~0x00000001);
conllUMisc_ = getDefaultInstance().getConllUMisc();
onChanged();
return this;
}
/**
* optional string conllUMisc = 35;
*/
public Builder setConllUMiscBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000001;
conllUMisc_ = value;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder> conllUSecondaryDepsBuilder_;
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public boolean hasConllUSecondaryDeps() {
return ((bitField1_ & 0x00000002) == 0x00000002);
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getConllUSecondaryDeps() {
if (conllUSecondaryDepsBuilder_ == null) {
return conllUSecondaryDeps_;
} else {
return conllUSecondaryDepsBuilder_.getMessage();
}
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public Builder setConllUSecondaryDeps(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString value) {
if (conllUSecondaryDepsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conllUSecondaryDeps_ = value;
onChanged();
} else {
conllUSecondaryDepsBuilder_.setMessage(value);
}
bitField1_ |= 0x00000002;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public Builder setConllUSecondaryDeps(
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder builderForValue) {
if (conllUSecondaryDepsBuilder_ == null) {
conllUSecondaryDeps_ = builderForValue.build();
onChanged();
} else {
conllUSecondaryDepsBuilder_.setMessage(builderForValue.build());
}
bitField1_ |= 0x00000002;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public Builder mergeConllUSecondaryDeps(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString value) {
if (conllUSecondaryDepsBuilder_ == null) {
if (((bitField1_ & 0x00000002) == 0x00000002) &&
conllUSecondaryDeps_ != edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance()) {
conllUSecondaryDeps_ =
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.newBuilder(conllUSecondaryDeps_).mergeFrom(value).buildPartial();
} else {
conllUSecondaryDeps_ = value;
}
onChanged();
} else {
conllUSecondaryDepsBuilder_.mergeFrom(value);
}
bitField1_ |= 0x00000002;
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public Builder clearConllUSecondaryDeps() {
if (conllUSecondaryDepsBuilder_ == null) {
conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance();
onChanged();
} else {
conllUSecondaryDepsBuilder_.clear();
}
bitField1_ = (bitField1_ & ~0x00000002);
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder getConllUSecondaryDepsBuilder() {
bitField1_ |= 0x00000002;
onChanged();
return getConllUSecondaryDepsFieldBuilder().getBuilder();
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSecondaryDepsOrBuilder() {
if (conllUSecondaryDepsBuilder_ != null) {
return conllUSecondaryDepsBuilder_.getMessageOrBuilder();
} else {
return conllUSecondaryDeps_;
}
}
/**
* optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36;
*/
private com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder>
getConllUSecondaryDepsFieldBuilder() {
if (conllUSecondaryDepsBuilder_ == null) {
conllUSecondaryDepsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder>(
getConllUSecondaryDeps(),
getParentForChildren(),
isClean());
conllUSecondaryDeps_ = null;
}
return conllUSecondaryDepsBuilder_;
}
private java.lang.Object wikipediaEntity_ = "";
/**
* optional string wikipediaEntity = 37;
*/
public boolean hasWikipediaEntity() {
return ((bitField1_ & 0x00000004) == 0x00000004);
}
/**
* optional string wikipediaEntity = 37;
*/
public java.lang.String getWikipediaEntity() {
java.lang.Object ref = wikipediaEntity_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
wikipediaEntity_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string wikipediaEntity = 37;
*/
public com.google.protobuf.ByteString
getWikipediaEntityBytes() {
java.lang.Object ref = wikipediaEntity_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
wikipediaEntity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string wikipediaEntity = 37;
*/
public Builder setWikipediaEntity(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000004;
wikipediaEntity_ = value;
onChanged();
return this;
}
/**
* optional string wikipediaEntity = 37;
*/
public Builder clearWikipediaEntity() {
bitField1_ = (bitField1_ & ~0x00000004);
wikipediaEntity_ = getDefaultInstance().getWikipediaEntity();
onChanged();
return this;
}
/**
* optional string wikipediaEntity = 37;
*/
public Builder setWikipediaEntityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000004;
wikipediaEntity_ = value;
onChanged();
return this;
}
private java.lang.Object gender_ = "";
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public boolean hasGender() {
return ((bitField1_ & 0x00000008) == 0x00000008);
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public java.lang.String getGender() {
java.lang.Object ref = gender_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
gender_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public com.google.protobuf.ByteString
getGenderBytes() {
java.lang.Object ref = gender_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public Builder setGender(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000008;
gender_ = value;
onChanged();
return this;
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public Builder clearGender() {
bitField1_ = (bitField1_ & ~0x00000008);
gender_ = getDefaultInstance().getGender();
onChanged();
return this;
}
/**
* optional string gender = 51;
*
*
* Fields set by other annotators in CoreNLP
*
*/
public Builder setGenderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000008;
gender_ = value;
onChanged();
return this;
}
private java.lang.Object trueCase_ = "";
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public boolean hasTrueCase() {
return ((bitField1_ & 0x00000010) == 0x00000010);
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public java.lang.String getTrueCase() {
java.lang.Object ref = trueCase_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trueCase_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public com.google.protobuf.ByteString
getTrueCaseBytes() {
java.lang.Object ref = trueCase_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trueCase_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public Builder setTrueCase(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000010;
trueCase_ = value;
onChanged();
return this;
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public Builder clearTrueCase() {
bitField1_ = (bitField1_ & ~0x00000010);
trueCase_ = getDefaultInstance().getTrueCase();
onChanged();
return this;
}
/**
* optional string trueCase = 52;
*
*
* true case type of token
*
*/
public Builder setTrueCaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000010;
trueCase_ = value;
onChanged();
return this;
}
private java.lang.Object trueCaseText_ = "";
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public boolean hasTrueCaseText() {
return ((bitField1_ & 0x00000020) == 0x00000020);
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public java.lang.String getTrueCaseText() {
java.lang.Object ref = trueCaseText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trueCaseText_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public com.google.protobuf.ByteString
getTrueCaseTextBytes() {
java.lang.Object ref = trueCaseText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trueCaseText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public Builder setTrueCaseText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000020;
trueCaseText_ = value;
onChanged();
return this;
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public Builder clearTrueCaseText() {
bitField1_ = (bitField1_ & ~0x00000020);
trueCaseText_ = getDefaultInstance().getTrueCaseText();
onChanged();
return this;
}
/**
* optional string trueCaseText = 53;
*
*
* true case gloss of token
*
*/
public Builder setTrueCaseTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000020;
trueCaseText_ = value;
onChanged();
return this;
}
private java.lang.Object chineseChar_ = "";
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public boolean hasChineseChar() {
return ((bitField1_ & 0x00000040) == 0x00000040);
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public java.lang.String getChineseChar() {
java.lang.Object ref = chineseChar_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
chineseChar_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public com.google.protobuf.ByteString
getChineseCharBytes() {
java.lang.Object ref = chineseChar_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chineseChar_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public Builder setChineseChar(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000040;
chineseChar_ = value;
onChanged();
return this;
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public Builder clearChineseChar() {
bitField1_ = (bitField1_ & ~0x00000040);
chineseChar_ = getDefaultInstance().getChineseChar();
onChanged();
return this;
}
/**
* optional string chineseChar = 54;
*
*
* Chinese character info
*
*/
public Builder setChineseCharBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000040;
chineseChar_ = value;
onChanged();
return this;
}
private java.lang.Object chineseSeg_ = "";
/**
* optional string chineseSeg = 55;
*/
public boolean hasChineseSeg() {
return ((bitField1_ & 0x00000080) == 0x00000080);
}
/**
* optional string chineseSeg = 55;
*/
public java.lang.String getChineseSeg() {
java.lang.Object ref = chineseSeg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
chineseSeg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string chineseSeg = 55;
*/
public com.google.protobuf.ByteString
getChineseSegBytes() {
java.lang.Object ref = chineseSeg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
chineseSeg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string chineseSeg = 55;
*/
public Builder setChineseSeg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000080;
chineseSeg_ = value;
onChanged();
return this;
}
/**
* optional string chineseSeg = 55;
*/
public Builder clearChineseSeg() {
bitField1_ = (bitField1_ & ~0x00000080);
chineseSeg_ = getDefaultInstance().getChineseSeg();
onChanged();
return this;
}
/**
* optional string chineseSeg = 55;
*/
public Builder setChineseSegBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000080;
chineseSeg_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Token)
}
static {
defaultInstance = new Token(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Token)
}
public interface QuoteOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Quote)
com.google.protobuf.MessageOrBuilder {
/**
* optional string text = 1;
*/
boolean hasText();
/**
* optional string text = 1;
*/
java.lang.String getText();
/**
* optional string text = 1;
*/
com.google.protobuf.ByteString
getTextBytes();
/**
* optional uint32 begin = 2;
*/
boolean hasBegin();
/**
* optional uint32 begin = 2;
*/
int getBegin();
/**
* optional uint32 end = 3;
*/
boolean hasEnd();
/**
* optional uint32 end = 3;
*/
int getEnd();
/**
* optional uint32 sentenceBegin = 5;
*/
boolean hasSentenceBegin();
/**
* optional uint32 sentenceBegin = 5;
*/
int getSentenceBegin();
/**
* optional uint32 sentenceEnd = 6;
*/
boolean hasSentenceEnd();
/**
* optional uint32 sentenceEnd = 6;
*/
int getSentenceEnd();
/**
* optional uint32 tokenBegin = 7;
*/
boolean hasTokenBegin();
/**
* optional uint32 tokenBegin = 7;
*/
int getTokenBegin();
/**
* optional uint32 tokenEnd = 8;
*/
boolean hasTokenEnd();
/**
* optional uint32 tokenEnd = 8;
*/
int getTokenEnd();
/**
* optional string docid = 9;
*/
boolean hasDocid();
/**
* optional string docid = 9;
*/
java.lang.String getDocid();
/**
* optional string docid = 9;
*/
com.google.protobuf.ByteString
getDocidBytes();
/**
* optional uint32 index = 10;
*/
boolean hasIndex();
/**
* optional uint32 index = 10;
*/
int getIndex();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.Quote}
*
*
* A quotation marker in text
*
*/
public static final class Quote extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Quote)
QuoteOrBuilder {
// Use Quote.newBuilder() to construct.
private Quote(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Quote(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Quote defaultInstance;
public static Quote getDefaultInstance() {
return defaultInstance;
}
public Quote getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Quote(
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 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
text_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
begin_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
end_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000008;
sentenceBegin_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000010;
sentenceEnd_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000020;
tokenBegin_ = input.readUInt32();
break;
}
case 64: {
bitField0_ |= 0x00000040;
tokenEnd_ = input.readUInt32();
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
docid_ = bs;
break;
}
case 80: {
bitField0_ |= 0x00000100;
index_ = input.readUInt32();
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 edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Quote parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Quote(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TEXT_FIELD_NUMBER = 1;
private java.lang.Object text_;
/**
* optional string text = 1;
*/
public boolean hasText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string text = 1;
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
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()) {
text_ = s;
}
return s;
}
}
/**
* optional string text = 1;
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEGIN_FIELD_NUMBER = 2;
private int begin_;
/**
* optional uint32 begin = 2;
*/
public boolean hasBegin() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 begin = 2;
*/
public int getBegin() {
return begin_;
}
public static final int END_FIELD_NUMBER = 3;
private int end_;
/**
* optional uint32 end = 3;
*/
public boolean hasEnd() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 end = 3;
*/
public int getEnd() {
return end_;
}
public static final int SENTENCEBEGIN_FIELD_NUMBER = 5;
private int sentenceBegin_;
/**
* optional uint32 sentenceBegin = 5;
*/
public boolean hasSentenceBegin() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 sentenceBegin = 5;
*/
public int getSentenceBegin() {
return sentenceBegin_;
}
public static final int SENTENCEEND_FIELD_NUMBER = 6;
private int sentenceEnd_;
/**
* optional uint32 sentenceEnd = 6;
*/
public boolean hasSentenceEnd() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 sentenceEnd = 6;
*/
public int getSentenceEnd() {
return sentenceEnd_;
}
public static final int TOKENBEGIN_FIELD_NUMBER = 7;
private int tokenBegin_;
/**
* optional uint32 tokenBegin = 7;
*/
public boolean hasTokenBegin() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 tokenBegin = 7;
*/
public int getTokenBegin() {
return tokenBegin_;
}
public static final int TOKENEND_FIELD_NUMBER = 8;
private int tokenEnd_;
/**
* optional uint32 tokenEnd = 8;
*/
public boolean hasTokenEnd() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 tokenEnd = 8;
*/
public int getTokenEnd() {
return tokenEnd_;
}
public static final int DOCID_FIELD_NUMBER = 9;
private java.lang.Object docid_;
/**
* optional string docid = 9;
*/
public boolean hasDocid() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string docid = 9;
*/
public java.lang.String getDocid() {
java.lang.Object ref = docid_;
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()) {
docid_ = s;
}
return s;
}
}
/**
* optional string docid = 9;
*/
public com.google.protobuf.ByteString
getDocidBytes() {
java.lang.Object ref = docid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_FIELD_NUMBER = 10;
private int index_;
/**
* optional uint32 index = 10;
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 index = 10;
*/
public int getIndex() {
return index_;
}
private void initFields() {
text_ = "";
begin_ = 0;
end_ = 0;
sentenceBegin_ = 0;
sentenceEnd_ = 0;
tokenBegin_ = 0;
tokenEnd_ = 0;
docid_ = "";
index_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getTextBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, begin_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, end_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(5, sentenceBegin_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(6, sentenceEnd_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(7, tokenBegin_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(8, tokenEnd_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(9, getDocidBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeUInt32(10, index_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getTextBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, begin_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, end_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, sentenceBegin_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, sentenceEnd_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, tokenBegin_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, tokenEnd_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, getDocidBytes());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, index_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote 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(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote 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 edu.stanford.nlp.pipeline.Quote}
*
*
* A quotation marker in text
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Quote)
edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.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();
text_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
begin_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
end_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
sentenceBegin_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
sentenceEnd_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
tokenBegin_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
tokenEnd_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
docid_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
index_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Quote(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.text_ = text_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.begin_ = begin_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.end_ = end_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.sentenceBegin_ = sentenceBegin_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.sentenceEnd_ = sentenceEnd_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.tokenBegin_ = tokenBegin_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.tokenEnd_ = tokenEnd_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.docid_ = docid_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.index_ = index_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Quote) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Quote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.getDefaultInstance()) return this;
if (other.hasText()) {
bitField0_ |= 0x00000001;
text_ = other.text_;
onChanged();
}
if (other.hasBegin()) {
setBegin(other.getBegin());
}
if (other.hasEnd()) {
setEnd(other.getEnd());
}
if (other.hasSentenceBegin()) {
setSentenceBegin(other.getSentenceBegin());
}
if (other.hasSentenceEnd()) {
setSentenceEnd(other.getSentenceEnd());
}
if (other.hasTokenBegin()) {
setTokenBegin(other.getTokenBegin());
}
if (other.hasTokenEnd()) {
setTokenEnd(other.getTokenEnd());
}
if (other.hasDocid()) {
bitField0_ |= 0x00000080;
docid_ = other.docid_;
onChanged();
}
if (other.hasIndex()) {
setIndex(other.getIndex());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Quote) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object text_ = "";
/**
* optional string text = 1;
*/
public boolean hasText() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string text = 1;
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
text_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string text = 1;
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string text = 1;
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
/**
* optional string text = 1;
*/
public Builder clearText() {
bitField0_ = (bitField0_ & ~0x00000001);
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* optional string text = 1;
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
text_ = value;
onChanged();
return this;
}
private int begin_ ;
/**
* optional uint32 begin = 2;
*/
public boolean hasBegin() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 begin = 2;
*/
public int getBegin() {
return begin_;
}
/**
* optional uint32 begin = 2;
*/
public Builder setBegin(int value) {
bitField0_ |= 0x00000002;
begin_ = value;
onChanged();
return this;
}
/**
* optional uint32 begin = 2;
*/
public Builder clearBegin() {
bitField0_ = (bitField0_ & ~0x00000002);
begin_ = 0;
onChanged();
return this;
}
private int end_ ;
/**
* optional uint32 end = 3;
*/
public boolean hasEnd() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 end = 3;
*/
public int getEnd() {
return end_;
}
/**
* optional uint32 end = 3;
*/
public Builder setEnd(int value) {
bitField0_ |= 0x00000004;
end_ = value;
onChanged();
return this;
}
/**
* optional uint32 end = 3;
*/
public Builder clearEnd() {
bitField0_ = (bitField0_ & ~0x00000004);
end_ = 0;
onChanged();
return this;
}
private int sentenceBegin_ ;
/**
* optional uint32 sentenceBegin = 5;
*/
public boolean hasSentenceBegin() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 sentenceBegin = 5;
*/
public int getSentenceBegin() {
return sentenceBegin_;
}
/**
* optional uint32 sentenceBegin = 5;
*/
public Builder setSentenceBegin(int value) {
bitField0_ |= 0x00000008;
sentenceBegin_ = value;
onChanged();
return this;
}
/**
* optional uint32 sentenceBegin = 5;
*/
public Builder clearSentenceBegin() {
bitField0_ = (bitField0_ & ~0x00000008);
sentenceBegin_ = 0;
onChanged();
return this;
}
private int sentenceEnd_ ;
/**
* optional uint32 sentenceEnd = 6;
*/
public boolean hasSentenceEnd() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 sentenceEnd = 6;
*/
public int getSentenceEnd() {
return sentenceEnd_;
}
/**
* optional uint32 sentenceEnd = 6;
*/
public Builder setSentenceEnd(int value) {
bitField0_ |= 0x00000010;
sentenceEnd_ = value;
onChanged();
return this;
}
/**
* optional uint32 sentenceEnd = 6;
*/
public Builder clearSentenceEnd() {
bitField0_ = (bitField0_ & ~0x00000010);
sentenceEnd_ = 0;
onChanged();
return this;
}
private int tokenBegin_ ;
/**
* optional uint32 tokenBegin = 7;
*/
public boolean hasTokenBegin() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 tokenBegin = 7;
*/
public int getTokenBegin() {
return tokenBegin_;
}
/**
* optional uint32 tokenBegin = 7;
*/
public Builder setTokenBegin(int value) {
bitField0_ |= 0x00000020;
tokenBegin_ = value;
onChanged();
return this;
}
/**
* optional uint32 tokenBegin = 7;
*/
public Builder clearTokenBegin() {
bitField0_ = (bitField0_ & ~0x00000020);
tokenBegin_ = 0;
onChanged();
return this;
}
private int tokenEnd_ ;
/**
* optional uint32 tokenEnd = 8;
*/
public boolean hasTokenEnd() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 tokenEnd = 8;
*/
public int getTokenEnd() {
return tokenEnd_;
}
/**
* optional uint32 tokenEnd = 8;
*/
public Builder setTokenEnd(int value) {
bitField0_ |= 0x00000040;
tokenEnd_ = value;
onChanged();
return this;
}
/**
* optional uint32 tokenEnd = 8;
*/
public Builder clearTokenEnd() {
bitField0_ = (bitField0_ & ~0x00000040);
tokenEnd_ = 0;
onChanged();
return this;
}
private java.lang.Object docid_ = "";
/**
* optional string docid = 9;
*/
public boolean hasDocid() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional string docid = 9;
*/
public java.lang.String getDocid() {
java.lang.Object ref = docid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
docid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string docid = 9;
*/
public com.google.protobuf.ByteString
getDocidBytes() {
java.lang.Object ref = docid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string docid = 9;
*/
public Builder setDocid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
docid_ = value;
onChanged();
return this;
}
/**
* optional string docid = 9;
*/
public Builder clearDocid() {
bitField0_ = (bitField0_ & ~0x00000080);
docid_ = getDefaultInstance().getDocid();
onChanged();
return this;
}
/**
* optional string docid = 9;
*/
public Builder setDocidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
docid_ = value;
onChanged();
return this;
}
private int index_ ;
/**
* optional uint32 index = 10;
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 index = 10;
*/
public int getIndex() {
return index_;
}
/**
* optional uint32 index = 10;
*/
public Builder setIndex(int value) {
bitField0_ |= 0x00000100;
index_ = value;
onChanged();
return this;
}
/**
* optional uint32 index = 10;
*/
public Builder clearIndex() {
bitField0_ = (bitField0_ & ~0x00000100);
index_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Quote)
}
static {
defaultInstance = new Quote(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Quote)
}
public interface ParseTreeOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.ParseTree)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
java.util.List
getChildList();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getChild(int index);
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
int getChildCount();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
java.util.List
getChildOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder(
int index);
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
/**
* optional uint32 yieldBeginIndex = 3;
*/
boolean hasYieldBeginIndex();
/**
* optional uint32 yieldBeginIndex = 3;
*/
int getYieldBeginIndex();
/**
* optional uint32 yieldEndIndex = 4;
*/
boolean hasYieldEndIndex();
/**
* optional uint32 yieldEndIndex = 4;
*/
int getYieldEndIndex();
/**
* optional double score = 5;
*/
boolean hasScore();
/**
* optional double score = 5;
*/
double getScore();
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
boolean hasSentiment();
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment getSentiment();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.ParseTree}
*
*
* A syntactic parse tree, with scores.
*
*/
public static final class ParseTree extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.ParseTree)
ParseTreeOrBuilder {
// Use ParseTree.newBuilder() to construct.
private ParseTree(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ParseTree(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ParseTree defaultInstance;
public static ParseTree getDefaultInstance() {
return defaultInstance;
}
public ParseTree getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParseTree(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
child_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
child_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry));
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
value_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000002;
yieldBeginIndex_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000004;
yieldEndIndex_ = input.readUInt32();
break;
}
case 41: {
bitField0_ |= 0x00000008;
score_ = input.readDouble();
break;
}
case 48: {
int rawValue = input.readEnum();
edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment value = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
bitField0_ |= 0x00000010;
sentiment_ = value;
}
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)) {
child_ = java.util.Collections.unmodifiableList(child_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.class, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ParseTree parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParseTree(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int CHILD_FIELD_NUMBER = 1;
private java.util.List child_;
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public java.util.List getChildList() {
return child_;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public java.util.List
getChildOrBuilderList() {
return child_;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public int getChildCount() {
return child_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getChild(int index) {
return child_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder(
int index) {
return child_.get(index);
}
public static final int VALUE_FIELD_NUMBER = 2;
private java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
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()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int YIELDBEGININDEX_FIELD_NUMBER = 3;
private int yieldBeginIndex_;
/**
* optional uint32 yieldBeginIndex = 3;
*/
public boolean hasYieldBeginIndex() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 yieldBeginIndex = 3;
*/
public int getYieldBeginIndex() {
return yieldBeginIndex_;
}
public static final int YIELDENDINDEX_FIELD_NUMBER = 4;
private int yieldEndIndex_;
/**
* optional uint32 yieldEndIndex = 4;
*/
public boolean hasYieldEndIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 yieldEndIndex = 4;
*/
public int getYieldEndIndex() {
return yieldEndIndex_;
}
public static final int SCORE_FIELD_NUMBER = 5;
private double score_;
/**
* optional double score = 5;
*/
public boolean hasScore() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional double score = 5;
*/
public double getScore() {
return score_;
}
public static final int SENTIMENT_FIELD_NUMBER = 6;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment sentiment_;
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
public boolean hasSentiment() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment getSentiment() {
return sentiment_;
}
private void initFields() {
child_ = java.util.Collections.emptyList();
value_ = "";
yieldBeginIndex_ = 0;
yieldEndIndex_ = 0;
score_ = 0D;
sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < child_.size(); i++) {
output.writeMessage(1, child_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, getValueBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(3, yieldBeginIndex_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(4, yieldEndIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(5, score_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeEnum(6, sentiment_.getNumber());
}
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 < child_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, child_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getValueBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, yieldBeginIndex_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, yieldEndIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, score_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, sentiment_.getNumber());
}
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 edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree 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(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree 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 edu.stanford.nlp.pipeline.ParseTree}
*
*
* A syntactic parse tree, with scores.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.ParseTree)
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.class, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getChildFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (childBuilder_ == null) {
child_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
childBuilder_.clear();
}
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
yieldBeginIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
yieldEndIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
score_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree result = new edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
child_ = java.util.Collections.unmodifiableList(child_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.child_ = child_;
} else {
result.child_ = childBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.yieldBeginIndex_ = yieldBeginIndex_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.yieldEndIndex_ = yieldEndIndex_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.score_ = score_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.sentiment_ = sentiment_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) return this;
if (childBuilder_ == null) {
if (!other.child_.isEmpty()) {
if (child_.isEmpty()) {
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChildIsMutable();
child_.addAll(other.child_);
}
onChanged();
}
} else {
if (!other.child_.isEmpty()) {
if (childBuilder_.isEmpty()) {
childBuilder_.dispose();
childBuilder_ = null;
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000001);
childBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getChildFieldBuilder() : null;
} else {
childBuilder_.addAllMessages(other.child_);
}
}
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
if (other.hasYieldBeginIndex()) {
setYieldBeginIndex(other.getYieldBeginIndex());
}
if (other.hasYieldEndIndex()) {
setYieldEndIndex(other.getYieldEndIndex());
}
if (other.hasScore()) {
setScore(other.getScore());
}
if (other.hasSentiment()) {
setSentiment(other.getSentiment());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List child_ =
java.util.Collections.emptyList();
private void ensureChildIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
child_ = new java.util.ArrayList(child_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> childBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public java.util.List getChildList() {
if (childBuilder_ == null) {
return java.util.Collections.unmodifiableList(child_);
} else {
return childBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public int getChildCount() {
if (childBuilder_ == null) {
return child_.size();
} else {
return childBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getChild(int index) {
if (childBuilder_ == null) {
return child_.get(index);
} else {
return childBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder setChild(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildIsMutable();
child_.set(index, value);
onChanged();
} else {
childBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder setChild(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.set(index, builderForValue.build());
onChanged();
} else {
childBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder addChild(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildIsMutable();
child_.add(value);
onChanged();
} else {
childBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder addChild(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildIsMutable();
child_.add(index, value);
onChanged();
} else {
childBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder addChild(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.add(builderForValue.build());
onChanged();
} else {
childBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder addChild(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder builderForValue) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.add(index, builderForValue.build());
onChanged();
} else {
childBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder addAllChild(
java.lang.Iterable values) {
if (childBuilder_ == null) {
ensureChildIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, child_);
onChanged();
} else {
childBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder clearChild() {
if (childBuilder_ == null) {
child_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
childBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public Builder removeChild(int index) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.remove(index);
onChanged();
} else {
childBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder getChildBuilder(
int index) {
return getChildFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder(
int index) {
if (childBuilder_ == null) {
return child_.get(index); } else {
return childBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public java.util.List
getChildOrBuilderList() {
if (childBuilder_ != null) {
return childBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(child_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addChildBuilder() {
return getChildFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addChildBuilder(
int index) {
return getChildFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.ParseTree child = 1;
*/
public java.util.List
getChildBuilderList() {
return getChildFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
childBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>(
child_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
child_ = null;
}
return childBuilder_;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
private int yieldBeginIndex_ ;
/**
* optional uint32 yieldBeginIndex = 3;
*/
public boolean hasYieldBeginIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 yieldBeginIndex = 3;
*/
public int getYieldBeginIndex() {
return yieldBeginIndex_;
}
/**
* optional uint32 yieldBeginIndex = 3;
*/
public Builder setYieldBeginIndex(int value) {
bitField0_ |= 0x00000004;
yieldBeginIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 yieldBeginIndex = 3;
*/
public Builder clearYieldBeginIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
yieldBeginIndex_ = 0;
onChanged();
return this;
}
private int yieldEndIndex_ ;
/**
* optional uint32 yieldEndIndex = 4;
*/
public boolean hasYieldEndIndex() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint32 yieldEndIndex = 4;
*/
public int getYieldEndIndex() {
return yieldEndIndex_;
}
/**
* optional uint32 yieldEndIndex = 4;
*/
public Builder setYieldEndIndex(int value) {
bitField0_ |= 0x00000008;
yieldEndIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 yieldEndIndex = 4;
*/
public Builder clearYieldEndIndex() {
bitField0_ = (bitField0_ & ~0x00000008);
yieldEndIndex_ = 0;
onChanged();
return this;
}
private double score_ ;
/**
* optional double score = 5;
*/
public boolean hasScore() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional double score = 5;
*/
public double getScore() {
return score_;
}
/**
* optional double score = 5;
*/
public Builder setScore(double value) {
bitField0_ |= 0x00000010;
score_ = value;
onChanged();
return this;
}
/**
* optional double score = 5;
*/
public Builder clearScore() {
bitField0_ = (bitField0_ & ~0x00000010);
score_ = 0D;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE;
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
public boolean hasSentiment() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment getSentiment() {
return sentiment_;
}
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
public Builder setSentiment(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
sentiment_ = value;
onChanged();
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6;
*/
public Builder clearSentiment() {
bitField0_ = (bitField0_ & ~0x00000020);
sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.ParseTree)
}
static {
defaultInstance = new ParseTree(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.ParseTree)
}
public interface DependencyGraphOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.DependencyGraph)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
java.util.List
getNodeList();
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node getNode(int index);
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
int getNodeCount();
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
java.util.List
getNodeOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder getNodeOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
java.util.List
getEdgeList();
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge getEdge(int index);
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
int getEdgeCount();
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
java.util.List
getEdgeOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder getEdgeOrBuilder(
int index);
/**
* repeated uint32 root = 3 [packed = true];
*/
java.util.List getRootList();
/**
* repeated uint32 root = 3 [packed = true];
*/
int getRootCount();
/**
* repeated uint32 root = 3 [packed = true];
*/
int getRoot(int index);
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph}
*
*
* A dependency graph representation.
*
*/
public static final class DependencyGraph extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.DependencyGraph)
DependencyGraphOrBuilder {
// Use DependencyGraph.newBuilder() to construct.
private DependencyGraph(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DependencyGraph(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DependencyGraph defaultInstance;
public static DependencyGraph getDefaultInstance() {
return defaultInstance;
}
public DependencyGraph getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DependencyGraph(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
node_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
node_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
edge_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
edge_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.PARSER, extensionRegistry));
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
root_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
root_.add(input.readUInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
root_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
root_.add(input.readUInt32());
}
input.popLimit(limit);
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)) {
node_ = java.util.Collections.unmodifiableList(node_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
edge_ = java.util.Collections.unmodifiableList(edge_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
root_ = java.util.Collections.unmodifiableList(root_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.class, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DependencyGraph parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DependencyGraph(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface NodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.DependencyGraph.Node)
com.google.protobuf.MessageOrBuilder {
/**
* required uint32 sentenceIndex = 1;
*/
boolean hasSentenceIndex();
/**
* required uint32 sentenceIndex = 1;
*/
int getSentenceIndex();
/**
* required uint32 index = 2;
*/
boolean hasIndex();
/**
* required uint32 index = 2;
*/
int getIndex();
/**
* optional uint32 copyAnnotation = 3;
*/
boolean hasCopyAnnotation();
/**
* optional uint32 copyAnnotation = 3;
*/
int getCopyAnnotation();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph.Node}
*/
public static final class Node extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.DependencyGraph.Node)
NodeOrBuilder {
// Use Node.newBuilder() to construct.
private Node(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Node(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Node defaultInstance;
public static Node getDefaultInstance() {
return defaultInstance;
}
public Node getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Node(
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 8: {
bitField0_ |= 0x00000001;
sentenceIndex_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
index_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
copyAnnotation_ = input.readUInt32();
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 edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.class, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Node parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Node(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int SENTENCEINDEX_FIELD_NUMBER = 1;
private int sentenceIndex_;
/**
* required uint32 sentenceIndex = 1;
*/
public boolean hasSentenceIndex() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 sentenceIndex = 1;
*/
public int getSentenceIndex() {
return sentenceIndex_;
}
public static final int INDEX_FIELD_NUMBER = 2;
private int index_;
/**
* required uint32 index = 2;
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 index = 2;
*/
public int getIndex() {
return index_;
}
public static final int COPYANNOTATION_FIELD_NUMBER = 3;
private int copyAnnotation_;
/**
* optional uint32 copyAnnotation = 3;
*/
public boolean hasCopyAnnotation() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 copyAnnotation = 3;
*/
public int getCopyAnnotation() {
return copyAnnotation_;
}
private void initFields() {
sentenceIndex_ = 0;
index_ = 0;
copyAnnotation_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSentenceIndex()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasIndex()) {
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.writeUInt32(1, sentenceIndex_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, index_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, copyAnnotation_);
}
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
.computeUInt32Size(1, sentenceIndex_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, index_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, copyAnnotation_);
}
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 edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node 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(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node 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 edu.stanford.nlp.pipeline.DependencyGraph.Node}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.DependencyGraph.Node)
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.class, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.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();
sentenceIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
index_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
copyAnnotation_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node result = new edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.sentenceIndex_ = sentenceIndex_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.index_ = index_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.copyAnnotation_ = copyAnnotation_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.getDefaultInstance()) return this;
if (other.hasSentenceIndex()) {
setSentenceIndex(other.getSentenceIndex());
}
if (other.hasIndex()) {
setIndex(other.getIndex());
}
if (other.hasCopyAnnotation()) {
setCopyAnnotation(other.getCopyAnnotation());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSentenceIndex()) {
return false;
}
if (!hasIndex()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int sentenceIndex_ ;
/**
* required uint32 sentenceIndex = 1;
*/
public boolean hasSentenceIndex() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 sentenceIndex = 1;
*/
public int getSentenceIndex() {
return sentenceIndex_;
}
/**
* required uint32 sentenceIndex = 1;
*/
public Builder setSentenceIndex(int value) {
bitField0_ |= 0x00000001;
sentenceIndex_ = value;
onChanged();
return this;
}
/**
* required uint32 sentenceIndex = 1;
*/
public Builder clearSentenceIndex() {
bitField0_ = (bitField0_ & ~0x00000001);
sentenceIndex_ = 0;
onChanged();
return this;
}
private int index_ ;
/**
* required uint32 index = 2;
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 index = 2;
*/
public int getIndex() {
return index_;
}
/**
* required uint32 index = 2;
*/
public Builder setIndex(int value) {
bitField0_ |= 0x00000002;
index_ = value;
onChanged();
return this;
}
/**
* required uint32 index = 2;
*/
public Builder clearIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
index_ = 0;
onChanged();
return this;
}
private int copyAnnotation_ ;
/**
* optional uint32 copyAnnotation = 3;
*/
public boolean hasCopyAnnotation() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 copyAnnotation = 3;
*/
public int getCopyAnnotation() {
return copyAnnotation_;
}
/**
* optional uint32 copyAnnotation = 3;
*/
public Builder setCopyAnnotation(int value) {
bitField0_ |= 0x00000004;
copyAnnotation_ = value;
onChanged();
return this;
}
/**
* optional uint32 copyAnnotation = 3;
*/
public Builder clearCopyAnnotation() {
bitField0_ = (bitField0_ & ~0x00000004);
copyAnnotation_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.DependencyGraph.Node)
}
static {
defaultInstance = new Node(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph.Node)
}
public interface EdgeOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.DependencyGraph.Edge)
com.google.protobuf.MessageOrBuilder {
/**
* required uint32 source = 1;
*/
boolean hasSource();
/**
* required uint32 source = 1;
*/
int getSource();
/**
* required uint32 target = 2;
*/
boolean hasTarget();
/**
* required uint32 target = 2;
*/
int getTarget();
/**
* optional string dep = 3;
*/
boolean hasDep();
/**
* optional string dep = 3;
*/
java.lang.String getDep();
/**
* optional string dep = 3;
*/
com.google.protobuf.ByteString
getDepBytes();
/**
* optional bool isExtra = 4;
*/
boolean hasIsExtra();
/**
* optional bool isExtra = 4;
*/
boolean getIsExtra();
/**
* optional uint32 sourceCopy = 5;
*/
boolean hasSourceCopy();
/**
* optional uint32 sourceCopy = 5;
*/
int getSourceCopy();
/**
* optional uint32 targetCopy = 6;
*/
boolean hasTargetCopy();
/**
* optional uint32 targetCopy = 6;
*/
int getTargetCopy();
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
boolean hasLanguage();
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.Language getLanguage();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph.Edge}
*/
public static final class Edge extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.DependencyGraph.Edge)
EdgeOrBuilder {
// Use Edge.newBuilder() to construct.
private Edge(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Edge(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Edge defaultInstance;
public static Edge getDefaultInstance() {
return defaultInstance;
}
public Edge getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Edge(
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 8: {
bitField0_ |= 0x00000001;
source_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
target_ = input.readUInt32();
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
dep_ = bs;
break;
}
case 32: {
bitField0_ |= 0x00000008;
isExtra_ = input.readBool();
break;
}
case 40: {
bitField0_ |= 0x00000010;
sourceCopy_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
targetCopy_ = input.readUInt32();
break;
}
case 56: {
int rawValue = input.readEnum();
edu.stanford.nlp.pipeline.CoreNLPProtos.Language value = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
bitField0_ |= 0x00000040;
language_ = value;
}
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 edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.class, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Edge parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Edge(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int SOURCE_FIELD_NUMBER = 1;
private int source_;
/**
* required uint32 source = 1;
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 source = 1;
*/
public int getSource() {
return source_;
}
public static final int TARGET_FIELD_NUMBER = 2;
private int target_;
/**
* required uint32 target = 2;
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 target = 2;
*/
public int getTarget() {
return target_;
}
public static final int DEP_FIELD_NUMBER = 3;
private java.lang.Object dep_;
/**
* optional string dep = 3;
*/
public boolean hasDep() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string dep = 3;
*/
public java.lang.String getDep() {
java.lang.Object ref = dep_;
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()) {
dep_ = s;
}
return s;
}
}
/**
* optional string dep = 3;
*/
public com.google.protobuf.ByteString
getDepBytes() {
java.lang.Object ref = dep_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dep_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISEXTRA_FIELD_NUMBER = 4;
private boolean isExtra_;
/**
* optional bool isExtra = 4;
*/
public boolean hasIsExtra() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool isExtra = 4;
*/
public boolean getIsExtra() {
return isExtra_;
}
public static final int SOURCECOPY_FIELD_NUMBER = 5;
private int sourceCopy_;
/**
* optional uint32 sourceCopy = 5;
*/
public boolean hasSourceCopy() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 sourceCopy = 5;
*/
public int getSourceCopy() {
return sourceCopy_;
}
public static final int TARGETCOPY_FIELD_NUMBER = 6;
private int targetCopy_;
/**
* optional uint32 targetCopy = 6;
*/
public boolean hasTargetCopy() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 targetCopy = 6;
*/
public int getTargetCopy() {
return targetCopy_;
}
public static final int LANGUAGE_FIELD_NUMBER = 7;
private edu.stanford.nlp.pipeline.CoreNLPProtos.Language language_;
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Language getLanguage() {
return language_;
}
private void initFields() {
source_ = 0;
target_ = 0;
dep_ = "";
isExtra_ = false;
sourceCopy_ = 0;
targetCopy_ = 0;
language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSource()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTarget()) {
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.writeUInt32(1, source_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, target_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDepBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, isExtra_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt32(5, sourceCopy_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(6, targetCopy_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeEnum(7, language_.getNumber());
}
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
.computeUInt32Size(1, source_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, target_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDepBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isExtra_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, sourceCopy_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, targetCopy_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, language_.getNumber());
}
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 edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge 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(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge 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 edu.stanford.nlp.pipeline.DependencyGraph.Edge}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.DependencyGraph.Edge)
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.class, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.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();
source_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
target_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
dep_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
isExtra_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
sourceCopy_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
targetCopy_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge result = new edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.source_ = source_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.target_ = target_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.dep_ = dep_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.isExtra_ = isExtra_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.sourceCopy_ = sourceCopy_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.targetCopy_ = targetCopy_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.language_ = language_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.getDefaultInstance()) return this;
if (other.hasSource()) {
setSource(other.getSource());
}
if (other.hasTarget()) {
setTarget(other.getTarget());
}
if (other.hasDep()) {
bitField0_ |= 0x00000004;
dep_ = other.dep_;
onChanged();
}
if (other.hasIsExtra()) {
setIsExtra(other.getIsExtra());
}
if (other.hasSourceCopy()) {
setSourceCopy(other.getSourceCopy());
}
if (other.hasTargetCopy()) {
setTargetCopy(other.getTargetCopy());
}
if (other.hasLanguage()) {
setLanguage(other.getLanguage());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSource()) {
return false;
}
if (!hasTarget()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int source_ ;
/**
* required uint32 source = 1;
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 source = 1;
*/
public int getSource() {
return source_;
}
/**
* required uint32 source = 1;
*/
public Builder setSource(int value) {
bitField0_ |= 0x00000001;
source_ = value;
onChanged();
return this;
}
/**
* required uint32 source = 1;
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000001);
source_ = 0;
onChanged();
return this;
}
private int target_ ;
/**
* required uint32 target = 2;
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 target = 2;
*/
public int getTarget() {
return target_;
}
/**
* required uint32 target = 2;
*/
public Builder setTarget(int value) {
bitField0_ |= 0x00000002;
target_ = value;
onChanged();
return this;
}
/**
* required uint32 target = 2;
*/
public Builder clearTarget() {
bitField0_ = (bitField0_ & ~0x00000002);
target_ = 0;
onChanged();
return this;
}
private java.lang.Object dep_ = "";
/**
* optional string dep = 3;
*/
public boolean hasDep() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string dep = 3;
*/
public java.lang.String getDep() {
java.lang.Object ref = dep_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
dep_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string dep = 3;
*/
public com.google.protobuf.ByteString
getDepBytes() {
java.lang.Object ref = dep_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dep_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string dep = 3;
*/
public Builder setDep(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
dep_ = value;
onChanged();
return this;
}
/**
* optional string dep = 3;
*/
public Builder clearDep() {
bitField0_ = (bitField0_ & ~0x00000004);
dep_ = getDefaultInstance().getDep();
onChanged();
return this;
}
/**
* optional string dep = 3;
*/
public Builder setDepBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
dep_ = value;
onChanged();
return this;
}
private boolean isExtra_ ;
/**
* optional bool isExtra = 4;
*/
public boolean hasIsExtra() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool isExtra = 4;
*/
public boolean getIsExtra() {
return isExtra_;
}
/**
* optional bool isExtra = 4;
*/
public Builder setIsExtra(boolean value) {
bitField0_ |= 0x00000008;
isExtra_ = value;
onChanged();
return this;
}
/**
* optional bool isExtra = 4;
*/
public Builder clearIsExtra() {
bitField0_ = (bitField0_ & ~0x00000008);
isExtra_ = false;
onChanged();
return this;
}
private int sourceCopy_ ;
/**
* optional uint32 sourceCopy = 5;
*/
public boolean hasSourceCopy() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint32 sourceCopy = 5;
*/
public int getSourceCopy() {
return sourceCopy_;
}
/**
* optional uint32 sourceCopy = 5;
*/
public Builder setSourceCopy(int value) {
bitField0_ |= 0x00000010;
sourceCopy_ = value;
onChanged();
return this;
}
/**
* optional uint32 sourceCopy = 5;
*/
public Builder clearSourceCopy() {
bitField0_ = (bitField0_ & ~0x00000010);
sourceCopy_ = 0;
onChanged();
return this;
}
private int targetCopy_ ;
/**
* optional uint32 targetCopy = 6;
*/
public boolean hasTargetCopy() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 targetCopy = 6;
*/
public int getTargetCopy() {
return targetCopy_;
}
/**
* optional uint32 targetCopy = 6;
*/
public Builder setTargetCopy(int value) {
bitField0_ |= 0x00000020;
targetCopy_ = value;
onChanged();
return this;
}
/**
* optional uint32 targetCopy = 6;
*/
public Builder clearTargetCopy() {
bitField0_ = (bitField0_ & ~0x00000020);
targetCopy_ = 0;
onChanged();
return this;
}
private edu.stanford.nlp.pipeline.CoreNLPProtos.Language language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown;
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.Language getLanguage() {
return language_;
}
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
public Builder setLanguage(edu.stanford.nlp.pipeline.CoreNLPProtos.Language value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
language_ = value;
onChanged();
return this;
}
/**
* optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown];
*/
public Builder clearLanguage() {
bitField0_ = (bitField0_ & ~0x00000040);
language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.DependencyGraph.Edge)
}
static {
defaultInstance = new Edge(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph.Edge)
}
public static final int NODE_FIELD_NUMBER = 1;
private java.util.List node_;
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public java.util.List getNodeList() {
return node_;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public java.util.List
getNodeOrBuilderList() {
return node_;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public int getNodeCount() {
return node_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node getNode(int index) {
return node_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder getNodeOrBuilder(
int index) {
return node_.get(index);
}
public static final int EDGE_FIELD_NUMBER = 2;
private java.util.List edge_;
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public java.util.List getEdgeList() {
return edge_;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public java.util.List
getEdgeOrBuilderList() {
return edge_;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public int getEdgeCount() {
return edge_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge getEdge(int index) {
return edge_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder getEdgeOrBuilder(
int index) {
return edge_.get(index);
}
public static final int ROOT_FIELD_NUMBER = 3;
private java.util.List root_;
/**
* repeated uint32 root = 3 [packed = true];
*/
public java.util.List
getRootList() {
return root_;
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public int getRootCount() {
return root_.size();
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public int getRoot(int index) {
return root_.get(index);
}
private int rootMemoizedSerializedSize = -1;
private void initFields() {
node_ = java.util.Collections.emptyList();
edge_ = java.util.Collections.emptyList();
root_ = 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 < getNodeCount(); i++) {
if (!getNode(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getEdgeCount(); i++) {
if (!getEdge(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 < node_.size(); i++) {
output.writeMessage(1, node_.get(i));
}
for (int i = 0; i < edge_.size(); i++) {
output.writeMessage(2, edge_.get(i));
}
if (getRootList().size() > 0) {
output.writeRawVarint32(26);
output.writeRawVarint32(rootMemoizedSerializedSize);
}
for (int i = 0; i < root_.size(); i++) {
output.writeUInt32NoTag(root_.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 < node_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, node_.get(i));
}
for (int i = 0; i < edge_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, edge_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < root_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(root_.get(i));
}
size += dataSize;
if (!getRootList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
rootMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph 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(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph 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 edu.stanford.nlp.pipeline.DependencyGraph}
*
*
* A dependency graph representation.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.DependencyGraph)
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.class, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNodeFieldBuilder();
getEdgeFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (nodeBuilder_ == null) {
node_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodeBuilder_.clear();
}
if (edgeBuilder_ == null) {
edge_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
edgeBuilder_.clear();
}
root_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph result = new edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph(this);
int from_bitField0_ = bitField0_;
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
node_ = java.util.Collections.unmodifiableList(node_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
if (edgeBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
edge_ = java.util.Collections.unmodifiableList(edge_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.edge_ = edge_;
} else {
result.edge_ = edgeBuilder_.build();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
root_ = java.util.Collections.unmodifiableList(root_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.root_ = root_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) return this;
if (nodeBuilder_ == null) {
if (!other.node_.isEmpty()) {
if (node_.isEmpty()) {
node_ = other.node_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeIsMutable();
node_.addAll(other.node_);
}
onChanged();
}
} else {
if (!other.node_.isEmpty()) {
if (nodeBuilder_.isEmpty()) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
node_ = other.node_;
bitField0_ = (bitField0_ & ~0x00000001);
nodeBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNodeFieldBuilder() : null;
} else {
nodeBuilder_.addAllMessages(other.node_);
}
}
}
if (edgeBuilder_ == null) {
if (!other.edge_.isEmpty()) {
if (edge_.isEmpty()) {
edge_ = other.edge_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEdgeIsMutable();
edge_.addAll(other.edge_);
}
onChanged();
}
} else {
if (!other.edge_.isEmpty()) {
if (edgeBuilder_.isEmpty()) {
edgeBuilder_.dispose();
edgeBuilder_ = null;
edge_ = other.edge_;
bitField0_ = (bitField0_ & ~0x00000002);
edgeBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEdgeFieldBuilder() : null;
} else {
edgeBuilder_.addAllMessages(other.edge_);
}
}
}
if (!other.root_.isEmpty()) {
if (root_.isEmpty()) {
root_ = other.root_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRootIsMutable();
root_.addAll(other.root_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getNodeCount(); i++) {
if (!getNode(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getEdgeCount(); i++) {
if (!getEdge(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List node_ =
java.util.Collections.emptyList();
private void ensureNodeIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
node_ = new java.util.ArrayList(node_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder> nodeBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public java.util.List getNodeList() {
if (nodeBuilder_ == null) {
return java.util.Collections.unmodifiableList(node_);
} else {
return nodeBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public int getNodeCount() {
if (nodeBuilder_ == null) {
return node_.size();
} else {
return nodeBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node getNode(int index) {
if (nodeBuilder_ == null) {
return node_.get(index);
} else {
return nodeBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder setNode(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.set(index, value);
onChanged();
} else {
nodeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder setNode(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.set(index, builderForValue.build());
onChanged();
} else {
nodeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder addNode(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.add(value);
onChanged();
} else {
nodeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder addNode(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeIsMutable();
node_.add(index, value);
onChanged();
} else {
nodeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder addNode(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.add(builderForValue.build());
onChanged();
} else {
nodeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder addNode(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.add(index, builderForValue.build());
onChanged();
} else {
nodeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder addAllNode(
java.lang.Iterable values) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, node_);
onChanged();
} else {
nodeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodeBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public Builder removeNode(int index) {
if (nodeBuilder_ == null) {
ensureNodeIsMutable();
node_.remove(index);
onChanged();
} else {
nodeBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder getNodeBuilder(
int index) {
return getNodeFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder getNodeOrBuilder(
int index) {
if (nodeBuilder_ == null) {
return node_.get(index); } else {
return nodeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public java.util.List
getNodeOrBuilderList() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(node_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder addNodeBuilder() {
return getNodeFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder addNodeBuilder(
int index) {
return getNodeFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1;
*/
public java.util.List
getNodeBuilderList() {
return getNodeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder>(
node_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private java.util.List edge_ =
java.util.Collections.emptyList();
private void ensureEdgeIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
edge_ = new java.util.ArrayList(edge_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder> edgeBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public java.util.List getEdgeList() {
if (edgeBuilder_ == null) {
return java.util.Collections.unmodifiableList(edge_);
} else {
return edgeBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public int getEdgeCount() {
if (edgeBuilder_ == null) {
return edge_.size();
} else {
return edgeBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge getEdge(int index) {
if (edgeBuilder_ == null) {
return edge_.get(index);
} else {
return edgeBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder setEdge(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgeIsMutable();
edge_.set(index, value);
onChanged();
} else {
edgeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder setEdge(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.set(index, builderForValue.build());
onChanged();
} else {
edgeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder addEdge(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgeIsMutable();
edge_.add(value);
onChanged();
} else {
edgeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder addEdge(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge value) {
if (edgeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEdgeIsMutable();
edge_.add(index, value);
onChanged();
} else {
edgeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder addEdge(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.add(builderForValue.build());
onChanged();
} else {
edgeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder addEdge(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder builderForValue) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.add(index, builderForValue.build());
onChanged();
} else {
edgeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder addAllEdge(
java.lang.Iterable values) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, edge_);
onChanged();
} else {
edgeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder clearEdge() {
if (edgeBuilder_ == null) {
edge_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
edgeBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public Builder removeEdge(int index) {
if (edgeBuilder_ == null) {
ensureEdgeIsMutable();
edge_.remove(index);
onChanged();
} else {
edgeBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder getEdgeBuilder(
int index) {
return getEdgeFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder getEdgeOrBuilder(
int index) {
if (edgeBuilder_ == null) {
return edge_.get(index); } else {
return edgeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public java.util.List
getEdgeOrBuilderList() {
if (edgeBuilder_ != null) {
return edgeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(edge_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder addEdgeBuilder() {
return getEdgeFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder addEdgeBuilder(
int index) {
return getEdgeFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2;
*/
public java.util.List
getEdgeBuilderList() {
return getEdgeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder>
getEdgeFieldBuilder() {
if (edgeBuilder_ == null) {
edgeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder>(
edge_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
edge_ = null;
}
return edgeBuilder_;
}
private java.util.List root_ = java.util.Collections.emptyList();
private void ensureRootIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
root_ = new java.util.ArrayList(root_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public java.util.List
getRootList() {
return java.util.Collections.unmodifiableList(root_);
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public int getRootCount() {
return root_.size();
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public int getRoot(int index) {
return root_.get(index);
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public Builder setRoot(
int index, int value) {
ensureRootIsMutable();
root_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public Builder addRoot(int value) {
ensureRootIsMutable();
root_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public Builder addAllRoot(
java.lang.Iterable values) {
ensureRootIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, root_);
onChanged();
return this;
}
/**
* repeated uint32 root = 3 [packed = true];
*/
public Builder clearRoot() {
root_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.DependencyGraph)
}
static {
defaultInstance = new DependencyGraph(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph)
}
public interface CorefChainOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.CorefChain)
com.google.protobuf.MessageOrBuilder {
/**
* required int32 chainID = 1;
*/
boolean hasChainID();
/**
* required int32 chainID = 1;
*/
int getChainID();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
java.util.List
getMentionList();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention getMention(int index);
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
int getMentionCount();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
java.util.List
getMentionOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder getMentionOrBuilder(
int index);
/**
* required uint32 representative = 3;
*/
boolean hasRepresentative();
/**
* required uint32 representative = 3;
*/
int getRepresentative();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain}
*
*
* A coreference chain.
* These fields are not *really* optional. CoreNLP will crash without them.
*
*/
public static final class CorefChain extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.CorefChain)
CorefChainOrBuilder {
// Use CorefChain.newBuilder() to construct.
private CorefChain(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CorefChain(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CorefChain defaultInstance;
public static CorefChain getDefaultInstance() {
return defaultInstance;
}
public CorefChain getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CorefChain(
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 8: {
bitField0_ |= 0x00000001;
chainID_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
mention_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
mention_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000002;
representative_ = input.readUInt32();
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_ & 0x00000002) == 0x00000002)) {
mention_ = java.util.Collections.unmodifiableList(mention_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.class, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CorefChain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CorefChain(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface CorefMentionOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.CorefChain.CorefMention)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 mentionID = 1;
*/
boolean hasMentionID();
/**
* optional int32 mentionID = 1;
*/
int getMentionID();
/**
* optional string mentionType = 2;
*/
boolean hasMentionType();
/**
* optional string mentionType = 2;
*/
java.lang.String getMentionType();
/**
* optional string mentionType = 2;
*/
com.google.protobuf.ByteString
getMentionTypeBytes();
/**
* optional string number = 3;
*/
boolean hasNumber();
/**
* optional string number = 3;
*/
java.lang.String getNumber();
/**
* optional string number = 3;
*/
com.google.protobuf.ByteString
getNumberBytes();
/**
* optional string gender = 4;
*/
boolean hasGender();
/**
* optional string gender = 4;
*/
java.lang.String getGender();
/**
* optional string gender = 4;
*/
com.google.protobuf.ByteString
getGenderBytes();
/**
* optional string animacy = 5;
*/
boolean hasAnimacy();
/**
* optional string animacy = 5;
*/
java.lang.String getAnimacy();
/**
* optional string animacy = 5;
*/
com.google.protobuf.ByteString
getAnimacyBytes();
/**
* optional uint32 beginIndex = 6;
*/
boolean hasBeginIndex();
/**
* optional uint32 beginIndex = 6;
*/
int getBeginIndex();
/**
* optional uint32 endIndex = 7;
*/
boolean hasEndIndex();
/**
* optional uint32 endIndex = 7;
*/
int getEndIndex();
/**
* optional uint32 headIndex = 9;
*/
boolean hasHeadIndex();
/**
* optional uint32 headIndex = 9;
*/
int getHeadIndex();
/**
* optional uint32 sentenceIndex = 10;
*/
boolean hasSentenceIndex();
/**
* optional uint32 sentenceIndex = 10;
*/
int getSentenceIndex();
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
boolean hasPosition();
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
int getPosition();
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain.CorefMention}
*/
public static final class CorefMention extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.CorefChain.CorefMention)
CorefMentionOrBuilder {
// Use CorefMention.newBuilder() to construct.
private CorefMention(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CorefMention(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CorefMention defaultInstance;
public static CorefMention getDefaultInstance() {
return defaultInstance;
}
public CorefMention getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CorefMention(
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 8: {
bitField0_ |= 0x00000001;
mentionID_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
mentionType_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
number_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
gender_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
animacy_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
beginIndex_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
endIndex_ = input.readUInt32();
break;
}
case 72: {
bitField0_ |= 0x00000080;
headIndex_ = input.readUInt32();
break;
}
case 80: {
bitField0_ |= 0x00000100;
sentenceIndex_ = input.readUInt32();
break;
}
case 88: {
bitField0_ |= 0x00000200;
position_ = input.readUInt32();
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 edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.class, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public CorefMention parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CorefMention(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int MENTIONID_FIELD_NUMBER = 1;
private int mentionID_;
/**
* optional int32 mentionID = 1;
*/
public boolean hasMentionID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 mentionID = 1;
*/
public int getMentionID() {
return mentionID_;
}
public static final int MENTIONTYPE_FIELD_NUMBER = 2;
private java.lang.Object mentionType_;
/**
* optional string mentionType = 2;
*/
public boolean hasMentionType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mentionType = 2;
*/
public java.lang.String getMentionType() {
java.lang.Object ref = mentionType_;
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()) {
mentionType_ = s;
}
return s;
}
}
/**
* optional string mentionType = 2;
*/
public com.google.protobuf.ByteString
getMentionTypeBytes() {
java.lang.Object ref = mentionType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mentionType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 3;
private java.lang.Object number_;
/**
* optional string number = 3;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string number = 3;
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
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()) {
number_ = s;
}
return s;
}
}
/**
* optional string number = 3;
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GENDER_FIELD_NUMBER = 4;
private java.lang.Object gender_;
/**
* optional string gender = 4;
*/
public boolean hasGender() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string gender = 4;
*/
public java.lang.String getGender() {
java.lang.Object ref = gender_;
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()) {
gender_ = s;
}
return s;
}
}
/**
* optional string gender = 4;
*/
public com.google.protobuf.ByteString
getGenderBytes() {
java.lang.Object ref = gender_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANIMACY_FIELD_NUMBER = 5;
private java.lang.Object animacy_;
/**
* optional string animacy = 5;
*/
public boolean hasAnimacy() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string animacy = 5;
*/
public java.lang.String getAnimacy() {
java.lang.Object ref = animacy_;
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()) {
animacy_ = s;
}
return s;
}
}
/**
* optional string animacy = 5;
*/
public com.google.protobuf.ByteString
getAnimacyBytes() {
java.lang.Object ref = animacy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animacy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BEGININDEX_FIELD_NUMBER = 6;
private int beginIndex_;
/**
* optional uint32 beginIndex = 6;
*/
public boolean hasBeginIndex() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 beginIndex = 6;
*/
public int getBeginIndex() {
return beginIndex_;
}
public static final int ENDINDEX_FIELD_NUMBER = 7;
private int endIndex_;
/**
* optional uint32 endIndex = 7;
*/
public boolean hasEndIndex() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 endIndex = 7;
*/
public int getEndIndex() {
return endIndex_;
}
public static final int HEADINDEX_FIELD_NUMBER = 9;
private int headIndex_;
/**
* optional uint32 headIndex = 9;
*/
public boolean hasHeadIndex() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 headIndex = 9;
*/
public int getHeadIndex() {
return headIndex_;
}
public static final int SENTENCEINDEX_FIELD_NUMBER = 10;
private int sentenceIndex_;
/**
* optional uint32 sentenceIndex = 10;
*/
public boolean hasSentenceIndex() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 sentenceIndex = 10;
*/
public int getSentenceIndex() {
return sentenceIndex_;
}
public static final int POSITION_FIELD_NUMBER = 11;
private int position_;
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
public boolean hasPosition() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
public int getPosition() {
return position_;
}
private void initFields() {
mentionID_ = 0;
mentionType_ = "";
number_ = "";
gender_ = "";
animacy_ = "";
beginIndex_ = 0;
endIndex_ = 0;
headIndex_ = 0;
sentenceIndex_ = 0;
position_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, mentionID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMentionTypeBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getNumberBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getGenderBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getAnimacyBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt32(6, beginIndex_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeUInt32(7, endIndex_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(9, headIndex_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeUInt32(10, sentenceIndex_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeUInt32(11, position_);
}
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(1, mentionID_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMentionTypeBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getNumberBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getGenderBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getAnimacyBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, beginIndex_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, endIndex_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, headIndex_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, sentenceIndex_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, position_);
}
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 edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention 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(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention 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 edu.stanford.nlp.pipeline.CorefChain.CorefMention}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.CorefChain.CorefMention)
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.class, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.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();
mentionID_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
mentionType_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
number_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
gender_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
animacy_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
beginIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
endIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
headIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
sentenceIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
position_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention result = new edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.mentionID_ = mentionID_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mentionType_ = mentionType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.number_ = number_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.gender_ = gender_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.animacy_ = animacy_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.beginIndex_ = beginIndex_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.endIndex_ = endIndex_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.headIndex_ = headIndex_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.sentenceIndex_ = sentenceIndex_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.position_ = position_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.getDefaultInstance()) return this;
if (other.hasMentionID()) {
setMentionID(other.getMentionID());
}
if (other.hasMentionType()) {
bitField0_ |= 0x00000002;
mentionType_ = other.mentionType_;
onChanged();
}
if (other.hasNumber()) {
bitField0_ |= 0x00000004;
number_ = other.number_;
onChanged();
}
if (other.hasGender()) {
bitField0_ |= 0x00000008;
gender_ = other.gender_;
onChanged();
}
if (other.hasAnimacy()) {
bitField0_ |= 0x00000010;
animacy_ = other.animacy_;
onChanged();
}
if (other.hasBeginIndex()) {
setBeginIndex(other.getBeginIndex());
}
if (other.hasEndIndex()) {
setEndIndex(other.getEndIndex());
}
if (other.hasHeadIndex()) {
setHeadIndex(other.getHeadIndex());
}
if (other.hasSentenceIndex()) {
setSentenceIndex(other.getSentenceIndex());
}
if (other.hasPosition()) {
setPosition(other.getPosition());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int mentionID_ ;
/**
* optional int32 mentionID = 1;
*/
public boolean hasMentionID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 mentionID = 1;
*/
public int getMentionID() {
return mentionID_;
}
/**
* optional int32 mentionID = 1;
*/
public Builder setMentionID(int value) {
bitField0_ |= 0x00000001;
mentionID_ = value;
onChanged();
return this;
}
/**
* optional int32 mentionID = 1;
*/
public Builder clearMentionID() {
bitField0_ = (bitField0_ & ~0x00000001);
mentionID_ = 0;
onChanged();
return this;
}
private java.lang.Object mentionType_ = "";
/**
* optional string mentionType = 2;
*/
public boolean hasMentionType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mentionType = 2;
*/
public java.lang.String getMentionType() {
java.lang.Object ref = mentionType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mentionType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mentionType = 2;
*/
public com.google.protobuf.ByteString
getMentionTypeBytes() {
java.lang.Object ref = mentionType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mentionType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mentionType = 2;
*/
public Builder setMentionType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mentionType_ = value;
onChanged();
return this;
}
/**
* optional string mentionType = 2;
*/
public Builder clearMentionType() {
bitField0_ = (bitField0_ & ~0x00000002);
mentionType_ = getDefaultInstance().getMentionType();
onChanged();
return this;
}
/**
* optional string mentionType = 2;
*/
public Builder setMentionTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mentionType_ = value;
onChanged();
return this;
}
private java.lang.Object number_ = "";
/**
* optional string number = 3;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string number = 3;
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
number_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string number = 3;
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string number = 3;
*/
public Builder setNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
number_ = value;
onChanged();
return this;
}
/**
* optional string number = 3;
*/
public Builder clearNumber() {
bitField0_ = (bitField0_ & ~0x00000004);
number_ = getDefaultInstance().getNumber();
onChanged();
return this;
}
/**
* optional string number = 3;
*/
public Builder setNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
number_ = value;
onChanged();
return this;
}
private java.lang.Object gender_ = "";
/**
* optional string gender = 4;
*/
public boolean hasGender() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string gender = 4;
*/
public java.lang.String getGender() {
java.lang.Object ref = gender_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
gender_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string gender = 4;
*/
public com.google.protobuf.ByteString
getGenderBytes() {
java.lang.Object ref = gender_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string gender = 4;
*/
public Builder setGender(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
gender_ = value;
onChanged();
return this;
}
/**
* optional string gender = 4;
*/
public Builder clearGender() {
bitField0_ = (bitField0_ & ~0x00000008);
gender_ = getDefaultInstance().getGender();
onChanged();
return this;
}
/**
* optional string gender = 4;
*/
public Builder setGenderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
gender_ = value;
onChanged();
return this;
}
private java.lang.Object animacy_ = "";
/**
* optional string animacy = 5;
*/
public boolean hasAnimacy() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string animacy = 5;
*/
public java.lang.String getAnimacy() {
java.lang.Object ref = animacy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
animacy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string animacy = 5;
*/
public com.google.protobuf.ByteString
getAnimacyBytes() {
java.lang.Object ref = animacy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animacy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string animacy = 5;
*/
public Builder setAnimacy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
animacy_ = value;
onChanged();
return this;
}
/**
* optional string animacy = 5;
*/
public Builder clearAnimacy() {
bitField0_ = (bitField0_ & ~0x00000010);
animacy_ = getDefaultInstance().getAnimacy();
onChanged();
return this;
}
/**
* optional string animacy = 5;
*/
public Builder setAnimacyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
animacy_ = value;
onChanged();
return this;
}
private int beginIndex_ ;
/**
* optional uint32 beginIndex = 6;
*/
public boolean hasBeginIndex() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint32 beginIndex = 6;
*/
public int getBeginIndex() {
return beginIndex_;
}
/**
* optional uint32 beginIndex = 6;
*/
public Builder setBeginIndex(int value) {
bitField0_ |= 0x00000020;
beginIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 beginIndex = 6;
*/
public Builder clearBeginIndex() {
bitField0_ = (bitField0_ & ~0x00000020);
beginIndex_ = 0;
onChanged();
return this;
}
private int endIndex_ ;
/**
* optional uint32 endIndex = 7;
*/
public boolean hasEndIndex() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 endIndex = 7;
*/
public int getEndIndex() {
return endIndex_;
}
/**
* optional uint32 endIndex = 7;
*/
public Builder setEndIndex(int value) {
bitField0_ |= 0x00000040;
endIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 endIndex = 7;
*/
public Builder clearEndIndex() {
bitField0_ = (bitField0_ & ~0x00000040);
endIndex_ = 0;
onChanged();
return this;
}
private int headIndex_ ;
/**
* optional uint32 headIndex = 9;
*/
public boolean hasHeadIndex() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 headIndex = 9;
*/
public int getHeadIndex() {
return headIndex_;
}
/**
* optional uint32 headIndex = 9;
*/
public Builder setHeadIndex(int value) {
bitField0_ |= 0x00000080;
headIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 headIndex = 9;
*/
public Builder clearHeadIndex() {
bitField0_ = (bitField0_ & ~0x00000080);
headIndex_ = 0;
onChanged();
return this;
}
private int sentenceIndex_ ;
/**
* optional uint32 sentenceIndex = 10;
*/
public boolean hasSentenceIndex() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 sentenceIndex = 10;
*/
public int getSentenceIndex() {
return sentenceIndex_;
}
/**
* optional uint32 sentenceIndex = 10;
*/
public Builder setSentenceIndex(int value) {
bitField0_ |= 0x00000100;
sentenceIndex_ = value;
onChanged();
return this;
}
/**
* optional uint32 sentenceIndex = 10;
*/
public Builder clearSentenceIndex() {
bitField0_ = (bitField0_ & ~0x00000100);
sentenceIndex_ = 0;
onChanged();
return this;
}
private int position_ ;
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
public boolean hasPosition() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
public int getPosition() {
return position_;
}
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
public Builder setPosition(int value) {
bitField0_ |= 0x00000200;
position_ = value;
onChanged();
return this;
}
/**
* optional uint32 position = 11;
*
*
* the second element of position
*
*/
public Builder clearPosition() {
bitField0_ = (bitField0_ & ~0x00000200);
position_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.CorefChain.CorefMention)
}
static {
defaultInstance = new CorefMention(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.CorefChain.CorefMention)
}
private int bitField0_;
public static final int CHAINID_FIELD_NUMBER = 1;
private int chainID_;
/**
* required int32 chainID = 1;
*/
public boolean hasChainID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 chainID = 1;
*/
public int getChainID() {
return chainID_;
}
public static final int MENTION_FIELD_NUMBER = 2;
private java.util.List mention_;
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public java.util.List getMentionList() {
return mention_;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public java.util.List
getMentionOrBuilderList() {
return mention_;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public int getMentionCount() {
return mention_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention getMention(int index) {
return mention_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder getMentionOrBuilder(
int index) {
return mention_.get(index);
}
public static final int REPRESENTATIVE_FIELD_NUMBER = 3;
private int representative_;
/**
* required uint32 representative = 3;
*/
public boolean hasRepresentative() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 representative = 3;
*/
public int getRepresentative() {
return representative_;
}
private void initFields() {
chainID_ = 0;
mention_ = java.util.Collections.emptyList();
representative_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasChainID()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasRepresentative()) {
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(1, chainID_);
}
for (int i = 0; i < mention_.size(); i++) {
output.writeMessage(2, mention_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(3, representative_);
}
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(1, chainID_);
}
for (int i = 0; i < mention_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, mention_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, representative_);
}
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 edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain 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(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain 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 edu.stanford.nlp.pipeline.CorefChain}
*
*
* A coreference chain.
* These fields are not *really* optional. CoreNLP will crash without them.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.CorefChain)
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.class, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder.class);
}
// Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMentionFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
chainID_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (mentionBuilder_ == null) {
mention_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
mentionBuilder_.clear();
}
representative_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain getDefaultInstanceForType() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.getDefaultInstance();
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain build() {
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain buildPartial() {
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain result = new edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.chainID_ = chainID_;
if (mentionBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
mention_ = java.util.Collections.unmodifiableList(mention_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.mention_ = mention_;
} else {
result.mention_ = mentionBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.representative_ = representative_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain) {
return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain other) {
if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.getDefaultInstance()) return this;
if (other.hasChainID()) {
setChainID(other.getChainID());
}
if (mentionBuilder_ == null) {
if (!other.mention_.isEmpty()) {
if (mention_.isEmpty()) {
mention_ = other.mention_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMentionIsMutable();
mention_.addAll(other.mention_);
}
onChanged();
}
} else {
if (!other.mention_.isEmpty()) {
if (mentionBuilder_.isEmpty()) {
mentionBuilder_.dispose();
mentionBuilder_ = null;
mention_ = other.mention_;
bitField0_ = (bitField0_ & ~0x00000002);
mentionBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMentionFieldBuilder() : null;
} else {
mentionBuilder_.addAllMessages(other.mention_);
}
}
}
if (other.hasRepresentative()) {
setRepresentative(other.getRepresentative());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasChainID()) {
return false;
}
if (!hasRepresentative()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int chainID_ ;
/**
* required int32 chainID = 1;
*/
public boolean hasChainID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 chainID = 1;
*/
public int getChainID() {
return chainID_;
}
/**
* required int32 chainID = 1;
*/
public Builder setChainID(int value) {
bitField0_ |= 0x00000001;
chainID_ = value;
onChanged();
return this;
}
/**
* required int32 chainID = 1;
*/
public Builder clearChainID() {
bitField0_ = (bitField0_ & ~0x00000001);
chainID_ = 0;
onChanged();
return this;
}
private java.util.List mention_ =
java.util.Collections.emptyList();
private void ensureMentionIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
mention_ = new java.util.ArrayList(mention_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder> mentionBuilder_;
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public java.util.List getMentionList() {
if (mentionBuilder_ == null) {
return java.util.Collections.unmodifiableList(mention_);
} else {
return mentionBuilder_.getMessageList();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public int getMentionCount() {
if (mentionBuilder_ == null) {
return mention_.size();
} else {
return mentionBuilder_.getCount();
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention getMention(int index) {
if (mentionBuilder_ == null) {
return mention_.get(index);
} else {
return mentionBuilder_.getMessage(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder setMention(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention value) {
if (mentionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionIsMutable();
mention_.set(index, value);
onChanged();
} else {
mentionBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder setMention(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder builderForValue) {
if (mentionBuilder_ == null) {
ensureMentionIsMutable();
mention_.set(index, builderForValue.build());
onChanged();
} else {
mentionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder addMention(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention value) {
if (mentionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionIsMutable();
mention_.add(value);
onChanged();
} else {
mentionBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder addMention(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention value) {
if (mentionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMentionIsMutable();
mention_.add(index, value);
onChanged();
} else {
mentionBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder addMention(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder builderForValue) {
if (mentionBuilder_ == null) {
ensureMentionIsMutable();
mention_.add(builderForValue.build());
onChanged();
} else {
mentionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder addMention(
int index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder builderForValue) {
if (mentionBuilder_ == null) {
ensureMentionIsMutable();
mention_.add(index, builderForValue.build());
onChanged();
} else {
mentionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder addAllMention(
java.lang.Iterable values) {
if (mentionBuilder_ == null) {
ensureMentionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mention_);
onChanged();
} else {
mentionBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder clearMention() {
if (mentionBuilder_ == null) {
mention_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
mentionBuilder_.clear();
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public Builder removeMention(int index) {
if (mentionBuilder_ == null) {
ensureMentionIsMutable();
mention_.remove(index);
onChanged();
} else {
mentionBuilder_.remove(index);
}
return this;
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder getMentionBuilder(
int index) {
return getMentionFieldBuilder().getBuilder(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder getMentionOrBuilder(
int index) {
if (mentionBuilder_ == null) {
return mention_.get(index); } else {
return mentionBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public java.util.List
getMentionOrBuilderList() {
if (mentionBuilder_ != null) {
return mentionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(mention_);
}
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder addMentionBuilder() {
return getMentionFieldBuilder().addBuilder(
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder addMentionBuilder(
int index) {
return getMentionFieldBuilder().addBuilder(
index, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.getDefaultInstance());
}
/**
* repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2;
*/
public java.util.List
getMentionBuilderList() {
return getMentionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder>
getMentionFieldBuilder() {
if (mentionBuilder_ == null) {
mentionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder>(
mention_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
mention_ = null;
}
return mentionBuilder_;
}
private int representative_ ;
/**
* required uint32 representative = 3;
*/
public boolean hasRepresentative() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 representative = 3;
*/
public int getRepresentative() {
return representative_;
}
/**
* required uint32 representative = 3;
*/
public Builder setRepresentative(int value) {
bitField0_ |= 0x00000004;
representative_ = value;
onChanged();
return this;
}
/**
* required uint32 representative = 3;
*/
public Builder clearRepresentative() {
bitField0_ = (bitField0_ & ~0x00000004);
representative_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.CorefChain)
}
static {
defaultInstance = new CorefChain(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.CorefChain)
}
public interface MentionOrBuilder extends
// @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Mention)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 mentionID = 1;
*/
boolean hasMentionID();
/**
* optional int32 mentionID = 1;
*/
int getMentionID();
/**
* optional string mentionType = 2;
*/
boolean hasMentionType();
/**
* optional string mentionType = 2;
*/
java.lang.String getMentionType();
/**
* optional string mentionType = 2;
*/
com.google.protobuf.ByteString
getMentionTypeBytes();
/**
* optional string number = 3;
*/
boolean hasNumber();
/**
* optional string number = 3;
*/
java.lang.String getNumber();
/**
* optional string number = 3;
*/
com.google.protobuf.ByteString
getNumberBytes();
/**
* optional string gender = 4;
*/
boolean hasGender();
/**
* optional string gender = 4;
*/
java.lang.String getGender();
/**
* optional string gender = 4;
*/
com.google.protobuf.ByteString
getGenderBytes();
/**
* optional string animacy = 5;
*/
boolean hasAnimacy();
/**
* optional string animacy = 5;
*/
java.lang.String getAnimacy();
/**
* optional string animacy = 5;
*/
com.google.protobuf.ByteString
getAnimacyBytes();
/**
* optional string person = 6;
*/
boolean hasPerson();
/**
* optional string person = 6;
*/
java.lang.String getPerson();
/**
* optional string person = 6;
*/
com.google.protobuf.ByteString
getPersonBytes();
/**
* optional uint32 startIndex = 7;
*/
boolean hasStartIndex();
/**
* optional uint32 startIndex = 7;
*/
int getStartIndex();
/**
* optional uint32 endIndex = 9;
*/
boolean hasEndIndex();
/**
* optional uint32 endIndex = 9;
*/
int getEndIndex();
/**
* optional uint32 headIndex = 10;
*/
boolean hasHeadIndex();
/**
* optional uint32 headIndex = 10;
*/
int getHeadIndex();
/**
* optional string headString = 11;
*/
boolean hasHeadString();
/**
* optional string headString = 11;
*/
java.lang.String getHeadString();
/**
* optional string headString = 11;
*/
com.google.protobuf.ByteString
getHeadStringBytes();
/**
* optional string nerString = 12;
*/
boolean hasNerString();
/**
* optional string nerString = 12;
*/
java.lang.String getNerString();
/**
* optional string nerString = 12;
*/
com.google.protobuf.ByteString
getNerStringBytes();
/**
* optional uint32 originalRef = 13;
*/
boolean hasOriginalRef();
/**
* optional uint32 originalRef = 13;
*/
int getOriginalRef();
/**
* optional int32 goldCorefClusterID = 14;
*/
boolean hasGoldCorefClusterID();
/**
* optional int32 goldCorefClusterID = 14;
*/
int getGoldCorefClusterID();
/**
* optional int32 corefClusterID = 15;
*/
boolean hasCorefClusterID();
/**
* optional int32 corefClusterID = 15;
*/
int getCorefClusterID();
/**
* optional uint32 mentionNum = 16;
*/
boolean hasMentionNum();
/**
* optional uint32 mentionNum = 16;
*/
int getMentionNum();
/**
* optional uint32 sentNum = 17;
*/
boolean hasSentNum();
/**
* optional uint32 sentNum = 17;
*/
int getSentNum();
/**
* optional uint32 utter = 18;
*/
boolean hasUtter();
/**
* optional uint32 utter = 18;
*/
int getUtter();
/**
* optional uint32 paragraph = 19;
*/
boolean hasParagraph();
/**
* optional uint32 paragraph = 19;
*/
int getParagraph();
/**
* optional bool isSubject = 20;
*/
boolean hasIsSubject();
/**
* optional bool isSubject = 20;
*/
boolean getIsSubject();
/**
* optional bool isDirectObject = 21;
*/
boolean hasIsDirectObject();
/**
* optional bool isDirectObject = 21;
*/
boolean getIsDirectObject();
/**
* optional bool isIndirectObject = 22;
*/
boolean hasIsIndirectObject();
/**
* optional bool isIndirectObject = 22;
*/
boolean getIsIndirectObject();
/**
* optional bool isPrepositionObject = 23;
*/
boolean hasIsPrepositionObject();
/**
* optional bool isPrepositionObject = 23;
*/
boolean getIsPrepositionObject();
/**
* optional bool hasTwin = 24;
*/
boolean hasHasTwin();
/**
* optional bool hasTwin = 24;
*/
boolean getHasTwin();
/**
* optional bool generic = 25;
*/
boolean hasGeneric();
/**
* optional bool generic = 25;
*/
boolean getGeneric();
/**
* optional bool isSingleton = 26;
*/
boolean hasIsSingleton();
/**
* optional bool isSingleton = 26;
*/
boolean getIsSingleton();
/**
* optional bool hasBasicDependency = 27;
*/
boolean hasHasBasicDependency();
/**
* optional bool hasBasicDependency = 27;
*/
boolean getHasBasicDependency();
/**
* optional bool hasEnhancedDepenedncy = 28;
*/
boolean hasHasEnhancedDepenedncy();
/**
* optional bool hasEnhancedDepenedncy = 28;
*/
boolean getHasEnhancedDepenedncy();
/**
* optional bool hasContextParseTree = 29;
*/
boolean hasHasContextParseTree();
/**
* optional bool hasContextParseTree = 29;
*/
boolean getHasContextParseTree();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30;
*/
boolean hasHeadIndexedWord();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadIndexedWord();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndexedWordOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31;
*/
boolean hasDependingVerb();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDependingVerb();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDependingVerbOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32;
*/
boolean hasHeadWord();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadWord();
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordOrBuilder();
/**
* optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33;
*/
boolean hasSpeakerInfo();
/**
* optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getSpeakerInfo();
/**
* optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerInfoOrBuilder();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
java.util.List
getSentenceWordsList();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getSentenceWords(int index);
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
int getSentenceWordsCount();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
java.util.List
getSentenceWordsOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getSentenceWordsOrBuilder(
int index);
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
java.util.List
getOriginalSpanList();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getOriginalSpan(int index);
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
int getOriginalSpanCount();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
java.util.List
getOriginalSpanOrBuilderList();
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBuilder(
int index);
/**
* repeated string dependents = 52;
*/
com.google.protobuf.ProtocolStringList
getDependentsList();
/**
* repeated string dependents = 52;
*/
int getDependentsCount();
/**
* repeated string dependents = 52;
*/
java.lang.String getDependents(int index);
/**
* repeated string dependents = 52;
*/
com.google.protobuf.ByteString
getDependentsBytes(int index);
/**
* repeated string preprocessedTerms = 53;
*/
com.google.protobuf.ProtocolStringList
getPreprocessedTermsList();
/**
* repeated string preprocessedTerms = 53;
*/
int getPreprocessedTermsCount();
/**
* repeated string preprocessedTerms = 53;
*/
java.lang.String getPreprocessedTerms(int index);
/**
* repeated string preprocessedTerms = 53;
*/
com.google.protobuf.ByteString
getPreprocessedTermsBytes(int index);
/**
* repeated int32 appositions = 54;
*/
java.util.List getAppositionsList();
/**
* repeated int32 appositions = 54;
*/
int getAppositionsCount();
/**
* repeated int32 appositions = 54;
*/
int getAppositions(int index);
/**
* repeated int32 predicateNominatives = 55;
*/
java.util.List getPredicateNominativesList();
/**
* repeated int32 predicateNominatives = 55;
*/
int getPredicateNominativesCount();
/**
* repeated int32 predicateNominatives = 55;
*/
int getPredicateNominatives(int index);
/**
* repeated int32 relativePronouns = 56;
*/
java.util.List getRelativePronounsList();
/**
* repeated int32 relativePronouns = 56;
*/
int getRelativePronounsCount();
/**
* repeated int32 relativePronouns = 56;
*/
int getRelativePronouns(int index);
/**
* repeated int32 listMembers = 57;
*/
java.util.List getListMembersList();
/**
* repeated int32 listMembers = 57;
*/
int getListMembersCount();
/**
* repeated int32 listMembers = 57;
*/
int getListMembers(int index);
/**
* repeated int32 belongToLists = 58;
*/
java.util.List getBelongToListsList();
/**
* repeated int32 belongToLists = 58;
*/
int getBelongToListsCount();
/**
* repeated int32 belongToLists = 58;
*/
int getBelongToLists(int index);
}
/**
* Protobuf type {@code edu.stanford.nlp.pipeline.Mention}
*/
public static final class Mention extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Mention)
MentionOrBuilder {
// Use Mention.newBuilder() to construct.
private Mention(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Mention(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Mention defaultInstance;
public static Mention getDefaultInstance() {
return defaultInstance;
}
public Mention getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Mention(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
int mutable_bitField1_ = 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 8: {
bitField0_ |= 0x00000001;
mentionID_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
mentionType_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
number_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
gender_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
animacy_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
person_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
startIndex_ = input.readUInt32();
break;
}
case 72: {
bitField0_ |= 0x00000080;
endIndex_ = input.readUInt32();
break;
}
case 80: {
bitField0_ |= 0x00000100;
headIndex_ = input.readUInt32();
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
headString_ = bs;
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
nerString_ = bs;
break;
}
case 104: {
bitField0_ |= 0x00000800;
originalRef_ = input.readUInt32();
break;
}
case 112: {
bitField0_ |= 0x00001000;
goldCorefClusterID_ = input.readInt32();
break;
}
case 120: {
bitField0_ |= 0x00002000;
corefClusterID_ = input.readInt32();
break;
}
case 128: {
bitField0_ |= 0x00004000;
mentionNum_ = input.readUInt32();
break;
}
case 136: {
bitField0_ |= 0x00008000;
sentNum_ = input.readUInt32();
break;
}
case 144: {
bitField0_ |= 0x00010000;
utter_ = input.readUInt32();
break;
}
case 152: {
bitField0_ |= 0x00020000;
paragraph_ = input.readUInt32();
break;
}
case 160: {
bitField0_ |= 0x00040000;
isSubject_ = input.readBool();
break;
}
case 168: {
bitField0_ |= 0x00080000;
isDirectObject_ = input.readBool();
break;
}
case 176: {
bitField0_ |= 0x00100000;
isIndirectObject_ = input.readBool();
break;
}
case 184: {
bitField0_ |= 0x00200000;
isPrepositionObject_ = input.readBool();
break;
}
case 192: {
bitField0_ |= 0x00400000;
hasTwin_ = input.readBool();
break;
}
case 200: {
bitField0_ |= 0x00800000;
generic_ = input.readBool();
break;
}
case 208: {
bitField0_ |= 0x01000000;
isSingleton_ = input.readBool();
break;
}
case 216: {
bitField0_ |= 0x02000000;
hasBasicDependency_ = input.readBool();
break;
}
case 224: {
bitField0_ |= 0x04000000;
hasEnhancedDepenedncy_ = input.readBool();
break;
}
case 232: {
bitField0_ |= 0x08000000;
hasContextParseTree_ = input.readBool();
break;
}
case 242: {
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder subBuilder = null;
if (((bitField0_ & 0x10000000) == 0x10000000)) {
subBuilder = headIndexedWord_.toBuilder();
}
headIndexedWord_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(headIndexedWord_);
headIndexedWord_ = subBuilder.buildPartial();
}
bitField0_ |= 0x10000000;
break;
}
case 250: {
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder subBuilder = null;
if (((bitField0_ & 0x20000000) == 0x20000000)) {
subBuilder = dependingVerb_.toBuilder();
}
dependingVerb_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dependingVerb_);
dependingVerb_ = subBuilder.buildPartial();
}
bitField0_ |= 0x20000000;
break;
}
case 258: {
edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder subBuilder = null;
if (((bitField0_ & 0x40000000) == 0x40000000)) {
subBuilder = headWord_.toBuilder();
}
headWord_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(headWord_);
headWord_ = subBuilder.buildPartial();
}
bitField0_ |= 0x40000000;
break;
}
case 266: {
edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder subBuilder = null;
if (((bitField0_ & 0x80000000) == 0x80000000)) {
subBuilder = speakerInfo_.toBuilder();
}
speakerInfo_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(speakerInfo_);
speakerInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x80000000;
break;
}
case 402: {
if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) {
sentenceWords_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000001;
}
sentenceWords_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry));
break;
}
case 410: {
if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
originalSpan_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000002;
}
originalSpan_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry));
break;
}
case 418: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
dependents_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00000004;
}
dependents_.add(bs);
break;
}
case 426: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) {
preprocessedTerms_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00000008;
}
preprocessedTerms_.add(bs);
break;
}
case 432: {
if (!((mutable_bitField1_ & 0x00000010) == 0x00000010)) {
appositions_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000010;
}
appositions_.add(input.readInt32());
break;
}
case 434: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
appositions_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
appositions_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 440: {
if (!((mutable_bitField1_ & 0x00000020) == 0x00000020)) {
predicateNominatives_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000020;
}
predicateNominatives_.add(input.readInt32());
break;
}
case 442: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
predicateNominatives_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
predicateNominatives_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 448: {
if (!((mutable_bitField1_ & 0x00000040) == 0x00000040)) {
relativePronouns_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000040;
}
relativePronouns_.add(input.readInt32());
break;
}
case 450: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) {
relativePronouns_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000040;
}
while (input.getBytesUntilLimit() > 0) {
relativePronouns_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 456: {
if (!((mutable_bitField1_ & 0x00000080) == 0x00000080)) {
listMembers_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000080;
}
listMembers_.add(input.readInt32());
break;
}
case 458: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) {
listMembers_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
listMembers_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 464: {
if (!((mutable_bitField1_ & 0x00000100) == 0x00000100)) {
belongToLists_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000100;
}
belongToLists_.add(input.readInt32());
break;
}
case 466: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) {
belongToLists_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
belongToLists_.add(input.readInt32());
}
input.popLimit(limit);
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_bitField1_ & 0x00000001) == 0x00000001)) {
sentenceWords_ = java.util.Collections.unmodifiableList(sentenceWords_);
}
if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
originalSpan_ = java.util.Collections.unmodifiableList(originalSpan_);
}
if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) {
dependents_ = dependents_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) {
preprocessedTerms_ = preprocessedTerms_.getUnmodifiableView();
}
if (((mutable_bitField1_ & 0x00000010) == 0x00000010)) {
appositions_ = java.util.Collections.unmodifiableList(appositions_);
}
if (((mutable_bitField1_ & 0x00000020) == 0x00000020)) {
predicateNominatives_ = java.util.Collections.unmodifiableList(predicateNominatives_);
}
if (((mutable_bitField1_ & 0x00000040) == 0x00000040)) {
relativePronouns_ = java.util.Collections.unmodifiableList(relativePronouns_);
}
if (((mutable_bitField1_ & 0x00000080) == 0x00000080)) {
listMembers_ = java.util.Collections.unmodifiableList(listMembers_);
}
if (((mutable_bitField1_ & 0x00000100) == 0x00000100)) {
belongToLists_ = java.util.Collections.unmodifiableList(belongToLists_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Mention_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Mention_fieldAccessorTable
.ensureFieldAccessorsInitialized(
edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Mention parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Mention(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int MENTIONID_FIELD_NUMBER = 1;
private int mentionID_;
/**
* optional int32 mentionID = 1;
*/
public boolean hasMentionID() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 mentionID = 1;
*/
public int getMentionID() {
return mentionID_;
}
public static final int MENTIONTYPE_FIELD_NUMBER = 2;
private java.lang.Object mentionType_;
/**
* optional string mentionType = 2;
*/
public boolean hasMentionType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string mentionType = 2;
*/
public java.lang.String getMentionType() {
java.lang.Object ref = mentionType_;
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()) {
mentionType_ = s;
}
return s;
}
}
/**
* optional string mentionType = 2;
*/
public com.google.protobuf.ByteString
getMentionTypeBytes() {
java.lang.Object ref = mentionType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mentionType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 3;
private java.lang.Object number_;
/**
* optional string number = 3;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string number = 3;
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
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()) {
number_ = s;
}
return s;
}
}
/**
* optional string number = 3;
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GENDER_FIELD_NUMBER = 4;
private java.lang.Object gender_;
/**
* optional string gender = 4;
*/
public boolean hasGender() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string gender = 4;
*/
public java.lang.String getGender() {
java.lang.Object ref = gender_;
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()) {
gender_ = s;
}
return s;
}
}
/**
* optional string gender = 4;
*/
public com.google.protobuf.ByteString
getGenderBytes() {
java.lang.Object ref = gender_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gender_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANIMACY_FIELD_NUMBER = 5;
private java.lang.Object animacy_;
/**
* optional string animacy = 5;
*/
public boolean hasAnimacy() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string animacy = 5;
*/
public java.lang.String getAnimacy() {
java.lang.Object ref = animacy_;
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()) {
animacy_ = s;
}
return s;
}
}
/**
* optional string animacy = 5;
*/
public com.google.protobuf.ByteString
getAnimacyBytes() {
java.lang.Object ref = animacy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
animacy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERSON_FIELD_NUMBER = 6;
private java.lang.Object person_;
/**
* optional string person = 6;
*/
public boolean hasPerson() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string person = 6;
*/
public java.lang.String getPerson() {
java.lang.Object ref = person_;
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()) {
person_ = s;
}
return s;
}
}
/**
* optional string person = 6;
*/
public com.google.protobuf.ByteString
getPersonBytes() {
java.lang.Object ref = person_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
person_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTINDEX_FIELD_NUMBER = 7;
private int startIndex_;
/**
* optional uint32 startIndex = 7;
*/
public boolean hasStartIndex() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional uint32 startIndex = 7;
*/
public int getStartIndex() {
return startIndex_;
}
public static final int ENDINDEX_FIELD_NUMBER = 9;
private int endIndex_;
/**
* optional uint32 endIndex = 9;
*/
public boolean hasEndIndex() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional uint32 endIndex = 9;
*/
public int getEndIndex() {
return endIndex_;
}
public static final int HEADINDEX_FIELD_NUMBER = 10;
private int headIndex_;
/**
* optional uint32 headIndex = 10;
*/
public boolean hasHeadIndex() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional uint32 headIndex = 10;
*/
public int getHeadIndex() {
return headIndex_;
}
public static final int HEADSTRING_FIELD_NUMBER = 11;
private java.lang.Object headString_;
/**
* optional string headString = 11;
*/
public boolean hasHeadString() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string headString = 11;
*/
public java.lang.String getHeadString() {
java.lang.Object ref = headString_;
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()) {
headString_ = s;
}
return s;
}
}
/**
* optional string headString = 11;
*/
public com.google.protobuf.ByteString
getHeadStringBytes() {
java.lang.Object ref = headString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
headString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NERSTRING_FIELD_NUMBER = 12;
private java.lang.Object nerString_;
/**
* optional string nerString = 12;
*/
public boolean hasNerString() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string nerString = 12;
*/
public java.lang.String getNerString() {
java.lang.Object ref = nerString_;
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()) {
nerString_ = s;
}
return s;
}
}
/**
* optional string nerString = 12;
*/
public com.google.protobuf.ByteString
getNerStringBytes() {
java.lang.Object ref = nerString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nerString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGINALREF_FIELD_NUMBER = 13;
private int originalRef_;
/**
* optional uint32 originalRef = 13;
*/
public boolean hasOriginalRef() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional uint32 originalRef = 13;
*/
public int getOriginalRef() {
return originalRef_;
}
public static final int GOLDCOREFCLUSTERID_FIELD_NUMBER = 14;
private int goldCorefClusterID_;
/**
* optional int32 goldCorefClusterID = 14;
*/
public boolean hasGoldCorefClusterID() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* optional int32 goldCorefClusterID = 14;
*/
public int getGoldCorefClusterID() {
return goldCorefClusterID_;
}
public static final int COREFCLUSTERID_FIELD_NUMBER = 15;
private int corefClusterID_;
/**
* optional int32 corefClusterID = 15;
*/
public boolean hasCorefClusterID() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* optional int32 corefClusterID = 15;
*/
public int getCorefClusterID() {
return corefClusterID_;
}
public static final int MENTIONNUM_FIELD_NUMBER = 16;
private int mentionNum_;
/**
* optional uint32 mentionNum = 16;
*/
public boolean hasMentionNum() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* optional uint32 mentionNum = 16;
*/
public int getMentionNum() {
return mentionNum_;
}
public static final int SENTNUM_FIELD_NUMBER = 17;
private int sentNum_;
/**
* optional uint32 sentNum = 17;
*/
public boolean hasSentNum() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* optional uint32 sentNum = 17;
*/
public int getSentNum() {
return sentNum_;
}
public static final int UTTER_FIELD_NUMBER = 18;
private int utter_;
/**
* optional uint32 utter = 18;
*/
public boolean hasUtter() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* optional uint32 utter = 18;
*/
public int getUtter() {
return utter_;
}
public static final int PARAGRAPH_FIELD_NUMBER = 19;
private int paragraph_;
/**
* optional uint32 paragraph = 19;
*/
public boolean hasParagraph() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
* optional uint32 paragraph = 19;
*/
public int getParagraph() {
return paragraph_;
}
public static final int ISSUBJECT_FIELD_NUMBER = 20;
private boolean isSubject_;
/**
* optional bool isSubject = 20;
*/
public boolean hasIsSubject() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
* optional bool isSubject = 20;
*/
public boolean getIsSubject() {
return isSubject_;
}
public static final int ISDIRECTOBJECT_FIELD_NUMBER = 21;
private boolean isDirectObject_;
/**
* optional bool isDirectObject = 21;
*/
public boolean hasIsDirectObject() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
* optional bool isDirectObject = 21;
*/
public boolean getIsDirectObject() {
return isDirectObject_;
}
public static final int ISINDIRECTOBJECT_FIELD_NUMBER = 22;
private boolean isIndirectObject_;
/**
* optional bool isIndirectObject = 22;
*/
public boolean hasIsIndirectObject() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
* optional bool isIndirectObject = 22;
*/
public boolean getIsIndirectObject() {
return isIndirectObject_;
}
public static final int ISPREPOSITIONOBJECT_FIELD_NUMBER = 23;
private boolean isPrepositionObject_;
/**
* optional bool isPrepositionObject = 23;
*/
public boolean hasIsPrepositionObject() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
* optional bool isPrepositionObject = 23;
*/
public boolean getIsPrepositionObject() {
return isPrepositionObject_;
}
public static final int HASTWIN_FIELD_NUMBER = 24;
private boolean hasTwin_;
/**
* optional bool hasTwin = 24;
*/
public boolean hasHasTwin() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
* optional bool hasTwin = 24;
*/
public boolean getHasTwin() {
return hasTwin_;
}
public static final int GENERIC_FIELD_NUMBER = 25;
private boolean generic_;
/**
* optional bool generic = 25;
*/
public boolean hasGeneric() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
* optional bool generic = 25;
*/
public boolean getGeneric() {
return generic_;
}
public static final int ISSINGLETON_FIELD_NUMBER = 26;
private boolean isSingleton_;
/**
* optional bool isSingleton = 26;
*/
public boolean hasIsSingleton() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
* optional bool isSingleton = 26;
*/
public boolean getIsSingleton() {
return isSingleton_;
}
public static final int HASBASICDEPENDENCY_FIELD_NUMBER = 27;
private boolean hasBasicDependency_;
/**
* optional bool hasBasicDependency = 27;
*/
public boolean hasHasBasicDependency() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
* optional bool hasBasicDependency = 27;
*/
public boolean getHasBasicDependency() {
return hasBasicDependency_;
}
public static final int HASENHANCEDDEPENEDNCY_FIELD_NUMBER = 28;
private boolean hasEnhancedDepenedncy_;
/**
* optional bool hasEnhancedDepenedncy = 28;
*/
public boolean hasHasEnhancedDepenedncy() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
* optional bool hasEnhancedDepenedncy = 28;
*/
public boolean getHasEnhancedDepenedncy() {
return hasEnhancedDepenedncy_;
}
public static final int HASCONTEXTPARSETREE_FIELD_NUMBER = 29;
private boolean hasContextParseTree_;
/**
* optional bool hasContextParseTree = 29;
*/
public boolean hasHasContextParseTree() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
* optional bool hasContextParseTree = 29;
*/
public boolean getHasContextParseTree() {
return hasContextParseTree_;
}
public static final int HEADINDEXEDWORD_FIELD_NUMBER = 30;
private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headIndexedWord_;
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30;
*/
public boolean hasHeadIndexedWord() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadIndexedWord() {
return headIndexedWord_;
}
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndexedWordOrBuilder() {
return headIndexedWord_;
}
public static final int DEPENDINGVERB_FIELD_NUMBER = 31;
private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord dependingVerb_;
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31;
*/
public boolean hasDependingVerb() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDependingVerb() {
return dependingVerb_;
}
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDependingVerbOrBuilder() {
return dependingVerb_;
}
public static final int HEADWORD_FIELD_NUMBER = 32;
private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headWord_;
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32;
*/
public boolean hasHeadWord() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadWord() {
return headWord_;
}
/**
* optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordOrBuilder() {
return headWord_;
}
public static final int SPEAKERINFO_FIELD_NUMBER = 33;
private edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo speakerInfo_;
/**
* optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33;
*/
public boolean hasSpeakerInfo() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
* optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getSpeakerInfo() {
return speakerInfo_;
}
/**
* optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerInfoOrBuilder() {
return speakerInfo_;
}
public static final int SENTENCEWORDS_FIELD_NUMBER = 50;
private java.util.List sentenceWords_;
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
public java.util.List getSentenceWordsList() {
return sentenceWords_;
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
public java.util.List
getSentenceWordsOrBuilderList() {
return sentenceWords_;
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
public int getSentenceWordsCount() {
return sentenceWords_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getSentenceWords(int index) {
return sentenceWords_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getSentenceWordsOrBuilder(
int index) {
return sentenceWords_.get(index);
}
public static final int ORIGINALSPAN_FIELD_NUMBER = 51;
private java.util.List originalSpan_;
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
public java.util.List getOriginalSpanList() {
return originalSpan_;
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
public java.util.List
getOriginalSpanOrBuilderList() {
return originalSpan_;
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
public int getOriginalSpanCount() {
return originalSpan_.size();
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getOriginalSpan(int index) {
return originalSpan_.get(index);
}
/**
* repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51;
*/
public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBuilder(
int index) {
return originalSpan_.get(index);
}
public static final int DEPENDENTS_FIELD_NUMBER = 52;
private com.google.protobuf.LazyStringList dependents_;
/**
* repeated string dependents = 52;
*/
public com.google.protobuf.ProtocolStringList
getDependentsList() {
return dependents_;
}
/**
* repeated string dependents = 52;
*/
public int getDependentsCount() {
return dependents_.size();
}
/**
* repeated string dependents = 52;
*/
public java.lang.String getDependents(int index) {
return dependents_.get(index);
}
/**
* repeated string dependents = 52;
*/
public com.google.protobuf.ByteString
getDependentsBytes(int index) {
return dependents_.getByteString(index);
}
public static final int PREPROCESSEDTERMS_FIELD_NUMBER = 53;
private com.google.protobuf.LazyStringList preprocessedTerms_;
/**
* repeated string preprocessedTerms = 53;
*/
public com.google.protobuf.ProtocolStringList
getPreprocessedTermsList() {
return preprocessedTerms_;
}
/**
* repeated string preprocessedTerms = 53;
*/
public int getPreprocessedTermsCount() {
return preprocessedTerms_.size();
}
/**
* repeated string preprocessedTerms = 53;
*/
public java.lang.String getPreprocessedTerms(int index) {
return preprocessedTerms_.get(index);
}
/**
* repeated string preprocessedTerms = 53;
*/
public com.google.protobuf.ByteString
getPreprocessedTermsBytes(int index) {
return preprocessedTerms_.getByteString(index);
}
public static final int APPOSITIONS_FIELD_NUMBER = 54;
private java.util.List appositions_;
/**
*