All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.pipeline.CoreNLPProtos Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.5.7
Show newest version
// 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_; /** * repeated int32 appositions = 54; */ public java.util.List getAppositionsList() { return appositions_; } /** * repeated int32 appositions = 54; */ public int getAppositionsCount() { return appositions_.size(); } /** * repeated int32 appositions = 54; */ public int getAppositions(int index) { return appositions_.get(index); } public static final int PREDICATENOMINATIVES_FIELD_NUMBER = 55; private java.util.List predicateNominatives_; /** * repeated int32 predicateNominatives = 55; */ public java.util.List getPredicateNominativesList() { return predicateNominatives_; } /** * repeated int32 predicateNominatives = 55; */ public int getPredicateNominativesCount() { return predicateNominatives_.size(); } /** * repeated int32 predicateNominatives = 55; */ public int getPredicateNominatives(int index) { return predicateNominatives_.get(index); } public static final int RELATIVEPRONOUNS_FIELD_NUMBER = 56; private java.util.List relativePronouns_; /** * repeated int32 relativePronouns = 56; */ public java.util.List getRelativePronounsList() { return relativePronouns_; } /** * repeated int32 relativePronouns = 56; */ public int getRelativePronounsCount() { return relativePronouns_.size(); } /** * repeated int32 relativePronouns = 56; */ public int getRelativePronouns(int index) { return relativePronouns_.get(index); } public static final int LISTMEMBERS_FIELD_NUMBER = 57; private java.util.List listMembers_; /** * repeated int32 listMembers = 57; */ public java.util.List getListMembersList() { return listMembers_; } /** * repeated int32 listMembers = 57; */ public int getListMembersCount() { return listMembers_.size(); } /** * repeated int32 listMembers = 57; */ public int getListMembers(int index) { return listMembers_.get(index); } public static final int BELONGTOLISTS_FIELD_NUMBER = 58; private java.util.List belongToLists_; /** * repeated int32 belongToLists = 58; */ public java.util.List getBelongToListsList() { return belongToLists_; } /** * repeated int32 belongToLists = 58; */ public int getBelongToListsCount() { return belongToLists_.size(); } /** * repeated int32 belongToLists = 58; */ public int getBelongToLists(int index) { return belongToLists_.get(index); } private void initFields() { mentionID_ = 0; mentionType_ = ""; number_ = ""; gender_ = ""; animacy_ = ""; person_ = ""; startIndex_ = 0; endIndex_ = 0; headIndex_ = 0; headString_ = ""; nerString_ = ""; originalRef_ = 0; goldCorefClusterID_ = 0; corefClusterID_ = 0; mentionNum_ = 0; sentNum_ = 0; utter_ = 0; paragraph_ = 0; isSubject_ = false; isDirectObject_ = false; isIndirectObject_ = false; isPrepositionObject_ = false; hasTwin_ = false; generic_ = false; isSingleton_ = false; hasBasicDependency_ = false; hasEnhancedDepenedncy_ = false; hasContextParseTree_ = false; headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); sentenceWords_ = java.util.Collections.emptyList(); originalSpan_ = java.util.Collections.emptyList(); dependents_ = com.google.protobuf.LazyStringArrayList.EMPTY; preprocessedTerms_ = com.google.protobuf.LazyStringArrayList.EMPTY; appositions_ = java.util.Collections.emptyList(); predicateNominatives_ = java.util.Collections.emptyList(); relativePronouns_ = java.util.Collections.emptyList(); listMembers_ = java.util.Collections.emptyList(); belongToLists_ = 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; 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.writeBytes(6, getPersonBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, startIndex_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(9, endIndex_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(10, headIndex_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(11, getHeadStringBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(12, getNerStringBytes()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(13, originalRef_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(14, goldCorefClusterID_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(15, corefClusterID_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeUInt32(16, mentionNum_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeUInt32(17, sentNum_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeUInt32(18, utter_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeUInt32(19, paragraph_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeBool(20, isSubject_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeBool(21, isDirectObject_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeBool(22, isIndirectObject_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeBool(23, isPrepositionObject_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeBool(24, hasTwin_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeBool(25, generic_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeBool(26, isSingleton_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeBool(27, hasBasicDependency_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeBool(28, hasEnhancedDepenedncy_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeBool(29, hasContextParseTree_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeMessage(30, headIndexedWord_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeMessage(31, dependingVerb_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeMessage(32, headWord_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { output.writeMessage(33, speakerInfo_); } for (int i = 0; i < sentenceWords_.size(); i++) { output.writeMessage(50, sentenceWords_.get(i)); } for (int i = 0; i < originalSpan_.size(); i++) { output.writeMessage(51, originalSpan_.get(i)); } for (int i = 0; i < dependents_.size(); i++) { output.writeBytes(52, dependents_.getByteString(i)); } for (int i = 0; i < preprocessedTerms_.size(); i++) { output.writeBytes(53, preprocessedTerms_.getByteString(i)); } for (int i = 0; i < appositions_.size(); i++) { output.writeInt32(54, appositions_.get(i)); } for (int i = 0; i < predicateNominatives_.size(); i++) { output.writeInt32(55, predicateNominatives_.get(i)); } for (int i = 0; i < relativePronouns_.size(); i++) { output.writeInt32(56, relativePronouns_.get(i)); } for (int i = 0; i < listMembers_.size(); i++) { output.writeInt32(57, listMembers_.get(i)); } for (int i = 0; i < belongToLists_.size(); i++) { output.writeInt32(58, belongToLists_.get(i)); } 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 .computeBytesSize(6, getPersonBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, startIndex_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, endIndex_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, headIndex_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getHeadStringBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, getNerStringBytes()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, originalRef_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, goldCorefClusterID_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, corefClusterID_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(16, mentionNum_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(17, sentNum_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(18, utter_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(19, paragraph_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, isSubject_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, isDirectObject_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(22, isIndirectObject_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(23, isPrepositionObject_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, hasTwin_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(25, generic_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(26, isSingleton_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(27, hasBasicDependency_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(28, hasEnhancedDepenedncy_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(29, hasContextParseTree_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, headIndexedWord_); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, dependingVerb_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, headWord_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, speakerInfo_); } for (int i = 0; i < sentenceWords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(50, sentenceWords_.get(i)); } for (int i = 0; i < originalSpan_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(51, originalSpan_.get(i)); } { int dataSize = 0; for (int i = 0; i < dependents_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(dependents_.getByteString(i)); } size += dataSize; size += 2 * getDependentsList().size(); } { int dataSize = 0; for (int i = 0; i < preprocessedTerms_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(preprocessedTerms_.getByteString(i)); } size += dataSize; size += 2 * getPreprocessedTermsList().size(); } { int dataSize = 0; for (int i = 0; i < appositions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(appositions_.get(i)); } size += dataSize; size += 2 * getAppositionsList().size(); } { int dataSize = 0; for (int i = 0; i < predicateNominatives_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(predicateNominatives_.get(i)); } size += dataSize; size += 2 * getPredicateNominativesList().size(); } { int dataSize = 0; for (int i = 0; i < relativePronouns_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(relativePronouns_.get(i)); } size += dataSize; size += 2 * getRelativePronounsList().size(); } { int dataSize = 0; for (int i = 0; i < listMembers_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(listMembers_.get(i)); } size += dataSize; size += 2 * getListMembersList().size(); } { int dataSize = 0; for (int i = 0; i < belongToLists_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(belongToLists_.get(i)); } size += dataSize; size += 2 * getBelongToListsList().size(); } 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.Mention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention 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.Mention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention 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.Mention parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention 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.Mention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention 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.Mention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention 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.Mention 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.Mention} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Mention) edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder { 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); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getHeadIndexedWordFieldBuilder(); getDependingVerbFieldBuilder(); getHeadWordFieldBuilder(); getSpeakerInfoFieldBuilder(); getSentenceWordsFieldBuilder(); getOriginalSpanFieldBuilder(); } } 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); person_ = ""; bitField0_ = (bitField0_ & ~0x00000020); startIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000040); endIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000080); headIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000100); headString_ = ""; bitField0_ = (bitField0_ & ~0x00000200); nerString_ = ""; bitField0_ = (bitField0_ & ~0x00000400); originalRef_ = 0; bitField0_ = (bitField0_ & ~0x00000800); goldCorefClusterID_ = 0; bitField0_ = (bitField0_ & ~0x00001000); corefClusterID_ = 0; bitField0_ = (bitField0_ & ~0x00002000); mentionNum_ = 0; bitField0_ = (bitField0_ & ~0x00004000); sentNum_ = 0; bitField0_ = (bitField0_ & ~0x00008000); utter_ = 0; bitField0_ = (bitField0_ & ~0x00010000); paragraph_ = 0; bitField0_ = (bitField0_ & ~0x00020000); isSubject_ = false; bitField0_ = (bitField0_ & ~0x00040000); isDirectObject_ = false; bitField0_ = (bitField0_ & ~0x00080000); isIndirectObject_ = false; bitField0_ = (bitField0_ & ~0x00100000); isPrepositionObject_ = false; bitField0_ = (bitField0_ & ~0x00200000); hasTwin_ = false; bitField0_ = (bitField0_ & ~0x00400000); generic_ = false; bitField0_ = (bitField0_ & ~0x00800000); isSingleton_ = false; bitField0_ = (bitField0_ & ~0x01000000); hasBasicDependency_ = false; bitField0_ = (bitField0_ & ~0x02000000); hasEnhancedDepenedncy_ = false; bitField0_ = (bitField0_ & ~0x04000000); hasContextParseTree_ = false; bitField0_ = (bitField0_ & ~0x08000000); if (headIndexedWordBuilder_ == null) { headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); } else { headIndexedWordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); if (dependingVerbBuilder_ == null) { dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); } else { dependingVerbBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x20000000); if (headWordBuilder_ == null) { headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); } else { headWordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x40000000); if (speakerInfoBuilder_ == null) { speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); } else { speakerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x80000000); if (sentenceWordsBuilder_ == null) { sentenceWords_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000001); } else { sentenceWordsBuilder_.clear(); } if (originalSpanBuilder_ == null) { originalSpan_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000002); } else { originalSpanBuilder_.clear(); } dependents_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000004); preprocessedTerms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000008); appositions_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000010); predicateNominatives_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000020); relativePronouns_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000040); listMembers_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000080); belongToLists_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~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_Mention_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Mention result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Mention result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Mention(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; 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.person_ = person_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.startIndex_ = startIndex_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.endIndex_ = endIndex_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.headIndex_ = headIndex_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.headString_ = headString_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.nerString_ = nerString_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.originalRef_ = originalRef_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.goldCorefClusterID_ = goldCorefClusterID_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.corefClusterID_ = corefClusterID_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.mentionNum_ = mentionNum_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.sentNum_ = sentNum_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.utter_ = utter_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.paragraph_ = paragraph_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.isSubject_ = isSubject_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } result.isDirectObject_ = isDirectObject_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } result.isIndirectObject_ = isIndirectObject_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } result.isPrepositionObject_ = isPrepositionObject_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } result.hasTwin_ = hasTwin_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } result.generic_ = generic_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } result.isSingleton_ = isSingleton_; if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } result.hasBasicDependency_ = hasBasicDependency_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } result.hasEnhancedDepenedncy_ = hasEnhancedDepenedncy_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x08000000; } result.hasContextParseTree_ = hasContextParseTree_; if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x10000000; } if (headIndexedWordBuilder_ == null) { result.headIndexedWord_ = headIndexedWord_; } else { result.headIndexedWord_ = headIndexedWordBuilder_.build(); } if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x20000000; } if (dependingVerbBuilder_ == null) { result.dependingVerb_ = dependingVerb_; } else { result.dependingVerb_ = dependingVerbBuilder_.build(); } if (((from_bitField0_ & 0x40000000) == 0x40000000)) { to_bitField0_ |= 0x40000000; } if (headWordBuilder_ == null) { result.headWord_ = headWord_; } else { result.headWord_ = headWordBuilder_.build(); } if (((from_bitField0_ & 0x80000000) == 0x80000000)) { to_bitField0_ |= 0x80000000; } if (speakerInfoBuilder_ == null) { result.speakerInfo_ = speakerInfo_; } else { result.speakerInfo_ = speakerInfoBuilder_.build(); } if (sentenceWordsBuilder_ == null) { if (((bitField1_ & 0x00000001) == 0x00000001)) { sentenceWords_ = java.util.Collections.unmodifiableList(sentenceWords_); bitField1_ = (bitField1_ & ~0x00000001); } result.sentenceWords_ = sentenceWords_; } else { result.sentenceWords_ = sentenceWordsBuilder_.build(); } if (originalSpanBuilder_ == null) { if (((bitField1_ & 0x00000002) == 0x00000002)) { originalSpan_ = java.util.Collections.unmodifiableList(originalSpan_); bitField1_ = (bitField1_ & ~0x00000002); } result.originalSpan_ = originalSpan_; } else { result.originalSpan_ = originalSpanBuilder_.build(); } if (((bitField1_ & 0x00000004) == 0x00000004)) { dependents_ = dependents_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00000004); } result.dependents_ = dependents_; if (((bitField1_ & 0x00000008) == 0x00000008)) { preprocessedTerms_ = preprocessedTerms_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00000008); } result.preprocessedTerms_ = preprocessedTerms_; if (((bitField1_ & 0x00000010) == 0x00000010)) { appositions_ = java.util.Collections.unmodifiableList(appositions_); bitField1_ = (bitField1_ & ~0x00000010); } result.appositions_ = appositions_; if (((bitField1_ & 0x00000020) == 0x00000020)) { predicateNominatives_ = java.util.Collections.unmodifiableList(predicateNominatives_); bitField1_ = (bitField1_ & ~0x00000020); } result.predicateNominatives_ = predicateNominatives_; if (((bitField1_ & 0x00000040) == 0x00000040)) { relativePronouns_ = java.util.Collections.unmodifiableList(relativePronouns_); bitField1_ = (bitField1_ & ~0x00000040); } result.relativePronouns_ = relativePronouns_; if (((bitField1_ & 0x00000080) == 0x00000080)) { listMembers_ = java.util.Collections.unmodifiableList(listMembers_); bitField1_ = (bitField1_ & ~0x00000080); } result.listMembers_ = listMembers_; if (((bitField1_ & 0x00000100) == 0x00000100)) { belongToLists_ = java.util.Collections.unmodifiableList(belongToLists_); bitField1_ = (bitField1_ & ~0x00000100); } result.belongToLists_ = belongToLists_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Mention) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Mention)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.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.hasPerson()) { bitField0_ |= 0x00000020; person_ = other.person_; onChanged(); } if (other.hasStartIndex()) { setStartIndex(other.getStartIndex()); } if (other.hasEndIndex()) { setEndIndex(other.getEndIndex()); } if (other.hasHeadIndex()) { setHeadIndex(other.getHeadIndex()); } if (other.hasHeadString()) { bitField0_ |= 0x00000200; headString_ = other.headString_; onChanged(); } if (other.hasNerString()) { bitField0_ |= 0x00000400; nerString_ = other.nerString_; onChanged(); } if (other.hasOriginalRef()) { setOriginalRef(other.getOriginalRef()); } if (other.hasGoldCorefClusterID()) { setGoldCorefClusterID(other.getGoldCorefClusterID()); } if (other.hasCorefClusterID()) { setCorefClusterID(other.getCorefClusterID()); } if (other.hasMentionNum()) { setMentionNum(other.getMentionNum()); } if (other.hasSentNum()) { setSentNum(other.getSentNum()); } if (other.hasUtter()) { setUtter(other.getUtter()); } if (other.hasParagraph()) { setParagraph(other.getParagraph()); } if (other.hasIsSubject()) { setIsSubject(other.getIsSubject()); } if (other.hasIsDirectObject()) { setIsDirectObject(other.getIsDirectObject()); } if (other.hasIsIndirectObject()) { setIsIndirectObject(other.getIsIndirectObject()); } if (other.hasIsPrepositionObject()) { setIsPrepositionObject(other.getIsPrepositionObject()); } if (other.hasHasTwin()) { setHasTwin(other.getHasTwin()); } if (other.hasGeneric()) { setGeneric(other.getGeneric()); } if (other.hasIsSingleton()) { setIsSingleton(other.getIsSingleton()); } if (other.hasHasBasicDependency()) { setHasBasicDependency(other.getHasBasicDependency()); } if (other.hasHasEnhancedDepenedncy()) { setHasEnhancedDepenedncy(other.getHasEnhancedDepenedncy()); } if (other.hasHasContextParseTree()) { setHasContextParseTree(other.getHasContextParseTree()); } if (other.hasHeadIndexedWord()) { mergeHeadIndexedWord(other.getHeadIndexedWord()); } if (other.hasDependingVerb()) { mergeDependingVerb(other.getDependingVerb()); } if (other.hasHeadWord()) { mergeHeadWord(other.getHeadWord()); } if (other.hasSpeakerInfo()) { mergeSpeakerInfo(other.getSpeakerInfo()); } if (sentenceWordsBuilder_ == null) { if (!other.sentenceWords_.isEmpty()) { if (sentenceWords_.isEmpty()) { sentenceWords_ = other.sentenceWords_; bitField1_ = (bitField1_ & ~0x00000001); } else { ensureSentenceWordsIsMutable(); sentenceWords_.addAll(other.sentenceWords_); } onChanged(); } } else { if (!other.sentenceWords_.isEmpty()) { if (sentenceWordsBuilder_.isEmpty()) { sentenceWordsBuilder_.dispose(); sentenceWordsBuilder_ = null; sentenceWords_ = other.sentenceWords_; bitField1_ = (bitField1_ & ~0x00000001); sentenceWordsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSentenceWordsFieldBuilder() : null; } else { sentenceWordsBuilder_.addAllMessages(other.sentenceWords_); } } } if (originalSpanBuilder_ == null) { if (!other.originalSpan_.isEmpty()) { if (originalSpan_.isEmpty()) { originalSpan_ = other.originalSpan_; bitField1_ = (bitField1_ & ~0x00000002); } else { ensureOriginalSpanIsMutable(); originalSpan_.addAll(other.originalSpan_); } onChanged(); } } else { if (!other.originalSpan_.isEmpty()) { if (originalSpanBuilder_.isEmpty()) { originalSpanBuilder_.dispose(); originalSpanBuilder_ = null; originalSpan_ = other.originalSpan_; bitField1_ = (bitField1_ & ~0x00000002); originalSpanBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getOriginalSpanFieldBuilder() : null; } else { originalSpanBuilder_.addAllMessages(other.originalSpan_); } } } if (!other.dependents_.isEmpty()) { if (dependents_.isEmpty()) { dependents_ = other.dependents_; bitField1_ = (bitField1_ & ~0x00000004); } else { ensureDependentsIsMutable(); dependents_.addAll(other.dependents_); } onChanged(); } if (!other.preprocessedTerms_.isEmpty()) { if (preprocessedTerms_.isEmpty()) { preprocessedTerms_ = other.preprocessedTerms_; bitField1_ = (bitField1_ & ~0x00000008); } else { ensurePreprocessedTermsIsMutable(); preprocessedTerms_.addAll(other.preprocessedTerms_); } onChanged(); } if (!other.appositions_.isEmpty()) { if (appositions_.isEmpty()) { appositions_ = other.appositions_; bitField1_ = (bitField1_ & ~0x00000010); } else { ensureAppositionsIsMutable(); appositions_.addAll(other.appositions_); } onChanged(); } if (!other.predicateNominatives_.isEmpty()) { if (predicateNominatives_.isEmpty()) { predicateNominatives_ = other.predicateNominatives_; bitField1_ = (bitField1_ & ~0x00000020); } else { ensurePredicateNominativesIsMutable(); predicateNominatives_.addAll(other.predicateNominatives_); } onChanged(); } if (!other.relativePronouns_.isEmpty()) { if (relativePronouns_.isEmpty()) { relativePronouns_ = other.relativePronouns_; bitField1_ = (bitField1_ & ~0x00000040); } else { ensureRelativePronounsIsMutable(); relativePronouns_.addAll(other.relativePronouns_); } onChanged(); } if (!other.listMembers_.isEmpty()) { if (listMembers_.isEmpty()) { listMembers_ = other.listMembers_; bitField1_ = (bitField1_ & ~0x00000080); } else { ensureListMembersIsMutable(); listMembers_.addAll(other.listMembers_); } onChanged(); } if (!other.belongToLists_.isEmpty()) { if (belongToLists_.isEmpty()) { belongToLists_ = other.belongToLists_; bitField1_ = (bitField1_ & ~0x00000100); } else { ensureBelongToListsIsMutable(); belongToLists_.addAll(other.belongToLists_); } onChanged(); } 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.Mention parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Mention) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; 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 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)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { person_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string person = 6; */ public com.google.protobuf.ByteString getPersonBytes() { java.lang.Object ref = person_; if (ref instanceof 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; } } /** * optional string person = 6; */ public Builder setPerson( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; person_ = value; onChanged(); return this; } /** * optional string person = 6; */ public Builder clearPerson() { bitField0_ = (bitField0_ & ~0x00000020); person_ = getDefaultInstance().getPerson(); onChanged(); return this; } /** * optional string person = 6; */ public Builder setPersonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; person_ = value; onChanged(); return this; } private int startIndex_ ; /** * optional uint32 startIndex = 7; */ public boolean hasStartIndex() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 startIndex = 7; */ public int getStartIndex() { return startIndex_; } /** * optional uint32 startIndex = 7; */ public Builder setStartIndex(int value) { bitField0_ |= 0x00000040; startIndex_ = value; onChanged(); return this; } /** * optional uint32 startIndex = 7; */ public Builder clearStartIndex() { bitField0_ = (bitField0_ & ~0x00000040); startIndex_ = 0; onChanged(); return this; } private int endIndex_ ; /** * optional uint32 endIndex = 9; */ public boolean hasEndIndex() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 endIndex = 9; */ public int getEndIndex() { return endIndex_; } /** * optional uint32 endIndex = 9; */ public Builder setEndIndex(int value) { bitField0_ |= 0x00000080; endIndex_ = value; onChanged(); return this; } /** * optional uint32 endIndex = 9; */ public Builder clearEndIndex() { bitField0_ = (bitField0_ & ~0x00000080); endIndex_ = 0; onChanged(); return this; } private int headIndex_ ; /** * optional uint32 headIndex = 10; */ public boolean hasHeadIndex() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 headIndex = 10; */ public int getHeadIndex() { return headIndex_; } /** * optional uint32 headIndex = 10; */ public Builder setHeadIndex(int value) { bitField0_ |= 0x00000100; headIndex_ = value; onChanged(); return this; } /** * optional uint32 headIndex = 10; */ public Builder clearHeadIndex() { bitField0_ = (bitField0_ & ~0x00000100); headIndex_ = 0; onChanged(); return this; } 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)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { headString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string headString = 11; */ public com.google.protobuf.ByteString getHeadStringBytes() { java.lang.Object ref = headString_; if (ref instanceof 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; } } /** * optional string headString = 11; */ public Builder setHeadString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; headString_ = value; onChanged(); return this; } /** * optional string headString = 11; */ public Builder clearHeadString() { bitField0_ = (bitField0_ & ~0x00000200); headString_ = getDefaultInstance().getHeadString(); onChanged(); return this; } /** * optional string headString = 11; */ public Builder setHeadStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; headString_ = value; onChanged(); return this; } 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)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { nerString_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string nerString = 12; */ public com.google.protobuf.ByteString getNerStringBytes() { java.lang.Object ref = nerString_; if (ref instanceof 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; } } /** * optional string nerString = 12; */ public Builder setNerString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; nerString_ = value; onChanged(); return this; } /** * optional string nerString = 12; */ public Builder clearNerString() { bitField0_ = (bitField0_ & ~0x00000400); nerString_ = getDefaultInstance().getNerString(); onChanged(); return this; } /** * optional string nerString = 12; */ public Builder setNerStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; nerString_ = value; onChanged(); return this; } private int originalRef_ ; /** * optional uint32 originalRef = 13; */ public boolean hasOriginalRef() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional uint32 originalRef = 13; */ public int getOriginalRef() { return originalRef_; } /** * optional uint32 originalRef = 13; */ public Builder setOriginalRef(int value) { bitField0_ |= 0x00000800; originalRef_ = value; onChanged(); return this; } /** * optional uint32 originalRef = 13; */ public Builder clearOriginalRef() { bitField0_ = (bitField0_ & ~0x00000800); originalRef_ = 0; onChanged(); return this; } private int goldCorefClusterID_ ; /** * optional int32 goldCorefClusterID = 14; */ public boolean hasGoldCorefClusterID() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 goldCorefClusterID = 14; */ public int getGoldCorefClusterID() { return goldCorefClusterID_; } /** * optional int32 goldCorefClusterID = 14; */ public Builder setGoldCorefClusterID(int value) { bitField0_ |= 0x00001000; goldCorefClusterID_ = value; onChanged(); return this; } /** * optional int32 goldCorefClusterID = 14; */ public Builder clearGoldCorefClusterID() { bitField0_ = (bitField0_ & ~0x00001000); goldCorefClusterID_ = 0; onChanged(); return this; } private int corefClusterID_ ; /** * optional int32 corefClusterID = 15; */ public boolean hasCorefClusterID() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 corefClusterID = 15; */ public int getCorefClusterID() { return corefClusterID_; } /** * optional int32 corefClusterID = 15; */ public Builder setCorefClusterID(int value) { bitField0_ |= 0x00002000; corefClusterID_ = value; onChanged(); return this; } /** * optional int32 corefClusterID = 15; */ public Builder clearCorefClusterID() { bitField0_ = (bitField0_ & ~0x00002000); corefClusterID_ = 0; onChanged(); return this; } private int mentionNum_ ; /** * optional uint32 mentionNum = 16; */ public boolean hasMentionNum() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional uint32 mentionNum = 16; */ public int getMentionNum() { return mentionNum_; } /** * optional uint32 mentionNum = 16; */ public Builder setMentionNum(int value) { bitField0_ |= 0x00004000; mentionNum_ = value; onChanged(); return this; } /** * optional uint32 mentionNum = 16; */ public Builder clearMentionNum() { bitField0_ = (bitField0_ & ~0x00004000); mentionNum_ = 0; onChanged(); return this; } private int sentNum_ ; /** * optional uint32 sentNum = 17; */ public boolean hasSentNum() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional uint32 sentNum = 17; */ public int getSentNum() { return sentNum_; } /** * optional uint32 sentNum = 17; */ public Builder setSentNum(int value) { bitField0_ |= 0x00008000; sentNum_ = value; onChanged(); return this; } /** * optional uint32 sentNum = 17; */ public Builder clearSentNum() { bitField0_ = (bitField0_ & ~0x00008000); sentNum_ = 0; onChanged(); return this; } private int utter_ ; /** * optional uint32 utter = 18; */ public boolean hasUtter() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional uint32 utter = 18; */ public int getUtter() { return utter_; } /** * optional uint32 utter = 18; */ public Builder setUtter(int value) { bitField0_ |= 0x00010000; utter_ = value; onChanged(); return this; } /** * optional uint32 utter = 18; */ public Builder clearUtter() { bitField0_ = (bitField0_ & ~0x00010000); utter_ = 0; onChanged(); return this; } private int paragraph_ ; /** * optional uint32 paragraph = 19; */ public boolean hasParagraph() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional uint32 paragraph = 19; */ public int getParagraph() { return paragraph_; } /** * optional uint32 paragraph = 19; */ public Builder setParagraph(int value) { bitField0_ |= 0x00020000; paragraph_ = value; onChanged(); return this; } /** * optional uint32 paragraph = 19; */ public Builder clearParagraph() { bitField0_ = (bitField0_ & ~0x00020000); paragraph_ = 0; onChanged(); return this; } private boolean isSubject_ ; /** * optional bool isSubject = 20; */ public boolean hasIsSubject() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional bool isSubject = 20; */ public boolean getIsSubject() { return isSubject_; } /** * optional bool isSubject = 20; */ public Builder setIsSubject(boolean value) { bitField0_ |= 0x00040000; isSubject_ = value; onChanged(); return this; } /** * optional bool isSubject = 20; */ public Builder clearIsSubject() { bitField0_ = (bitField0_ & ~0x00040000); isSubject_ = false; onChanged(); return this; } private boolean isDirectObject_ ; /** * optional bool isDirectObject = 21; */ public boolean hasIsDirectObject() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional bool isDirectObject = 21; */ public boolean getIsDirectObject() { return isDirectObject_; } /** * optional bool isDirectObject = 21; */ public Builder setIsDirectObject(boolean value) { bitField0_ |= 0x00080000; isDirectObject_ = value; onChanged(); return this; } /** * optional bool isDirectObject = 21; */ public Builder clearIsDirectObject() { bitField0_ = (bitField0_ & ~0x00080000); isDirectObject_ = false; onChanged(); return this; } private boolean isIndirectObject_ ; /** * optional bool isIndirectObject = 22; */ public boolean hasIsIndirectObject() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional bool isIndirectObject = 22; */ public boolean getIsIndirectObject() { return isIndirectObject_; } /** * optional bool isIndirectObject = 22; */ public Builder setIsIndirectObject(boolean value) { bitField0_ |= 0x00100000; isIndirectObject_ = value; onChanged(); return this; } /** * optional bool isIndirectObject = 22; */ public Builder clearIsIndirectObject() { bitField0_ = (bitField0_ & ~0x00100000); isIndirectObject_ = false; onChanged(); return this; } private boolean isPrepositionObject_ ; /** * optional bool isPrepositionObject = 23; */ public boolean hasIsPrepositionObject() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional bool isPrepositionObject = 23; */ public boolean getIsPrepositionObject() { return isPrepositionObject_; } /** * optional bool isPrepositionObject = 23; */ public Builder setIsPrepositionObject(boolean value) { bitField0_ |= 0x00200000; isPrepositionObject_ = value; onChanged(); return this; } /** * optional bool isPrepositionObject = 23; */ public Builder clearIsPrepositionObject() { bitField0_ = (bitField0_ & ~0x00200000); isPrepositionObject_ = false; onChanged(); return this; } private boolean hasTwin_ ; /** * optional bool hasTwin = 24; */ public boolean hasHasTwin() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional bool hasTwin = 24; */ public boolean getHasTwin() { return hasTwin_; } /** * optional bool hasTwin = 24; */ public Builder setHasTwin(boolean value) { bitField0_ |= 0x00400000; hasTwin_ = value; onChanged(); return this; } /** * optional bool hasTwin = 24; */ public Builder clearHasTwin() { bitField0_ = (bitField0_ & ~0x00400000); hasTwin_ = false; onChanged(); return this; } private boolean generic_ ; /** * optional bool generic = 25; */ public boolean hasGeneric() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional bool generic = 25; */ public boolean getGeneric() { return generic_; } /** * optional bool generic = 25; */ public Builder setGeneric(boolean value) { bitField0_ |= 0x00800000; generic_ = value; onChanged(); return this; } /** * optional bool generic = 25; */ public Builder clearGeneric() { bitField0_ = (bitField0_ & ~0x00800000); generic_ = false; onChanged(); return this; } private boolean isSingleton_ ; /** * optional bool isSingleton = 26; */ public boolean hasIsSingleton() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional bool isSingleton = 26; */ public boolean getIsSingleton() { return isSingleton_; } /** * optional bool isSingleton = 26; */ public Builder setIsSingleton(boolean value) { bitField0_ |= 0x01000000; isSingleton_ = value; onChanged(); return this; } /** * optional bool isSingleton = 26; */ public Builder clearIsSingleton() { bitField0_ = (bitField0_ & ~0x01000000); isSingleton_ = false; onChanged(); return this; } private boolean hasBasicDependency_ ; /** * optional bool hasBasicDependency = 27; */ public boolean hasHasBasicDependency() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional bool hasBasicDependency = 27; */ public boolean getHasBasicDependency() { return hasBasicDependency_; } /** * optional bool hasBasicDependency = 27; */ public Builder setHasBasicDependency(boolean value) { bitField0_ |= 0x02000000; hasBasicDependency_ = value; onChanged(); return this; } /** * optional bool hasBasicDependency = 27; */ public Builder clearHasBasicDependency() { bitField0_ = (bitField0_ & ~0x02000000); hasBasicDependency_ = false; onChanged(); return this; } private boolean hasEnhancedDepenedncy_ ; /** * optional bool hasEnhancedDepenedncy = 28; */ public boolean hasHasEnhancedDepenedncy() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional bool hasEnhancedDepenedncy = 28; */ public boolean getHasEnhancedDepenedncy() { return hasEnhancedDepenedncy_; } /** * optional bool hasEnhancedDepenedncy = 28; */ public Builder setHasEnhancedDepenedncy(boolean value) { bitField0_ |= 0x04000000; hasEnhancedDepenedncy_ = value; onChanged(); return this; } /** * optional bool hasEnhancedDepenedncy = 28; */ public Builder clearHasEnhancedDepenedncy() { bitField0_ = (bitField0_ & ~0x04000000); hasEnhancedDepenedncy_ = false; onChanged(); return this; } private boolean hasContextParseTree_ ; /** * optional bool hasContextParseTree = 29; */ public boolean hasHasContextParseTree() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional bool hasContextParseTree = 29; */ public boolean getHasContextParseTree() { return hasContextParseTree_; } /** * optional bool hasContextParseTree = 29; */ public Builder setHasContextParseTree(boolean value) { bitField0_ |= 0x08000000; hasContextParseTree_ = value; onChanged(); return this; } /** * optional bool hasContextParseTree = 29; */ public Builder clearHasContextParseTree() { bitField0_ = (bitField0_ & ~0x08000000); hasContextParseTree_ = false; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> headIndexedWordBuilder_; /** * 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() { if (headIndexedWordBuilder_ == null) { return headIndexedWord_; } else { return headIndexedWordBuilder_.getMessage(); } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public Builder setHeadIndexedWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (headIndexedWordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headIndexedWord_ = value; onChanged(); } else { headIndexedWordBuilder_.setMessage(value); } bitField0_ |= 0x10000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public Builder setHeadIndexedWord( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (headIndexedWordBuilder_ == null) { headIndexedWord_ = builderForValue.build(); onChanged(); } else { headIndexedWordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x10000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public Builder mergeHeadIndexedWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (headIndexedWordBuilder_ == null) { if (((bitField0_ & 0x10000000) == 0x10000000) && headIndexedWord_ != edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) { headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.newBuilder(headIndexedWord_).mergeFrom(value).buildPartial(); } else { headIndexedWord_ = value; } onChanged(); } else { headIndexedWordBuilder_.mergeFrom(value); } bitField0_ |= 0x10000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public Builder clearHeadIndexedWord() { if (headIndexedWordBuilder_ == null) { headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); onChanged(); } else { headIndexedWordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder getHeadIndexedWordBuilder() { bitField0_ |= 0x10000000; onChanged(); return getHeadIndexedWordFieldBuilder().getBuilder(); } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndexedWordOrBuilder() { if (headIndexedWordBuilder_ != null) { return headIndexedWordBuilder_.getMessageOrBuilder(); } else { return headIndexedWord_; } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> getHeadIndexedWordFieldBuilder() { if (headIndexedWordBuilder_ == null) { headIndexedWordBuilder_ = new com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( getHeadIndexedWord(), getParentForChildren(), isClean()); headIndexedWord_ = null; } return headIndexedWordBuilder_; } private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> dependingVerbBuilder_; /** * 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() { if (dependingVerbBuilder_ == null) { return dependingVerb_; } else { return dependingVerbBuilder_.getMessage(); } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public Builder setDependingVerb(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (dependingVerbBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dependingVerb_ = value; onChanged(); } else { dependingVerbBuilder_.setMessage(value); } bitField0_ |= 0x20000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public Builder setDependingVerb( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (dependingVerbBuilder_ == null) { dependingVerb_ = builderForValue.build(); onChanged(); } else { dependingVerbBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x20000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public Builder mergeDependingVerb(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (dependingVerbBuilder_ == null) { if (((bitField0_ & 0x20000000) == 0x20000000) && dependingVerb_ != edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) { dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.newBuilder(dependingVerb_).mergeFrom(value).buildPartial(); } else { dependingVerb_ = value; } onChanged(); } else { dependingVerbBuilder_.mergeFrom(value); } bitField0_ |= 0x20000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public Builder clearDependingVerb() { if (dependingVerbBuilder_ == null) { dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); onChanged(); } else { dependingVerbBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x20000000); return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder getDependingVerbBuilder() { bitField0_ |= 0x20000000; onChanged(); return getDependingVerbFieldBuilder().getBuilder(); } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDependingVerbOrBuilder() { if (dependingVerbBuilder_ != null) { return dependingVerbBuilder_.getMessageOrBuilder(); } else { return dependingVerb_; } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> getDependingVerbFieldBuilder() { if (dependingVerbBuilder_ == null) { dependingVerbBuilder_ = new com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( getDependingVerb(), getParentForChildren(), isClean()); dependingVerb_ = null; } return dependingVerbBuilder_; } private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> headWordBuilder_; /** * 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() { if (headWordBuilder_ == null) { return headWord_; } else { return headWordBuilder_.getMessage(); } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public Builder setHeadWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (headWordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headWord_ = value; onChanged(); } else { headWordBuilder_.setMessage(value); } bitField0_ |= 0x40000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public Builder setHeadWord( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (headWordBuilder_ == null) { headWord_ = builderForValue.build(); onChanged(); } else { headWordBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x40000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public Builder mergeHeadWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (headWordBuilder_ == null) { if (((bitField0_ & 0x40000000) == 0x40000000) && headWord_ != edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) { headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.newBuilder(headWord_).mergeFrom(value).buildPartial(); } else { headWord_ = value; } onChanged(); } else { headWordBuilder_.mergeFrom(value); } bitField0_ |= 0x40000000; return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public Builder clearHeadWord() { if (headWordBuilder_ == null) { headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); onChanged(); } else { headWordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x40000000); return this; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder getHeadWordBuilder() { bitField0_ |= 0x40000000; onChanged(); return getHeadWordFieldBuilder().getBuilder(); } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordOrBuilder() { if (headWordBuilder_ != null) { return headWordBuilder_.getMessageOrBuilder(); } else { return headWord_; } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> getHeadWordFieldBuilder() { if (headWordBuilder_ == null) { headWordBuilder_ = new com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( getHeadWord(), getParentForChildren(), isClean()); headWord_ = null; } return headWordBuilder_; } private edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder> speakerInfoBuilder_; /** * 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() { if (speakerInfoBuilder_ == null) { return speakerInfo_; } else { return speakerInfoBuilder_.getMessage(); } } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public Builder setSpeakerInfo(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo value) { if (speakerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } speakerInfo_ = value; onChanged(); } else { speakerInfoBuilder_.setMessage(value); } bitField0_ |= 0x80000000; return this; } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public Builder setSpeakerInfo( edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder builderForValue) { if (speakerInfoBuilder_ == null) { speakerInfo_ = builderForValue.build(); onChanged(); } else { speakerInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x80000000; return this; } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public Builder mergeSpeakerInfo(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo value) { if (speakerInfoBuilder_ == null) { if (((bitField0_ & 0x80000000) == 0x80000000) && speakerInfo_ != edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance()) { speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.newBuilder(speakerInfo_).mergeFrom(value).buildPartial(); } else { speakerInfo_ = value; } onChanged(); } else { speakerInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x80000000; return this; } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public Builder clearSpeakerInfo() { if (speakerInfoBuilder_ == null) { speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); onChanged(); } else { speakerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x80000000); return this; } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder getSpeakerInfoBuilder() { bitField0_ |= 0x80000000; onChanged(); return getSpeakerInfoFieldBuilder().getBuilder(); } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerInfoOrBuilder() { if (speakerInfoBuilder_ != null) { return speakerInfoBuilder_.getMessageOrBuilder(); } else { return speakerInfo_; } } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder> getSpeakerInfoFieldBuilder() { if (speakerInfoBuilder_ == null) { speakerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder>( getSpeakerInfo(), getParentForChildren(), isClean()); speakerInfo_ = null; } return speakerInfoBuilder_; } private java.util.List sentenceWords_ = java.util.Collections.emptyList(); private void ensureSentenceWordsIsMutable() { if (!((bitField1_ & 0x00000001) == 0x00000001)) { sentenceWords_ = new java.util.ArrayList(sentenceWords_); bitField1_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> sentenceWordsBuilder_; /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public java.util.List getSentenceWordsList() { if (sentenceWordsBuilder_ == null) { return java.util.Collections.unmodifiableList(sentenceWords_); } else { return sentenceWordsBuilder_.getMessageList(); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public int getSentenceWordsCount() { if (sentenceWordsBuilder_ == null) { return sentenceWords_.size(); } else { return sentenceWordsBuilder_.getCount(); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getSentenceWords(int index) { if (sentenceWordsBuilder_ == null) { return sentenceWords_.get(index); } else { return sentenceWordsBuilder_.getMessage(index); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder setSentenceWords( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (sentenceWordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSentenceWordsIsMutable(); sentenceWords_.set(index, value); onChanged(); } else { sentenceWordsBuilder_.setMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder setSentenceWords( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (sentenceWordsBuilder_ == null) { ensureSentenceWordsIsMutable(); sentenceWords_.set(index, builderForValue.build()); onChanged(); } else { sentenceWordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder addSentenceWords(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (sentenceWordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSentenceWordsIsMutable(); sentenceWords_.add(value); onChanged(); } else { sentenceWordsBuilder_.addMessage(value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder addSentenceWords( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (sentenceWordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSentenceWordsIsMutable(); sentenceWords_.add(index, value); onChanged(); } else { sentenceWordsBuilder_.addMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder addSentenceWords( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (sentenceWordsBuilder_ == null) { ensureSentenceWordsIsMutable(); sentenceWords_.add(builderForValue.build()); onChanged(); } else { sentenceWordsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder addSentenceWords( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (sentenceWordsBuilder_ == null) { ensureSentenceWordsIsMutable(); sentenceWords_.add(index, builderForValue.build()); onChanged(); } else { sentenceWordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder addAllSentenceWords( java.lang.Iterable values) { if (sentenceWordsBuilder_ == null) { ensureSentenceWordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sentenceWords_); onChanged(); } else { sentenceWordsBuilder_.addAllMessages(values); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder clearSentenceWords() { if (sentenceWordsBuilder_ == null) { sentenceWords_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000001); onChanged(); } else { sentenceWordsBuilder_.clear(); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public Builder removeSentenceWords(int index) { if (sentenceWordsBuilder_ == null) { ensureSentenceWordsIsMutable(); sentenceWords_.remove(index); onChanged(); } else { sentenceWordsBuilder_.remove(index); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder getSentenceWordsBuilder( int index) { return getSentenceWordsFieldBuilder().getBuilder(index); } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getSentenceWordsOrBuilder( int index) { if (sentenceWordsBuilder_ == null) { return sentenceWords_.get(index); } else { return sentenceWordsBuilder_.getMessageOrBuilder(index); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public java.util.List getSentenceWordsOrBuilderList() { if (sentenceWordsBuilder_ != null) { return sentenceWordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sentenceWords_); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addSentenceWordsBuilder() { return getSentenceWordsFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addSentenceWordsBuilder( int index) { return getSentenceWordsFieldBuilder().addBuilder( index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ public java.util.List getSentenceWordsBuilderList() { return getSentenceWordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> getSentenceWordsFieldBuilder() { if (sentenceWordsBuilder_ == null) { sentenceWordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( sentenceWords_, ((bitField1_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); sentenceWords_ = null; } return sentenceWordsBuilder_; } private java.util.List originalSpan_ = java.util.Collections.emptyList(); private void ensureOriginalSpanIsMutable() { if (!((bitField1_ & 0x00000002) == 0x00000002)) { originalSpan_ = new java.util.ArrayList(originalSpan_); bitField1_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> originalSpanBuilder_; /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public java.util.List getOriginalSpanList() { if (originalSpanBuilder_ == null) { return java.util.Collections.unmodifiableList(originalSpan_); } else { return originalSpanBuilder_.getMessageList(); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public int getOriginalSpanCount() { if (originalSpanBuilder_ == null) { return originalSpan_.size(); } else { return originalSpanBuilder_.getCount(); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getOriginalSpan(int index) { if (originalSpanBuilder_ == null) { return originalSpan_.get(index); } else { return originalSpanBuilder_.getMessage(index); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder setOriginalSpan( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (originalSpanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOriginalSpanIsMutable(); originalSpan_.set(index, value); onChanged(); } else { originalSpanBuilder_.setMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder setOriginalSpan( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (originalSpanBuilder_ == null) { ensureOriginalSpanIsMutable(); originalSpan_.set(index, builderForValue.build()); onChanged(); } else { originalSpanBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder addOriginalSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (originalSpanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOriginalSpanIsMutable(); originalSpan_.add(value); onChanged(); } else { originalSpanBuilder_.addMessage(value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder addOriginalSpan( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (originalSpanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOriginalSpanIsMutable(); originalSpan_.add(index, value); onChanged(); } else { originalSpanBuilder_.addMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder addOriginalSpan( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (originalSpanBuilder_ == null) { ensureOriginalSpanIsMutable(); originalSpan_.add(builderForValue.build()); onChanged(); } else { originalSpanBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder addOriginalSpan( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder builderForValue) { if (originalSpanBuilder_ == null) { ensureOriginalSpanIsMutable(); originalSpan_.add(index, builderForValue.build()); onChanged(); } else { originalSpanBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder addAllOriginalSpan( java.lang.Iterable values) { if (originalSpanBuilder_ == null) { ensureOriginalSpanIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, originalSpan_); onChanged(); } else { originalSpanBuilder_.addAllMessages(values); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder clearOriginalSpan() { if (originalSpanBuilder_ == null) { originalSpan_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000002); onChanged(); } else { originalSpanBuilder_.clear(); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public Builder removeOriginalSpan(int index) { if (originalSpanBuilder_ == null) { ensureOriginalSpanIsMutable(); originalSpan_.remove(index); onChanged(); } else { originalSpanBuilder_.remove(index); } return this; } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder getOriginalSpanBuilder( int index) { return getOriginalSpanFieldBuilder().getBuilder(index); } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBuilder( int index) { if (originalSpanBuilder_ == null) { return originalSpan_.get(index); } else { return originalSpanBuilder_.getMessageOrBuilder(index); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public java.util.List getOriginalSpanOrBuilderList() { if (originalSpanBuilder_ != null) { return originalSpanBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(originalSpan_); } } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addOriginalSpanBuilder() { return getOriginalSpanFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addOriginalSpanBuilder( int index) { return getOriginalSpanFieldBuilder().addBuilder( index, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ public java.util.List getOriginalSpanBuilderList() { return getOriginalSpanFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> getOriginalSpanFieldBuilder() { if (originalSpanBuilder_ == null) { originalSpanBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( originalSpan_, ((bitField1_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); originalSpan_ = null; } return originalSpanBuilder_; } private com.google.protobuf.LazyStringList dependents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDependentsIsMutable() { if (!((bitField1_ & 0x00000004) == 0x00000004)) { dependents_ = new com.google.protobuf.LazyStringArrayList(dependents_); bitField1_ |= 0x00000004; } } /** * repeated string dependents = 52; */ public com.google.protobuf.ProtocolStringList getDependentsList() { return dependents_.getUnmodifiableView(); } /** * 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); } /** * repeated string dependents = 52; */ public Builder setDependents( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependentsIsMutable(); dependents_.set(index, value); onChanged(); return this; } /** * repeated string dependents = 52; */ public Builder addDependents( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDependentsIsMutable(); dependents_.add(value); onChanged(); return this; } /** * repeated string dependents = 52; */ public Builder addAllDependents( java.lang.Iterable values) { ensureDependentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dependents_); onChanged(); return this; } /** * repeated string dependents = 52; */ public Builder clearDependents() { dependents_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } /** * repeated string dependents = 52; */ public Builder addDependentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDependentsIsMutable(); dependents_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList preprocessedTerms_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePreprocessedTermsIsMutable() { if (!((bitField1_ & 0x00000008) == 0x00000008)) { preprocessedTerms_ = new com.google.protobuf.LazyStringArrayList(preprocessedTerms_); bitField1_ |= 0x00000008; } } /** * repeated string preprocessedTerms = 53; */ public com.google.protobuf.ProtocolStringList getPreprocessedTermsList() { return preprocessedTerms_.getUnmodifiableView(); } /** * 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); } /** * repeated string preprocessedTerms = 53; */ public Builder setPreprocessedTerms( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreprocessedTermsIsMutable(); preprocessedTerms_.set(index, value); onChanged(); return this; } /** * repeated string preprocessedTerms = 53; */ public Builder addPreprocessedTerms( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreprocessedTermsIsMutable(); preprocessedTerms_.add(value); onChanged(); return this; } /** * repeated string preprocessedTerms = 53; */ public Builder addAllPreprocessedTerms( java.lang.Iterable values) { ensurePreprocessedTermsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preprocessedTerms_); onChanged(); return this; } /** * repeated string preprocessedTerms = 53; */ public Builder clearPreprocessedTerms() { preprocessedTerms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } /** * repeated string preprocessedTerms = 53; */ public Builder addPreprocessedTermsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePreprocessedTermsIsMutable(); preprocessedTerms_.add(value); onChanged(); return this; } private java.util.List appositions_ = java.util.Collections.emptyList(); private void ensureAppositionsIsMutable() { if (!((bitField1_ & 0x00000010) == 0x00000010)) { appositions_ = new java.util.ArrayList(appositions_); bitField1_ |= 0x00000010; } } /** * repeated int32 appositions = 54; */ public java.util.List getAppositionsList() { return java.util.Collections.unmodifiableList(appositions_); } /** * repeated int32 appositions = 54; */ public int getAppositionsCount() { return appositions_.size(); } /** * repeated int32 appositions = 54; */ public int getAppositions(int index) { return appositions_.get(index); } /** * repeated int32 appositions = 54; */ public Builder setAppositions( int index, int value) { ensureAppositionsIsMutable(); appositions_.set(index, value); onChanged(); return this; } /** * repeated int32 appositions = 54; */ public Builder addAppositions(int value) { ensureAppositionsIsMutable(); appositions_.add(value); onChanged(); return this; } /** * repeated int32 appositions = 54; */ public Builder addAllAppositions( java.lang.Iterable values) { ensureAppositionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, appositions_); onChanged(); return this; } /** * repeated int32 appositions = 54; */ public Builder clearAppositions() { appositions_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000010); onChanged(); return this; } private java.util.List predicateNominatives_ = java.util.Collections.emptyList(); private void ensurePredicateNominativesIsMutable() { if (!((bitField1_ & 0x00000020) == 0x00000020)) { predicateNominatives_ = new java.util.ArrayList(predicateNominatives_); bitField1_ |= 0x00000020; } } /** * repeated int32 predicateNominatives = 55; */ public java.util.List getPredicateNominativesList() { return java.util.Collections.unmodifiableList(predicateNominatives_); } /** * repeated int32 predicateNominatives = 55; */ public int getPredicateNominativesCount() { return predicateNominatives_.size(); } /** * repeated int32 predicateNominatives = 55; */ public int getPredicateNominatives(int index) { return predicateNominatives_.get(index); } /** * repeated int32 predicateNominatives = 55; */ public Builder setPredicateNominatives( int index, int value) { ensurePredicateNominativesIsMutable(); predicateNominatives_.set(index, value); onChanged(); return this; } /** * repeated int32 predicateNominatives = 55; */ public Builder addPredicateNominatives(int value) { ensurePredicateNominativesIsMutable(); predicateNominatives_.add(value); onChanged(); return this; } /** * repeated int32 predicateNominatives = 55; */ public Builder addAllPredicateNominatives( java.lang.Iterable values) { ensurePredicateNominativesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, predicateNominatives_); onChanged(); return this; } /** * repeated int32 predicateNominatives = 55; */ public Builder clearPredicateNominatives() { predicateNominatives_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000020); onChanged(); return this; } private java.util.List relativePronouns_ = java.util.Collections.emptyList(); private void ensureRelativePronounsIsMutable() { if (!((bitField1_ & 0x00000040) == 0x00000040)) { relativePronouns_ = new java.util.ArrayList(relativePronouns_); bitField1_ |= 0x00000040; } } /** * repeated int32 relativePronouns = 56; */ public java.util.List getRelativePronounsList() { return java.util.Collections.unmodifiableList(relativePronouns_); } /** * repeated int32 relativePronouns = 56; */ public int getRelativePronounsCount() { return relativePronouns_.size(); } /** * repeated int32 relativePronouns = 56; */ public int getRelativePronouns(int index) { return relativePronouns_.get(index); } /** * repeated int32 relativePronouns = 56; */ public Builder setRelativePronouns( int index, int value) { ensureRelativePronounsIsMutable(); relativePronouns_.set(index, value); onChanged(); return this; } /** * repeated int32 relativePronouns = 56; */ public Builder addRelativePronouns(int value) { ensureRelativePronounsIsMutable(); relativePronouns_.add(value); onChanged(); return this; } /** * repeated int32 relativePronouns = 56; */ public Builder addAllRelativePronouns( java.lang.Iterable values) { ensureRelativePronounsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, relativePronouns_); onChanged(); return this; } /** * repeated int32 relativePronouns = 56; */ public Builder clearRelativePronouns() { relativePronouns_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000040); onChanged(); return this; } private java.util.List listMembers_ = java.util.Collections.emptyList(); private void ensureListMembersIsMutable() { if (!((bitField1_ & 0x00000080) == 0x00000080)) { listMembers_ = new java.util.ArrayList(listMembers_); bitField1_ |= 0x00000080; } } /** * repeated int32 listMembers = 57; */ public java.util.List getListMembersList() { return java.util.Collections.unmodifiableList(listMembers_); } /** * repeated int32 listMembers = 57; */ public int getListMembersCount() { return listMembers_.size(); } /** * repeated int32 listMembers = 57; */ public int getListMembers(int index) { return listMembers_.get(index); } /** * repeated int32 listMembers = 57; */ public Builder setListMembers( int index, int value) { ensureListMembersIsMutable(); listMembers_.set(index, value); onChanged(); return this; } /** * repeated int32 listMembers = 57; */ public Builder addListMembers(int value) { ensureListMembersIsMutable(); listMembers_.add(value); onChanged(); return this; } /** * repeated int32 listMembers = 57; */ public Builder addAllListMembers( java.lang.Iterable values) { ensureListMembersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, listMembers_); onChanged(); return this; } /** * repeated int32 listMembers = 57; */ public Builder clearListMembers() { listMembers_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000080); onChanged(); return this; } private java.util.List belongToLists_ = java.util.Collections.emptyList(); private void ensureBelongToListsIsMutable() { if (!((bitField1_ & 0x00000100) == 0x00000100)) { belongToLists_ = new java.util.ArrayList(belongToLists_); bitField1_ |= 0x00000100; } } /** * repeated int32 belongToLists = 58; */ public java.util.List getBelongToListsList() { return java.util.Collections.unmodifiableList(belongToLists_); } /** * repeated int32 belongToLists = 58; */ public int getBelongToListsCount() { return belongToLists_.size(); } /** * repeated int32 belongToLists = 58; */ public int getBelongToLists(int index) { return belongToLists_.get(index); } /** * repeated int32 belongToLists = 58; */ public Builder setBelongToLists( int index, int value) { ensureBelongToListsIsMutable(); belongToLists_.set(index, value); onChanged(); return this; } /** * repeated int32 belongToLists = 58; */ public Builder addBelongToLists(int value) { ensureBelongToListsIsMutable(); belongToLists_.add(value); onChanged(); return this; } /** * repeated int32 belongToLists = 58; */ public Builder addAllBelongToLists( java.lang.Iterable values) { ensureBelongToListsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, belongToLists_); onChanged(); return this; } /** * repeated int32 belongToLists = 58; */ public Builder clearBelongToLists() { belongToLists_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000100); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Mention) } static { defaultInstance = new Mention(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Mention) } public interface IndexedWordOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.IndexedWord) com.google.protobuf.MessageOrBuilder { /** * optional uint32 sentenceNum = 1; */ boolean hasSentenceNum(); /** * optional uint32 sentenceNum = 1; */ int getSentenceNum(); /** * optional uint32 tokenIndex = 2; */ boolean hasTokenIndex(); /** * optional uint32 tokenIndex = 2; */ int getTokenIndex(); /** * optional uint32 docID = 3; */ boolean hasDocID(); /** * optional uint32 docID = 3; */ int getDocID(); /** * optional uint32 copyCount = 4; */ boolean hasCopyCount(); /** * optional uint32 copyCount = 4; */ int getCopyCount(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.IndexedWord} */ public static final class IndexedWord extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.IndexedWord) IndexedWordOrBuilder { // Use IndexedWord.newBuilder() to construct. private IndexedWord(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IndexedWord(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IndexedWord defaultInstance; public static IndexedWord getDefaultInstance() { return defaultInstance; } public IndexedWord getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IndexedWord( 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; sentenceNum_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; tokenIndex_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; docID_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; copyCount_ = 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_IndexedWord_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_IndexedWord_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.class, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IndexedWord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IndexedWord(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SENTENCENUM_FIELD_NUMBER = 1; private int sentenceNum_; /** * optional uint32 sentenceNum = 1; */ public boolean hasSentenceNum() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 sentenceNum = 1; */ public int getSentenceNum() { return sentenceNum_; } public static final int TOKENINDEX_FIELD_NUMBER = 2; private int tokenIndex_; /** * optional uint32 tokenIndex = 2; */ public boolean hasTokenIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 tokenIndex = 2; */ public int getTokenIndex() { return tokenIndex_; } public static final int DOCID_FIELD_NUMBER = 3; private int docID_; /** * optional uint32 docID = 3; */ public boolean hasDocID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 docID = 3; */ public int getDocID() { return docID_; } public static final int COPYCOUNT_FIELD_NUMBER = 4; private int copyCount_; /** * optional uint32 copyCount = 4; */ public boolean hasCopyCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 copyCount = 4; */ public int getCopyCount() { return copyCount_; } private void initFields() { sentenceNum_ = 0; tokenIndex_ = 0; docID_ = 0; copyCount_ = 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.writeUInt32(1, sentenceNum_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, tokenIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, docID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, copyCount_); } 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, sentenceNum_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, tokenIndex_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, docID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, copyCount_); } 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.IndexedWord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord 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.IndexedWord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord 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.IndexedWord parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord 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.IndexedWord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord 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.IndexedWord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord 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.IndexedWord 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.IndexedWord} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.IndexedWord) edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_IndexedWord_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_IndexedWord_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.class, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.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(); sentenceNum_ = 0; bitField0_ = (bitField0_ & ~0x00000001); tokenIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000002); docID_ = 0; bitField0_ = (bitField0_ & ~0x00000004); copyCount_ = 0; bitField0_ = (bitField0_ & ~0x00000008); 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_IndexedWord_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord build() { edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord result = new edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.sentenceNum_ = sentenceNum_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.tokenIndex_ = tokenIndex_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.docID_ = docID_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.copyCount_ = copyCount_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) return this; if (other.hasSentenceNum()) { setSentenceNum(other.getSentenceNum()); } if (other.hasTokenIndex()) { setTokenIndex(other.getTokenIndex()); } if (other.hasDocID()) { setDocID(other.getDocID()); } if (other.hasCopyCount()) { setCopyCount(other.getCopyCount()); } 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.IndexedWord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int sentenceNum_ ; /** * optional uint32 sentenceNum = 1; */ public boolean hasSentenceNum() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 sentenceNum = 1; */ public int getSentenceNum() { return sentenceNum_; } /** * optional uint32 sentenceNum = 1; */ public Builder setSentenceNum(int value) { bitField0_ |= 0x00000001; sentenceNum_ = value; onChanged(); return this; } /** * optional uint32 sentenceNum = 1; */ public Builder clearSentenceNum() { bitField0_ = (bitField0_ & ~0x00000001); sentenceNum_ = 0; onChanged(); return this; } private int tokenIndex_ ; /** * optional uint32 tokenIndex = 2; */ public boolean hasTokenIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 tokenIndex = 2; */ public int getTokenIndex() { return tokenIndex_; } /** * optional uint32 tokenIndex = 2; */ public Builder setTokenIndex(int value) { bitField0_ |= 0x00000002; tokenIndex_ = value; onChanged(); return this; } /** * optional uint32 tokenIndex = 2; */ public Builder clearTokenIndex() { bitField0_ = (bitField0_ & ~0x00000002); tokenIndex_ = 0; onChanged(); return this; } private int docID_ ; /** * optional uint32 docID = 3; */ public boolean hasDocID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 docID = 3; */ public int getDocID() { return docID_; } /** * optional uint32 docID = 3; */ public Builder setDocID(int value) { bitField0_ |= 0x00000004; docID_ = value; onChanged(); return this; } /** * optional uint32 docID = 3; */ public Builder clearDocID() { bitField0_ = (bitField0_ & ~0x00000004); docID_ = 0; onChanged(); return this; } private int copyCount_ ; /** * optional uint32 copyCount = 4; */ public boolean hasCopyCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 copyCount = 4; */ public int getCopyCount() { return copyCount_; } /** * optional uint32 copyCount = 4; */ public Builder setCopyCount(int value) { bitField0_ |= 0x00000008; copyCount_ = value; onChanged(); return this; } /** * optional uint32 copyCount = 4; */ public Builder clearCopyCount() { bitField0_ = (bitField0_ & ~0x00000008); copyCount_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.IndexedWord) } static { defaultInstance = new IndexedWord(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.IndexedWord) } public interface SpeakerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.SpeakerInfo) com.google.protobuf.MessageOrBuilder { /** * optional string speakerName = 1; */ boolean hasSpeakerName(); /** * optional string speakerName = 1; */ java.lang.String getSpeakerName(); /** * optional string speakerName = 1; */ com.google.protobuf.ByteString getSpeakerNameBytes(); /** * repeated int32 mentions = 2; */ java.util.List getMentionsList(); /** * repeated int32 mentions = 2; */ int getMentionsCount(); /** * repeated int32 mentions = 2; */ int getMentions(int index); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.SpeakerInfo} */ public static final class SpeakerInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.SpeakerInfo) SpeakerInfoOrBuilder { // Use SpeakerInfo.newBuilder() to construct. private SpeakerInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SpeakerInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SpeakerInfo defaultInstance; public static SpeakerInfo getDefaultInstance() { return defaultInstance; } public SpeakerInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SpeakerInfo( 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; speakerName_ = bs; break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mentions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } mentions_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { mentions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { mentions_.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_bitField0_ & 0x00000002) == 0x00000002)) { mentions_ = java.util.Collections.unmodifiableList(mentions_); } 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_SpeakerInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.class, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SpeakerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SpeakerInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SPEAKERNAME_FIELD_NUMBER = 1; private java.lang.Object speakerName_; /** * optional string speakerName = 1; */ public boolean hasSpeakerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string speakerName = 1; */ public java.lang.String getSpeakerName() { java.lang.Object ref = speakerName_; 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()) { speakerName_ = s; } return s; } } /** * optional string speakerName = 1; */ public com.google.protobuf.ByteString getSpeakerNameBytes() { java.lang.Object ref = speakerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); speakerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MENTIONS_FIELD_NUMBER = 2; private java.util.List mentions_; /** * repeated int32 mentions = 2; */ public java.util.List getMentionsList() { return mentions_; } /** * repeated int32 mentions = 2; */ public int getMentionsCount() { return mentions_.size(); } /** * repeated int32 mentions = 2; */ public int getMentions(int index) { return mentions_.get(index); } private void initFields() { speakerName_ = ""; 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; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getSpeakerNameBytes()); } for (int i = 0; i < mentions_.size(); i++) { output.writeInt32(2, mentions_.get(i)); } 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, getSpeakerNameBytes()); } { int dataSize = 0; for (int i = 0; i < mentions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(mentions_.get(i)); } size += dataSize; size += 1 * getMentionsList().size(); } 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.SpeakerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo 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.SpeakerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo 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.SpeakerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo 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.SpeakerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo 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.SpeakerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo 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.SpeakerInfo 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.SpeakerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.SpeakerInfo) edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.class, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.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(); speakerName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); mentions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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_SpeakerInfo_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo build() { edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo result = new edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.speakerName_ = speakerName_; if (((bitField0_ & 0x00000002) == 0x00000002)) { mentions_ = java.util.Collections.unmodifiableList(mentions_); bitField0_ = (bitField0_ & ~0x00000002); } result.mentions_ = mentions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance()) return this; if (other.hasSpeakerName()) { bitField0_ |= 0x00000001; speakerName_ = other.speakerName_; onChanged(); } if (!other.mentions_.isEmpty()) { if (mentions_.isEmpty()) { mentions_ = other.mentions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMentionsIsMutable(); mentions_.addAll(other.mentions_); } onChanged(); } 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.SpeakerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object speakerName_ = ""; /** * optional string speakerName = 1; */ public boolean hasSpeakerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string speakerName = 1; */ public java.lang.String getSpeakerName() { java.lang.Object ref = speakerName_; 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()) { speakerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string speakerName = 1; */ public com.google.protobuf.ByteString getSpeakerNameBytes() { java.lang.Object ref = speakerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); speakerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string speakerName = 1; */ public Builder setSpeakerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; speakerName_ = value; onChanged(); return this; } /** * optional string speakerName = 1; */ public Builder clearSpeakerName() { bitField0_ = (bitField0_ & ~0x00000001); speakerName_ = getDefaultInstance().getSpeakerName(); onChanged(); return this; } /** * optional string speakerName = 1; */ public Builder setSpeakerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; speakerName_ = value; onChanged(); return this; } private java.util.List mentions_ = java.util.Collections.emptyList(); private void ensureMentionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { mentions_ = new java.util.ArrayList(mentions_); bitField0_ |= 0x00000002; } } /** * repeated int32 mentions = 2; */ public java.util.List getMentionsList() { return java.util.Collections.unmodifiableList(mentions_); } /** * repeated int32 mentions = 2; */ public int getMentionsCount() { return mentions_.size(); } /** * repeated int32 mentions = 2; */ public int getMentions(int index) { return mentions_.get(index); } /** * repeated int32 mentions = 2; */ public Builder setMentions( int index, int value) { ensureMentionsIsMutable(); mentions_.set(index, value); onChanged(); return this; } /** * repeated int32 mentions = 2; */ public Builder addMentions(int value) { ensureMentionsIsMutable(); mentions_.add(value); onChanged(); return this; } /** * repeated int32 mentions = 2; */ public Builder addAllMentions( java.lang.Iterable values) { ensureMentionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mentions_); onChanged(); return this; } /** * repeated int32 mentions = 2; */ public Builder clearMentions() { mentions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.SpeakerInfo) } static { defaultInstance = new SpeakerInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.SpeakerInfo) } public interface SpanOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Span) com.google.protobuf.MessageOrBuilder { /** * required uint32 begin = 1; */ boolean hasBegin(); /** * required uint32 begin = 1; */ int getBegin(); /** * required uint32 end = 2; */ boolean hasEnd(); /** * required uint32 end = 2; */ int getEnd(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.Span} * *
   * A Span of text
   * 
*/ public static final class Span extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Span) SpanOrBuilder { // Use Span.newBuilder() to construct. private Span(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Span(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Span defaultInstance; public static Span getDefaultInstance() { return defaultInstance; } public Span getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Span( 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; begin_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; end_ = 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_Span_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Span_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Span.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Span parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Span(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int BEGIN_FIELD_NUMBER = 1; private int begin_; /** * required uint32 begin = 1; */ public boolean hasBegin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 begin = 1; */ public int getBegin() { return begin_; } public static final int END_FIELD_NUMBER = 2; private int end_; /** * required uint32 end = 2; */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 end = 2; */ public int getEnd() { return end_; } private void initFields() { begin_ = 0; end_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasBegin()) { memoizedIsInitialized = 0; return false; } if (!hasEnd()) { 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, begin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, end_); } 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, begin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, end_); } 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.Span parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span 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.Span parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span 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.Span parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span 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.Span parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span 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.Span parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span 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.Span 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.Span} * *
     * A Span of text
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Span) edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Span_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Span_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Span.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Span.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(); begin_ = 0; bitField0_ = (bitField0_ & ~0x00000001); end_ = 0; bitField0_ = (bitField0_ & ~0x00000002); 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_Span_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Span build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Span result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Span buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Span result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Span(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.begin_ = begin_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.end_ = end_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Span) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Span)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Span other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance()) return this; if (other.hasBegin()) { setBegin(other.getBegin()); } if (other.hasEnd()) { setEnd(other.getEnd()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasBegin()) { return false; } if (!hasEnd()) { 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.Span parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Span) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int begin_ ; /** * required uint32 begin = 1; */ public boolean hasBegin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 begin = 1; */ public int getBegin() { return begin_; } /** * required uint32 begin = 1; */ public Builder setBegin(int value) { bitField0_ |= 0x00000001; begin_ = value; onChanged(); return this; } /** * required uint32 begin = 1; */ public Builder clearBegin() { bitField0_ = (bitField0_ & ~0x00000001); begin_ = 0; onChanged(); return this; } private int end_ ; /** * required uint32 end = 2; */ public boolean hasEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 end = 2; */ public int getEnd() { return end_; } /** * required uint32 end = 2; */ public Builder setEnd(int value) { bitField0_ |= 0x00000002; end_ = value; onChanged(); return this; } /** * required uint32 end = 2; */ public Builder clearEnd() { bitField0_ = (bitField0_ & ~0x00000002); end_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Span) } static { defaultInstance = new Span(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Span) } public interface TimexOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Timex) com.google.protobuf.MessageOrBuilder { /** * optional string value = 1; */ boolean hasValue(); /** * optional string value = 1; */ java.lang.String getValue(); /** * optional string value = 1; */ com.google.protobuf.ByteString getValueBytes(); /** * optional string altValue = 2; */ boolean hasAltValue(); /** * optional string altValue = 2; */ java.lang.String getAltValue(); /** * optional string altValue = 2; */ com.google.protobuf.ByteString getAltValueBytes(); /** * optional string text = 3; */ boolean hasText(); /** * optional string text = 3; */ java.lang.String getText(); /** * optional string text = 3; */ com.google.protobuf.ByteString getTextBytes(); /** * optional string type = 4; */ boolean hasType(); /** * optional string type = 4; */ java.lang.String getType(); /** * optional string type = 4; */ com.google.protobuf.ByteString getTypeBytes(); /** * optional string tid = 5; */ boolean hasTid(); /** * optional string tid = 5; */ java.lang.String getTid(); /** * optional string tid = 5; */ com.google.protobuf.ByteString getTidBytes(); /** * optional uint32 beginPoint = 6; */ boolean hasBeginPoint(); /** * optional uint32 beginPoint = 6; */ int getBeginPoint(); /** * optional uint32 endPoint = 7; */ boolean hasEndPoint(); /** * optional uint32 endPoint = 7; */ int getEndPoint(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.Timex} * *
   * A Timex object, representing a temporal expression (TIMe EXpression)
   * These fields are not *really* optional. CoreNLP will crash without them.
   * 
*/ public static final class Timex extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Timex) TimexOrBuilder { // Use Timex.newBuilder() to construct. private Timex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Timex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Timex defaultInstance; public static Timex getDefaultInstance() { return defaultInstance; } public Timex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Timex( 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; value_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; altValue_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; text_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; type_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; tid_ = bs; break; } case 48: { bitField0_ |= 0x00000020; beginPoint_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000040; endPoint_ = 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_Timex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Timex_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Timex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Timex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int VALUE_FIELD_NUMBER = 1; private java.lang.Object value_; /** * optional string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string value = 1; */ 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 = 1; */ 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 ALTVALUE_FIELD_NUMBER = 2; private java.lang.Object altValue_; /** * optional string altValue = 2; */ public boolean hasAltValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string altValue = 2; */ public java.lang.String getAltValue() { java.lang.Object ref = altValue_; 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()) { altValue_ = s; } return s; } } /** * optional string altValue = 2; */ public com.google.protobuf.ByteString getAltValueBytes() { java.lang.Object ref = altValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); altValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 3; private java.lang.Object text_; /** * optional string text = 3; */ public boolean hasText() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string text = 3; */ 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 = 3; */ 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 TYPE_FIELD_NUMBER = 4; private java.lang.Object type_; /** * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TID_FIELD_NUMBER = 5; private java.lang.Object tid_; /** * optional string tid = 5; */ public boolean hasTid() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string tid = 5; */ public java.lang.String getTid() { java.lang.Object ref = tid_; 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()) { tid_ = s; } return s; } } /** * optional string tid = 5; */ public com.google.protobuf.ByteString getTidBytes() { java.lang.Object ref = tid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BEGINPOINT_FIELD_NUMBER = 6; private int beginPoint_; /** * optional uint32 beginPoint = 6; */ public boolean hasBeginPoint() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 beginPoint = 6; */ public int getBeginPoint() { return beginPoint_; } public static final int ENDPOINT_FIELD_NUMBER = 7; private int endPoint_; /** * optional uint32 endPoint = 7; */ public boolean hasEndPoint() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 endPoint = 7; */ public int getEndPoint() { return endPoint_; } private void initFields() { value_ = ""; altValue_ = ""; text_ = ""; type_ = ""; tid_ = ""; beginPoint_ = 0; endPoint_ = 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, getValueBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAltValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTextBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getTypeBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getTidBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, beginPoint_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, endPoint_); } 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, getValueBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAltValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTextBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getTidBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, beginPoint_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, endPoint_); } 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.Timex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex 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.Timex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex 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.Timex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex 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.Timex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex 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.Timex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex 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.Timex 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.Timex} * *
     * A Timex object, representing a temporal expression (TIMe EXpression)
     * 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.Timex) edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Timex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Timex_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.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(); value_ = ""; bitField0_ = (bitField0_ & ~0x00000001); altValue_ = ""; bitField0_ = (bitField0_ & ~0x00000002); text_ = ""; bitField0_ = (bitField0_ & ~0x00000004); type_ = ""; bitField0_ = (bitField0_ & ~0x00000008); tid_ = ""; bitField0_ = (bitField0_ & ~0x00000010); beginPoint_ = 0; bitField0_ = (bitField0_ & ~0x00000020); endPoint_ = 0; 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_Timex_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Timex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Timex result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Timex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.value_ = value_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.altValue_ = altValue_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.text_ = text_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.tid_ = tid_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.beginPoint_ = beginPoint_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.endPoint_ = endPoint_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Timex) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Timex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance()) return this; if (other.hasValue()) { bitField0_ |= 0x00000001; value_ = other.value_; onChanged(); } if (other.hasAltValue()) { bitField0_ |= 0x00000002; altValue_ = other.altValue_; onChanged(); } if (other.hasText()) { bitField0_ |= 0x00000004; text_ = other.text_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000008; type_ = other.type_; onChanged(); } if (other.hasTid()) { bitField0_ |= 0x00000010; tid_ = other.tid_; onChanged(); } if (other.hasBeginPoint()) { setBeginPoint(other.getBeginPoint()); } if (other.hasEndPoint()) { setEndPoint(other.getEndPoint()); } 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.Timex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Timex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** * optional string value = 1; */ public boolean hasValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string value = 1; */ 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 = 1; */ 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 = 1; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } /** * optional string value = 1; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 1; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; value_ = value; onChanged(); return this; } private java.lang.Object altValue_ = ""; /** * optional string altValue = 2; */ public boolean hasAltValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string altValue = 2; */ public java.lang.String getAltValue() { java.lang.Object ref = altValue_; 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()) { altValue_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string altValue = 2; */ public com.google.protobuf.ByteString getAltValueBytes() { java.lang.Object ref = altValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); altValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string altValue = 2; */ public Builder setAltValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; altValue_ = value; onChanged(); return this; } /** * optional string altValue = 2; */ public Builder clearAltValue() { bitField0_ = (bitField0_ & ~0x00000002); altValue_ = getDefaultInstance().getAltValue(); onChanged(); return this; } /** * optional string altValue = 2; */ public Builder setAltValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; altValue_ = value; onChanged(); return this; } private java.lang.Object text_ = ""; /** * optional string text = 3; */ public boolean hasText() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string text = 3; */ 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 = 3; */ 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 = 3; */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; text_ = value; onChanged(); return this; } /** * optional string text = 3; */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00000004); text_ = getDefaultInstance().getText(); onChanged(); return this; } /** * optional string text = 3; */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; text_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type = 4; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } /** * optional string type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * optional string type = 4; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } private java.lang.Object tid_ = ""; /** * optional string tid = 5; */ public boolean hasTid() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string tid = 5; */ public java.lang.String getTid() { java.lang.Object ref = tid_; 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()) { tid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string tid = 5; */ public com.google.protobuf.ByteString getTidBytes() { java.lang.Object ref = tid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string tid = 5; */ public Builder setTid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; tid_ = value; onChanged(); return this; } /** * optional string tid = 5; */ public Builder clearTid() { bitField0_ = (bitField0_ & ~0x00000010); tid_ = getDefaultInstance().getTid(); onChanged(); return this; } /** * optional string tid = 5; */ public Builder setTidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; tid_ = value; onChanged(); return this; } private int beginPoint_ ; /** * optional uint32 beginPoint = 6; */ public boolean hasBeginPoint() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 beginPoint = 6; */ public int getBeginPoint() { return beginPoint_; } /** * optional uint32 beginPoint = 6; */ public Builder setBeginPoint(int value) { bitField0_ |= 0x00000020; beginPoint_ = value; onChanged(); return this; } /** * optional uint32 beginPoint = 6; */ public Builder clearBeginPoint() { bitField0_ = (bitField0_ & ~0x00000020); beginPoint_ = 0; onChanged(); return this; } private int endPoint_ ; /** * optional uint32 endPoint = 7; */ public boolean hasEndPoint() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 endPoint = 7; */ public int getEndPoint() { return endPoint_; } /** * optional uint32 endPoint = 7; */ public Builder setEndPoint(int value) { bitField0_ |= 0x00000040; endPoint_ = value; onChanged(); return this; } /** * optional uint32 endPoint = 7; */ public Builder clearEndPoint() { bitField0_ = (bitField0_ & ~0x00000040); endPoint_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Timex) } static { defaultInstance = new Timex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Timex) } public interface EntityOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Entity) com.google.protobuf.MessageOrBuilder { /** * optional uint32 headStart = 6; */ boolean hasHeadStart(); /** * optional uint32 headStart = 6; */ int getHeadStart(); /** * optional uint32 headEnd = 7; */ boolean hasHeadEnd(); /** * optional uint32 headEnd = 7; */ int getHeadEnd(); /** * optional string mentionType = 8; */ boolean hasMentionType(); /** * optional string mentionType = 8; */ java.lang.String getMentionType(); /** * optional string mentionType = 8; */ com.google.protobuf.ByteString getMentionTypeBytes(); /** * optional string normalizedName = 9; */ boolean hasNormalizedName(); /** * optional string normalizedName = 9; */ java.lang.String getNormalizedName(); /** * optional string normalizedName = 9; */ com.google.protobuf.ByteString getNormalizedNameBytes(); /** * optional uint32 headTokenIndex = 10; */ boolean hasHeadTokenIndex(); /** * optional uint32 headTokenIndex = 10; */ int getHeadTokenIndex(); /** * optional string corefID = 11; */ boolean hasCorefID(); /** * optional string corefID = 11; */ java.lang.String getCorefID(); /** * optional string corefID = 11; */ com.google.protobuf.ByteString getCorefIDBytes(); /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ boolean hasObjectID(); /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ java.lang.String getObjectID(); /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ com.google.protobuf.ByteString getObjectIDBytes(); /** * optional uint32 extentStart = 2; */ boolean hasExtentStart(); /** * optional uint32 extentStart = 2; */ int getExtentStart(); /** * optional uint32 extentEnd = 3; */ boolean hasExtentEnd(); /** * optional uint32 extentEnd = 3; */ int getExtentEnd(); /** * optional string type = 4; */ boolean hasType(); /** * optional string type = 4; */ java.lang.String getType(); /** * optional string type = 4; */ com.google.protobuf.ByteString getTypeBytes(); /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ boolean hasSubtype(); /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ java.lang.String getSubtype(); /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ com.google.protobuf.ByteString getSubtypeBytes(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.Entity} * *
   * A representation of an entity in a relation.
   * This corresponds to the EntityMention, and more broadly the
   * ExtractionObject classes.
   * 
*/ public static final class Entity extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Entity) EntityOrBuilder { // Use Entity.newBuilder() to construct. private Entity(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Entity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Entity defaultInstance; public static Entity getDefaultInstance() { return defaultInstance; } public Entity getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Entity( 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_ |= 0x00000040; objectID_ = bs; break; } case 16: { bitField0_ |= 0x00000080; extentStart_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000100; extentEnd_ = input.readUInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; type_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; subtype_ = bs; break; } case 48: { bitField0_ |= 0x00000001; headStart_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000002; headEnd_ = input.readUInt32(); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; mentionType_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; normalizedName_ = bs; break; } case 80: { bitField0_ |= 0x00000010; headTokenIndex_ = input.readUInt32(); break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; corefID_ = 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 { 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_Entity_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Entity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Entity(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int HEADSTART_FIELD_NUMBER = 6; private int headStart_; /** * optional uint32 headStart = 6; */ public boolean hasHeadStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 headStart = 6; */ public int getHeadStart() { return headStart_; } public static final int HEADEND_FIELD_NUMBER = 7; private int headEnd_; /** * optional uint32 headEnd = 7; */ public boolean hasHeadEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 headEnd = 7; */ public int getHeadEnd() { return headEnd_; } public static final int MENTIONTYPE_FIELD_NUMBER = 8; private java.lang.Object mentionType_; /** * optional string mentionType = 8; */ public boolean hasMentionType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string mentionType = 8; */ 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 = 8; */ 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 NORMALIZEDNAME_FIELD_NUMBER = 9; private java.lang.Object normalizedName_; /** * optional string normalizedName = 9; */ public boolean hasNormalizedName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string normalizedName = 9; */ public java.lang.String getNormalizedName() { java.lang.Object ref = normalizedName_; 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()) { normalizedName_ = s; } return s; } } /** * optional string normalizedName = 9; */ public com.google.protobuf.ByteString getNormalizedNameBytes() { java.lang.Object ref = normalizedName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); normalizedName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEADTOKENINDEX_FIELD_NUMBER = 10; private int headTokenIndex_; /** * optional uint32 headTokenIndex = 10; */ public boolean hasHeadTokenIndex() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 headTokenIndex = 10; */ public int getHeadTokenIndex() { return headTokenIndex_; } public static final int COREFID_FIELD_NUMBER = 11; private java.lang.Object corefID_; /** * optional string corefID = 11; */ public boolean hasCorefID() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string corefID = 11; */ public java.lang.String getCorefID() { java.lang.Object ref = corefID_; 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()) { corefID_ = s; } return s; } } /** * optional string corefID = 11; */ public com.google.protobuf.ByteString getCorefIDBytes() { java.lang.Object ref = corefID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); corefID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECTID_FIELD_NUMBER = 1; private java.lang.Object objectID_; /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ public boolean hasObjectID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; 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()) { objectID_ = s; } return s; } } /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ public com.google.protobuf.ByteString getObjectIDBytes() { java.lang.Object ref = objectID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTENTSTART_FIELD_NUMBER = 2; private int extentStart_; /** * optional uint32 extentStart = 2; */ public boolean hasExtentStart() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 extentStart = 2; */ public int getExtentStart() { return extentStart_; } public static final int EXTENTEND_FIELD_NUMBER = 3; private int extentEnd_; /** * optional uint32 extentEnd = 3; */ public boolean hasExtentEnd() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 extentEnd = 3; */ public int getExtentEnd() { return extentEnd_; } public static final int TYPE_FIELD_NUMBER = 4; private java.lang.Object type_; /** * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBTYPE_FIELD_NUMBER = 5; private java.lang.Object subtype_; /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ public boolean hasSubtype() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; 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()) { subtype_ = s; } return s; } } /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ public com.google.protobuf.ByteString getSubtypeBytes() { java.lang.Object ref = subtype_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subtype_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { headStart_ = 0; headEnd_ = 0; mentionType_ = ""; normalizedName_ = ""; headTokenIndex_ = 0; corefID_ = ""; objectID_ = ""; extentStart_ = 0; extentEnd_ = 0; type_ = ""; subtype_ = ""; } 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_ & 0x00000040) == 0x00000040)) { output.writeBytes(1, getObjectIDBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(2, extentStart_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(3, extentEnd_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(4, getTypeBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(5, getSubtypeBytes()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(6, headStart_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(7, headEnd_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(8, getMentionTypeBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(9, getNormalizedNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(10, headTokenIndex_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(11, getCorefIDBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getObjectIDBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, extentStart_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, extentEnd_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getSubtypeBytes()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, headStart_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, headEnd_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getMentionTypeBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getNormalizedNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, headTokenIndex_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getCorefIDBytes()); } 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.Entity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity 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.Entity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity 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.Entity parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity 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.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity 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.Entity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity 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.Entity 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.Entity} * *
     * A representation of an entity in a relation.
     * This corresponds to the EntityMention, and more broadly the
     * ExtractionObject classes.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Entity) edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Entity_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.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(); headStart_ = 0; bitField0_ = (bitField0_ & ~0x00000001); headEnd_ = 0; bitField0_ = (bitField0_ & ~0x00000002); mentionType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); normalizedName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); headTokenIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000010); corefID_ = ""; bitField0_ = (bitField0_ & ~0x00000020); objectID_ = ""; bitField0_ = (bitField0_ & ~0x00000040); extentStart_ = 0; bitField0_ = (bitField0_ & ~0x00000080); extentEnd_ = 0; bitField0_ = (bitField0_ & ~0x00000100); type_ = ""; bitField0_ = (bitField0_ & ~0x00000200); subtype_ = ""; bitField0_ = (bitField0_ & ~0x00000400); 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_Entity_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Entity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Entity result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Entity(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.headStart_ = headStart_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.headEnd_ = headEnd_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.mentionType_ = mentionType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.normalizedName_ = normalizedName_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.headTokenIndex_ = headTokenIndex_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.corefID_ = corefID_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.objectID_ = objectID_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.extentStart_ = extentStart_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.extentEnd_ = extentEnd_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.type_ = type_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.subtype_ = subtype_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Entity) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Entity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.getDefaultInstance()) return this; if (other.hasHeadStart()) { setHeadStart(other.getHeadStart()); } if (other.hasHeadEnd()) { setHeadEnd(other.getHeadEnd()); } if (other.hasMentionType()) { bitField0_ |= 0x00000004; mentionType_ = other.mentionType_; onChanged(); } if (other.hasNormalizedName()) { bitField0_ |= 0x00000008; normalizedName_ = other.normalizedName_; onChanged(); } if (other.hasHeadTokenIndex()) { setHeadTokenIndex(other.getHeadTokenIndex()); } if (other.hasCorefID()) { bitField0_ |= 0x00000020; corefID_ = other.corefID_; onChanged(); } if (other.hasObjectID()) { bitField0_ |= 0x00000040; objectID_ = other.objectID_; onChanged(); } if (other.hasExtentStart()) { setExtentStart(other.getExtentStart()); } if (other.hasExtentEnd()) { setExtentEnd(other.getExtentEnd()); } if (other.hasType()) { bitField0_ |= 0x00000200; type_ = other.type_; onChanged(); } if (other.hasSubtype()) { bitField0_ |= 0x00000400; subtype_ = other.subtype_; onChanged(); } 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.Entity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Entity) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int headStart_ ; /** * optional uint32 headStart = 6; */ public boolean hasHeadStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 headStart = 6; */ public int getHeadStart() { return headStart_; } /** * optional uint32 headStart = 6; */ public Builder setHeadStart(int value) { bitField0_ |= 0x00000001; headStart_ = value; onChanged(); return this; } /** * optional uint32 headStart = 6; */ public Builder clearHeadStart() { bitField0_ = (bitField0_ & ~0x00000001); headStart_ = 0; onChanged(); return this; } private int headEnd_ ; /** * optional uint32 headEnd = 7; */ public boolean hasHeadEnd() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 headEnd = 7; */ public int getHeadEnd() { return headEnd_; } /** * optional uint32 headEnd = 7; */ public Builder setHeadEnd(int value) { bitField0_ |= 0x00000002; headEnd_ = value; onChanged(); return this; } /** * optional uint32 headEnd = 7; */ public Builder clearHeadEnd() { bitField0_ = (bitField0_ & ~0x00000002); headEnd_ = 0; onChanged(); return this; } private java.lang.Object mentionType_ = ""; /** * optional string mentionType = 8; */ public boolean hasMentionType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string mentionType = 8; */ 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 = 8; */ 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 = 8; */ public Builder setMentionType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mentionType_ = value; onChanged(); return this; } /** * optional string mentionType = 8; */ public Builder clearMentionType() { bitField0_ = (bitField0_ & ~0x00000004); mentionType_ = getDefaultInstance().getMentionType(); onChanged(); return this; } /** * optional string mentionType = 8; */ public Builder setMentionTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mentionType_ = value; onChanged(); return this; } private java.lang.Object normalizedName_ = ""; /** * optional string normalizedName = 9; */ public boolean hasNormalizedName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string normalizedName = 9; */ public java.lang.String getNormalizedName() { java.lang.Object ref = normalizedName_; 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()) { normalizedName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string normalizedName = 9; */ public com.google.protobuf.ByteString getNormalizedNameBytes() { java.lang.Object ref = normalizedName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); normalizedName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string normalizedName = 9; */ public Builder setNormalizedName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; normalizedName_ = value; onChanged(); return this; } /** * optional string normalizedName = 9; */ public Builder clearNormalizedName() { bitField0_ = (bitField0_ & ~0x00000008); normalizedName_ = getDefaultInstance().getNormalizedName(); onChanged(); return this; } /** * optional string normalizedName = 9; */ public Builder setNormalizedNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; normalizedName_ = value; onChanged(); return this; } private int headTokenIndex_ ; /** * optional uint32 headTokenIndex = 10; */ public boolean hasHeadTokenIndex() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 headTokenIndex = 10; */ public int getHeadTokenIndex() { return headTokenIndex_; } /** * optional uint32 headTokenIndex = 10; */ public Builder setHeadTokenIndex(int value) { bitField0_ |= 0x00000010; headTokenIndex_ = value; onChanged(); return this; } /** * optional uint32 headTokenIndex = 10; */ public Builder clearHeadTokenIndex() { bitField0_ = (bitField0_ & ~0x00000010); headTokenIndex_ = 0; onChanged(); return this; } private java.lang.Object corefID_ = ""; /** * optional string corefID = 11; */ public boolean hasCorefID() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string corefID = 11; */ public java.lang.String getCorefID() { java.lang.Object ref = corefID_; 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()) { corefID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string corefID = 11; */ public com.google.protobuf.ByteString getCorefIDBytes() { java.lang.Object ref = corefID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); corefID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string corefID = 11; */ public Builder setCorefID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; corefID_ = value; onChanged(); return this; } /** * optional string corefID = 11; */ public Builder clearCorefID() { bitField0_ = (bitField0_ & ~0x00000020); corefID_ = getDefaultInstance().getCorefID(); onChanged(); return this; } /** * optional string corefID = 11; */ public Builder setCorefIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; corefID_ = value; onChanged(); return this; } private java.lang.Object objectID_ = ""; /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public boolean hasObjectID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; 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()) { objectID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public com.google.protobuf.ByteString getObjectIDBytes() { java.lang.Object ref = objectID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public Builder setObjectID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; objectID_ = value; onChanged(); return this; } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public Builder clearObjectID() { bitField0_ = (bitField0_ & ~0x00000040); objectID_ = getDefaultInstance().getObjectID(); onChanged(); return this; } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public Builder setObjectIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; objectID_ = value; onChanged(); return this; } private int extentStart_ ; /** * optional uint32 extentStart = 2; */ public boolean hasExtentStart() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 extentStart = 2; */ public int getExtentStart() { return extentStart_; } /** * optional uint32 extentStart = 2; */ public Builder setExtentStart(int value) { bitField0_ |= 0x00000080; extentStart_ = value; onChanged(); return this; } /** * optional uint32 extentStart = 2; */ public Builder clearExtentStart() { bitField0_ = (bitField0_ & ~0x00000080); extentStart_ = 0; onChanged(); return this; } private int extentEnd_ ; /** * optional uint32 extentEnd = 3; */ public boolean hasExtentEnd() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional uint32 extentEnd = 3; */ public int getExtentEnd() { return extentEnd_; } /** * optional uint32 extentEnd = 3; */ public Builder setExtentEnd(int value) { bitField0_ |= 0x00000100; extentEnd_ = value; onChanged(); return this; } /** * optional uint32 extentEnd = 3; */ public Builder clearExtentEnd() { bitField0_ = (bitField0_ & ~0x00000100); extentEnd_ = 0; onChanged(); return this; } private java.lang.Object type_ = ""; /** * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type = 4; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; type_ = value; onChanged(); return this; } /** * optional string type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000200); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * optional string type = 4; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; type_ = value; onChanged(); return this; } private java.lang.Object subtype_ = ""; /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public boolean hasSubtype() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; 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()) { subtype_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public com.google.protobuf.ByteString getSubtypeBytes() { java.lang.Object ref = subtype_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subtype_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public Builder setSubtype( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; subtype_ = value; onChanged(); return this; } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public Builder clearSubtype() { bitField0_ = (bitField0_ & ~0x00000400); subtype_ = getDefaultInstance().getSubtype(); onChanged(); return this; } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public Builder setSubtypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; subtype_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Entity) } static { defaultInstance = new Entity(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Entity) } public interface RelationOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Relation) com.google.protobuf.MessageOrBuilder { /** * repeated string argName = 6; */ com.google.protobuf.ProtocolStringList getArgNameList(); /** * repeated string argName = 6; */ int getArgNameCount(); /** * repeated string argName = 6; */ java.lang.String getArgName(int index); /** * repeated string argName = 6; */ com.google.protobuf.ByteString getArgNameBytes(int index); /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ java.util.List getArgList(); /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getArg(int index); /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ int getArgCount(); /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ java.util.List getArgOrBuilderList(); /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( int index); /** * optional string signature = 8; */ boolean hasSignature(); /** * optional string signature = 8; */ java.lang.String getSignature(); /** * optional string signature = 8; */ com.google.protobuf.ByteString getSignatureBytes(); /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ boolean hasObjectID(); /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ java.lang.String getObjectID(); /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ com.google.protobuf.ByteString getObjectIDBytes(); /** * optional uint32 extentStart = 2; */ boolean hasExtentStart(); /** * optional uint32 extentStart = 2; */ int getExtentStart(); /** * optional uint32 extentEnd = 3; */ boolean hasExtentEnd(); /** * optional uint32 extentEnd = 3; */ int getExtentEnd(); /** * optional string type = 4; */ boolean hasType(); /** * optional string type = 4; */ java.lang.String getType(); /** * optional string type = 4; */ com.google.protobuf.ByteString getTypeBytes(); /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ boolean hasSubtype(); /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ java.lang.String getSubtype(); /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ com.google.protobuf.ByteString getSubtypeBytes(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.Relation} * *
   * A representation of a relation, mirroring RelationMention
   * 
*/ public static final class Relation extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Relation) RelationOrBuilder { // Use Relation.newBuilder() to construct. private Relation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Relation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Relation defaultInstance; public static Relation getDefaultInstance() { return defaultInstance; } public Relation getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Relation( 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_ |= 0x00000002; objectID_ = bs; break; } case 16: { bitField0_ |= 0x00000004; extentStart_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000008; extentEnd_ = input.readUInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; type_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; subtype_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { argName_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } argName_.add(bs); break; } case 58: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { arg_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } arg_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.PARSER, extensionRegistry)); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; signature_ = 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)) { argName_ = argName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { arg_ = java.util.Collections.unmodifiableList(arg_); } 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_Relation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Relation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Relation(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int ARGNAME_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList argName_; /** * repeated string argName = 6; */ public com.google.protobuf.ProtocolStringList getArgNameList() { return argName_; } /** * repeated string argName = 6; */ public int getArgNameCount() { return argName_.size(); } /** * repeated string argName = 6; */ public java.lang.String getArgName(int index) { return argName_.get(index); } /** * repeated string argName = 6; */ public com.google.protobuf.ByteString getArgNameBytes(int index) { return argName_.getByteString(index); } public static final int ARG_FIELD_NUMBER = 7; private java.util.List arg_; /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public java.util.List getArgList() { return arg_; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public java.util.List getArgOrBuilderList() { return arg_; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public int getArgCount() { return arg_.size(); } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getArg(int index) { return arg_.get(index); } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( int index) { return arg_.get(index); } public static final int SIGNATURE_FIELD_NUMBER = 8; private java.lang.Object signature_; /** * optional string signature = 8; */ public boolean hasSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string signature = 8; */ public java.lang.String getSignature() { java.lang.Object ref = signature_; 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()) { signature_ = s; } return s; } } /** * optional string signature = 8; */ public com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECTID_FIELD_NUMBER = 1; private java.lang.Object objectID_; /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ public boolean hasObjectID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; 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()) { objectID_ = s; } return s; } } /** * optional string objectID = 1; * *
     * inherited from ExtractionObject
     * 
*/ public com.google.protobuf.ByteString getObjectIDBytes() { java.lang.Object ref = objectID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTENTSTART_FIELD_NUMBER = 2; private int extentStart_; /** * optional uint32 extentStart = 2; */ public boolean hasExtentStart() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 extentStart = 2; */ public int getExtentStart() { return extentStart_; } public static final int EXTENTEND_FIELD_NUMBER = 3; private int extentEnd_; /** * optional uint32 extentEnd = 3; */ public boolean hasExtentEnd() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 extentEnd = 3; */ public int getExtentEnd() { return extentEnd_; } public static final int TYPE_FIELD_NUMBER = 4; private java.lang.Object type_; /** * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBTYPE_FIELD_NUMBER = 5; private java.lang.Object subtype_; /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ public boolean hasSubtype() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; 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()) { subtype_ = s; } return s; } } /** * optional string subtype = 5; * *
     * Implicit
     *       uint32 sentence       @see implicit in sentence
     * 
*/ public com.google.protobuf.ByteString getSubtypeBytes() { java.lang.Object ref = subtype_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subtype_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; arg_ = java.util.Collections.emptyList(); signature_ = ""; objectID_ = ""; extentStart_ = 0; extentEnd_ = 0; type_ = ""; subtype_ = ""; } 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_ & 0x00000002) == 0x00000002)) { output.writeBytes(1, getObjectIDBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(2, extentStart_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(3, extentEnd_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(4, getTypeBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(5, getSubtypeBytes()); } for (int i = 0; i < argName_.size(); i++) { output.writeBytes(6, argName_.getByteString(i)); } for (int i = 0; i < arg_.size(); i++) { output.writeMessage(7, arg_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(8, getSignatureBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getObjectIDBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, extentStart_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, extentEnd_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getSubtypeBytes()); } { int dataSize = 0; for (int i = 0; i < argName_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(argName_.getByteString(i)); } size += dataSize; size += 1 * getArgNameList().size(); } for (int i = 0; i < arg_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, arg_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getSignatureBytes()); } 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.Relation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation 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.Relation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation 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.Relation parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation 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.Relation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation 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.Relation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation 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.Relation 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.Relation} * *
     * A representation of a relation, mirroring RelationMention
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Relation) edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Relation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getArgFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (argBuilder_ == null) { arg_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { argBuilder_.clear(); } signature_ = ""; bitField0_ = (bitField0_ & ~0x00000004); objectID_ = ""; bitField0_ = (bitField0_ & ~0x00000008); extentStart_ = 0; bitField0_ = (bitField0_ & ~0x00000010); extentEnd_ = 0; bitField0_ = (bitField0_ & ~0x00000020); type_ = ""; bitField0_ = (bitField0_ & ~0x00000040); subtype_ = ""; bitField0_ = (bitField0_ & ~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_Relation_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Relation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Relation result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Relation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { argName_ = argName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.argName_ = argName_; if (argBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { arg_ = java.util.Collections.unmodifiableList(arg_); bitField0_ = (bitField0_ & ~0x00000002); } result.arg_ = arg_; } else { result.arg_ = argBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.signature_ = signature_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.objectID_ = objectID_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.extentStart_ = extentStart_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.extentEnd_ = extentEnd_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.type_ = type_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } result.subtype_ = subtype_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Relation) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Relation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.getDefaultInstance()) return this; if (!other.argName_.isEmpty()) { if (argName_.isEmpty()) { argName_ = other.argName_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgNameIsMutable(); argName_.addAll(other.argName_); } onChanged(); } if (argBuilder_ == null) { if (!other.arg_.isEmpty()) { if (arg_.isEmpty()) { arg_ = other.arg_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureArgIsMutable(); arg_.addAll(other.arg_); } onChanged(); } } else { if (!other.arg_.isEmpty()) { if (argBuilder_.isEmpty()) { argBuilder_.dispose(); argBuilder_ = null; arg_ = other.arg_; bitField0_ = (bitField0_ & ~0x00000002); argBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getArgFieldBuilder() : null; } else { argBuilder_.addAllMessages(other.arg_); } } } if (other.hasSignature()) { bitField0_ |= 0x00000004; signature_ = other.signature_; onChanged(); } if (other.hasObjectID()) { bitField0_ |= 0x00000008; objectID_ = other.objectID_; onChanged(); } if (other.hasExtentStart()) { setExtentStart(other.getExtentStart()); } if (other.hasExtentEnd()) { setExtentEnd(other.getExtentEnd()); } if (other.hasType()) { bitField0_ |= 0x00000040; type_ = other.type_; onChanged(); } if (other.hasSubtype()) { bitField0_ |= 0x00000080; subtype_ = other.subtype_; onChanged(); } 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.Relation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Relation) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { argName_ = new com.google.protobuf.LazyStringArrayList(argName_); bitField0_ |= 0x00000001; } } /** * repeated string argName = 6; */ public com.google.protobuf.ProtocolStringList getArgNameList() { return argName_.getUnmodifiableView(); } /** * repeated string argName = 6; */ public int getArgNameCount() { return argName_.size(); } /** * repeated string argName = 6; */ public java.lang.String getArgName(int index) { return argName_.get(index); } /** * repeated string argName = 6; */ public com.google.protobuf.ByteString getArgNameBytes(int index) { return argName_.getByteString(index); } /** * repeated string argName = 6; */ public Builder setArgName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgNameIsMutable(); argName_.set(index, value); onChanged(); return this; } /** * repeated string argName = 6; */ public Builder addArgName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgNameIsMutable(); argName_.add(value); onChanged(); return this; } /** * repeated string argName = 6; */ public Builder addAllArgName( java.lang.Iterable values) { ensureArgNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, argName_); onChanged(); return this; } /** * repeated string argName = 6; */ public Builder clearArgName() { argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string argName = 6; */ public Builder addArgNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgNameIsMutable(); argName_.add(value); onChanged(); return this; } private java.util.List arg_ = java.util.Collections.emptyList(); private void ensureArgIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { arg_ = new java.util.ArrayList(arg_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder> argBuilder_; /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public java.util.List getArgList() { if (argBuilder_ == null) { return java.util.Collections.unmodifiableList(arg_); } else { return argBuilder_.getMessageList(); } } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public int getArgCount() { if (argBuilder_ == null) { return arg_.size(); } else { return argBuilder_.getCount(); } } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getArg(int index) { if (argBuilder_ == null) { return arg_.get(index); } else { return argBuilder_.getMessage(index); } } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder setArg( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity value) { if (argBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgIsMutable(); arg_.set(index, value); onChanged(); } else { argBuilder_.setMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder setArg( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder builderForValue) { if (argBuilder_ == null) { ensureArgIsMutable(); arg_.set(index, builderForValue.build()); onChanged(); } else { argBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder addArg(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity value) { if (argBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgIsMutable(); arg_.add(value); onChanged(); } else { argBuilder_.addMessage(value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder addArg( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity value) { if (argBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgIsMutable(); arg_.add(index, value); onChanged(); } else { argBuilder_.addMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder addArg( edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder builderForValue) { if (argBuilder_ == null) { ensureArgIsMutable(); arg_.add(builderForValue.build()); onChanged(); } else { argBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder addArg( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder builderForValue) { if (argBuilder_ == null) { ensureArgIsMutable(); arg_.add(index, builderForValue.build()); onChanged(); } else { argBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder addAllArg( java.lang.Iterable values) { if (argBuilder_ == null) { ensureArgIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, arg_); onChanged(); } else { argBuilder_.addAllMessages(values); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder clearArg() { if (argBuilder_ == null) { arg_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { argBuilder_.clear(); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public Builder removeArg(int index) { if (argBuilder_ == null) { ensureArgIsMutable(); arg_.remove(index); onChanged(); } else { argBuilder_.remove(index); } return this; } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder getArgBuilder( int index) { return getArgFieldBuilder().getBuilder(index); } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( int index) { if (argBuilder_ == null) { return arg_.get(index); } else { return argBuilder_.getMessageOrBuilder(index); } } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public java.util.List getArgOrBuilderList() { if (argBuilder_ != null) { return argBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(arg_); } } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addArgBuilder() { return getArgFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addArgBuilder( int index) { return getArgFieldBuilder().addBuilder( index, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ public java.util.List getArgBuilderList() { return getArgFieldBuilder().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> getArgFieldBuilder() { if (argBuilder_ == null) { argBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder>( arg_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); arg_ = null; } return argBuilder_; } private java.lang.Object signature_ = ""; /** * optional string signature = 8; */ public boolean hasSignature() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string signature = 8; */ public java.lang.String getSignature() { java.lang.Object ref = signature_; 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()) { signature_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string signature = 8; */ public com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string signature = 8; */ public Builder setSignature( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; signature_ = value; onChanged(); return this; } /** * optional string signature = 8; */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000004); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } /** * optional string signature = 8; */ public Builder setSignatureBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; signature_ = value; onChanged(); return this; } private java.lang.Object objectID_ = ""; /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public boolean hasObjectID() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; 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()) { objectID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public com.google.protobuf.ByteString getObjectIDBytes() { java.lang.Object ref = objectID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public Builder setObjectID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; objectID_ = value; onChanged(); return this; } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public Builder clearObjectID() { bitField0_ = (bitField0_ & ~0x00000008); objectID_ = getDefaultInstance().getObjectID(); onChanged(); return this; } /** * optional string objectID = 1; * *
       * inherited from ExtractionObject
       * 
*/ public Builder setObjectIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; objectID_ = value; onChanged(); return this; } private int extentStart_ ; /** * optional uint32 extentStart = 2; */ public boolean hasExtentStart() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 extentStart = 2; */ public int getExtentStart() { return extentStart_; } /** * optional uint32 extentStart = 2; */ public Builder setExtentStart(int value) { bitField0_ |= 0x00000010; extentStart_ = value; onChanged(); return this; } /** * optional uint32 extentStart = 2; */ public Builder clearExtentStart() { bitField0_ = (bitField0_ & ~0x00000010); extentStart_ = 0; onChanged(); return this; } private int extentEnd_ ; /** * optional uint32 extentEnd = 3; */ public boolean hasExtentEnd() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 extentEnd = 3; */ public int getExtentEnd() { return extentEnd_; } /** * optional uint32 extentEnd = 3; */ public Builder setExtentEnd(int value) { bitField0_ |= 0x00000020; extentEnd_ = value; onChanged(); return this; } /** * optional uint32 extentEnd = 3; */ public Builder clearExtentEnd() { bitField0_ = (bitField0_ & ~0x00000020); extentEnd_ = 0; onChanged(); return this; } private java.lang.Object type_ = ""; /** * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type = 4; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; type_ = value; onChanged(); return this; } /** * optional string type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000040); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * optional string type = 4; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; type_ = value; onChanged(); return this; } private java.lang.Object subtype_ = ""; /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public boolean hasSubtype() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; 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()) { subtype_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public com.google.protobuf.ByteString getSubtypeBytes() { java.lang.Object ref = subtype_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subtype_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public Builder setSubtype( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; subtype_ = value; onChanged(); return this; } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public Builder clearSubtype() { bitField0_ = (bitField0_ & ~0x00000080); subtype_ = getDefaultInstance().getSubtype(); onChanged(); return this; } /** * optional string subtype = 5; * *
       * Implicit
       *       uint32 sentence       @see implicit in sentence
       * 
*/ public Builder setSubtypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; subtype_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Relation) } static { defaultInstance = new Relation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Relation) } public interface OperatorOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Operator) com.google.protobuf.MessageOrBuilder { /** * required string name = 1; */ boolean hasName(); /** * required string name = 1; */ java.lang.String getName(); /** * required string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * required int32 quantifierSpanBegin = 2; */ boolean hasQuantifierSpanBegin(); /** * required int32 quantifierSpanBegin = 2; */ int getQuantifierSpanBegin(); /** * required int32 quantifierSpanEnd = 3; */ boolean hasQuantifierSpanEnd(); /** * required int32 quantifierSpanEnd = 3; */ int getQuantifierSpanEnd(); /** * required int32 subjectSpanBegin = 4; */ boolean hasSubjectSpanBegin(); /** * required int32 subjectSpanBegin = 4; */ int getSubjectSpanBegin(); /** * required int32 subjectSpanEnd = 5; */ boolean hasSubjectSpanEnd(); /** * required int32 subjectSpanEnd = 5; */ int getSubjectSpanEnd(); /** * required int32 objectSpanBegin = 6; */ boolean hasObjectSpanBegin(); /** * required int32 objectSpanBegin = 6; */ int getObjectSpanBegin(); /** * required int32 objectSpanEnd = 7; */ boolean hasObjectSpanEnd(); /** * required int32 objectSpanEnd = 7; */ int getObjectSpanEnd(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.Operator} * *
   * A Natural Logic operator
   * 
*/ public static final class Operator extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Operator) OperatorOrBuilder { // Use Operator.newBuilder() to construct. private Operator(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Operator(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Operator defaultInstance; public static Operator getDefaultInstance() { return defaultInstance; } public Operator getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Operator( 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; name_ = bs; break; } case 16: { bitField0_ |= 0x00000002; quantifierSpanBegin_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; quantifierSpanEnd_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; subjectSpanBegin_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; subjectSpanEnd_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; objectSpanBegin_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; objectSpanEnd_ = input.readInt32(); 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_Operator_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Operator_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Operator parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Operator(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUANTIFIERSPANBEGIN_FIELD_NUMBER = 2; private int quantifierSpanBegin_; /** * required int32 quantifierSpanBegin = 2; */ public boolean hasQuantifierSpanBegin() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 quantifierSpanBegin = 2; */ public int getQuantifierSpanBegin() { return quantifierSpanBegin_; } public static final int QUANTIFIERSPANEND_FIELD_NUMBER = 3; private int quantifierSpanEnd_; /** * required int32 quantifierSpanEnd = 3; */ public boolean hasQuantifierSpanEnd() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 quantifierSpanEnd = 3; */ public int getQuantifierSpanEnd() { return quantifierSpanEnd_; } public static final int SUBJECTSPANBEGIN_FIELD_NUMBER = 4; private int subjectSpanBegin_; /** * required int32 subjectSpanBegin = 4; */ public boolean hasSubjectSpanBegin() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int32 subjectSpanBegin = 4; */ public int getSubjectSpanBegin() { return subjectSpanBegin_; } public static final int SUBJECTSPANEND_FIELD_NUMBER = 5; private int subjectSpanEnd_; /** * required int32 subjectSpanEnd = 5; */ public boolean hasSubjectSpanEnd() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required int32 subjectSpanEnd = 5; */ public int getSubjectSpanEnd() { return subjectSpanEnd_; } public static final int OBJECTSPANBEGIN_FIELD_NUMBER = 6; private int objectSpanBegin_; /** * required int32 objectSpanBegin = 6; */ public boolean hasObjectSpanBegin() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required int32 objectSpanBegin = 6; */ public int getObjectSpanBegin() { return objectSpanBegin_; } public static final int OBJECTSPANEND_FIELD_NUMBER = 7; private int objectSpanEnd_; /** * required int32 objectSpanEnd = 7; */ public boolean hasObjectSpanEnd() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * required int32 objectSpanEnd = 7; */ public int getObjectSpanEnd() { return objectSpanEnd_; } private void initFields() { name_ = ""; quantifierSpanBegin_ = 0; quantifierSpanEnd_ = 0; subjectSpanBegin_ = 0; subjectSpanEnd_ = 0; objectSpanBegin_ = 0; objectSpanEnd_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasQuantifierSpanBegin()) { memoizedIsInitialized = 0; return false; } if (!hasQuantifierSpanEnd()) { memoizedIsInitialized = 0; return false; } if (!hasSubjectSpanBegin()) { memoizedIsInitialized = 0; return false; } if (!hasSubjectSpanEnd()) { memoizedIsInitialized = 0; return false; } if (!hasObjectSpanBegin()) { memoizedIsInitialized = 0; return false; } if (!hasObjectSpanEnd()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, quantifierSpanBegin_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, quantifierSpanEnd_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, subjectSpanBegin_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, subjectSpanEnd_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, objectSpanBegin_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, objectSpanEnd_); } 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, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, quantifierSpanBegin_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, quantifierSpanEnd_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, subjectSpanBegin_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, subjectSpanEnd_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, objectSpanBegin_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, objectSpanEnd_); } 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.Operator parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator 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.Operator parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator 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.Operator parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator 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.Operator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator 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.Operator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator 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.Operator 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.Operator} * *
     * A Natural Logic operator
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Operator) edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Operator_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Operator_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); quantifierSpanBegin_ = 0; bitField0_ = (bitField0_ & ~0x00000002); quantifierSpanEnd_ = 0; bitField0_ = (bitField0_ & ~0x00000004); subjectSpanBegin_ = 0; bitField0_ = (bitField0_ & ~0x00000008); subjectSpanEnd_ = 0; bitField0_ = (bitField0_ & ~0x00000010); objectSpanBegin_ = 0; bitField0_ = (bitField0_ & ~0x00000020); objectSpanEnd_ = 0; 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_Operator_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Operator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Operator result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Operator(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.quantifierSpanBegin_ = quantifierSpanBegin_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.quantifierSpanEnd_ = quantifierSpanEnd_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.subjectSpanBegin_ = subjectSpanBegin_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.subjectSpanEnd_ = subjectSpanEnd_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.objectSpanBegin_ = objectSpanBegin_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.objectSpanEnd_ = objectSpanEnd_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Operator) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Operator)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasQuantifierSpanBegin()) { setQuantifierSpanBegin(other.getQuantifierSpanBegin()); } if (other.hasQuantifierSpanEnd()) { setQuantifierSpanEnd(other.getQuantifierSpanEnd()); } if (other.hasSubjectSpanBegin()) { setSubjectSpanBegin(other.getSubjectSpanBegin()); } if (other.hasSubjectSpanEnd()) { setSubjectSpanEnd(other.getSubjectSpanEnd()); } if (other.hasObjectSpanBegin()) { setObjectSpanBegin(other.getObjectSpanBegin()); } if (other.hasObjectSpanEnd()) { setObjectSpanEnd(other.getObjectSpanEnd()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasQuantifierSpanBegin()) { return false; } if (!hasQuantifierSpanEnd()) { return false; } if (!hasSubjectSpanBegin()) { return false; } if (!hasSubjectSpanEnd()) { return false; } if (!hasObjectSpanBegin()) { return false; } if (!hasObjectSpanEnd()) { 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.Operator parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Operator) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * required string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * required string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int quantifierSpanBegin_ ; /** * required int32 quantifierSpanBegin = 2; */ public boolean hasQuantifierSpanBegin() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 quantifierSpanBegin = 2; */ public int getQuantifierSpanBegin() { return quantifierSpanBegin_; } /** * required int32 quantifierSpanBegin = 2; */ public Builder setQuantifierSpanBegin(int value) { bitField0_ |= 0x00000002; quantifierSpanBegin_ = value; onChanged(); return this; } /** * required int32 quantifierSpanBegin = 2; */ public Builder clearQuantifierSpanBegin() { bitField0_ = (bitField0_ & ~0x00000002); quantifierSpanBegin_ = 0; onChanged(); return this; } private int quantifierSpanEnd_ ; /** * required int32 quantifierSpanEnd = 3; */ public boolean hasQuantifierSpanEnd() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 quantifierSpanEnd = 3; */ public int getQuantifierSpanEnd() { return quantifierSpanEnd_; } /** * required int32 quantifierSpanEnd = 3; */ public Builder setQuantifierSpanEnd(int value) { bitField0_ |= 0x00000004; quantifierSpanEnd_ = value; onChanged(); return this; } /** * required int32 quantifierSpanEnd = 3; */ public Builder clearQuantifierSpanEnd() { bitField0_ = (bitField0_ & ~0x00000004); quantifierSpanEnd_ = 0; onChanged(); return this; } private int subjectSpanBegin_ ; /** * required int32 subjectSpanBegin = 4; */ public boolean hasSubjectSpanBegin() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int32 subjectSpanBegin = 4; */ public int getSubjectSpanBegin() { return subjectSpanBegin_; } /** * required int32 subjectSpanBegin = 4; */ public Builder setSubjectSpanBegin(int value) { bitField0_ |= 0x00000008; subjectSpanBegin_ = value; onChanged(); return this; } /** * required int32 subjectSpanBegin = 4; */ public Builder clearSubjectSpanBegin() { bitField0_ = (bitField0_ & ~0x00000008); subjectSpanBegin_ = 0; onChanged(); return this; } private int subjectSpanEnd_ ; /** * required int32 subjectSpanEnd = 5; */ public boolean hasSubjectSpanEnd() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required int32 subjectSpanEnd = 5; */ public int getSubjectSpanEnd() { return subjectSpanEnd_; } /** * required int32 subjectSpanEnd = 5; */ public Builder setSubjectSpanEnd(int value) { bitField0_ |= 0x00000010; subjectSpanEnd_ = value; onChanged(); return this; } /** * required int32 subjectSpanEnd = 5; */ public Builder clearSubjectSpanEnd() { bitField0_ = (bitField0_ & ~0x00000010); subjectSpanEnd_ = 0; onChanged(); return this; } private int objectSpanBegin_ ; /** * required int32 objectSpanBegin = 6; */ public boolean hasObjectSpanBegin() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required int32 objectSpanBegin = 6; */ public int getObjectSpanBegin() { return objectSpanBegin_; } /** * required int32 objectSpanBegin = 6; */ public Builder setObjectSpanBegin(int value) { bitField0_ |= 0x00000020; objectSpanBegin_ = value; onChanged(); return this; } /** * required int32 objectSpanBegin = 6; */ public Builder clearObjectSpanBegin() { bitField0_ = (bitField0_ & ~0x00000020); objectSpanBegin_ = 0; onChanged(); return this; } private int objectSpanEnd_ ; /** * required int32 objectSpanEnd = 7; */ public boolean hasObjectSpanEnd() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * required int32 objectSpanEnd = 7; */ public int getObjectSpanEnd() { return objectSpanEnd_; } /** * required int32 objectSpanEnd = 7; */ public Builder setObjectSpanEnd(int value) { bitField0_ |= 0x00000040; objectSpanEnd_ = value; onChanged(); return this; } /** * required int32 objectSpanEnd = 7; */ public Builder clearObjectSpanEnd() { bitField0_ = (bitField0_ & ~0x00000040); objectSpanEnd_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Operator) } static { defaultInstance = new Operator(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Operator) } public interface PolarityOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Polarity) com.google.protobuf.MessageOrBuilder { /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ boolean hasProjectEquivalence(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectEquivalence(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ boolean hasProjectForwardEntailment(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectForwardEntailment(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ boolean hasProjectReverseEntailment(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectReverseEntailment(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ boolean hasProjectNegation(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectNegation(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ boolean hasProjectAlternation(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectAlternation(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ boolean hasProjectCover(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectCover(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ boolean hasProjectIndependence(); /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectIndependence(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.Polarity} * *
   * The polarity of a word, according to Natural Logic
   * 
*/ public static final class Polarity extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Polarity) PolarityOrBuilder { // Use Polarity.newBuilder() to construct. private Polarity(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Polarity(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Polarity defaultInstance; public static Polarity getDefaultInstance() { return defaultInstance; } public Polarity getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Polarity( 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: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; projectEquivalence_ = value; } break; } case 16: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; projectForwardEntailment_ = value; } break; } case 24: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; projectReverseEntailment_ = value; } break; } case 32: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; projectNegation_ = value; } break; } case 40: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000010; projectAlternation_ = value; } break; } case 48: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000020; projectCover_ = value; } break; } case 56: { int rawValue = input.readEnum(); edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(7, rawValue); } else { bitField0_ |= 0x00000040; projectIndependence_ = 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_Polarity_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Polarity_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Polarity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Polarity(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PROJECTEQUIVALENCE_FIELD_NUMBER = 1; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectEquivalence_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public boolean hasProjectEquivalence() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectEquivalence() { return projectEquivalence_; } public static final int PROJECTFORWARDENTAILMENT_FIELD_NUMBER = 2; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectForwardEntailment_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public boolean hasProjectForwardEntailment() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectForwardEntailment() { return projectForwardEntailment_; } public static final int PROJECTREVERSEENTAILMENT_FIELD_NUMBER = 3; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectReverseEntailment_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public boolean hasProjectReverseEntailment() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectReverseEntailment() { return projectReverseEntailment_; } public static final int PROJECTNEGATION_FIELD_NUMBER = 4; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectNegation_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public boolean hasProjectNegation() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectNegation() { return projectNegation_; } public static final int PROJECTALTERNATION_FIELD_NUMBER = 5; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectAlternation_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public boolean hasProjectAlternation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectAlternation() { return projectAlternation_; } public static final int PROJECTCOVER_FIELD_NUMBER = 6; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectCover_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public boolean hasProjectCover() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectCover() { return projectCover_; } public static final int PROJECTINDEPENDENCE_FIELD_NUMBER = 7; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectIndependence_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public boolean hasProjectIndependence() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectIndependence() { return projectIndependence_; } private void initFields() { projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasProjectEquivalence()) { memoizedIsInitialized = 0; return false; } if (!hasProjectForwardEntailment()) { memoizedIsInitialized = 0; return false; } if (!hasProjectReverseEntailment()) { memoizedIsInitialized = 0; return false; } if (!hasProjectNegation()) { memoizedIsInitialized = 0; return false; } if (!hasProjectAlternation()) { memoizedIsInitialized = 0; return false; } if (!hasProjectCover()) { memoizedIsInitialized = 0; return false; } if (!hasProjectIndependence()) { 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.writeEnum(1, projectEquivalence_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, projectForwardEntailment_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, projectReverseEntailment_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(4, projectNegation_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(5, projectAlternation_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeEnum(6, projectCover_.getNumber()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeEnum(7, projectIndependence_.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 .computeEnumSize(1, projectEquivalence_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, projectForwardEntailment_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, projectReverseEntailment_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, projectNegation_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, projectAlternation_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, projectCover_.getNumber()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, projectIndependence_.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.Polarity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity 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.Polarity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity 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.Polarity parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity 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.Polarity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity 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.Polarity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity 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.Polarity 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.Polarity} * *
     * The polarity of a word, according to Natural Logic
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Polarity) edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Polarity_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Polarity_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.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(); projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; bitField0_ = (bitField0_ & ~0x00000001); projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; bitField0_ = (bitField0_ & ~0x00000002); projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; bitField0_ = (bitField0_ & ~0x00000004); projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; bitField0_ = (bitField0_ & ~0x00000008); projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; bitField0_ = (bitField0_ & ~0x00000010); projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; bitField0_ = (bitField0_ & ~0x00000020); projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; 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_Polarity_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity build() { edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.projectEquivalence_ = projectEquivalence_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.projectForwardEntailment_ = projectForwardEntailment_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.projectReverseEntailment_ = projectReverseEntailment_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.projectNegation_ = projectNegation_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.projectAlternation_ = projectAlternation_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.projectCover_ = projectCover_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.projectIndependence_ = projectIndependence_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance()) return this; if (other.hasProjectEquivalence()) { setProjectEquivalence(other.getProjectEquivalence()); } if (other.hasProjectForwardEntailment()) { setProjectForwardEntailment(other.getProjectForwardEntailment()); } if (other.hasProjectReverseEntailment()) { setProjectReverseEntailment(other.getProjectReverseEntailment()); } if (other.hasProjectNegation()) { setProjectNegation(other.getProjectNegation()); } if (other.hasProjectAlternation()) { setProjectAlternation(other.getProjectAlternation()); } if (other.hasProjectCover()) { setProjectCover(other.getProjectCover()); } if (other.hasProjectIndependence()) { setProjectIndependence(other.getProjectIndependence()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasProjectEquivalence()) { return false; } if (!hasProjectForwardEntailment()) { return false; } if (!hasProjectReverseEntailment()) { return false; } if (!hasProjectNegation()) { return false; } if (!hasProjectAlternation()) { return false; } if (!hasProjectCover()) { return false; } if (!hasProjectIndependence()) { 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.Polarity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public boolean hasProjectEquivalence() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectEquivalence() { return projectEquivalence_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public Builder setProjectEquivalence(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; projectEquivalence_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public Builder clearProjectEquivalence() { bitField0_ = (bitField0_ & ~0x00000001); projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public boolean hasProjectForwardEntailment() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectForwardEntailment() { return projectForwardEntailment_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public Builder setProjectForwardEntailment(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; projectForwardEntailment_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public Builder clearProjectForwardEntailment() { bitField0_ = (bitField0_ & ~0x00000002); projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public boolean hasProjectReverseEntailment() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectReverseEntailment() { return projectReverseEntailment_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public Builder setProjectReverseEntailment(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; projectReverseEntailment_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public Builder clearProjectReverseEntailment() { bitField0_ = (bitField0_ & ~0x00000004); projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public boolean hasProjectNegation() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectNegation() { return projectNegation_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public Builder setProjectNegation(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; projectNegation_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public Builder clearProjectNegation() { bitField0_ = (bitField0_ & ~0x00000008); projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public boolean hasProjectAlternation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectAlternation() { return projectAlternation_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public Builder setProjectAlternation(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; projectAlternation_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public Builder clearProjectAlternation() { bitField0_ = (bitField0_ & ~0x00000010); projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public boolean hasProjectCover() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectCover() { return projectCover_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public Builder setProjectCover(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; projectCover_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public Builder clearProjectCover() { bitField0_ = (bitField0_ & ~0x00000020); projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public boolean hasProjectIndependence() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectIndependence() { return projectIndependence_; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public Builder setProjectIndependence(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; projectIndependence_ = value; onChanged(); return this; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public Builder clearProjectIndependence() { bitField0_ = (bitField0_ & ~0x00000040); projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Polarity) } static { defaultInstance = new Polarity(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Polarity) } public interface NERMentionOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.NERMention) com.google.protobuf.MessageOrBuilder { /** * optional uint32 sentenceIndex = 1; */ boolean hasSentenceIndex(); /** * optional uint32 sentenceIndex = 1; */ int getSentenceIndex(); /** * required uint32 tokenStartInSentenceInclusive = 2; */ boolean hasTokenStartInSentenceInclusive(); /** * required uint32 tokenStartInSentenceInclusive = 2; */ int getTokenStartInSentenceInclusive(); /** * required uint32 tokenEndInSentenceExclusive = 3; */ boolean hasTokenEndInSentenceExclusive(); /** * required uint32 tokenEndInSentenceExclusive = 3; */ int getTokenEndInSentenceExclusive(); /** * required string ner = 4; */ boolean hasNer(); /** * required string ner = 4; */ java.lang.String getNer(); /** * required string ner = 4; */ com.google.protobuf.ByteString getNerBytes(); /** * optional string normalizedNER = 5; */ boolean hasNormalizedNER(); /** * optional string normalizedNER = 5; */ java.lang.String getNormalizedNER(); /** * optional string normalizedNER = 5; */ com.google.protobuf.ByteString getNormalizedNERBytes(); /** * optional string entityType = 6; */ boolean hasEntityType(); /** * optional string entityType = 6; */ java.lang.String getEntityType(); /** * optional string entityType = 6; */ com.google.protobuf.ByteString getEntityTypeBytes(); /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ boolean hasTimex(); /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimex(); /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder(); /** * optional string wikipediaEntity = 8; */ boolean hasWikipediaEntity(); /** * optional string wikipediaEntity = 8; */ java.lang.String getWikipediaEntity(); /** * optional string wikipediaEntity = 8; */ com.google.protobuf.ByteString getWikipediaEntityBytes(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.NERMention} * *
   * An NER mention in the text
   * 
*/ public static final class NERMention extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.NERMention) NERMentionOrBuilder { // Use NERMention.newBuilder() to construct. private NERMention(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NERMention(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NERMention defaultInstance; public static NERMention getDefaultInstance() { return defaultInstance; } public NERMention getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NERMention( 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; tokenStartInSentenceInclusive_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; tokenEndInSentenceExclusive_ = input.readUInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; ner_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; normalizedNER_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; entityType_ = bs; break; } case 58: { edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = timex_.toBuilder(); } timex_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timex_); timex_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; wikipediaEntity_ = 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 { 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_NERMention_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_NERMention_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.class, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NERMention parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NERMention(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_; /** * optional uint32 sentenceIndex = 1; */ public boolean hasSentenceIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 sentenceIndex = 1; */ public int getSentenceIndex() { return sentenceIndex_; } public static final int TOKENSTARTINSENTENCEINCLUSIVE_FIELD_NUMBER = 2; private int tokenStartInSentenceInclusive_; /** * required uint32 tokenStartInSentenceInclusive = 2; */ public boolean hasTokenStartInSentenceInclusive() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 tokenStartInSentenceInclusive = 2; */ public int getTokenStartInSentenceInclusive() { return tokenStartInSentenceInclusive_; } public static final int TOKENENDINSENTENCEEXCLUSIVE_FIELD_NUMBER = 3; private int tokenEndInSentenceExclusive_; /** * required uint32 tokenEndInSentenceExclusive = 3; */ public boolean hasTokenEndInSentenceExclusive() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required uint32 tokenEndInSentenceExclusive = 3; */ public int getTokenEndInSentenceExclusive() { return tokenEndInSentenceExclusive_; } public static final int NER_FIELD_NUMBER = 4; private java.lang.Object ner_; /** * required string ner = 4; */ public boolean hasNer() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string ner = 4; */ 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; } } /** * required string ner = 4; */ 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 = 5; private java.lang.Object normalizedNER_; /** * optional string normalizedNER = 5; */ public boolean hasNormalizedNER() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string normalizedNER = 5; */ 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 = 5; */ 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 ENTITYTYPE_FIELD_NUMBER = 6; private java.lang.Object entityType_; /** * optional string entityType = 6; */ public boolean hasEntityType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string entityType = 6; */ public java.lang.String getEntityType() { java.lang.Object ref = entityType_; 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()) { entityType_ = s; } return s; } } /** * optional string entityType = 6; */ public com.google.protobuf.ByteString getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); entityType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEX_FIELD_NUMBER = 7; private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timex_; /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public boolean hasTimex() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimex() { return timex_; } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder() { return timex_; } public static final int WIKIPEDIAENTITY_FIELD_NUMBER = 8; private java.lang.Object wikipediaEntity_; /** * optional string wikipediaEntity = 8; */ public boolean hasWikipediaEntity() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string wikipediaEntity = 8; */ 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 = 8; */ 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; } } private void initFields() { sentenceIndex_ = 0; tokenStartInSentenceInclusive_ = 0; tokenEndInSentenceExclusive_ = 0; ner_ = ""; normalizedNER_ = ""; entityType_ = ""; timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); wikipediaEntity_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasTokenStartInSentenceInclusive()) { memoizedIsInitialized = 0; return false; } if (!hasTokenEndInSentenceExclusive()) { memoizedIsInitialized = 0; return false; } if (!hasNer()) { 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, tokenStartInSentenceInclusive_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, tokenEndInSentenceExclusive_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getNerBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getNormalizedNERBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getEntityTypeBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, timex_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getWikipediaEntityBytes()); } 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, tokenStartInSentenceInclusive_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, tokenEndInSentenceExclusive_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getNerBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getNormalizedNERBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getEntityTypeBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, timex_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getWikipediaEntityBytes()); } 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.NERMention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention 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.NERMention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention 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.NERMention parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention 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.NERMention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention 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.NERMention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention 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.NERMention 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.NERMention} * *
     * An NER mention in the text
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.NERMention) edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_NERMention_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_NERMention_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.class, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTimexFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); sentenceIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000001); tokenStartInSentenceInclusive_ = 0; bitField0_ = (bitField0_ & ~0x00000002); tokenEndInSentenceExclusive_ = 0; bitField0_ = (bitField0_ & ~0x00000004); ner_ = ""; bitField0_ = (bitField0_ & ~0x00000008); normalizedNER_ = ""; bitField0_ = (bitField0_ & ~0x00000010); entityType_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (timexBuilder_ == null) { timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); } else { timexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); wikipediaEntity_ = ""; bitField0_ = (bitField0_ & ~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_NERMention_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention build() { edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention result = new edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention(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.tokenStartInSentenceInclusive_ = tokenStartInSentenceInclusive_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tokenEndInSentenceExclusive_ = tokenEndInSentenceExclusive_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.ner_ = ner_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.normalizedNER_ = normalizedNER_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.entityType_ = entityType_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (timexBuilder_ == null) { result.timex_ = timex_; } else { result.timex_ = timexBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.wikipediaEntity_ = wikipediaEntity_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.getDefaultInstance()) return this; if (other.hasSentenceIndex()) { setSentenceIndex(other.getSentenceIndex()); } if (other.hasTokenStartInSentenceInclusive()) { setTokenStartInSentenceInclusive(other.getTokenStartInSentenceInclusive()); } if (other.hasTokenEndInSentenceExclusive()) { setTokenEndInSentenceExclusive(other.getTokenEndInSentenceExclusive()); } if (other.hasNer()) { bitField0_ |= 0x00000008; ner_ = other.ner_; onChanged(); } if (other.hasNormalizedNER()) { bitField0_ |= 0x00000010; normalizedNER_ = other.normalizedNER_; onChanged(); } if (other.hasEntityType()) { bitField0_ |= 0x00000020; entityType_ = other.entityType_; onChanged(); } if (other.hasTimex()) { mergeTimex(other.getTimex()); } if (other.hasWikipediaEntity()) { bitField0_ |= 0x00000080; wikipediaEntity_ = other.wikipediaEntity_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTokenStartInSentenceInclusive()) { return false; } if (!hasTokenEndInSentenceExclusive()) { return false; } if (!hasNer()) { 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.NERMention parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int sentenceIndex_ ; /** * optional uint32 sentenceIndex = 1; */ public boolean hasSentenceIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 sentenceIndex = 1; */ public int getSentenceIndex() { return sentenceIndex_; } /** * optional uint32 sentenceIndex = 1; */ public Builder setSentenceIndex(int value) { bitField0_ |= 0x00000001; sentenceIndex_ = value; onChanged(); return this; } /** * optional uint32 sentenceIndex = 1; */ public Builder clearSentenceIndex() { bitField0_ = (bitField0_ & ~0x00000001); sentenceIndex_ = 0; onChanged(); return this; } private int tokenStartInSentenceInclusive_ ; /** * required uint32 tokenStartInSentenceInclusive = 2; */ public boolean hasTokenStartInSentenceInclusive() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint32 tokenStartInSentenceInclusive = 2; */ public int getTokenStartInSentenceInclusive() { return tokenStartInSentenceInclusive_; } /** * required uint32 tokenStartInSentenceInclusive = 2; */ public Builder setTokenStartInSentenceInclusive(int value) { bitField0_ |= 0x00000002; tokenStartInSentenceInclusive_ = value; onChanged(); return this; } /** * required uint32 tokenStartInSentenceInclusive = 2; */ public Builder clearTokenStartInSentenceInclusive() { bitField0_ = (bitField0_ & ~0x00000002); tokenStartInSentenceInclusive_ = 0; onChanged(); return this; } private int tokenEndInSentenceExclusive_ ; /** * required uint32 tokenEndInSentenceExclusive = 3; */ public boolean hasTokenEndInSentenceExclusive() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required uint32 tokenEndInSentenceExclusive = 3; */ public int getTokenEndInSentenceExclusive() { return tokenEndInSentenceExclusive_; } /** * required uint32 tokenEndInSentenceExclusive = 3; */ public Builder setTokenEndInSentenceExclusive(int value) { bitField0_ |= 0x00000004; tokenEndInSentenceExclusive_ = value; onChanged(); return this; } /** * required uint32 tokenEndInSentenceExclusive = 3; */ public Builder clearTokenEndInSentenceExclusive() { bitField0_ = (bitField0_ & ~0x00000004); tokenEndInSentenceExclusive_ = 0; onChanged(); return this; } private java.lang.Object ner_ = ""; /** * required string ner = 4; */ public boolean hasNer() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string ner = 4; */ 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; } } /** * required string ner = 4; */ 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; } } /** * required string ner = 4; */ public Builder setNer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ner_ = value; onChanged(); return this; } /** * required string ner = 4; */ public Builder clearNer() { bitField0_ = (bitField0_ & ~0x00000008); ner_ = getDefaultInstance().getNer(); onChanged(); return this; } /** * required string ner = 4; */ public Builder setNerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ner_ = value; onChanged(); return this; } private java.lang.Object normalizedNER_ = ""; /** * optional string normalizedNER = 5; */ public boolean hasNormalizedNER() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string normalizedNER = 5; */ 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 = 5; */ 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 = 5; */ public Builder setNormalizedNER( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; normalizedNER_ = value; onChanged(); return this; } /** * optional string normalizedNER = 5; */ public Builder clearNormalizedNER() { bitField0_ = (bitField0_ & ~0x00000010); normalizedNER_ = getDefaultInstance().getNormalizedNER(); onChanged(); return this; } /** * optional string normalizedNER = 5; */ public Builder setNormalizedNERBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; normalizedNER_ = value; onChanged(); return this; } private java.lang.Object entityType_ = ""; /** * optional string entityType = 6; */ public boolean hasEntityType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string entityType = 6; */ public java.lang.String getEntityType() { java.lang.Object ref = entityType_; 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()) { entityType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string entityType = 6; */ public com.google.protobuf.ByteString getEntityTypeBytes() { java.lang.Object ref = entityType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); entityType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string entityType = 6; */ public Builder setEntityType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; entityType_ = value; onChanged(); return this; } /** * optional string entityType = 6; */ public Builder clearEntityType() { bitField0_ = (bitField0_ & ~0x00000020); entityType_ = getDefaultInstance().getEntityType(); onChanged(); return this; } /** * optional string entityType = 6; */ public Builder setEntityTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; entityType_ = value; onChanged(); return this; } private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timex_ = 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> timexBuilder_; /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public boolean hasTimex() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimex() { if (timexBuilder_ == null) { return timex_; } else { return timexBuilder_.getMessage(); } } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public Builder setTimex(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) { if (timexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timex_ = value; onChanged(); } else { timexBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public Builder setTimex( edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder builderForValue) { if (timexBuilder_ == null) { timex_ = builderForValue.build(); onChanged(); } else { timexBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public Builder mergeTimex(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) { if (timexBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && timex_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance()) { timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.newBuilder(timex_).mergeFrom(value).buildPartial(); } else { timex_ = value; } onChanged(); } else { timexBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public Builder clearTimex() { if (timexBuilder_ == null) { timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); onChanged(); } else { timexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder getTimexBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTimexFieldBuilder().getBuilder(); } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder() { if (timexBuilder_ != null) { return timexBuilder_.getMessageOrBuilder(); } else { return timex_; } } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder> getTimexFieldBuilder() { if (timexBuilder_ == null) { timexBuilder_ = new com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder>( getTimex(), getParentForChildren(), isClean()); timex_ = null; } return timexBuilder_; } private java.lang.Object wikipediaEntity_ = ""; /** * optional string wikipediaEntity = 8; */ public boolean hasWikipediaEntity() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string wikipediaEntity = 8; */ 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 = 8; */ 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 = 8; */ public Builder setWikipediaEntity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; wikipediaEntity_ = value; onChanged(); return this; } /** * optional string wikipediaEntity = 8; */ public Builder clearWikipediaEntity() { bitField0_ = (bitField0_ & ~0x00000080); wikipediaEntity_ = getDefaultInstance().getWikipediaEntity(); onChanged(); return this; } /** * optional string wikipediaEntity = 8; */ public Builder setWikipediaEntityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; wikipediaEntity_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.NERMention) } static { defaultInstance = new NERMention(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.NERMention) } public interface SentenceFragmentOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.SentenceFragment) com.google.protobuf.MessageOrBuilder { /** * repeated uint32 tokenIndex = 1; */ java.util.List getTokenIndexList(); /** * repeated uint32 tokenIndex = 1; */ int getTokenIndexCount(); /** * repeated uint32 tokenIndex = 1; */ int getTokenIndex(int index); /** * optional uint32 root = 2; */ boolean hasRoot(); /** * optional uint32 root = 2; */ int getRoot(); /** * optional bool assumedTruth = 3; */ boolean hasAssumedTruth(); /** * optional bool assumedTruth = 3; */ boolean getAssumedTruth(); /** * optional double score = 4; */ boolean hasScore(); /** * optional double score = 4; */ double getScore(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.SentenceFragment} * *
   * An entailed sentence fragment.
   * Created by the openie annotator.
   * 
*/ public static final class SentenceFragment extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.SentenceFragment) SentenceFragmentOrBuilder { // Use SentenceFragment.newBuilder() to construct. private SentenceFragment(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SentenceFragment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SentenceFragment defaultInstance; public static SentenceFragment getDefaultInstance() { return defaultInstance; } public SentenceFragment getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SentenceFragment( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tokenIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } tokenIndex_.add(input.readUInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { tokenIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { tokenIndex_.add(input.readUInt32()); } input.popLimit(limit); break; } case 16: { bitField0_ |= 0x00000001; root_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000002; assumedTruth_ = input.readBool(); break; } case 33: { bitField0_ |= 0x00000004; score_ = input.readDouble(); 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)) { tokenIndex_ = java.util.Collections.unmodifiableList(tokenIndex_); } 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_SentenceFragment_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SentenceFragment_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.class, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SentenceFragment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SentenceFragment(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int TOKENINDEX_FIELD_NUMBER = 1; private java.util.List tokenIndex_; /** * repeated uint32 tokenIndex = 1; */ public java.util.List getTokenIndexList() { return tokenIndex_; } /** * repeated uint32 tokenIndex = 1; */ public int getTokenIndexCount() { return tokenIndex_.size(); } /** * repeated uint32 tokenIndex = 1; */ public int getTokenIndex(int index) { return tokenIndex_.get(index); } public static final int ROOT_FIELD_NUMBER = 2; private int root_; /** * optional uint32 root = 2; */ public boolean hasRoot() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 root = 2; */ public int getRoot() { return root_; } public static final int ASSUMEDTRUTH_FIELD_NUMBER = 3; private boolean assumedTruth_; /** * optional bool assumedTruth = 3; */ public boolean hasAssumedTruth() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bool assumedTruth = 3; */ public boolean getAssumedTruth() { return assumedTruth_; } public static final int SCORE_FIELD_NUMBER = 4; private double score_; /** * optional double score = 4; */ public boolean hasScore() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional double score = 4; */ public double getScore() { return score_; } private void initFields() { tokenIndex_ = java.util.Collections.emptyList(); root_ = 0; assumedTruth_ = false; score_ = 0D; } 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 < tokenIndex_.size(); i++) { output.writeUInt32(1, tokenIndex_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(2, root_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, assumedTruth_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeDouble(4, score_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < tokenIndex_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(tokenIndex_.get(i)); } size += dataSize; size += 1 * getTokenIndexList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, root_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, assumedTruth_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, score_); } 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.SentenceFragment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment 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.SentenceFragment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment 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.SentenceFragment parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment 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.SentenceFragment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment 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.SentenceFragment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment 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.SentenceFragment 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.SentenceFragment} * *
     * An entailed sentence fragment.
     * Created by the openie annotator.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.SentenceFragment) edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SentenceFragment_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SentenceFragment_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.class, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.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(); tokenIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); root_ = 0; bitField0_ = (bitField0_ & ~0x00000002); assumedTruth_ = false; bitField0_ = (bitField0_ & ~0x00000004); score_ = 0D; bitField0_ = (bitField0_ & ~0x00000008); 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_SentenceFragment_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment build() { edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment result = new edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { tokenIndex_ = java.util.Collections.unmodifiableList(tokenIndex_); bitField0_ = (bitField0_ & ~0x00000001); } result.tokenIndex_ = tokenIndex_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.root_ = root_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.assumedTruth_ = assumedTruth_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.score_ = score_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance()) return this; if (!other.tokenIndex_.isEmpty()) { if (tokenIndex_.isEmpty()) { tokenIndex_ = other.tokenIndex_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTokenIndexIsMutable(); tokenIndex_.addAll(other.tokenIndex_); } onChanged(); } if (other.hasRoot()) { setRoot(other.getRoot()); } if (other.hasAssumedTruth()) { setAssumedTruth(other.getAssumedTruth()); } if (other.hasScore()) { setScore(other.getScore()); } 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.SentenceFragment parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List tokenIndex_ = java.util.Collections.emptyList(); private void ensureTokenIndexIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { tokenIndex_ = new java.util.ArrayList(tokenIndex_); bitField0_ |= 0x00000001; } } /** * repeated uint32 tokenIndex = 1; */ public java.util.List getTokenIndexList() { return java.util.Collections.unmodifiableList(tokenIndex_); } /** * repeated uint32 tokenIndex = 1; */ public int getTokenIndexCount() { return tokenIndex_.size(); } /** * repeated uint32 tokenIndex = 1; */ public int getTokenIndex(int index) { return tokenIndex_.get(index); } /** * repeated uint32 tokenIndex = 1; */ public Builder setTokenIndex( int index, int value) { ensureTokenIndexIsMutable(); tokenIndex_.set(index, value); onChanged(); return this; } /** * repeated uint32 tokenIndex = 1; */ public Builder addTokenIndex(int value) { ensureTokenIndexIsMutable(); tokenIndex_.add(value); onChanged(); return this; } /** * repeated uint32 tokenIndex = 1; */ public Builder addAllTokenIndex( java.lang.Iterable values) { ensureTokenIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tokenIndex_); onChanged(); return this; } /** * repeated uint32 tokenIndex = 1; */ public Builder clearTokenIndex() { tokenIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private int root_ ; /** * optional uint32 root = 2; */ public boolean hasRoot() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 root = 2; */ public int getRoot() { return root_; } /** * optional uint32 root = 2; */ public Builder setRoot(int value) { bitField0_ |= 0x00000002; root_ = value; onChanged(); return this; } /** * optional uint32 root = 2; */ public Builder clearRoot() { bitField0_ = (bitField0_ & ~0x00000002); root_ = 0; onChanged(); return this; } private boolean assumedTruth_ ; /** * optional bool assumedTruth = 3; */ public boolean hasAssumedTruth() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool assumedTruth = 3; */ public boolean getAssumedTruth() { return assumedTruth_; } /** * optional bool assumedTruth = 3; */ public Builder setAssumedTruth(boolean value) { bitField0_ |= 0x00000004; assumedTruth_ = value; onChanged(); return this; } /** * optional bool assumedTruth = 3; */ public Builder clearAssumedTruth() { bitField0_ = (bitField0_ & ~0x00000004); assumedTruth_ = false; onChanged(); return this; } private double score_ ; /** * optional double score = 4; */ public boolean hasScore() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional double score = 4; */ public double getScore() { return score_; } /** * optional double score = 4; */ public Builder setScore(double value) { bitField0_ |= 0x00000008; score_ = value; onChanged(); return this; } /** * optional double score = 4; */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000008); score_ = 0D; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.SentenceFragment) } static { defaultInstance = new SentenceFragment(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.SentenceFragment) } public interface TokenLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.TokenLocation) com.google.protobuf.MessageOrBuilder { /** * optional uint32 sentenceIndex = 1; */ boolean hasSentenceIndex(); /** * optional uint32 sentenceIndex = 1; */ int getSentenceIndex(); /** * optional uint32 tokenIndex = 2; */ boolean hasTokenIndex(); /** * optional uint32 tokenIndex = 2; */ int getTokenIndex(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.TokenLocation} * *
   * The index of a token in a document, including the sentence
   * index and the offset.
   * 
*/ public static final class TokenLocation extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.TokenLocation) TokenLocationOrBuilder { // Use TokenLocation.newBuilder() to construct. private TokenLocation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TokenLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TokenLocation defaultInstance; public static TokenLocation getDefaultInstance() { return defaultInstance; } public TokenLocation getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TokenLocation( 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; tokenIndex_ = 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_TokenLocation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_TokenLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.class, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TokenLocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TokenLocation(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_; /** * optional uint32 sentenceIndex = 1; */ public boolean hasSentenceIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 sentenceIndex = 1; */ public int getSentenceIndex() { return sentenceIndex_; } public static final int TOKENINDEX_FIELD_NUMBER = 2; private int tokenIndex_; /** * optional uint32 tokenIndex = 2; */ public boolean hasTokenIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 tokenIndex = 2; */ public int getTokenIndex() { return tokenIndex_; } private void initFields() { sentenceIndex_ = 0; tokenIndex_ = 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.writeUInt32(1, sentenceIndex_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, tokenIndex_); } 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, tokenIndex_); } 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.TokenLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation 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.TokenLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation 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.TokenLocation parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation 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.TokenLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation 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.TokenLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation 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.TokenLocation 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.TokenLocation} * *
     * The index of a token in a document, including the sentence
     * index and the offset.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.TokenLocation) edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_TokenLocation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_TokenLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.class, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.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); tokenIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000002); 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_TokenLocation_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation build() { edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation result = new edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation(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.tokenIndex_ = tokenIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()) return this; if (other.hasSentenceIndex()) { setSentenceIndex(other.getSentenceIndex()); } if (other.hasTokenIndex()) { setTokenIndex(other.getTokenIndex()); } 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.TokenLocation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int sentenceIndex_ ; /** * optional uint32 sentenceIndex = 1; */ public boolean hasSentenceIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 sentenceIndex = 1; */ public int getSentenceIndex() { return sentenceIndex_; } /** * optional uint32 sentenceIndex = 1; */ public Builder setSentenceIndex(int value) { bitField0_ |= 0x00000001; sentenceIndex_ = value; onChanged(); return this; } /** * optional uint32 sentenceIndex = 1; */ public Builder clearSentenceIndex() { bitField0_ = (bitField0_ & ~0x00000001); sentenceIndex_ = 0; onChanged(); return this; } private int tokenIndex_ ; /** * optional uint32 tokenIndex = 2; */ public boolean hasTokenIndex() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 tokenIndex = 2; */ public int getTokenIndex() { return tokenIndex_; } /** * optional uint32 tokenIndex = 2; */ public Builder setTokenIndex(int value) { bitField0_ |= 0x00000002; tokenIndex_ = value; onChanged(); return this; } /** * optional uint32 tokenIndex = 2; */ public Builder clearTokenIndex() { bitField0_ = (bitField0_ & ~0x00000002); tokenIndex_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.TokenLocation) } static { defaultInstance = new TokenLocation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.TokenLocation) } public interface RelationTripleOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.RelationTriple) com.google.protobuf.MessageOrBuilder { /** * optional string subject = 1; * *
     * The surface form of the subject
     * 
*/ boolean hasSubject(); /** * optional string subject = 1; * *
     * The surface form of the subject
     * 
*/ java.lang.String getSubject(); /** * optional string subject = 1; * *
     * The surface form of the subject
     * 
*/ com.google.protobuf.ByteString getSubjectBytes(); /** * optional string relation = 2; * *
     * The surface form of the relation (required)
     * 
*/ boolean hasRelation(); /** * optional string relation = 2; * *
     * The surface form of the relation (required)
     * 
*/ java.lang.String getRelation(); /** * optional string relation = 2; * *
     * The surface form of the relation (required)
     * 
*/ com.google.protobuf.ByteString getRelationBytes(); /** * optional string object = 3; * *
     * The surface form of the object
     * 
*/ boolean hasObject(); /** * optional string object = 3; * *
     * The surface form of the object
     * 
*/ java.lang.String getObject(); /** * optional string object = 3; * *
     * The surface form of the object
     * 
*/ com.google.protobuf.ByteString getObjectBytes(); /** * optional double confidence = 4; * *
     * The [optional] confidence of the extraction
     * 
*/ boolean hasConfidence(); /** * optional double confidence = 4; * *
     * The [optional] confidence of the extraction
     * 
*/ double getConfidence(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ java.util.List getSubjectTokensList(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getSubjectTokens(int index); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ int getSubjectTokensCount(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ java.util.List getSubjectTokensOrBuilderList(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder( int index); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ java.util.List getRelationTokensList(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getRelationTokens(int index); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ int getRelationTokensCount(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ java.util.List getRelationTokensOrBuilderList(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder( int index); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ java.util.List getObjectTokensList(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getObjectTokens(int index); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ int getObjectTokensCount(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ java.util.List getObjectTokensOrBuilderList(); /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder( int index); /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
     * The dependency graph fragment for this triple
     * 
*/ boolean hasTree(); /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
     * The dependency graph fragment for this triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getTree(); /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
     * The dependency graph fragment for this triple
     * 
*/ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder(); /** * optional bool istmod = 9; * *
     * If true, this expresses an implicit tmod relation
     * 
*/ boolean hasIstmod(); /** * optional bool istmod = 9; * *
     * If true, this expresses an implicit tmod relation
     * 
*/ boolean getIstmod(); /** * optional bool prefixBe = 10; * *
     * If true, this relation string is missing a 'be' prefix
     * 
*/ boolean hasPrefixBe(); /** * optional bool prefixBe = 10; * *
     * If true, this relation string is missing a 'be' prefix
     * 
*/ boolean getPrefixBe(); /** * optional bool suffixBe = 11; * *
     * If true, this relation string is missing a 'be' suffix
     * 
*/ boolean hasSuffixBe(); /** * optional bool suffixBe = 11; * *
     * If true, this relation string is missing a 'be' suffix
     * 
*/ boolean getSuffixBe(); /** * optional bool suffixOf = 12; * *
     * If true, this relation string is missing a 'of' prefix
     * 
*/ boolean hasSuffixOf(); /** * optional bool suffixOf = 12; * *
     * If true, this relation string is missing a 'of' prefix
     * 
*/ boolean getSuffixOf(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.RelationTriple} * *
   * An OpenIE relation triple.
   * Created by the openie annotator.
   * 
*/ public static final class RelationTriple extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.RelationTriple) RelationTripleOrBuilder { // Use RelationTriple.newBuilder() to construct. private RelationTriple(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RelationTriple(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RelationTriple defaultInstance; public static RelationTriple getDefaultInstance() { return defaultInstance; } public RelationTriple getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RelationTriple( 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; subject_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; relation_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; object_ = bs; break; } case 33: { bitField0_ |= 0x00000008; confidence_ = input.readDouble(); break; } case 66: { edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = tree_.toBuilder(); } tree_ = input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tree_); tree_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 72: { bitField0_ |= 0x00000020; istmod_ = input.readBool(); break; } case 80: { bitField0_ |= 0x00000040; prefixBe_ = input.readBool(); break; } case 88: { bitField0_ |= 0x00000080; suffixBe_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000100; suffixOf_ = input.readBool(); break; } case 106: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { subjectTokens_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } subjectTokens_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); break; } case 114: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { relationTokens_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } relationTokens_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); break; } case 122: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { objectTokens_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } objectTokens_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.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_ & 0x00000010) == 0x00000010)) { subjectTokens_ = java.util.Collections.unmodifiableList(subjectTokens_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { relationTokens_ = java.util.Collections.unmodifiableList(relationTokens_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { objectTokens_ = java.util.Collections.unmodifiableList(objectTokens_); } 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_RelationTriple_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_RelationTriple_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.class, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RelationTriple parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RelationTriple(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SUBJECT_FIELD_NUMBER = 1; private java.lang.Object subject_; /** * optional string subject = 1; * *
     * The surface form of the subject
     * 
*/ public boolean hasSubject() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string subject = 1; * *
     * The surface form of the subject
     * 
*/ public java.lang.String getSubject() { java.lang.Object ref = subject_; 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()) { subject_ = s; } return s; } } /** * optional string subject = 1; * *
     * The surface form of the subject
     * 
*/ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RELATION_FIELD_NUMBER = 2; private java.lang.Object relation_; /** * optional string relation = 2; * *
     * The surface form of the relation (required)
     * 
*/ public boolean hasRelation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string relation = 2; * *
     * The surface form of the relation (required)
     * 
*/ public java.lang.String getRelation() { java.lang.Object ref = relation_; 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()) { relation_ = s; } return s; } } /** * optional string relation = 2; * *
     * The surface form of the relation (required)
     * 
*/ public com.google.protobuf.ByteString getRelationBytes() { java.lang.Object ref = relation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); relation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_FIELD_NUMBER = 3; private java.lang.Object object_; /** * optional string object = 3; * *
     * The surface form of the object
     * 
*/ public boolean hasObject() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string object = 3; * *
     * The surface form of the object
     * 
*/ public java.lang.String getObject() { java.lang.Object ref = object_; 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()) { object_ = s; } return s; } } /** * optional string object = 3; * *
     * The surface form of the object
     * 
*/ public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIDENCE_FIELD_NUMBER = 4; private double confidence_; /** * optional double confidence = 4; * *
     * The [optional] confidence of the extraction
     * 
*/ public boolean hasConfidence() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional double confidence = 4; * *
     * The [optional] confidence of the extraction
     * 
*/ public double getConfidence() { return confidence_; } public static final int SUBJECTTOKENS_FIELD_NUMBER = 13; private java.util.List subjectTokens_; /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ public java.util.List getSubjectTokensList() { return subjectTokens_; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ public java.util.List getSubjectTokensOrBuilderList() { return subjectTokens_; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ public int getSubjectTokensCount() { return subjectTokens_.size(); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getSubjectTokens(int index) { return subjectTokens_.get(index); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
     * The tokens comprising the subject of the triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder( int index) { return subjectTokens_.get(index); } public static final int RELATIONTOKENS_FIELD_NUMBER = 14; private java.util.List relationTokens_; /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ public java.util.List getRelationTokensList() { return relationTokens_; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ public java.util.List getRelationTokensOrBuilderList() { return relationTokens_; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ public int getRelationTokensCount() { return relationTokens_.size(); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getRelationTokens(int index) { return relationTokens_.get(index); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
     * The tokens comprising the relation of the triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder( int index) { return relationTokens_.get(index); } public static final int OBJECTTOKENS_FIELD_NUMBER = 15; private java.util.List objectTokens_; /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ public java.util.List getObjectTokensList() { return objectTokens_; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ public java.util.List getObjectTokensOrBuilderList() { return objectTokens_; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ public int getObjectTokensCount() { return objectTokens_.size(); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getObjectTokens(int index) { return objectTokens_.get(index); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
     * The tokens comprising the object of the triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder( int index) { return objectTokens_.get(index); } public static final int TREE_FIELD_NUMBER = 8; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph tree_; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
     * The dependency graph fragment for this triple
     * 
*/ public boolean hasTree() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
     * The dependency graph fragment for this triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getTree() { return tree_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
     * The dependency graph fragment for this triple
     * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder() { return tree_; } public static final int ISTMOD_FIELD_NUMBER = 9; private boolean istmod_; /** * optional bool istmod = 9; * *
     * If true, this expresses an implicit tmod relation
     * 
*/ public boolean hasIstmod() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool istmod = 9; * *
     * If true, this expresses an implicit tmod relation
     * 
*/ public boolean getIstmod() { return istmod_; } public static final int PREFIXBE_FIELD_NUMBER = 10; private boolean prefixBe_; /** * optional bool prefixBe = 10; * *
     * If true, this relation string is missing a 'be' prefix
     * 
*/ public boolean hasPrefixBe() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool prefixBe = 10; * *
     * If true, this relation string is missing a 'be' prefix
     * 
*/ public boolean getPrefixBe() { return prefixBe_; } public static final int SUFFIXBE_FIELD_NUMBER = 11; private boolean suffixBe_; /** * optional bool suffixBe = 11; * *
     * If true, this relation string is missing a 'be' suffix
     * 
*/ public boolean hasSuffixBe() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bool suffixBe = 11; * *
     * If true, this relation string is missing a 'be' suffix
     * 
*/ public boolean getSuffixBe() { return suffixBe_; } public static final int SUFFIXOF_FIELD_NUMBER = 12; private boolean suffixOf_; /** * optional bool suffixOf = 12; * *
     * If true, this relation string is missing a 'of' prefix
     * 
*/ public boolean hasSuffixOf() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool suffixOf = 12; * *
     * If true, this relation string is missing a 'of' prefix
     * 
*/ public boolean getSuffixOf() { return suffixOf_; } private void initFields() { subject_ = ""; relation_ = ""; object_ = ""; confidence_ = 0D; subjectTokens_ = java.util.Collections.emptyList(); relationTokens_ = java.util.Collections.emptyList(); objectTokens_ = java.util.Collections.emptyList(); tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); istmod_ = false; prefixBe_ = false; suffixBe_ = false; suffixOf_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasTree()) { if (!getTree().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getSubjectBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getRelationBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getObjectBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeDouble(4, confidence_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(8, tree_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(9, istmod_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(10, prefixBe_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(11, suffixBe_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(12, suffixOf_); } for (int i = 0; i < subjectTokens_.size(); i++) { output.writeMessage(13, subjectTokens_.get(i)); } for (int i = 0; i < relationTokens_.size(); i++) { output.writeMessage(14, relationTokens_.get(i)); } for (int i = 0; i < objectTokens_.size(); i++) { output.writeMessage(15, objectTokens_.get(i)); } 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, getSubjectBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getRelationBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getObjectBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, confidence_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, tree_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, istmod_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, prefixBe_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, suffixBe_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, suffixOf_); } for (int i = 0; i < subjectTokens_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, subjectTokens_.get(i)); } for (int i = 0; i < relationTokens_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, relationTokens_.get(i)); } for (int i = 0; i < objectTokens_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, objectTokens_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple 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.RelationTriple parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple 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.RelationTriple parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple 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.RelationTriple parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple 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.RelationTriple parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple 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.RelationTriple 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.RelationTriple} * *
     * An OpenIE relation triple.
     * Created by the openie annotator.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.RelationTriple) edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_RelationTriple_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_RelationTriple_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.class, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubjectTokensFieldBuilder(); getRelationTokensFieldBuilder(); getObjectTokensFieldBuilder(); getTreeFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); subject_ = ""; bitField0_ = (bitField0_ & ~0x00000001); relation_ = ""; bitField0_ = (bitField0_ & ~0x00000002); object_ = ""; bitField0_ = (bitField0_ & ~0x00000004); confidence_ = 0D; bitField0_ = (bitField0_ & ~0x00000008); if (subjectTokensBuilder_ == null) { subjectTokens_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { subjectTokensBuilder_.clear(); } if (relationTokensBuilder_ == null) { relationTokens_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { relationTokensBuilder_.clear(); } if (objectTokensBuilder_ == null) { objectTokens_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { objectTokensBuilder_.clear(); } if (treeBuilder_ == null) { tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); } else { treeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); istmod_ = false; bitField0_ = (bitField0_ & ~0x00000100); prefixBe_ = false; bitField0_ = (bitField0_ & ~0x00000200); suffixBe_ = false; bitField0_ = (bitField0_ & ~0x00000400); suffixOf_ = false; bitField0_ = (bitField0_ & ~0x00000800); 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_RelationTriple_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple build() { edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple result = new edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.subject_ = subject_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.relation_ = relation_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.object_ = object_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.confidence_ = confidence_; if (subjectTokensBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { subjectTokens_ = java.util.Collections.unmodifiableList(subjectTokens_); bitField0_ = (bitField0_ & ~0x00000010); } result.subjectTokens_ = subjectTokens_; } else { result.subjectTokens_ = subjectTokensBuilder_.build(); } if (relationTokensBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { relationTokens_ = java.util.Collections.unmodifiableList(relationTokens_); bitField0_ = (bitField0_ & ~0x00000020); } result.relationTokens_ = relationTokens_; } else { result.relationTokens_ = relationTokensBuilder_.build(); } if (objectTokensBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { objectTokens_ = java.util.Collections.unmodifiableList(objectTokens_); bitField0_ = (bitField0_ & ~0x00000040); } result.objectTokens_ = objectTokens_; } else { result.objectTokens_ = objectTokensBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000010; } if (treeBuilder_ == null) { result.tree_ = tree_; } else { result.tree_ = treeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000020; } result.istmod_ = istmod_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000040; } result.prefixBe_ = prefixBe_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000080; } result.suffixBe_ = suffixBe_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000100; } result.suffixOf_ = suffixOf_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance()) return this; if (other.hasSubject()) { bitField0_ |= 0x00000001; subject_ = other.subject_; onChanged(); } if (other.hasRelation()) { bitField0_ |= 0x00000002; relation_ = other.relation_; onChanged(); } if (other.hasObject()) { bitField0_ |= 0x00000004; object_ = other.object_; onChanged(); } if (other.hasConfidence()) { setConfidence(other.getConfidence()); } if (subjectTokensBuilder_ == null) { if (!other.subjectTokens_.isEmpty()) { if (subjectTokens_.isEmpty()) { subjectTokens_ = other.subjectTokens_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSubjectTokensIsMutable(); subjectTokens_.addAll(other.subjectTokens_); } onChanged(); } } else { if (!other.subjectTokens_.isEmpty()) { if (subjectTokensBuilder_.isEmpty()) { subjectTokensBuilder_.dispose(); subjectTokensBuilder_ = null; subjectTokens_ = other.subjectTokens_; bitField0_ = (bitField0_ & ~0x00000010); subjectTokensBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSubjectTokensFieldBuilder() : null; } else { subjectTokensBuilder_.addAllMessages(other.subjectTokens_); } } } if (relationTokensBuilder_ == null) { if (!other.relationTokens_.isEmpty()) { if (relationTokens_.isEmpty()) { relationTokens_ = other.relationTokens_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRelationTokensIsMutable(); relationTokens_.addAll(other.relationTokens_); } onChanged(); } } else { if (!other.relationTokens_.isEmpty()) { if (relationTokensBuilder_.isEmpty()) { relationTokensBuilder_.dispose(); relationTokensBuilder_ = null; relationTokens_ = other.relationTokens_; bitField0_ = (bitField0_ & ~0x00000020); relationTokensBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRelationTokensFieldBuilder() : null; } else { relationTokensBuilder_.addAllMessages(other.relationTokens_); } } } if (objectTokensBuilder_ == null) { if (!other.objectTokens_.isEmpty()) { if (objectTokens_.isEmpty()) { objectTokens_ = other.objectTokens_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureObjectTokensIsMutable(); objectTokens_.addAll(other.objectTokens_); } onChanged(); } } else { if (!other.objectTokens_.isEmpty()) { if (objectTokensBuilder_.isEmpty()) { objectTokensBuilder_.dispose(); objectTokensBuilder_ = null; objectTokens_ = other.objectTokens_; bitField0_ = (bitField0_ & ~0x00000040); objectTokensBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getObjectTokensFieldBuilder() : null; } else { objectTokensBuilder_.addAllMessages(other.objectTokens_); } } } if (other.hasTree()) { mergeTree(other.getTree()); } if (other.hasIstmod()) { setIstmod(other.getIstmod()); } if (other.hasPrefixBe()) { setPrefixBe(other.getPrefixBe()); } if (other.hasSuffixBe()) { setSuffixBe(other.getSuffixBe()); } if (other.hasSuffixOf()) { setSuffixOf(other.getSuffixOf()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasTree()) { if (!getTree().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.RelationTriple parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object subject_ = ""; /** * optional string subject = 1; * *
       * The surface form of the subject
       * 
*/ public boolean hasSubject() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string subject = 1; * *
       * The surface form of the subject
       * 
*/ public java.lang.String getSubject() { java.lang.Object ref = subject_; 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()) { subject_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string subject = 1; * *
       * The surface form of the subject
       * 
*/ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string subject = 1; * *
       * The surface form of the subject
       * 
*/ public Builder setSubject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; subject_ = value; onChanged(); return this; } /** * optional string subject = 1; * *
       * The surface form of the subject
       * 
*/ public Builder clearSubject() { bitField0_ = (bitField0_ & ~0x00000001); subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** * optional string subject = 1; * *
       * The surface form of the subject
       * 
*/ public Builder setSubjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; subject_ = value; onChanged(); return this; } private java.lang.Object relation_ = ""; /** * optional string relation = 2; * *
       * The surface form of the relation (required)
       * 
*/ public boolean hasRelation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string relation = 2; * *
       * The surface form of the relation (required)
       * 
*/ public java.lang.String getRelation() { java.lang.Object ref = relation_; 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()) { relation_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string relation = 2; * *
       * The surface form of the relation (required)
       * 
*/ public com.google.protobuf.ByteString getRelationBytes() { java.lang.Object ref = relation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); relation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string relation = 2; * *
       * The surface form of the relation (required)
       * 
*/ public Builder setRelation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; relation_ = value; onChanged(); return this; } /** * optional string relation = 2; * *
       * The surface form of the relation (required)
       * 
*/ public Builder clearRelation() { bitField0_ = (bitField0_ & ~0x00000002); relation_ = getDefaultInstance().getRelation(); onChanged(); return this; } /** * optional string relation = 2; * *
       * The surface form of the relation (required)
       * 
*/ public Builder setRelationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; relation_ = value; onChanged(); return this; } private java.lang.Object object_ = ""; /** * optional string object = 3; * *
       * The surface form of the object
       * 
*/ public boolean hasObject() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string object = 3; * *
       * The surface form of the object
       * 
*/ public java.lang.String getObject() { java.lang.Object ref = object_; 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()) { object_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string object = 3; * *
       * The surface form of the object
       * 
*/ public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); object_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string object = 3; * *
       * The surface form of the object
       * 
*/ public Builder setObject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; object_ = value; onChanged(); return this; } /** * optional string object = 3; * *
       * The surface form of the object
       * 
*/ public Builder clearObject() { bitField0_ = (bitField0_ & ~0x00000004); object_ = getDefaultInstance().getObject(); onChanged(); return this; } /** * optional string object = 3; * *
       * The surface form of the object
       * 
*/ public Builder setObjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; object_ = value; onChanged(); return this; } private double confidence_ ; /** * optional double confidence = 4; * *
       * The [optional] confidence of the extraction
       * 
*/ public boolean hasConfidence() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional double confidence = 4; * *
       * The [optional] confidence of the extraction
       * 
*/ public double getConfidence() { return confidence_; } /** * optional double confidence = 4; * *
       * The [optional] confidence of the extraction
       * 
*/ public Builder setConfidence(double value) { bitField0_ |= 0x00000008; confidence_ = value; onChanged(); return this; } /** * optional double confidence = 4; * *
       * The [optional] confidence of the extraction
       * 
*/ public Builder clearConfidence() { bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0D; onChanged(); return this; } private java.util.List subjectTokens_ = java.util.Collections.emptyList(); private void ensureSubjectTokensIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { subjectTokens_ = new java.util.ArrayList(subjectTokens_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder> subjectTokensBuilder_; /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public java.util.List getSubjectTokensList() { if (subjectTokensBuilder_ == null) { return java.util.Collections.unmodifiableList(subjectTokens_); } else { return subjectTokensBuilder_.getMessageList(); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public int getSubjectTokensCount() { if (subjectTokensBuilder_ == null) { return subjectTokens_.size(); } else { return subjectTokensBuilder_.getCount(); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getSubjectTokens(int index) { if (subjectTokensBuilder_ == null) { return subjectTokens_.get(index); } else { return subjectTokensBuilder_.getMessage(index); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder setSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (subjectTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubjectTokensIsMutable(); subjectTokens_.set(index, value); onChanged(); } else { subjectTokensBuilder_.setMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder setSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (subjectTokensBuilder_ == null) { ensureSubjectTokensIsMutable(); subjectTokens_.set(index, builderForValue.build()); onChanged(); } else { subjectTokensBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder addSubjectTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (subjectTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubjectTokensIsMutable(); subjectTokens_.add(value); onChanged(); } else { subjectTokensBuilder_.addMessage(value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder addSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (subjectTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubjectTokensIsMutable(); subjectTokens_.add(index, value); onChanged(); } else { subjectTokensBuilder_.addMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder addSubjectTokens( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (subjectTokensBuilder_ == null) { ensureSubjectTokensIsMutable(); subjectTokens_.add(builderForValue.build()); onChanged(); } else { subjectTokensBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder addSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (subjectTokensBuilder_ == null) { ensureSubjectTokensIsMutable(); subjectTokens_.add(index, builderForValue.build()); onChanged(); } else { subjectTokensBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder addAllSubjectTokens( java.lang.Iterable values) { if (subjectTokensBuilder_ == null) { ensureSubjectTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subjectTokens_); onChanged(); } else { subjectTokensBuilder_.addAllMessages(values); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder clearSubjectTokens() { if (subjectTokensBuilder_ == null) { subjectTokens_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { subjectTokensBuilder_.clear(); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public Builder removeSubjectTokens(int index) { if (subjectTokensBuilder_ == null) { ensureSubjectTokensIsMutable(); subjectTokens_.remove(index); onChanged(); } else { subjectTokensBuilder_.remove(index); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder getSubjectTokensBuilder( int index) { return getSubjectTokensFieldBuilder().getBuilder(index); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder( int index) { if (subjectTokensBuilder_ == null) { return subjectTokens_.get(index); } else { return subjectTokensBuilder_.getMessageOrBuilder(index); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public java.util.List getSubjectTokensOrBuilderList() { if (subjectTokensBuilder_ != null) { return subjectTokensBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subjectTokens_); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addSubjectTokensBuilder() { return getSubjectTokensFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addSubjectTokensBuilder( int index) { return getSubjectTokensFieldBuilder().addBuilder( index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; * *
       * The tokens comprising the subject of the triple
       * 
*/ public java.util.List getSubjectTokensBuilderList() { return getSubjectTokensFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder> getSubjectTokensFieldBuilder() { if (subjectTokensBuilder_ == null) { subjectTokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder>( subjectTokens_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); subjectTokens_ = null; } return subjectTokensBuilder_; } private java.util.List relationTokens_ = java.util.Collections.emptyList(); private void ensureRelationTokensIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { relationTokens_ = new java.util.ArrayList(relationTokens_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder> relationTokensBuilder_; /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public java.util.List getRelationTokensList() { if (relationTokensBuilder_ == null) { return java.util.Collections.unmodifiableList(relationTokens_); } else { return relationTokensBuilder_.getMessageList(); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public int getRelationTokensCount() { if (relationTokensBuilder_ == null) { return relationTokens_.size(); } else { return relationTokensBuilder_.getCount(); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getRelationTokens(int index) { if (relationTokensBuilder_ == null) { return relationTokens_.get(index); } else { return relationTokensBuilder_.getMessage(index); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder setRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (relationTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRelationTokensIsMutable(); relationTokens_.set(index, value); onChanged(); } else { relationTokensBuilder_.setMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder setRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (relationTokensBuilder_ == null) { ensureRelationTokensIsMutable(); relationTokens_.set(index, builderForValue.build()); onChanged(); } else { relationTokensBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder addRelationTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (relationTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRelationTokensIsMutable(); relationTokens_.add(value); onChanged(); } else { relationTokensBuilder_.addMessage(value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder addRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (relationTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRelationTokensIsMutable(); relationTokens_.add(index, value); onChanged(); } else { relationTokensBuilder_.addMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder addRelationTokens( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (relationTokensBuilder_ == null) { ensureRelationTokensIsMutable(); relationTokens_.add(builderForValue.build()); onChanged(); } else { relationTokensBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder addRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (relationTokensBuilder_ == null) { ensureRelationTokensIsMutable(); relationTokens_.add(index, builderForValue.build()); onChanged(); } else { relationTokensBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder addAllRelationTokens( java.lang.Iterable values) { if (relationTokensBuilder_ == null) { ensureRelationTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, relationTokens_); onChanged(); } else { relationTokensBuilder_.addAllMessages(values); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder clearRelationTokens() { if (relationTokensBuilder_ == null) { relationTokens_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { relationTokensBuilder_.clear(); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public Builder removeRelationTokens(int index) { if (relationTokensBuilder_ == null) { ensureRelationTokensIsMutable(); relationTokens_.remove(index); onChanged(); } else { relationTokensBuilder_.remove(index); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder getRelationTokensBuilder( int index) { return getRelationTokensFieldBuilder().getBuilder(index); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder( int index) { if (relationTokensBuilder_ == null) { return relationTokens_.get(index); } else { return relationTokensBuilder_.getMessageOrBuilder(index); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public java.util.List getRelationTokensOrBuilderList() { if (relationTokensBuilder_ != null) { return relationTokensBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(relationTokens_); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addRelationTokensBuilder() { return getRelationTokensFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addRelationTokensBuilder( int index) { return getRelationTokensFieldBuilder().addBuilder( index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; * *
       * The tokens comprising the relation of the triple
       * 
*/ public java.util.List getRelationTokensBuilderList() { return getRelationTokensFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder> getRelationTokensFieldBuilder() { if (relationTokensBuilder_ == null) { relationTokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder>( relationTokens_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); relationTokens_ = null; } return relationTokensBuilder_; } private java.util.List objectTokens_ = java.util.Collections.emptyList(); private void ensureObjectTokensIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { objectTokens_ = new java.util.ArrayList(objectTokens_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder> objectTokensBuilder_; /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public java.util.List getObjectTokensList() { if (objectTokensBuilder_ == null) { return java.util.Collections.unmodifiableList(objectTokens_); } else { return objectTokensBuilder_.getMessageList(); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public int getObjectTokensCount() { if (objectTokensBuilder_ == null) { return objectTokens_.size(); } else { return objectTokensBuilder_.getCount(); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getObjectTokens(int index) { if (objectTokensBuilder_ == null) { return objectTokens_.get(index); } else { return objectTokensBuilder_.getMessage(index); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder setObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (objectTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectTokensIsMutable(); objectTokens_.set(index, value); onChanged(); } else { objectTokensBuilder_.setMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder setObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (objectTokensBuilder_ == null) { ensureObjectTokensIsMutable(); objectTokens_.set(index, builderForValue.build()); onChanged(); } else { objectTokensBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder addObjectTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (objectTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectTokensIsMutable(); objectTokens_.add(value); onChanged(); } else { objectTokensBuilder_.addMessage(value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder addObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (objectTokensBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectTokensIsMutable(); objectTokens_.add(index, value); onChanged(); } else { objectTokensBuilder_.addMessage(index, value); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder addObjectTokens( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (objectTokensBuilder_ == null) { ensureObjectTokensIsMutable(); objectTokens_.add(builderForValue.build()); onChanged(); } else { objectTokensBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder addObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { if (objectTokensBuilder_ == null) { ensureObjectTokensIsMutable(); objectTokens_.add(index, builderForValue.build()); onChanged(); } else { objectTokensBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder addAllObjectTokens( java.lang.Iterable values) { if (objectTokensBuilder_ == null) { ensureObjectTokensIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, objectTokens_); onChanged(); } else { objectTokensBuilder_.addAllMessages(values); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder clearObjectTokens() { if (objectTokensBuilder_ == null) { objectTokens_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { objectTokensBuilder_.clear(); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public Builder removeObjectTokens(int index) { if (objectTokensBuilder_ == null) { ensureObjectTokensIsMutable(); objectTokens_.remove(index); onChanged(); } else { objectTokensBuilder_.remove(index); } return this; } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder getObjectTokensBuilder( int index) { return getObjectTokensFieldBuilder().getBuilder(index); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder( int index) { if (objectTokensBuilder_ == null) { return objectTokens_.get(index); } else { return objectTokensBuilder_.getMessageOrBuilder(index); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public java.util.List getObjectTokensOrBuilderList() { if (objectTokensBuilder_ != null) { return objectTokensBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objectTokens_); } } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addObjectTokensBuilder() { return getObjectTokensFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addObjectTokensBuilder( int index) { return getObjectTokensFieldBuilder().addBuilder( index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; * *
       * The tokens comprising the object of the triple
       * 
*/ public java.util.List getObjectTokensBuilderList() { return getObjectTokensFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder> getObjectTokensFieldBuilder() { if (objectTokensBuilder_ == null) { objectTokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder>( objectTokens_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); objectTokens_ = null; } return objectTokensBuilder_; } private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph tree_ = 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> treeBuilder_; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public boolean hasTree() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getTree() { if (treeBuilder_ == null) { return tree_; } else { return treeBuilder_.getMessage(); } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public Builder setTree(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (treeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tree_ = value; onChanged(); } else { treeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public Builder setTree( edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) { if (treeBuilder_ == null) { tree_ = builderForValue.build(); onChanged(); } else { treeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public Builder mergeTree(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (treeBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && tree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(tree_).mergeFrom(value).buildPartial(); } else { tree_ = value; } onChanged(); } else { treeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public Builder clearTree() { if (treeBuilder_ == null) { tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); onChanged(); } else { treeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getTreeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getTreeFieldBuilder().getBuilder(); } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder() { if (treeBuilder_ != null) { return treeBuilder_.getMessageOrBuilder(); } else { return tree_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; * *
       * The dependency graph fragment for this triple
       * 
*/ private com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder> getTreeFieldBuilder() { if (treeBuilder_ == null) { treeBuilder_ = new com.google.protobuf.SingleFieldBuilder< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( getTree(), getParentForChildren(), isClean()); tree_ = null; } return treeBuilder_; } private boolean istmod_ ; /** * optional bool istmod = 9; * *
       * If true, this expresses an implicit tmod relation
       * 
*/ public boolean hasIstmod() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bool istmod = 9; * *
       * If true, this expresses an implicit tmod relation
       * 
*/ public boolean getIstmod() { return istmod_; } /** * optional bool istmod = 9; * *
       * If true, this expresses an implicit tmod relation
       * 
*/ public Builder setIstmod(boolean value) { bitField0_ |= 0x00000100; istmod_ = value; onChanged(); return this; } /** * optional bool istmod = 9; * *
       * If true, this expresses an implicit tmod relation
       * 
*/ public Builder clearIstmod() { bitField0_ = (bitField0_ & ~0x00000100); istmod_ = false; onChanged(); return this; } private boolean prefixBe_ ; /** * optional bool prefixBe = 10; * *
       * If true, this relation string is missing a 'be' prefix
       * 
*/ public boolean hasPrefixBe() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bool prefixBe = 10; * *
       * If true, this relation string is missing a 'be' prefix
       * 
*/ public boolean getPrefixBe() { return prefixBe_; } /** * optional bool prefixBe = 10; * *
       * If true, this relation string is missing a 'be' prefix
       * 
*/ public Builder setPrefixBe(boolean value) { bitField0_ |= 0x00000200; prefixBe_ = value; onChanged(); return this; } /** * optional bool prefixBe = 10; * *
       * If true, this relation string is missing a 'be' prefix
       * 
*/ public Builder clearPrefixBe() { bitField0_ = (bitField0_ & ~0x00000200); prefixBe_ = false; onChanged(); return this; } private boolean suffixBe_ ; /** * optional bool suffixBe = 11; * *
       * If true, this relation string is missing a 'be' suffix
       * 
*/ public boolean hasSuffixBe() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool suffixBe = 11; * *
       * If true, this relation string is missing a 'be' suffix
       * 
*/ public boolean getSuffixBe() { return suffixBe_; } /** * optional bool suffixBe = 11; * *
       * If true, this relation string is missing a 'be' suffix
       * 
*/ public Builder setSuffixBe(boolean value) { bitField0_ |= 0x00000400; suffixBe_ = value; onChanged(); return this; } /** * optional bool suffixBe = 11; * *
       * If true, this relation string is missing a 'be' suffix
       * 
*/ public Builder clearSuffixBe() { bitField0_ = (bitField0_ & ~0x00000400); suffixBe_ = false; onChanged(); return this; } private boolean suffixOf_ ; /** * optional bool suffixOf = 12; * *
       * If true, this relation string is missing a 'of' prefix
       * 
*/ public boolean hasSuffixOf() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional bool suffixOf = 12; * *
       * If true, this relation string is missing a 'of' prefix
       * 
*/ public boolean getSuffixOf() { return suffixOf_; } /** * optional bool suffixOf = 12; * *
       * If true, this relation string is missing a 'of' prefix
       * 
*/ public Builder setSuffixOf(boolean value) { bitField0_ |= 0x00000800; suffixOf_ = value; onChanged(); return this; } /** * optional bool suffixOf = 12; * *
       * If true, this relation string is missing a 'of' prefix
       * 
*/ public Builder clearSuffixOf() { bitField0_ = (bitField0_ & ~0x00000800); suffixOf_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.RelationTriple) } static { defaultInstance = new RelationTriple(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.RelationTriple) } public interface MapStringStringOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.MapStringString) com.google.protobuf.MessageOrBuilder { /** * repeated string key = 1; */ com.google.protobuf.ProtocolStringList getKeyList(); /** * repeated string key = 1; */ int getKeyCount(); /** * repeated string key = 1; */ java.lang.String getKey(int index); /** * repeated string key = 1; */ com.google.protobuf.ByteString getKeyBytes(int index); /** * repeated string value = 2; */ com.google.protobuf.ProtocolStringList getValueList(); /** * repeated string value = 2; */ int getValueCount(); /** * repeated string value = 2; */ java.lang.String getValue(int index); /** * repeated string value = 2; */ com.google.protobuf.ByteString getValueBytes(int index); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.MapStringString} * *
   * A map from strings to strings.
   * Used, minimally, in the CoNLLU featurizer
   * 
*/ public static final class MapStringString extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.MapStringString) MapStringStringOrBuilder { // Use MapStringString.newBuilder() to construct. private MapStringString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MapStringString(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MapStringString defaultInstance; public static MapStringString getDefaultInstance() { return defaultInstance; } public MapStringString getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapStringString( 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(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } key_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } value_.add(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)) { key_ = key_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = value_.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_MapStringString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapStringString_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.class, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MapStringString parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapStringString(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; /** * repeated string key = 1; */ public com.google.protobuf.ProtocolStringList getKeyList() { return key_; } /** * repeated string key = 1; */ public int getKeyCount() { return key_.size(); } /** * repeated string key = 1; */ public java.lang.String getKey(int index) { return key_.get(index); } /** * repeated string key = 1; */ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList value_; /** * repeated string value = 2; */ public com.google.protobuf.ProtocolStringList getValueList() { return value_; } /** * repeated string value = 2; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 2; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 2; */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } private void initFields() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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 < key_.size(); i++) { output.writeBytes(1, key_.getByteString(i)); } for (int i = 0; i < value_.size(); i++) { output.writeBytes(2, value_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(value_.getByteString(i)); } size += dataSize; size += 1 * getValueList().size(); } 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.MapStringString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString 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.MapStringString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString 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.MapStringString parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString 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.MapStringString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString 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.MapStringString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString 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.MapStringString 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.MapStringString} * *
     * A map from strings to strings.
     * Used, minimally, in the CoNLLU featurizer
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.MapStringString) edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapStringString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapStringString_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.class, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.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(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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_MapStringString_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString build() { edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString result = new edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = key_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = value_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } 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.MapStringString parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new com.google.protobuf.LazyStringArrayList(key_); bitField0_ |= 0x00000001; } } /** * repeated string key = 1; */ public com.google.protobuf.ProtocolStringList getKeyList() { return key_.getUnmodifiableView(); } /** * repeated string key = 1; */ public int getKeyCount() { return key_.size(); } /** * repeated string key = 1; */ public java.lang.String getKey(int index) { return key_.get(index); } /** * repeated string key = 1; */ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } /** * repeated string key = 1; */ public Builder setKey( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** * repeated string key = 1; */ public Builder addKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** * repeated string key = 1; */ public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); return this; } /** * repeated string key = 1; */ public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string key = 1; */ public Builder addKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000002; } } /** * repeated string value = 2; */ public com.google.protobuf.ProtocolStringList getValueList() { return value_.getUnmodifiableView(); } /** * repeated string value = 2; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 2; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 2; */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** * repeated string value = 2; */ public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated string value = 2; */ public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.MapStringString) } static { defaultInstance = new MapStringString(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.MapStringString) } public interface MapIntStringOrBuilder extends // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.MapIntString) com.google.protobuf.MessageOrBuilder { /** * repeated uint32 key = 1; */ java.util.List getKeyList(); /** * repeated uint32 key = 1; */ int getKeyCount(); /** * repeated uint32 key = 1; */ int getKey(int index); /** * repeated string value = 2; */ com.google.protobuf.ProtocolStringList getValueList(); /** * repeated string value = 2; */ int getValueCount(); /** * repeated string value = 2; */ java.lang.String getValue(int index); /** * repeated string value = 2; */ com.google.protobuf.ByteString getValueBytes(int index); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.MapIntString} * *
   * A map from integers to strings.
   * Used, minimally, in the CoNLLU featurizer
   * 
*/ public static final class MapIntString extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.MapIntString) MapIntStringOrBuilder { // Use MapIntString.newBuilder() to construct. private MapIntString(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MapIntString(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MapIntString defaultInstance; public static MapIntString getDefaultInstance() { return defaultInstance; } public MapIntString getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapIntString( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { key_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } key_.add(input.readUInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { key_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { key_.add(input.readUInt32()); } input.popLimit(limit); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } value_.add(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)) { key_ = java.util.Collections.unmodifiableList(key_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = value_.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_MapIntString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapIntString_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.class, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MapIntString parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapIntString(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int KEY_FIELD_NUMBER = 1; private java.util.List key_; /** * repeated uint32 key = 1; */ public java.util.List getKeyList() { return key_; } /** * repeated uint32 key = 1; */ public int getKeyCount() { return key_.size(); } /** * repeated uint32 key = 1; */ public int getKey(int index) { return key_.get(index); } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList value_; /** * repeated string value = 2; */ public com.google.protobuf.ProtocolStringList getValueList() { return value_; } /** * repeated string value = 2; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 2; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 2; */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } private void initFields() { key_ = java.util.Collections.emptyList(); value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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 < key_.size(); i++) { output.writeUInt32(1, key_.get(i)); } for (int i = 0; i < value_.size(); i++) { output.writeBytes(2, value_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(key_.get(i)); } size += dataSize; size += 1 * getKeyList().size(); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(value_.getByteString(i)); } size += dataSize; size += 1 * getValueList().size(); } 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.MapIntString parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString 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.MapIntString parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString 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.MapIntString parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString 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.MapIntString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString 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.MapIntString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString 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.MapIntString 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.MapIntString} * *
     * A map from integers to strings.
     * Used, minimally, in the CoNLLU featurizer
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.MapIntString) edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapIntString_fieldAccessorTable .ensureFieldAccessorsInitialized( edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.class, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder.class); } // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.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(); key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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_MapIntString_descriptor; } public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getDefaultInstanceForType() { return edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance(); } public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString build() { edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString buildPartial() { edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString result = new edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = value_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString) { return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString other) { if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance()) return this; if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } 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.MapIntString parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000001; } } /** * repeated uint32 key = 1; */ public java.util.List getKeyList() { return java.util.Collections.unmodifiableList(key_); } /** * repeated uint32 key = 1; */ public int getKeyCount() { return key_.size(); } /** * repeated uint32 key = 1; */ public int getKey(int index) { return key_.get(index); } /** * repeated uint32 key = 1; */ public Builder setKey( int index, int value) { ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** * repeated uint32 key = 1; */ public Builder addKey(int value) { ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** * repeated uint32 key = 1; */ public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); return this; } /** * repeated uint32 key = 1; */ public Builder clearKey() { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000002; } } /** * repeated string value = 2; */ public com.google.protobuf.ProtocolStringList getValueList() { return value_.getUnmodifiableView(); } /** * repeated string value = 2; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 2; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 2; */ public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** * repeated string value = 2; */ public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated string value = 2; */ public Builder clearValue() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.MapIntString) } static { defaultInstance = new MapIntString(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.MapIntString) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Document_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Document_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Token_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Quote_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Quote_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_ParseTree_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_DependencyGraph_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_CorefChain_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Mention_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Mention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_IndexedWord_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_IndexedWord_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Span_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Span_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Timex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Timex_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Entity_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Entity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Relation_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Relation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Operator_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Operator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Polarity_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Polarity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_NERMention_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_NERMention_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_SentenceFragment_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_SentenceFragment_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_TokenLocation_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_TokenLocation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_RelationTriple_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_RelationTriple_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_MapStringString_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_MapStringString_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_MapIntString_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\rCoreNLP.proto\022\031edu.stanford.nlp.pipeli" + "ne\"\237\003\n\010Document\022\014\n\004text\030\001 \002(\t\0225\n\010sentenc" + "e\030\002 \003(\0132#.edu.stanford.nlp.pipeline.Sent" + "ence\0229\n\ncorefChain\030\003 \003(\0132%.edu.stanford." + "nlp.pipeline.CorefChain\022\r\n\005docID\030\004 \001(\t\022\017" + "\n\007docDate\030\007 \001(\t\022\020\n\010calendar\030\010 \001(\004\022;\n\021sen" + "tencelessToken\030\005 \003(\0132 .edu.stanford.nlp." + "pipeline.Token\0223\n\tcharacter\030\n \003(\0132 .edu." + "stanford.nlp.pipeline.Token\022/\n\005quote\030\006 \003" + "(\0132 .edu.stanford.nlp.pipeline.Quote\0227\n\010", "mentions\030\t \003(\0132%.edu.stanford.nlp.pipeli" + "ne.NERMention*\005\010d\020\200\002\"\240\014\n\010Sentence\022/\n\005tok" + "en\030\001 \003(\0132 .edu.stanford.nlp.pipeline.Tok" + "en\022\030\n\020tokenOffsetBegin\030\002 \002(\r\022\026\n\016tokenOff" + "setEnd\030\003 \002(\r\022\025\n\rsentenceIndex\030\004 \001(\r\022\034\n\024c" + "haracterOffsetBegin\030\005 \001(\r\022\032\n\022characterOf" + "fsetEnd\030\006 \001(\r\0227\n\tparseTree\030\007 \001(\0132$.edu.s" + "tanford.nlp.pipeline.ParseTree\022@\n\022binari" + "zedParseTree\030\037 \001(\0132$.edu.stanford.nlp.pi" + "peline.ParseTree\022@\n\022annotatedParseTree\030 ", " \001(\0132$.edu.stanford.nlp.pipeline.ParseTr" + "ee\022\021\n\tsentiment\030! \001(\t\022=\n\017kBestParseTrees" + "\030\" \003(\0132$.edu.stanford.nlp.pipeline.Parse" + "Tree\022E\n\021basicDependencies\030\010 \001(\0132*.edu.st" + "anford.nlp.pipeline.DependencyGraph\022I\n\025c" + "ollapsedDependencies\030\t \001(\0132*.edu.stanfor" + "d.nlp.pipeline.DependencyGraph\022T\n collap" + "sedCCProcessedDependencies\030\n \001(\0132*.edu.s" + "tanford.nlp.pipeline.DependencyGraph\022K\n\027" + "alternativeDependencies\030\r \001(\0132*.edu.stan", "ford.nlp.pipeline.DependencyGraph\022?\n\014ope" + "nieTriple\030\016 \003(\0132).edu.stanford.nlp.pipel" + "ine.RelationTriple\022<\n\tkbpTriple\030\020 \003(\0132)." + "edu.stanford.nlp.pipeline.RelationTriple" + "\022E\n\020entailedSentence\030\017 \003(\0132+.edu.stanfor" + "d.nlp.pipeline.SentenceFragment\022H\n\024enhan" + "cedDependencies\030\021 \001(\0132*.edu.stanford.nlp" + ".pipeline.DependencyGraph\022P\n\034enhancedPlu" + "sPlusDependencies\030\022 \001(\0132*.edu.stanford.n" + "lp.pipeline.DependencyGraph\0223\n\tcharacter", "\030\023 \003(\0132 .edu.stanford.nlp.pipeline.Token" + "\022\021\n\tparagraph\030\013 \001(\r\022\014\n\004text\030\014 \001(\t\022\036\n\026has" + "RelationAnnotations\0303 \001(\010\0221\n\006entity\0304 \003(" + "\0132!.edu.stanford.nlp.pipeline.Entity\0225\n\010" + "relation\0305 \003(\0132#.edu.stanford.nlp.pipeli" + "ne.Relation\022$\n\034hasNumerizedTokensAnnotat" + "ion\0306 \001(\010\0227\n\010mentions\0307 \003(\0132%.edu.stanfo" + "rd.nlp.pipeline.NERMention\022<\n\020mentionsFo" + "rCoref\0308 \003(\0132\".edu.stanford.nlp.pipeline" + ".Mention\022\"\n\032hasCorefMentionsAnnotation\0309", " \001(\010\022\022\n\nsentenceID\030: \001(\t*\005\010d\020\200\002\"\235\010\n\005Toke" + "n\022\014\n\004word\030\001 \001(\t\022\013\n\003pos\030\002 \001(\t\022\r\n\005value\030\003 " + "\001(\t\022\020\n\010category\030\004 \001(\t\022\016\n\006before\030\005 \001(\t\022\r\n" + "\005after\030\006 \001(\t\022\024\n\014originalText\030\007 \001(\t\022\013\n\003ne" + "r\030\010 \001(\t\022\025\n\rnormalizedNER\030\t \001(\t\022\r\n\005lemma\030" + "\n \001(\t\022\021\n\tbeginChar\030\013 \001(\r\022\017\n\007endChar\030\014 \001(" + "\r\022\021\n\tutterance\030\r \001(\r\022\017\n\007speaker\030\016 \001(\t\022\022\n" + "\nbeginIndex\030\017 \001(\r\022\020\n\010endIndex\030\020 \001(\r\022\027\n\017t" + "okenBeginIndex\030\021 \001(\r\022\025\n\rtokenEndIndex\030\022 " + "\001(\r\0224\n\ntimexValue\030\023 \001(\0132 .edu.stanford.n", "lp.pipeline.Timex\022\025\n\rhasXmlContext\030\025 \001(\010" + "\022\022\n\nxmlContext\030\026 \003(\t\022\026\n\016corefClusterID\030\027" + " \001(\r\022\016\n\006answer\030\030 \001(\t\022\025\n\rheadWordIndex\030\032 " + "\001(\r\0225\n\010operator\030\033 \001(\0132#.edu.stanford.nlp" + ".pipeline.Operator\0225\n\010polarity\030\034 \001(\0132#.e" + "du.stanford.nlp.pipeline.Polarity\022-\n\004spa" + "n\030\035 \001(\0132\037.edu.stanford.nlp.pipeline.Span" + "\022\021\n\tsentiment\030\036 \001(\t\022\026\n\016quotationIndex\030\037 " + "\001(\005\022B\n\016conllUFeatures\030 \001(\0132*.edu.stanfo" + "rd.nlp.pipeline.MapStringString\022\021\n\tcoars", "eTag\030! \001(\t\0228\n\017conllUTokenSpan\030\" \001(\0132\037.ed" + "u.stanford.nlp.pipeline.Span\022\022\n\nconllUMi" + "sc\030# \001(\t\022D\n\023conllUSecondaryDeps\030$ \001(\0132\'." + "edu.stanford.nlp.pipeline.MapIntString\022\027" + "\n\017wikipediaEntity\030% \001(\t\022\016\n\006gender\0303 \001(\t\022" + "\020\n\010trueCase\0304 \001(\t\022\024\n\014trueCaseText\0305 \001(\t\022" + "\023\n\013chineseChar\0306 \001(\t\022\022\n\nchineseSeg\0307 \001(\t" + "*\005\010d\020\200\002\"\241\001\n\005Quote\022\014\n\004text\030\001 \001(\t\022\r\n\005begin" + "\030\002 \001(\r\022\013\n\003end\030\003 \001(\r\022\025\n\rsentenceBegin\030\005 \001" + "(\r\022\023\n\013sentenceEnd\030\006 \001(\r\022\022\n\ntokenBegin\030\007 ", "\001(\r\022\020\n\010tokenEnd\030\010 \001(\r\022\r\n\005docid\030\t \001(\t\022\r\n\005" + "index\030\n \001(\r\"\307\001\n\tParseTree\0223\n\005child\030\001 \003(\013" + "2$.edu.stanford.nlp.pipeline.ParseTree\022\r" + "\n\005value\030\002 \001(\t\022\027\n\017yieldBeginIndex\030\003 \001(\r\022\025" + "\n\ryieldEndIndex\030\004 \001(\r\022\r\n\005score\030\005 \001(\001\0227\n\t" + "sentiment\030\006 \001(\0162$.edu.stanford.nlp.pipel" + "ine.Sentiment\"\226\003\n\017DependencyGraph\022=\n\004nod" + "e\030\001 \003(\0132/.edu.stanford.nlp.pipeline.Depe" + "ndencyGraph.Node\022=\n\004edge\030\002 \003(\0132/.edu.sta" + "nford.nlp.pipeline.DependencyGraph.Edge\022", "\020\n\004root\030\003 \003(\rB\002\020\001\032D\n\004Node\022\025\n\rsentenceInd" + "ex\030\001 \002(\r\022\r\n\005index\030\002 \002(\r\022\026\n\016copyAnnotatio" + "n\030\003 \001(\r\032\254\001\n\004Edge\022\016\n\006source\030\001 \002(\r\022\016\n\006targ" + "et\030\002 \002(\r\022\013\n\003dep\030\003 \001(\t\022\017\n\007isExtra\030\004 \001(\010\022\022" + "\n\nsourceCopy\030\005 \001(\r\022\022\n\ntargetCopy\030\006 \001(\r\022>" + "\n\010language\030\007 \001(\0162#.edu.stanford.nlp.pipe" + "line.Language:\007Unknown\"\306\002\n\nCorefChain\022\017\n" + "\007chainID\030\001 \002(\005\022C\n\007mention\030\002 \003(\01322.edu.st" + "anford.nlp.pipeline.CorefChain.CorefMent" + "ion\022\026\n\016representative\030\003 \002(\r\032\311\001\n\014CorefMen", "tion\022\021\n\tmentionID\030\001 \001(\005\022\023\n\013mentionType\030\002" + " \001(\t\022\016\n\006number\030\003 \001(\t\022\016\n\006gender\030\004 \001(\t\022\017\n\007" + "animacy\030\005 \001(\t\022\022\n\nbeginIndex\030\006 \001(\r\022\020\n\010end" + "Index\030\007 \001(\r\022\021\n\theadIndex\030\t \001(\r\022\025\n\rsenten" + "ceIndex\030\n \001(\r\022\020\n\010position\030\013 \001(\r\"\357\010\n\007Ment" + "ion\022\021\n\tmentionID\030\001 \001(\005\022\023\n\013mentionType\030\002 " + "\001(\t\022\016\n\006number\030\003 \001(\t\022\016\n\006gender\030\004 \001(\t\022\017\n\007a" + "nimacy\030\005 \001(\t\022\016\n\006person\030\006 \001(\t\022\022\n\nstartInd" + "ex\030\007 \001(\r\022\020\n\010endIndex\030\t \001(\r\022\021\n\theadIndex\030" + "\n \001(\r\022\022\n\nheadString\030\013 \001(\t\022\021\n\tnerString\030\014", " \001(\t\022\023\n\013originalRef\030\r \001(\r\022\032\n\022goldCorefCl" + "usterID\030\016 \001(\005\022\026\n\016corefClusterID\030\017 \001(\005\022\022\n" + "\nmentionNum\030\020 \001(\r\022\017\n\007sentNum\030\021 \001(\r\022\r\n\005ut" + "ter\030\022 \001(\r\022\021\n\tparagraph\030\023 \001(\r\022\021\n\tisSubjec" + "t\030\024 \001(\010\022\026\n\016isDirectObject\030\025 \001(\010\022\030\n\020isInd" + "irectObject\030\026 \001(\010\022\033\n\023isPrepositionObject" + "\030\027 \001(\010\022\017\n\007hasTwin\030\030 \001(\010\022\017\n\007generic\030\031 \001(\010" + "\022\023\n\013isSingleton\030\032 \001(\010\022\032\n\022hasBasicDepende" + "ncy\030\033 \001(\010\022\035\n\025hasEnhancedDepenedncy\030\034 \001(\010" + "\022\033\n\023hasContextParseTree\030\035 \001(\010\022?\n\017headInd", "exedWord\030\036 \001(\0132&.edu.stanford.nlp.pipeli" + "ne.IndexedWord\022=\n\rdependingVerb\030\037 \001(\0132&." + "edu.stanford.nlp.pipeline.IndexedWord\0228\n" + "\010headWord\030 \001(\0132&.edu.stanford.nlp.pipel" + "ine.IndexedWord\022;\n\013speakerInfo\030! \001(\0132&.e" + "du.stanford.nlp.pipeline.SpeakerInfo\022=\n\r" + "sentenceWords\0302 \003(\0132&.edu.stanford.nlp.p" + "ipeline.IndexedWord\022<\n\014originalSpan\0303 \003(" + "\0132&.edu.stanford.nlp.pipeline.IndexedWor" + "d\022\022\n\ndependents\0304 \003(\t\022\031\n\021preprocessedTer", "ms\0305 \003(\t\022\023\n\013appositions\0306 \003(\005\022\034\n\024predica" + "teNominatives\0307 \003(\005\022\030\n\020relativePronouns\030" + "8 \003(\005\022\023\n\013listMembers\0309 \003(\005\022\025\n\rbelongToLi" + "sts\030: \003(\005\"X\n\013IndexedWord\022\023\n\013sentenceNum\030" + "\001 \001(\r\022\022\n\ntokenIndex\030\002 \001(\r\022\r\n\005docID\030\003 \001(\r" + "\022\021\n\tcopyCount\030\004 \001(\r\"4\n\013SpeakerInfo\022\023\n\013sp" + "eakerName\030\001 \001(\t\022\020\n\010mentions\030\002 \003(\005\"\"\n\004Spa" + "n\022\r\n\005begin\030\001 \002(\r\022\013\n\003end\030\002 \002(\r\"w\n\005Timex\022\r" + "\n\005value\030\001 \001(\t\022\020\n\010altValue\030\002 \001(\t\022\014\n\004text\030" + "\003 \001(\t\022\014\n\004type\030\004 \001(\t\022\013\n\003tid\030\005 \001(\t\022\022\n\nbegi", "nPoint\030\006 \001(\r\022\020\n\010endPoint\030\007 \001(\r\"\333\001\n\006Entit" + "y\022\021\n\theadStart\030\006 \001(\r\022\017\n\007headEnd\030\007 \001(\r\022\023\n" + "\013mentionType\030\010 \001(\t\022\026\n\016normalizedName\030\t \001" + "(\t\022\026\n\016headTokenIndex\030\n \001(\r\022\017\n\007corefID\030\013 " + "\001(\t\022\020\n\010objectID\030\001 \001(\t\022\023\n\013extentStart\030\002 \001" + "(\r\022\021\n\textentEnd\030\003 \001(\r\022\014\n\004type\030\004 \001(\t\022\017\n\007s" + "ubtype\030\005 \001(\t\"\267\001\n\010Relation\022\017\n\007argName\030\006 \003" + "(\t\022.\n\003arg\030\007 \003(\0132!.edu.stanford.nlp.pipel" + "ine.Entity\022\021\n\tsignature\030\010 \001(\t\022\020\n\010objectI" + "D\030\001 \001(\t\022\023\n\013extentStart\030\002 \001(\r\022\021\n\textentEn", "d\030\003 \001(\r\022\014\n\004type\030\004 \001(\t\022\017\n\007subtype\030\005 \001(\t\"\262" + "\001\n\010Operator\022\014\n\004name\030\001 \002(\t\022\033\n\023quantifierS" + "panBegin\030\002 \002(\005\022\031\n\021quantifierSpanEnd\030\003 \002(" + "\005\022\030\n\020subjectSpanBegin\030\004 \002(\005\022\026\n\016subjectSp" + "anEnd\030\005 \002(\005\022\027\n\017objectSpanBegin\030\006 \002(\005\022\025\n\r" + "objectSpanEnd\030\007 \002(\005\"\251\004\n\010Polarity\022K\n\022proj" + "ectEquivalence\030\001 \002(\0162/.edu.stanford.nlp." + "pipeline.NaturalLogicRelation\022Q\n\030project" + "ForwardEntailment\030\002 \002(\0162/.edu.stanford.n" + "lp.pipeline.NaturalLogicRelation\022Q\n\030proj", "ectReverseEntailment\030\003 \002(\0162/.edu.stanfor" + "d.nlp.pipeline.NaturalLogicRelation\022H\n\017p" + "rojectNegation\030\004 \002(\0162/.edu.stanford.nlp." + "pipeline.NaturalLogicRelation\022K\n\022project" + "Alternation\030\005 \002(\0162/.edu.stanford.nlp.pip" + "eline.NaturalLogicRelation\022E\n\014projectCov" + "er\030\006 \002(\0162/.edu.stanford.nlp.pipeline.Nat" + "uralLogicRelation\022L\n\023projectIndependence" + "\030\007 \002(\0162/.edu.stanford.nlp.pipeline.Natur" + "alLogicRelation\"\361\001\n\nNERMention\022\025\n\rsenten", "ceIndex\030\001 \001(\r\022%\n\035tokenStartInSentenceInc" + "lusive\030\002 \002(\r\022#\n\033tokenEndInSentenceExclus" + "ive\030\003 \002(\r\022\013\n\003ner\030\004 \002(\t\022\025\n\rnormalizedNER\030" + "\005 \001(\t\022\022\n\nentityType\030\006 \001(\t\022/\n\005timex\030\007 \001(\013" + "2 .edu.stanford.nlp.pipeline.Timex\022\027\n\017wi" + "kipediaEntity\030\010 \001(\t\"Y\n\020SentenceFragment\022" + "\022\n\ntokenIndex\030\001 \003(\r\022\014\n\004root\030\002 \001(\r\022\024\n\014ass" + "umedTruth\030\003 \001(\010\022\r\n\005score\030\004 \001(\001\":\n\rTokenL" + "ocation\022\025\n\rsentenceIndex\030\001 \001(\r\022\022\n\ntokenI" + "ndex\030\002 \001(\r\"\232\003\n\016RelationTriple\022\017\n\007subject", "\030\001 \001(\t\022\020\n\010relation\030\002 \001(\t\022\016\n\006object\030\003 \001(\t" + "\022\022\n\nconfidence\030\004 \001(\001\022?\n\rsubjectTokens\030\r " + "\003(\0132(.edu.stanford.nlp.pipeline.TokenLoc" + "ation\022@\n\016relationTokens\030\016 \003(\0132(.edu.stan" + "ford.nlp.pipeline.TokenLocation\022>\n\014objec" + "tTokens\030\017 \003(\0132(.edu.stanford.nlp.pipelin" + "e.TokenLocation\0228\n\004tree\030\010 \001(\0132*.edu.stan" + "ford.nlp.pipeline.DependencyGraph\022\016\n\006ist" + "mod\030\t \001(\010\022\020\n\010prefixBe\030\n \001(\010\022\020\n\010suffixBe\030" + "\013 \001(\010\022\020\n\010suffixOf\030\014 \001(\010\"-\n\017MapStringStri", "ng\022\013\n\003key\030\001 \003(\t\022\r\n\005value\030\002 \003(\t\"*\n\014MapInt" + "String\022\013\n\003key\030\001 \003(\r\022\r\n\005value\030\002 \003(\t*\243\001\n\010L" + "anguage\022\013\n\007Unknown\020\000\022\007\n\003Any\020\001\022\n\n\006Arabic\020" + "\002\022\013\n\007Chinese\020\003\022\013\n\007English\020\004\022\n\n\006German\020\005\022" + "\n\n\006French\020\006\022\n\n\006Hebrew\020\007\022\013\n\007Spanish\020\010\022\024\n\020" + "UniversalEnglish\020\t\022\024\n\020UniversalChinese\020\n" + "*h\n\tSentiment\022\023\n\017STRONG_NEGATIVE\020\000\022\021\n\rWE" + "AK_NEGATIVE\020\001\022\013\n\007NEUTRAL\020\002\022\021\n\rWEAK_POSIT" + "IVE\020\003\022\023\n\017STRONG_POSITIVE\020\004*\223\001\n\024NaturalLo" + "gicRelation\022\017\n\013EQUIVALENCE\020\000\022\026\n\022FORWARD_", "ENTAILMENT\020\001\022\026\n\022REVERSE_ENTAILMENT\020\002\022\014\n\010" + "NEGATION\020\003\022\017\n\013ALTERNATION\020\004\022\t\n\005COVER\020\005\022\020" + "\n\014INDEPENDENCE\020\006B*\n\031edu.stanford.nlp.pip" + "elineB\rCoreNLPProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_edu_stanford_nlp_pipeline_Document_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_edu_stanford_nlp_pipeline_Document_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Document_descriptor, new java.lang.String[] { "Text", "Sentence", "CorefChain", "DocID", "DocDate", "Calendar", "SentencelessToken", "Character", "Quote", "Mentions", }); internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor, new java.lang.String[] { "Token", "TokenOffsetBegin", "TokenOffsetEnd", "SentenceIndex", "CharacterOffsetBegin", "CharacterOffsetEnd", "ParseTree", "BinarizedParseTree", "AnnotatedParseTree", "Sentiment", "KBestParseTrees", "BasicDependencies", "CollapsedDependencies", "CollapsedCCProcessedDependencies", "AlternativeDependencies", "OpenieTriple", "KbpTriple", "EntailedSentence", "EnhancedDependencies", "EnhancedPlusPlusDependencies", "Character", "Paragraph", "Text", "HasRelationAnnotations", "Entity", "Relation", "HasNumerizedTokensAnnotation", "Mentions", "MentionsForCoref", "HasCorefMentionsAnnotation", "SentenceID", }); internal_static_edu_stanford_nlp_pipeline_Token_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Token_descriptor, new java.lang.String[] { "Word", "Pos", "Value", "Category", "Before", "After", "OriginalText", "Ner", "NormalizedNER", "Lemma", "BeginChar", "EndChar", "Utterance", "Speaker", "BeginIndex", "EndIndex", "TokenBeginIndex", "TokenEndIndex", "TimexValue", "HasXmlContext", "XmlContext", "CorefClusterID", "Answer", "HeadWordIndex", "Operator", "Polarity", "Span", "Sentiment", "QuotationIndex", "ConllUFeatures", "CoarseTag", "ConllUTokenSpan", "ConllUMisc", "ConllUSecondaryDeps", "WikipediaEntity", "Gender", "TrueCase", "TrueCaseText", "ChineseChar", "ChineseSeg", }); internal_static_edu_stanford_nlp_pipeline_Quote_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_edu_stanford_nlp_pipeline_Quote_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Quote_descriptor, new java.lang.String[] { "Text", "Begin", "End", "SentenceBegin", "SentenceEnd", "TokenBegin", "TokenEnd", "Docid", "Index", }); internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_edu_stanford_nlp_pipeline_ParseTree_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor, new java.lang.String[] { "Child", "Value", "YieldBeginIndex", "YieldEndIndex", "Score", "Sentiment", }); internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_edu_stanford_nlp_pipeline_DependencyGraph_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor, new java.lang.String[] { "Node", "Edge", "Root", }); internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor = internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor.getNestedTypes().get(0); internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor, new java.lang.String[] { "SentenceIndex", "Index", "CopyAnnotation", }); internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor = internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor.getNestedTypes().get(1); internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor, new java.lang.String[] { "Source", "Target", "Dep", "IsExtra", "SourceCopy", "TargetCopy", "Language", }); internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_edu_stanford_nlp_pipeline_CorefChain_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor, new java.lang.String[] { "ChainID", "Mention", "Representative", }); internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor = internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor.getNestedTypes().get(0); internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor, new java.lang.String[] { "MentionID", "MentionType", "Number", "Gender", "Animacy", "BeginIndex", "EndIndex", "HeadIndex", "SentenceIndex", "Position", }); internal_static_edu_stanford_nlp_pipeline_Mention_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_edu_stanford_nlp_pipeline_Mention_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Mention_descriptor, new java.lang.String[] { "MentionID", "MentionType", "Number", "Gender", "Animacy", "Person", "StartIndex", "EndIndex", "HeadIndex", "HeadString", "NerString", "OriginalRef", "GoldCorefClusterID", "CorefClusterID", "MentionNum", "SentNum", "Utter", "Paragraph", "IsSubject", "IsDirectObject", "IsIndirectObject", "IsPrepositionObject", "HasTwin", "Generic", "IsSingleton", "HasBasicDependency", "HasEnhancedDepenedncy", "HasContextParseTree", "HeadIndexedWord", "DependingVerb", "HeadWord", "SpeakerInfo", "SentenceWords", "OriginalSpan", "Dependents", "PreprocessedTerms", "Appositions", "PredicateNominatives", "RelativePronouns", "ListMembers", "BelongToLists", }); internal_static_edu_stanford_nlp_pipeline_IndexedWord_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_edu_stanford_nlp_pipeline_IndexedWord_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_IndexedWord_descriptor, new java.lang.String[] { "SentenceNum", "TokenIndex", "DocID", "CopyCount", }); internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_descriptor, new java.lang.String[] { "SpeakerName", "Mentions", }); internal_static_edu_stanford_nlp_pipeline_Span_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_edu_stanford_nlp_pipeline_Span_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Span_descriptor, new java.lang.String[] { "Begin", "End", }); internal_static_edu_stanford_nlp_pipeline_Timex_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_edu_stanford_nlp_pipeline_Timex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Timex_descriptor, new java.lang.String[] { "Value", "AltValue", "Text", "Type", "Tid", "BeginPoint", "EndPoint", }); internal_static_edu_stanford_nlp_pipeline_Entity_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_edu_stanford_nlp_pipeline_Entity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Entity_descriptor, new java.lang.String[] { "HeadStart", "HeadEnd", "MentionType", "NormalizedName", "HeadTokenIndex", "CorefID", "ObjectID", "ExtentStart", "ExtentEnd", "Type", "Subtype", }); internal_static_edu_stanford_nlp_pipeline_Relation_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_edu_stanford_nlp_pipeline_Relation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Relation_descriptor, new java.lang.String[] { "ArgName", "Arg", "Signature", "ObjectID", "ExtentStart", "ExtentEnd", "Type", "Subtype", }); internal_static_edu_stanford_nlp_pipeline_Operator_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_edu_stanford_nlp_pipeline_Operator_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Operator_descriptor, new java.lang.String[] { "Name", "QuantifierSpanBegin", "QuantifierSpanEnd", "SubjectSpanBegin", "SubjectSpanEnd", "ObjectSpanBegin", "ObjectSpanEnd", }); internal_static_edu_stanford_nlp_pipeline_Polarity_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_edu_stanford_nlp_pipeline_Polarity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_Polarity_descriptor, new java.lang.String[] { "ProjectEquivalence", "ProjectForwardEntailment", "ProjectReverseEntailment", "ProjectNegation", "ProjectAlternation", "ProjectCover", "ProjectIndependence", }); internal_static_edu_stanford_nlp_pipeline_NERMention_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_edu_stanford_nlp_pipeline_NERMention_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_NERMention_descriptor, new java.lang.String[] { "SentenceIndex", "TokenStartInSentenceInclusive", "TokenEndInSentenceExclusive", "Ner", "NormalizedNER", "EntityType", "Timex", "WikipediaEntity", }); internal_static_edu_stanford_nlp_pipeline_SentenceFragment_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_edu_stanford_nlp_pipeline_SentenceFragment_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_SentenceFragment_descriptor, new java.lang.String[] { "TokenIndex", "Root", "AssumedTruth", "Score", }); internal_static_edu_stanford_nlp_pipeline_TokenLocation_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_edu_stanford_nlp_pipeline_TokenLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_TokenLocation_descriptor, new java.lang.String[] { "SentenceIndex", "TokenIndex", }); internal_static_edu_stanford_nlp_pipeline_RelationTriple_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_edu_stanford_nlp_pipeline_RelationTriple_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_RelationTriple_descriptor, new java.lang.String[] { "Subject", "Relation", "Object", "Confidence", "SubjectTokens", "RelationTokens", "ObjectTokens", "Tree", "Istmod", "PrefixBe", "SuffixBe", "SuffixOf", }); internal_static_edu_stanford_nlp_pipeline_MapStringString_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_edu_stanford_nlp_pipeline_MapStringString_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_MapStringString_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_edu_stanford_nlp_pipeline_MapIntString_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor, new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy