From 7b0296c7c8388fb70fb0282b14151f3fda6e11ee Mon Sep 17 00:00:00 2001 From: J38 Date: Mon, 15 May 2017 22:11:10 -0700 Subject: [PATCH] add section serialization --- .../stanford/nlp/pipeline/CoreNLPProtos.java | 18072 ++++++++++------ 1 file changed, 11741 insertions(+), 6331 deletions(-) diff --git a/src/edu/stanford/nlp/pipeline/CoreNLPProtos.java b/src/edu/stanford/nlp/pipeline/CoreNLPProtos.java index 8424aedaed..b91879aedf 100644 --- a/src/edu/stanford/nlp/pipeline/CoreNLPProtos.java +++ b/src/edu/stanford/nlp/pipeline/CoreNLPProtos.java @@ -5,63 +5,68 @@ public final class CoreNLPProtos { private CoreNLPProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * Protobuf enum {@code edu.stanford.nlp.pipeline.Language} - * *
-   *
    * An enumeration for the valid languages allowed in CoreNLP
    * 
+ * + * Protobuf enum {@code edu.stanford.nlp.pipeline.Language} */ public enum Language implements com.google.protobuf.ProtocolMessageEnum { /** * Unknown = 0; */ - Unknown(0, 0), + Unknown(0), /** * Any = 1; */ - Any(1, 1), + Any(1), /** * Arabic = 2; */ - Arabic(2, 2), + Arabic(2), /** * Chinese = 3; */ - Chinese(3, 3), + Chinese(3), /** * English = 4; */ - English(4, 4), + English(4), /** * German = 5; */ - German(5, 5), + German(5), /** * French = 6; */ - French(6, 6), + French(6), /** * Hebrew = 7; */ - Hebrew(7, 7), + Hebrew(7), /** * Spanish = 8; */ - Spanish(8, 8), + Spanish(8), /** * UniversalEnglish = 9; */ - UniversalEnglish(9, 9), + UniversalEnglish(9), /** * UniversalChinese = 10; */ - UniversalChinese(10, 10), + UniversalChinese(10), ; /** @@ -110,9 +115,19 @@ public enum Language public static final int UniversalChinese_VALUE = 10; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static Language valueOf(int value) { + return forNumber(value); + } + + public static Language forNumber(int value) { switch (value) { case 0: return Unknown; case 1: return Any; @@ -133,17 +148,17 @@ public static Language valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + Language> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Language findValueByNumber(int number) { - return Language.valueOf(number); + return Language.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -165,11 +180,9 @@ public static Language valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private Language(int index, int value) { - this.index = index; + private Language(int value) { this.value = value; } @@ -177,35 +190,34 @@ private Language(int index, int value) { } /** - * Protobuf enum {@code edu.stanford.nlp.pipeline.Sentiment} - * *
-   *
    * An enumeration of valid sentiment values for the sentiment classifier.
    * 
+ * + * Protobuf enum {@code edu.stanford.nlp.pipeline.Sentiment} */ public enum Sentiment implements com.google.protobuf.ProtocolMessageEnum { /** * STRONG_NEGATIVE = 0; */ - STRONG_NEGATIVE(0, 0), + STRONG_NEGATIVE(0), /** * WEAK_NEGATIVE = 1; */ - WEAK_NEGATIVE(1, 1), + WEAK_NEGATIVE(1), /** * NEUTRAL = 2; */ - NEUTRAL(2, 2), + NEUTRAL(2), /** * WEAK_POSITIVE = 3; */ - WEAK_POSITIVE(3, 3), + WEAK_POSITIVE(3), /** * STRONG_POSITIVE = 4; */ - STRONG_POSITIVE(4, 4), + STRONG_POSITIVE(4), ; /** @@ -230,9 +242,19 @@ public enum Sentiment public static final int STRONG_POSITIVE_VALUE = 4; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static Sentiment valueOf(int value) { + return forNumber(value); + } + + public static Sentiment forNumber(int value) { switch (value) { case 0: return STRONG_NEGATIVE; case 1: return WEAK_NEGATIVE; @@ -247,17 +269,17 @@ public static Sentiment valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + Sentiment> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Sentiment findValueByNumber(int number) { - return Sentiment.valueOf(number); + return Sentiment.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -279,11 +301,9 @@ public static Sentiment valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private Sentiment(int index, int value) { - this.index = index; + private Sentiment(int value) { this.value = value; } @@ -291,43 +311,42 @@ private Sentiment(int index, int value) { } /** - * Protobuf enum {@code edu.stanford.nlp.pipeline.NaturalLogicRelation} - * *
-   *
    * The seven informative Natural Logic relations
    * 
+ * + * Protobuf enum {@code edu.stanford.nlp.pipeline.NaturalLogicRelation} */ public enum NaturalLogicRelation implements com.google.protobuf.ProtocolMessageEnum { /** * EQUIVALENCE = 0; */ - EQUIVALENCE(0, 0), + EQUIVALENCE(0), /** * FORWARD_ENTAILMENT = 1; */ - FORWARD_ENTAILMENT(1, 1), + FORWARD_ENTAILMENT(1), /** * REVERSE_ENTAILMENT = 2; */ - REVERSE_ENTAILMENT(2, 2), + REVERSE_ENTAILMENT(2), /** * NEGATION = 3; */ - NEGATION(3, 3), + NEGATION(3), /** * ALTERNATION = 4; */ - ALTERNATION(4, 4), + ALTERNATION(4), /** * COVER = 5; */ - COVER(5, 5), + COVER(5), /** * INDEPENDENCE = 6; */ - INDEPENDENCE(6, 6), + INDEPENDENCE(6), ; /** @@ -360,9 +379,19 @@ public enum NaturalLogicRelation public static final int INDEPENDENCE_VALUE = 6; - public final int getNumber() { return value; } + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static NaturalLogicRelation valueOf(int value) { + return forNumber(value); + } + + public static NaturalLogicRelation forNumber(int value) { switch (value) { case 0: return EQUIVALENCE; case 1: return FORWARD_ENTAILMENT; @@ -379,17 +408,17 @@ public static NaturalLogicRelation valueOf(int value) { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NaturalLogicRelation> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public NaturalLogicRelation findValueByNumber(int number) { - return NaturalLogicRelation.valueOf(number); + return NaturalLogicRelation.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - return getDescriptor().getValues().get(index); + return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { @@ -411,11 +440,9 @@ public static NaturalLogicRelation valueOf( return VALUES[desc.getIndex()]; } - private final int index; private final int value; - private NaturalLogicRelation(int index, int value) { - this.index = index; + private NaturalLogicRelation(int value) { this.value = value; } @@ -423,10 +450,10 @@ private NaturalLogicRelation(int index, int value) { } public interface DocumentOrBuilder extends - com.google.protobuf.GeneratedMessage. + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Document) + com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { - // required string text = 1; /** * required string text = 1; */ @@ -441,7 +468,6 @@ public interface DocumentOrBuilder extends com.google.protobuf.ByteString getTextBytes(); - // repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; /** * repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; */ @@ -466,7 +492,6 @@ public interface DocumentOrBuilder extends edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentenceOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; /** * repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; */ @@ -491,7 +516,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentenceOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuilder( int index); - // optional string docID = 4; /** * optional string docID = 4; */ @@ -506,7 +530,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuild com.google.protobuf.ByteString getDocIDBytes(); - // optional string docDate = 7; /** * optional string docDate = 7; */ @@ -521,7 +544,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuild com.google.protobuf.ByteString getDocDateBytes(); - // optional uint64 calendar = 8; /** * optional uint64 calendar = 8; */ @@ -531,62 +553,60 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChainOrBuild */ long getCalendar(); - // repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; /** - * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; - * *
      **
      * A peculiar field, for the corner case when a Document is
      * serialized without any sentences. Otherwise
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.Token character = 10; /** * repeated .edu.stanford.nlp.pipeline.Token character = 10; */ @@ -611,7 +631,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBui edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.Quote quote = 6; /** * repeated .edu.stanford.nlp.pipeline.Quote quote = 6; */ @@ -636,94 +655,144 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder getQuoteOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ java.util.List getMentionsList(); /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ 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.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ int getMentionsCount(); /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ java.util.List getMentionsOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder( int index); + + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + java.util.List + getSectionsList(); + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + edu.stanford.nlp.pipeline.CoreNLPProtos.Section getSections(int index); + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + int getSectionsCount(); + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + java.util.List + getSectionsOrBuilderList(); + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder getSectionsOrBuilder( + int index); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Document} - * *
-   *
    * A document; that is, the equivalent of an Annotation.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Document} */ - public static final class Document extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Document> implements DocumentOrBuilder { + public static final class Document extends + com.google.protobuf.GeneratedMessageV3.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) { + private Document(com.google.protobuf.GeneratedMessageV3.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 Document() { + 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(); + sections_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Document( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -743,8 +812,9 @@ private Document( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - text_ = input.readBytes(); + text_ = bs; break; } case 18: { @@ -752,7 +822,8 @@ private Document( sentence_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } - sentence_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.PARSER, extensionRegistry)); + sentence_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.PARSER, extensionRegistry)); break; } case 26: { @@ -760,12 +831,14 @@ private Document( corefChain_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } - corefChain_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.PARSER, extensionRegistry)); + 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_ = input.readBytes(); + docID_ = bs; break; } case 42: { @@ -773,7 +846,8 @@ private Document( sentencelessToken_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } - sentencelessToken_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); + sentencelessToken_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); break; } case 50: { @@ -781,12 +855,14 @@ private Document( quote_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } - quote_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.PARSER, extensionRegistry)); + 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_ = input.readBytes(); + docDate_ = bs; break; } case 64: { @@ -799,7 +875,8 @@ private Document( mentions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } - mentions_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.PARSER, extensionRegistry)); + mentions_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.PARSER, extensionRegistry)); break; } case 82: { @@ -807,7 +884,17 @@ private Document( character_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } - character_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); + character_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + sections_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + sections_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Section.PARSER, extensionRegistry)); break; } } @@ -816,7 +903,7 @@ private Document( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { sentence_ = java.util.Collections.unmodifiableList(sentence_); @@ -836,6 +923,9 @@ private Document( if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { character_ = java.util.Collections.unmodifiableList(character_); } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + sections_ = java.util.Collections.unmodifiableList(sections_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -845,32 +935,16 @@ private Document( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // required string text = 1; public static final int TEXT_FIELD_NUMBER = 1; - private java.lang.Object text_; + private volatile java.lang.Object text_; /** * required string text = 1; */ @@ -911,7 +985,6 @@ public java.lang.String getText() { } } - // repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; public static final int SENTENCE_FIELD_NUMBER = 2; private java.util.List sentence_; /** @@ -947,7 +1020,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentenceOrBu return sentence_.get(index); } - // repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; public static final int COREFCHAIN_FIELD_NUMBER = 3; private java.util.List corefChain_; /** @@ -983,9 +1055,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder getCorefChain return corefChain_.get(index); } - // optional string docID = 4; public static final int DOCID_FIELD_NUMBER = 4; - private java.lang.Object docID_; + private volatile java.lang.Object docID_; /** * optional string docID = 4; */ @@ -1026,9 +1097,8 @@ public java.lang.String getDocID() { } } - // optional string docDate = 7; public static final int DOCDATE_FIELD_NUMBER = 7; - private java.lang.Object docDate_; + private volatile java.lang.Object docDate_; /** * optional string docDate = 7; */ @@ -1069,7 +1139,6 @@ public java.lang.String getDocDate() { } } - // optional uint64 calendar = 8; public static final int CALENDAR_FIELD_NUMBER = 8; private long calendar_; /** @@ -1085,73 +1154,71 @@ public long getCalendar() { return calendar_; } - // repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder( int index) { return sentencelessToken_.get(index); } - // repeated .edu.stanford.nlp.pipeline.Token character = 10; public static final int CHARACTER_FIELD_NUMBER = 10; private java.util.List character_; /** @@ -1187,7 +1254,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuil return character_.get(index); } - // repeated .edu.stanford.nlp.pipeline.Quote quote = 6; public static final int QUOTE_FIELD_NUMBER = 6; private java.util.List quote_; /** @@ -1223,83 +1289,131 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder getQuoteOrBuilder( return quote_.get(index); } - // repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; 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.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public java.util.List getMentionsList() { return mentions_; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public java.util.List getMentionsOrBuilderList() { return mentions_; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public int getMentionsCount() { return mentions_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
      **
      * This field is for entity mentions across the document.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ 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.
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ 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(); + public static final int SECTIONS_FIELD_NUMBER = 11; + private java.util.List sections_; + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public java.util.List getSectionsList() { + return sections_; + } + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public java.util.List + getSectionsOrBuilderList() { + return sections_; } + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public int getSectionsCount() { + return sections_.size(); + } + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section getSections(int index) { + return sections_.get(index); + } + /** + *
+     **
+     * Store sections found in the document
+     * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder getSectionsOrBuilder( + int index) { + return sections_.get(index); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasText()) { memoizedIsInitialized = 0; @@ -1335,6 +1449,12 @@ public final boolean isInitialized() { return false; } } + for (int i = 0; i < getSectionsCount(); i++) { + if (!getSections(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; @@ -1345,12 +1465,11 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionWriter extensionWriter = - newExtensionWriter(); + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTextBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } for (int i = 0; i < sentence_.size(); i++) { output.writeMessage(2, sentence_.get(i)); @@ -1359,7 +1478,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, corefChain_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(4, getDocIDBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, docID_); } for (int i = 0; i < sentencelessToken_.size(); i++) { output.writeMessage(5, sentencelessToken_.get(i)); @@ -1368,7 +1487,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(6, quote_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(7, getDocDateBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, docDate_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(8, calendar_); @@ -1379,19 +1498,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < character_.size(); i++) { output.writeMessage(10, character_.get(i)); } + for (int i = 0; i < sections_.size(); i++) { + output.writeMessage(11, sections_.get(i)); + } extensionWriter.writeUntil(256, output); - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTextBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } for (int i = 0; i < sentence_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -1402,8 +1522,7 @@ public int getSerializedSize() { .computeMessageSize(3, corefChain_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getDocIDBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, docID_); } for (int i = 0; i < sentencelessToken_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -1414,8 +1533,7 @@ public int getSerializedSize() { .computeMessageSize(6, quote_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getDocDateBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, docDate_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream @@ -1429,17 +1547,124 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, character_.get(i)); } + for (int i = 0; i < sections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, sections_.get(i)); + } size += extensionsSerializedSize(); - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Document)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Document other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Document) obj; + + boolean result = true; + result = result && (hasText() == other.hasText()); + if (hasText()) { + result = result && getText() + .equals(other.getText()); + } + result = result && getSentenceList() + .equals(other.getSentenceList()); + result = result && getCorefChainList() + .equals(other.getCorefChainList()); + result = result && (hasDocID() == other.hasDocID()); + if (hasDocID()) { + result = result && getDocID() + .equals(other.getDocID()); + } + result = result && (hasDocDate() == other.hasDocDate()); + if (hasDocDate()) { + result = result && getDocDate() + .equals(other.getDocDate()); + } + result = result && (hasCalendar() == other.hasCalendar()); + if (hasCalendar()) { + result = result && (getCalendar() + == other.getCalendar()); + } + result = result && getSentencelessTokenList() + .equals(other.getSentencelessTokenList()); + result = result && getCharacterList() + .equals(other.getCharacterList()); + result = result && getQuoteList() + .equals(other.getQuoteList()); + result = result && getMentionsList() + .equals(other.getMentionsList()); + result = result && getSectionsList() + .equals(other.getSectionsList()); + result = result && unknownFields.equals(other.unknownFields); + result = result && + getExtensionFields().equals(other.getExtensionFields()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } + if (getSentenceCount() > 0) { + hash = (37 * hash) + SENTENCE_FIELD_NUMBER; + hash = (53 * hash) + getSentenceList().hashCode(); + } + if (getCorefChainCount() > 0) { + hash = (37 * hash) + COREFCHAIN_FIELD_NUMBER; + hash = (53 * hash) + getCorefChainList().hashCode(); + } + if (hasDocID()) { + hash = (37 * hash) + DOCID_FIELD_NUMBER; + hash = (53 * hash) + getDocID().hashCode(); + } + if (hasDocDate()) { + hash = (37 * hash) + DOCDATE_FIELD_NUMBER; + hash = (53 * hash) + getDocDate().hashCode(); + } + if (hasCalendar()) { + hash = (37 * hash) + CALENDAR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCalendar()); + } + if (getSentencelessTokenCount() > 0) { + hash = (37 * hash) + SENTENCELESSTOKEN_FIELD_NUMBER; + hash = (53 * hash) + getSentencelessTokenList().hashCode(); + } + if (getCharacterCount() > 0) { + hash = (37 * hash) + CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getCharacterList().hashCode(); + } + if (getQuoteCount() > 0) { + hash = (37 * hash) + QUOTE_FIELD_NUMBER; + hash = (53 * hash) + getQuoteList().hashCode(); + } + if (getMentionsCount() > 0) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentionsList().hashCode(); + } + if (getSectionsCount() > 0) { + hash = (37 * hash) + SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSectionsList().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom( @@ -1465,66 +1690,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Document prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Document} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - edu.stanford.nlp.pipeline.CoreNLPProtos.Document, Builder> implements edu.stanford.nlp.pipeline.CoreNLPProtos.DocumentOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Document_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1537,24 +1774,22 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSentenceFieldBuilder(); getCorefChainFieldBuilder(); getSentencelessTokenFieldBuilder(); getCharacterFieldBuilder(); getQuoteFieldBuilder(); getMentionsFieldBuilder(); + getSectionsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); text_ = ""; @@ -1601,13 +1836,15 @@ public Builder clear() { } else { mentionsBuilder_.clear(); } + if (sectionsBuilder_ == null) { + sections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + sectionsBuilder_.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; @@ -1699,11 +1936,69 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Document buildPartial() { } else { result.mentions_ = mentionsBuilder_.build(); } + if (sectionsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + sections_ = java.util.Collections.unmodifiableList(sections_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.sections_ = sections_; + } else { + result.sections_ = sectionsBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Document, Type> extension, + Type value) { + return (Builder) super.setExtension(extension, value); + } + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Document, java.util.List> extension, + int index, Type value) { + return (Builder) super.setExtension(extension, index, value); + } + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Document, java.util.List> extension, + Type value) { + return (Builder) super.addExtension(extension, value); + } + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Document, ?> extension) { + return (Builder) super.clearExtension(extension); + } 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); @@ -1739,7 +2034,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) sentence_ = other.sentence_; bitField0_ = (bitField0_ & ~0x00000002); sentenceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSentenceFieldBuilder() : null; } else { sentenceBuilder_.addAllMessages(other.sentence_); @@ -1765,7 +2060,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) corefChain_ = other.corefChain_; bitField0_ = (bitField0_ & ~0x00000004); corefChainBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCorefChainFieldBuilder() : null; } else { corefChainBuilder_.addAllMessages(other.corefChain_); @@ -1804,7 +2099,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) sentencelessToken_ = other.sentencelessToken_; bitField0_ = (bitField0_ & ~0x00000040); sentencelessTokenBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSentencelessTokenFieldBuilder() : null; } else { sentencelessTokenBuilder_.addAllMessages(other.sentencelessToken_); @@ -1830,7 +2125,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) character_ = other.character_; bitField0_ = (bitField0_ & ~0x00000080); characterBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCharacterFieldBuilder() : null; } else { characterBuilder_.addAllMessages(other.character_); @@ -1856,7 +2151,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) quote_ = other.quote_; bitField0_ = (bitField0_ & ~0x00000100); quoteBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQuoteFieldBuilder() : null; } else { quoteBuilder_.addAllMessages(other.quote_); @@ -1882,55 +2177,80 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Document other) mentions_ = other.mentions_; bitField0_ = (bitField0_ & ~0x00000200); mentionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMentionsFieldBuilder() : null; } else { mentionsBuilder_.addAllMessages(other.mentions_); } } } + if (sectionsBuilder_ == null) { + if (!other.sections_.isEmpty()) { + if (sections_.isEmpty()) { + sections_ = other.sections_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureSectionsIsMutable(); + sections_.addAll(other.sections_); + } + onChanged(); + } + } else { + if (!other.sections_.isEmpty()) { + if (sectionsBuilder_.isEmpty()) { + sectionsBuilder_.dispose(); + sectionsBuilder_ = null; + sections_ = other.sections_; + bitField0_ = (bitField0_ & ~0x00000400); + sectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSectionsFieldBuilder() : null; + } else { + sectionsBuilder_.addAllMessages(other.sections_); + } + } + } this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); 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; + } + } + for (int i = 0; i < getSectionsCount(); i++) { + if (!getSections(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { - return false; } return true; @@ -1945,7 +2265,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Document) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -1955,7 +2275,6 @@ public Builder mergeFrom( } private int bitField0_; - // required string text = 1; private java.lang.Object text_ = ""; /** * required string text = 1; @@ -1969,9 +2288,12 @@ public boolean hasText() { public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; + 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; @@ -2029,7 +2351,6 @@ public Builder setTextBytes( return this; } - // repeated .edu.stanford.nlp.pipeline.Sentence sentence = 2; private java.util.List sentence_ = java.util.Collections.emptyList(); private void ensureSentenceIsMutable() { @@ -2039,7 +2360,7 @@ private void ensureSentenceIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder> sentenceBuilder_; /** @@ -2171,7 +2492,8 @@ public Builder addAllSentence( java.lang.Iterable values) { if (sentenceBuilder_ == null) { ensureSentenceIsMutable(); - super.addAll(values, sentence_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sentence_); onChanged(); } else { sentenceBuilder_.addAllMessages(values); @@ -2254,11 +2576,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder addSentenceBuild getSentenceBuilderList() { return getSentenceFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + sentenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder>( sentence_, ((bitField0_ & 0x00000002) == 0x00000002), @@ -2269,7 +2591,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder addSentenceBuild return sentenceBuilder_; } - // repeated .edu.stanford.nlp.pipeline.CorefChain corefChain = 3; private java.util.List corefChain_ = java.util.Collections.emptyList(); private void ensureCorefChainIsMutable() { @@ -2279,7 +2600,7 @@ private void ensureCorefChainIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder> corefChainBuilder_; /** @@ -2411,7 +2732,8 @@ public Builder addAllCorefChain( java.lang.Iterable values) { if (corefChainBuilder_ == null) { ensureCorefChainIsMutable(); - super.addAll(values, corefChain_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, corefChain_); onChanged(); } else { corefChainBuilder_.addAllMessages(values); @@ -2494,11 +2816,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder addCorefChainB getCorefChainBuilderList() { return getCorefChainFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + corefChainBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder>( corefChain_, ((bitField0_ & 0x00000004) == 0x00000004), @@ -2509,7 +2831,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Builder addCorefChainB return corefChainBuilder_; } - // optional string docID = 4; private java.lang.Object docID_ = ""; /** * optional string docID = 4; @@ -2523,9 +2844,12 @@ public boolean hasDocID() { public java.lang.String getDocID() { java.lang.Object ref = docID_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - docID_ = s; + 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; @@ -2583,7 +2907,6 @@ public Builder setDocIDBytes( return this; } - // optional string docDate = 7; private java.lang.Object docDate_ = ""; /** * optional string docDate = 7; @@ -2597,9 +2920,12 @@ public boolean hasDocDate() { public java.lang.String getDocDate() { java.lang.Object ref = docDate_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - docDate_ = s; + 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; @@ -2657,7 +2983,6 @@ public Builder setDocDateBytes( return this; } - // optional uint64 calendar = 8; private long calendar_ ; /** * optional uint64 calendar = 8; @@ -2690,7 +3015,6 @@ public Builder clearCalendar() { return this; } - // repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; private java.util.List sentencelessToken_ = java.util.Collections.emptyList(); private void ensureSentencelessTokenIsMutable() { @@ -2700,17 +3024,17 @@ private void ensureSentencelessTokenIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public java.util.List getSentencelessTokenList() { if (sentencelessTokenBuilder_ == null) { @@ -2720,13 +3044,13 @@ public java.util.List getSentence } } /** - * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; - * *
        **
        * A peculiar field, for the corner case when a Document is
        * serialized without any sentences. Otherwise
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public int getSentencelessTokenCount() { if (sentencelessTokenBuilder_ == null) { @@ -2736,13 +3060,13 @@ public 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getSentencelessToken(int index) { if (sentencelessTokenBuilder_ == null) { @@ -2752,13 +3076,13 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getSentencelessToken(int in } } /** - * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; - * *
        **
        * A peculiar field, for the corner case when a Document is
        * serialized without any sentences. Otherwise
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder setSentencelessToken( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) { @@ -2775,13 +3099,13 @@ public Builder setSentencelessToken( 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder setSentencelessToken( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) { @@ -2795,13 +3119,13 @@ public Builder setSentencelessToken( 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder addSentencelessToken(edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) { if (sentencelessTokenBuilder_ == null) { @@ -2817,13 +3141,13 @@ public Builder addSentencelessToken(edu.stanford.nlp.pipeline.CoreNLPProtos.Toke 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder addSentencelessToken( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token value) { @@ -2840,13 +3164,13 @@ public Builder addSentencelessToken( 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder addSentencelessToken( edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) { @@ -2860,13 +3184,13 @@ public Builder addSentencelessToken( 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder addSentencelessToken( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder builderForValue) { @@ -2880,19 +3204,20 @@ public Builder addSentencelessToken( 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder addAllSentencelessToken( java.lang.Iterable values) { if (sentencelessTokenBuilder_ == null) { ensureSentencelessTokenIsMutable(); - super.addAll(values, sentencelessToken_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sentencelessToken_); onChanged(); } else { sentencelessTokenBuilder_.addAllMessages(values); @@ -2900,13 +3225,13 @@ public Builder addAllSentencelessToken( 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder clearSentencelessToken() { if (sentencelessTokenBuilder_ == null) { @@ -2919,13 +3244,13 @@ public Builder clearSentencelessToken() { 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public Builder removeSentencelessToken(int index) { if (sentencelessTokenBuilder_ == null) { @@ -2938,26 +3263,26 @@ public Builder removeSentencelessToken(int 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTokenOrBuilder( int index) { @@ -2967,13 +3292,13 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTok } } /** - * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; - * *
        **
        * A peculiar field, for the corner case when a Document is
        * serialized without any sentences. Otherwise
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public java.util.List getSentencelessTokenOrBuilderList() { @@ -2984,26 +3309,26 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getSentencelessTok } } /** - * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; - * *
        **
        * A peculiar field, for the corner case when a Document is
        * serialized without any sentences. Otherwise
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addSentencelessTokenBuilder( int index) { @@ -3011,23 +3336,23 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addSentencelessToke 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.Token sentencelessToken = 5; */ public java.util.List getSentencelessTokenBuilderList() { return getSentencelessTokenFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + sentencelessTokenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>( sentencelessToken_, ((bitField0_ & 0x00000040) == 0x00000040), @@ -3038,7 +3363,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addSentencelessToke return sentencelessTokenBuilder_; } - // repeated .edu.stanford.nlp.pipeline.Token character = 10; private java.util.List character_ = java.util.Collections.emptyList(); private void ensureCharacterIsMutable() { @@ -3048,7 +3372,7 @@ private void ensureCharacterIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> characterBuilder_; /** @@ -3180,7 +3504,8 @@ public Builder addAllCharacter( java.lang.Iterable values) { if (characterBuilder_ == null) { ensureCharacterIsMutable(); - super.addAll(values, character_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, character_); onChanged(); } else { characterBuilder_.addAllMessages(values); @@ -3263,11 +3588,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder getCharacterBuilderList() { return getCharacterFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + characterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>( character_, ((bitField0_ & 0x00000080) == 0x00000080), @@ -3278,7 +3603,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder return characterBuilder_; } - // repeated .edu.stanford.nlp.pipeline.Quote quote = 6; private java.util.List quote_ = java.util.Collections.emptyList(); private void ensureQuoteIsMutable() { @@ -3288,7 +3612,7 @@ private void ensureQuoteIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Quote, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder> quoteBuilder_; /** @@ -3420,7 +3744,8 @@ public Builder addAllQuote( java.lang.Iterable values) { if (quoteBuilder_ == null) { ensureQuoteIsMutable(); - super.addAll(values, quote_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, quote_); onChanged(); } else { quoteBuilder_.addAllMessages(values); @@ -3503,11 +3828,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder addQuoteBuilder( getQuoteBuilderList() { return getQuoteFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + quoteBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Quote, edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder>( quote_, ((bitField0_ & 0x00000100) == 0x00000100), @@ -3518,7 +3843,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote.Builder addQuoteBuilder( return quoteBuilder_; } - // repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; private java.util.List mentions_ = java.util.Collections.emptyList(); private void ensureMentionsIsMutable() { @@ -3528,16 +3852,16 @@ private void ensureMentionsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public java.util.List getMentionsList() { if (mentionsBuilder_ == null) { @@ -3547,12 +3871,12 @@ public java.util.List getMen } } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public int getMentionsCount() { if (mentionsBuilder_ == null) { @@ -3562,12 +3886,12 @@ public int getMentionsCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getMentions(int index) { if (mentionsBuilder_ == null) { @@ -3577,12 +3901,12 @@ public 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.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder setMentions( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) { @@ -3599,12 +3923,12 @@ public Builder setMentions( return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder setMentions( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) { @@ -3618,12 +3942,12 @@ public Builder setMentions( return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder addMentions(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) { if (mentionsBuilder_ == null) { @@ -3639,12 +3963,12 @@ public Builder addMentions(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention va return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder addMentions( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention value) { @@ -3661,12 +3985,12 @@ public Builder addMentions( return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder addMentions( edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) { @@ -3680,12 +4004,12 @@ public Builder addMentions( return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder addMentions( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder builderForValue) { @@ -3699,18 +4023,19 @@ public Builder addMentions( return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder addAllMentions( java.lang.Iterable values) { if (mentionsBuilder_ == null) { ensureMentionsIsMutable(); - super.addAll(values, mentions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mentions_); onChanged(); } else { mentionsBuilder_.addAllMessages(values); @@ -3718,12 +4043,12 @@ public Builder addAllMentions( return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder clearMentions() { if (mentionsBuilder_ == null) { @@ -3736,12 +4061,12 @@ public Builder clearMentions() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public Builder removeMentions(int index) { if (mentionsBuilder_ == null) { @@ -3754,24 +4079,24 @@ public Builder removeMentions(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ 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.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder( int index) { @@ -3781,12 +4106,12 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOr } } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public java.util.List getMentionsOrBuilderList() { @@ -3797,24 +4122,24 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOr } } /** - * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; - * *
        **
        * This field is for entity mentions across the document.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ 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.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBuilder( int index) { @@ -3822,22 +4147,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBui 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.
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 9; */ public java.util.List getMentionsBuilderList() { return getMentionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + mentionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder>( mentions_, ((bitField0_ & 0x00000200) == 0x00000200), @@ -3848,22 +4173,389 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBui return mentionsBuilder_; } + private java.util.List sections_ = + java.util.Collections.emptyList(); + private void ensureSectionsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + sections_ = new java.util.ArrayList(sections_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + edu.stanford.nlp.pipeline.CoreNLPProtos.Section, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder> sectionsBuilder_; + + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public java.util.List getSectionsList() { + if (sectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sections_); + } else { + return sectionsBuilder_.getMessageList(); + } + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public int getSectionsCount() { + if (sectionsBuilder_ == null) { + return sections_.size(); + } else { + return sectionsBuilder_.getCount(); + } + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section getSections(int index) { + if (sectionsBuilder_ == null) { + return sections_.get(index); + } else { + return sectionsBuilder_.getMessage(index); + } + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder setSections( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Section value) { + if (sectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.set(index, value); + onChanged(); + } else { + sectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder setSections( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder builderForValue) { + if (sectionsBuilder_ == null) { + ensureSectionsIsMutable(); + sections_.set(index, builderForValue.build()); + onChanged(); + } else { + sectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder addSections(edu.stanford.nlp.pipeline.CoreNLPProtos.Section value) { + if (sectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.add(value); + onChanged(); + } else { + sectionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder addSections( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Section value) { + if (sectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSectionsIsMutable(); + sections_.add(index, value); + onChanged(); + } else { + sectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder addSections( + edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder builderForValue) { + if (sectionsBuilder_ == null) { + ensureSectionsIsMutable(); + sections_.add(builderForValue.build()); + onChanged(); + } else { + sectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder addSections( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder builderForValue) { + if (sectionsBuilder_ == null) { + ensureSectionsIsMutable(); + sections_.add(index, builderForValue.build()); + onChanged(); + } else { + sectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder addAllSections( + java.lang.Iterable values) { + if (sectionsBuilder_ == null) { + ensureSectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sections_); + onChanged(); + } else { + sectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder clearSections() { + if (sectionsBuilder_ == null) { + sections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + sectionsBuilder_.clear(); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public Builder removeSections(int index) { + if (sectionsBuilder_ == null) { + ensureSectionsIsMutable(); + sections_.remove(index); + onChanged(); + } else { + sectionsBuilder_.remove(index); + } + return this; + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder getSectionsBuilder( + int index) { + return getSectionsFieldBuilder().getBuilder(index); + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder getSectionsOrBuilder( + int index) { + if (sectionsBuilder_ == null) { + return sections_.get(index); } else { + return sectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public java.util.List + getSectionsOrBuilderList() { + if (sectionsBuilder_ != null) { + return sectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sections_); + } + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder addSectionsBuilder() { + return getSectionsFieldBuilder().addBuilder( + edu.stanford.nlp.pipeline.CoreNLPProtos.Section.getDefaultInstance()); + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder addSectionsBuilder( + int index) { + return getSectionsFieldBuilder().addBuilder( + index, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.getDefaultInstance()); + } + /** + *
+       **
+       * Store sections found in the document
+       * 
+ * + * repeated .edu.stanford.nlp.pipeline.Section sections = 11; + */ + public java.util.List + getSectionsBuilderList() { + return getSectionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + edu.stanford.nlp.pipeline.CoreNLPProtos.Section, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder> + getSectionsFieldBuilder() { + if (sectionsBuilder_ == null) { + sectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + edu.stanford.nlp.pipeline.CoreNLPProtos.Section, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder>( + sections_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + sections_ = null; + } + return sectionsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Document) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Document) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Document DEFAULT_INSTANCE; static { - defaultInstance = new Document(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Document(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Document getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Document getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Document) } public interface SentenceOrBuilder extends - com.google.protobuf.GeneratedMessage. + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Sentence) + com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { - // repeated .edu.stanford.nlp.pipeline.Token token = 1; /** * repeated .edu.stanford.nlp.pipeline.Token token = 1; */ @@ -3888,7 +4580,6 @@ public interface SentenceOrBuilder extends edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( int index); - // required uint32 tokenOffsetBegin = 2; /** * required uint32 tokenOffsetBegin = 2; */ @@ -3898,7 +4589,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ int getTokenOffsetBegin(); - // required uint32 tokenOffsetEnd = 3; /** * required uint32 tokenOffsetEnd = 3; */ @@ -3908,7 +4598,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ int getTokenOffsetEnd(); - // optional uint32 sentenceIndex = 4; /** * optional uint32 sentenceIndex = 4; */ @@ -3918,7 +4607,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ int getSentenceIndex(); - // optional uint32 characterOffsetBegin = 5; /** * optional uint32 characterOffsetBegin = 5; */ @@ -3928,7 +4616,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ int getCharacterOffsetBegin(); - // optional uint32 characterOffsetEnd = 6; /** * optional uint32 characterOffsetEnd = 6; */ @@ -3938,7 +4625,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ int getCharacterOffsetEnd(); - // optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; /** * optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; */ @@ -3952,7 +4638,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOrBuilder(); - // optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; /** * optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; */ @@ -3966,7 +4651,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedParseTreeOrBuilder(); - // optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; /** * optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; */ @@ -3980,7 +4664,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( */ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedParseTreeOrBuilder(); - // optional string sentiment = 33; /** * optional string sentiment = 33; */ @@ -3995,7 +4678,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( com.google.protobuf.ByteString getSentimentBytes(); - // repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34; /** * repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34; */ @@ -4020,7 +4702,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrBuilder( int index); - // optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; */ @@ -4034,7 +4715,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrB */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasicDependenciesOrBuilder(); - // optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; */ @@ -4048,7 +4728,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrB */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedDependenciesOrBuilder(); - // optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; */ @@ -4062,7 +4741,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrB */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedCCProcessedDependenciesOrBuilder(); - // optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; */ @@ -4076,187 +4754,182 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseTreesOrB */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlternativeDependenciesOrBuilder(); - // repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ java.util.List getOpenieTripleList(); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getOpenieTriple(int index); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ int getOpenieTripleCount(); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ java.util.List getOpenieTripleOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenieTripleOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ java.util.List getKbpTripleList(); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getKbpTriple(int index); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ int getKbpTripleCount(); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ java.util.List getKbpTripleOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTripleOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ java.util.List getEntailedSentenceList(); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedSentence(int index); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ int getEntailedSentenceCount(); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ java.util.List getEntailedSentenceOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedSentenceOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ java.util.List getEntailedClauseList(); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedClause(int index); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ int getEntailedClauseCount(); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ java.util.List getEntailedClauseOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedClauseOrBuilder( int index); - // optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; */ @@ -4270,7 +4943,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedCla */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedDependenciesOrBuilder(); - // optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; /** * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; */ @@ -4284,7 +4956,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedCla */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedPlusPlusDependenciesOrBuilder(); - // repeated .edu.stanford.nlp.pipeline.Token character = 19; /** * repeated .edu.stanford.nlp.pipeline.Token character = 19; */ @@ -4309,7 +4980,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedCla edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder( int index); - // optional uint32 paragraph = 11; /** * optional uint32 paragraph = 11; */ @@ -4319,52 +4989,49 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder( */ int getParagraph(); - // optional string text = 12; /** - * optional string text = 12; - * *
      * Only needed if we're only saving the sentence.
      * 
+ * + * optional string text = 12; */ boolean hasText(); /** - * optional string text = 12; - * *
      * Only needed if we're only saving the sentence.
      * 
+ * + * optional string text = 12; */ java.lang.String getText(); /** - * optional string text = 12; - * *
      * Only needed if we're only saving the sentence.
      * 
+ * + * optional string text = 12; */ com.google.protobuf.ByteString getTextBytes(); - // optional bool hasRelationAnnotations = 51; /** - * optional bool hasRelationAnnotations = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional bool hasRelationAnnotations = 51; */ boolean hasHasRelationAnnotations(); /** - * optional bool hasRelationAnnotations = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional bool hasRelationAnnotations = 51; */ boolean getHasRelationAnnotations(); - // repeated .edu.stanford.nlp.pipeline.Entity entity = 52; /** * repeated .edu.stanford.nlp.pipeline.Entity entity = 52; */ @@ -4389,7 +5056,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getEntityOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.Relation relation = 53; /** * repeated .edu.stanford.nlp.pipeline.Relation relation = 53; */ @@ -4414,7 +5080,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getEntityOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBuilder( int index); - // optional bool hasNumerizedTokensAnnotation = 54; /** * optional bool hasNumerizedTokensAnnotation = 54; */ @@ -4424,7 +5089,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBuilder( */ boolean getHasNumerizedTokensAnnotation(); - // repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55; /** * repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55; */ @@ -4449,7 +5113,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56; /** * repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56; */ @@ -4474,7 +5137,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder getMentionsForCorefOrBuilder( int index); - // optional bool hasCorefMentionsAnnotation = 57; /** * optional bool hasCorefMentionsAnnotation = 57; */ @@ -4484,72 +5146,131 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder getMentionsForCorefOrBu */ boolean getHasCorefMentionsAnnotation(); - // optional string sentenceID = 58; /** - * optional string sentenceID = 58; - * *
      * Useful when storing sentences (e.g. ForEach)
      * 
+ * + * optional string sentenceID = 58; */ boolean hasSentenceID(); /** - * optional string sentenceID = 58; - * *
      * Useful when storing sentences (e.g. ForEach)
      * 
+ * + * optional string sentenceID = 58; */ java.lang.String getSentenceID(); /** - * optional string sentenceID = 58; - * *
      * Useful when storing sentences (e.g. ForEach)
      * 
+ * + * optional string sentenceID = 58; */ com.google.protobuf.ByteString getSentenceIDBytes(); + + /** + *
+     * date of section
+     * 
+ * + * optional string sectionDate = 59; + */ + boolean hasSectionDate(); + /** + *
+     * date of section
+     * 
+ * + * optional string sectionDate = 59; + */ + java.lang.String getSectionDate(); + /** + *
+     * date of section
+     * 
+ * + * optional string sectionDate = 59; + */ + com.google.protobuf.ByteString + getSectionDateBytes(); + + /** + *
+     * section index for this sentence's section
+     * 
+ * + * optional uint32 sectionIndex = 60; + */ + boolean hasSectionIndex(); + /** + *
+     * section index for this sentence's section
+     * 
+ * + * optional uint32 sectionIndex = 60; + */ + int getSectionIndex(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Sentence} - * *
-   *
    * The serialized version of a CoreMap representing a sentence.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Sentence} */ - public static final class Sentence extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Sentence> implements SentenceOrBuilder { + public static final class Sentence extends + com.google.protobuf.GeneratedMessageV3.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) { + private Sentence(com.google.protobuf.GeneratedMessageV3.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 Sentence() { + token_ = java.util.Collections.emptyList(); + tokenOffsetBegin_ = 0; + tokenOffsetEnd_ = 0; + sentenceIndex_ = 0; + characterOffsetBegin_ = 0; + characterOffsetEnd_ = 0; + sentiment_ = ""; + kBestParseTrees_ = java.util.Collections.emptyList(); + openieTriple_ = java.util.Collections.emptyList(); + kbpTriple_ = java.util.Collections.emptyList(); + entailedSentence_ = java.util.Collections.emptyList(); + entailedClause_ = java.util.Collections.emptyList(); + 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_ = ""; + sectionDate_ = ""; + sectionIndex_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Sentence( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; + int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -4572,7 +5293,8 @@ private Sentence( token_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - token_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); + token_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); break; } case 16: { @@ -4658,8 +5380,9 @@ private Sentence( break; } case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; - text_ = input.readBytes(); + text_ = bs; break; } case 106: { @@ -4680,7 +5403,8 @@ private Sentence( openieTriple_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } - openieTriple_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.PARSER, extensionRegistry)); + openieTriple_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.PARSER, extensionRegistry)); break; } case 122: { @@ -4688,7 +5412,8 @@ private Sentence( entailedSentence_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00020000; } - entailedSentence_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.PARSER, extensionRegistry)); + entailedSentence_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.PARSER, extensionRegistry)); break; } case 130: { @@ -4696,7 +5421,8 @@ private Sentence( kbpTriple_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } - kbpTriple_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.PARSER, extensionRegistry)); + kbpTriple_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.PARSER, extensionRegistry)); break; } case 138: { @@ -4730,7 +5456,8 @@ private Sentence( character_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00200000; } - character_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); + character_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Token.PARSER, extensionRegistry)); break; } case 250: { @@ -4760,8 +5487,9 @@ private Sentence( break; } case 266: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; - sentiment_ = input.readBytes(); + sentiment_ = bs; break; } case 274: { @@ -4769,7 +5497,8 @@ private Sentence( kBestParseTrees_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } - kBestParseTrees_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry)); + kBestParseTrees_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry)); break; } case 282: { @@ -4777,7 +5506,8 @@ private Sentence( entailedClause_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } - entailedClause_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.PARSER, extensionRegistry)); + entailedClause_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.PARSER, extensionRegistry)); break; } case 408: { @@ -4790,7 +5520,8 @@ private Sentence( entity_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x02000000; } - entity_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.PARSER, extensionRegistry)); + entity_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.PARSER, extensionRegistry)); break; } case 426: { @@ -4798,7 +5529,8 @@ private Sentence( relation_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x04000000; } - relation_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.PARSER, extensionRegistry)); + relation_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.PARSER, extensionRegistry)); break; } case 432: { @@ -4811,7 +5543,8 @@ private Sentence( mentions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x10000000; } - mentions_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.PARSER, extensionRegistry)); + mentions_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.PARSER, extensionRegistry)); break; } case 450: { @@ -4819,7 +5552,8 @@ private Sentence( mentionsForCoref_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x20000000; } - mentionsForCoref_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.PARSER, extensionRegistry)); + mentionsForCoref_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.PARSER, extensionRegistry)); break; } case 456: { @@ -4828,8 +5562,20 @@ private Sentence( break; } case 466: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00100000; - sentenceID_ = input.readBytes(); + sentenceID_ = bs; + break; + } + case 474: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00200000; + sectionDate_ = bs; + break; + } + case 480: { + bitField0_ |= 0x00400000; + sectionIndex_ = input.readUInt32(); break; } } @@ -4838,7 +5584,7 @@ private Sentence( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { token_ = java.util.Collections.unmodifiableList(token_); @@ -4882,30 +5628,14 @@ private Sentence( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // repeated .edu.stanford.nlp.pipeline.Token token = 1; public static final int TOKEN_FIELD_NUMBER = 1; private java.util.List token_; /** @@ -4941,7 +5671,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getTokenOrBuilder( return token_.get(index); } - // required uint32 tokenOffsetBegin = 2; public static final int TOKENOFFSETBEGIN_FIELD_NUMBER = 2; private int tokenOffsetBegin_; /** @@ -4957,7 +5686,6 @@ public int getTokenOffsetBegin() { return tokenOffsetBegin_; } - // required uint32 tokenOffsetEnd = 3; public static final int TOKENOFFSETEND_FIELD_NUMBER = 3; private int tokenOffsetEnd_; /** @@ -4973,7 +5701,6 @@ public int getTokenOffsetEnd() { return tokenOffsetEnd_; } - // optional uint32 sentenceIndex = 4; public static final int SENTENCEINDEX_FIELD_NUMBER = 4; private int sentenceIndex_; /** @@ -4989,7 +5716,6 @@ public int getSentenceIndex() { return sentenceIndex_; } - // optional uint32 characterOffsetBegin = 5; public static final int CHARACTEROFFSETBEGIN_FIELD_NUMBER = 5; private int characterOffsetBegin_; /** @@ -5005,7 +5731,6 @@ public int getCharacterOffsetBegin() { return characterOffsetBegin_; } - // optional uint32 characterOffsetEnd = 6; public static final int CHARACTEROFFSETEND_FIELD_NUMBER = 6; private int characterOffsetEnd_; /** @@ -5021,7 +5746,6 @@ public int getCharacterOffsetEnd() { return characterOffsetEnd_; } - // optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; public static final int PARSETREE_FIELD_NUMBER = 7; private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseTree_; /** @@ -5034,16 +5758,15 @@ public boolean hasParseTree() { * optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getParseTree() { - return parseTree_; + return parseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : parseTree_; } /** * optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOrBuilder() { - return parseTree_; + return parseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : parseTree_; } - // optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; public static final int BINARIZEDPARSETREE_FIELD_NUMBER = 31; private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree binarizedParseTree_; /** @@ -5056,16 +5779,15 @@ public boolean hasBinarizedParseTree() { * optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getBinarizedParseTree() { - return binarizedParseTree_; + return binarizedParseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : binarizedParseTree_; } /** * optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedParseTreeOrBuilder() { - return binarizedParseTree_; + return binarizedParseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : binarizedParseTree_; } - // optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; public static final int ANNOTATEDPARSETREE_FIELD_NUMBER = 32; private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree annotatedParseTree_; /** @@ -5078,18 +5800,17 @@ public boolean hasAnnotatedParseTree() { * optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getAnnotatedParseTree() { - return annotatedParseTree_; + return annotatedParseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : annotatedParseTree_; } /** * optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedParseTreeOrBuilder() { - return annotatedParseTree_; + return annotatedParseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : annotatedParseTree_; } - // optional string sentiment = 33; public static final int SENTIMENT_FIELD_NUMBER = 33; - private java.lang.Object sentiment_; + private volatile java.lang.Object sentiment_; /** * optional string sentiment = 33; */ @@ -5130,7 +5851,6 @@ public java.lang.String getSentiment() { } } - // repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34; public static final int KBESTPARSETREES_FIELD_NUMBER = 34; private java.util.List kBestParseTrees_; /** @@ -5166,7 +5886,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getKBestParseT return kBestParseTrees_.get(index); } - // optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; public static final int BASICDEPENDENCIES_FIELD_NUMBER = 8; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph basicDependencies_; /** @@ -5179,16 +5898,15 @@ public boolean hasBasicDependencies() { * optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getBasicDependencies() { - return basicDependencies_; + return basicDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : basicDependencies_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasicDependenciesOrBuilder() { - return basicDependencies_; + return basicDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : basicDependencies_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; public static final int COLLAPSEDDEPENDENCIES_FIELD_NUMBER = 9; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedDependencies_; /** @@ -5201,16 +5919,15 @@ public boolean hasCollapsedDependencies() { * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedDependencies() { - return collapsedDependencies_; + return collapsedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedDependencies_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedDependenciesOrBuilder() { - return collapsedDependencies_; + return collapsedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedDependencies_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; public static final int COLLAPSEDCCPROCESSEDDEPENDENCIES_FIELD_NUMBER = 10; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedCCProcessedDependencies_; /** @@ -5223,16 +5940,15 @@ public boolean hasCollapsedCCProcessedDependencies() { * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedCCProcessedDependencies() { - return collapsedCCProcessedDependencies_; + return collapsedCCProcessedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedCCProcessedDependencies_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getCollapsedCCProcessedDependenciesOrBuilder() { - return collapsedCCProcessedDependencies_; + return collapsedCCProcessedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedCCProcessedDependencies_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; public static final int ALTERNATIVEDEPENDENCIES_FIELD_NUMBER = 13; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph alternativeDependencies_; /** @@ -5245,240 +5961,235 @@ public boolean hasAlternativeDependencies() { * optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getAlternativeDependencies() { - return alternativeDependencies_; + return alternativeDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : alternativeDependencies_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlternativeDependenciesOrBuilder() { - return alternativeDependencies_; + return alternativeDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : alternativeDependencies_; } - // repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public java.util.List getOpenieTripleList() { return openieTriple_; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public java.util.List getOpenieTripleOrBuilderList() { return openieTriple_; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public int getOpenieTripleCount() { return openieTriple_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
      * The OpenIE triples in the sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenieTripleOrBuilder( int index) { return openieTriple_.get(index); } - // repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public java.util.List getKbpTripleList() { return kbpTriple_; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public java.util.List getKbpTripleOrBuilderList() { return kbpTriple_; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public int getKbpTripleCount() { return kbpTriple_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
      * The KBP triples in this sentence
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTripleOrBuilder( int index) { return kbpTriple_.get(index); } - // repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public java.util.List getEntailedSentenceList() { return entailedSentence_; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public java.util.List getEntailedSentenceOrBuilderList() { return entailedSentence_; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public int getEntailedSentenceCount() { return entailedSentence_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
      * The entailed sentences, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedSentenceOrBuilder( int index) { return entailedSentence_.get(index); } - // repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; public static final int ENTAILEDCLAUSE_FIELD_NUMBER = 35; private java.util.List entailedClause_; /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public java.util.List getEntailedClauseList() { return entailedClause_; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public java.util.List getEntailedClauseOrBuilderList() { return entailedClause_; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public int getEntailedClauseCount() { return entailedClause_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedClause(int index) { return entailedClause_.get(index); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
      * The entailed clauses, by natural logic
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedClauseOrBuilder( int index) { return entailedClause_.get(index); } - // optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; public static final int ENHANCEDDEPENDENCIES_FIELD_NUMBER = 17; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedDependencies_; /** @@ -5491,16 +6202,15 @@ public boolean hasEnhancedDependencies() { * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedDependencies() { - return enhancedDependencies_; + return enhancedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedDependencies_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedDependenciesOrBuilder() { - return enhancedDependencies_; + return enhancedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedDependencies_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; public static final int ENHANCEDPLUSPLUSDEPENDENCIES_FIELD_NUMBER = 18; private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedPlusPlusDependencies_; /** @@ -5513,16 +6223,15 @@ public boolean hasEnhancedPlusPlusDependencies() { * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedPlusPlusDependencies() { - return enhancedPlusPlusDependencies_; + return enhancedPlusPlusDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedPlusPlusDependencies_; } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhancedPlusPlusDependenciesOrBuilder() { - return enhancedPlusPlusDependencies_; + return enhancedPlusPlusDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedPlusPlusDependencies_; } - // repeated .edu.stanford.nlp.pipeline.Token character = 19; public static final int CHARACTER_FIELD_NUMBER = 19; private java.util.List character_; /** @@ -5558,7 +6267,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder getCharacterOrBuil return character_.get(index); } - // optional uint32 paragraph = 11; public static final int PARAGRAPH_FIELD_NUMBER = 11; private int paragraph_; /** @@ -5574,25 +6282,24 @@ public int getParagraph() { return paragraph_; } - // optional string text = 12; public static final int TEXT_FIELD_NUMBER = 12; - private java.lang.Object text_; + private volatile java.lang.Object text_; /** - * optional string text = 12; - * *
      * Only needed if we're only saving the sentence.
      * 
+ * + * optional string text = 12; */ public boolean hasText() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** - * optional string text = 12; - * *
      * Only needed if we're only saving the sentence.
      * 
+ * + * optional string text = 12; */ public java.lang.String getText() { java.lang.Object ref = text_; @@ -5609,11 +6316,11 @@ public java.lang.String getText() { } } /** - * optional string text = 12; - * *
      * Only needed if we're only saving the sentence.
      * 
+ * + * optional string text = 12; */ public com.google.protobuf.ByteString getTextBytes() { @@ -5629,31 +6336,29 @@ public java.lang.String getText() { } } - // optional bool hasRelationAnnotations = 51; public static final int HASRELATIONANNOTATIONS_FIELD_NUMBER = 51; private boolean hasRelationAnnotations_; /** - * optional bool hasRelationAnnotations = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional bool hasRelationAnnotations = 51; */ public boolean hasHasRelationAnnotations() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** - * optional bool hasRelationAnnotations = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional bool hasRelationAnnotations = 51; */ public boolean getHasRelationAnnotations() { return hasRelationAnnotations_; } - // repeated .edu.stanford.nlp.pipeline.Entity entity = 52; public static final int ENTITY_FIELD_NUMBER = 52; private java.util.List entity_; /** @@ -5689,7 +6394,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getEntityOrBuilde return entity_.get(index); } - // repeated .edu.stanford.nlp.pipeline.Relation relation = 53; public static final int RELATION_FIELD_NUMBER = 53; private java.util.List relation_; /** @@ -5725,7 +6429,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder getRelationOrBu return relation_.get(index); } - // optional bool hasNumerizedTokensAnnotation = 54; public static final int HASNUMERIZEDTOKENSANNOTATION_FIELD_NUMBER = 54; private boolean hasNumerizedTokensAnnotation_; /** @@ -5741,7 +6444,6 @@ public boolean getHasNumerizedTokensAnnotation() { return hasNumerizedTokensAnnotation_; } - // repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55; public static final int MENTIONS_FIELD_NUMBER = 55; private java.util.List mentions_; /** @@ -5777,7 +6479,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder getMentionsOr return mentions_.get(index); } - // repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56; public static final int MENTIONSFORCOREF_FIELD_NUMBER = 56; private java.util.List mentionsForCoref_; /** @@ -5813,7 +6514,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder getMentionsForCo return mentionsForCoref_.get(index); } - // optional bool hasCorefMentionsAnnotation = 57; public static final int HASCOREFMENTIONSANNOTATION_FIELD_NUMBER = 57; private boolean hasCorefMentionsAnnotation_; /** @@ -5829,25 +6529,24 @@ public boolean getHasCorefMentionsAnnotation() { return hasCorefMentionsAnnotation_; } - // optional string sentenceID = 58; public static final int SENTENCEID_FIELD_NUMBER = 58; - private java.lang.Object sentenceID_; + private volatile java.lang.Object sentenceID_; /** - * optional string sentenceID = 58; - * *
      * Useful when storing sentences (e.g. ForEach)
      * 
+ * + * optional string sentenceID = 58; */ public boolean hasSentenceID() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** - * optional string sentenceID = 58; - * *
      * Useful when storing sentences (e.g. ForEach)
      * 
+ * + * optional string sentenceID = 58; */ public java.lang.String getSentenceID() { java.lang.Object ref = sentenceID_; @@ -5864,11 +6563,11 @@ public java.lang.String getSentenceID() { } } /** - * optional string sentenceID = 58; - * *
      * Useful when storing sentences (e.g. ForEach)
      * 
+ * + * optional string sentenceID = 58; */ public com.google.protobuf.ByteString getSentenceIDBytes() { @@ -5884,44 +6583,88 @@ public java.lang.String getSentenceID() { } } - 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(); - entailedClause_ = 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_ = ""; + public static final int SECTIONDATE_FIELD_NUMBER = 59; + private volatile java.lang.Object sectionDate_; + /** + *
+     * date of section
+     * 
+ * + * optional string sectionDate = 59; + */ + public boolean hasSectionDate() { + return ((bitField0_ & 0x00200000) == 0x00200000); } + /** + *
+     * date of section
+     * 
+ * + * optional string sectionDate = 59; + */ + public java.lang.String getSectionDate() { + java.lang.Object ref = sectionDate_; + 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()) { + sectionDate_ = s; + } + return s; + } + } + /** + *
+     * date of section
+     * 
+ * + * optional string sectionDate = 59; + */ + public com.google.protobuf.ByteString + getSectionDateBytes() { + java.lang.Object ref = sectionDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sectionDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECTIONINDEX_FIELD_NUMBER = 60; + private int sectionIndex_; + /** + *
+     * section index for this sentence's section
+     * 
+ * + * optional uint32 sectionIndex = 60; + */ + public boolean hasSectionIndex() { + return ((bitField0_ & 0x00400000) == 0x00400000); + } + /** + *
+     * section index for this sentence's section
+     * 
+ * + * optional uint32 sectionIndex = 60; + */ + public int getSectionIndex() { + return sectionIndex_; + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasTokenOffsetBegin()) { memoizedIsInitialized = 0; @@ -6007,10 +6750,9 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionWriter extensionWriter = - newExtensionWriter(); + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); for (int i = 0; i < token_.size(); i++) { output.writeMessage(1, token_.get(i)); } @@ -6030,25 +6772,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(6, characterOffsetEnd_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(7, parseTree_); + output.writeMessage(7, getParseTree()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(8, basicDependencies_); + output.writeMessage(8, getBasicDependencies()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(9, collapsedDependencies_); + output.writeMessage(9, getCollapsedDependencies()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(10, collapsedCCProcessedDependencies_); + output.writeMessage(10, getCollapsedCCProcessedDependencies()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeUInt32(11, paragraph_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(12, getTextBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, text_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, alternativeDependencies_); + output.writeMessage(13, getAlternativeDependencies()); } for (int i = 0; i < openieTriple_.size(); i++) { output.writeMessage(14, openieTriple_.get(i)); @@ -6060,22 +6802,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(16, kbpTriple_.get(i)); } if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(17, enhancedDependencies_); + output.writeMessage(17, getEnhancedDependencies()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(18, enhancedPlusPlusDependencies_); + output.writeMessage(18, getEnhancedPlusPlusDependencies()); } for (int i = 0; i < character_.size(); i++) { output.writeMessage(19, character_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(31, binarizedParseTree_); + output.writeMessage(31, getBinarizedParseTree()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(32, annotatedParseTree_); + output.writeMessage(32, getAnnotatedParseTree()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(33, getSentimentBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 33, sentiment_); } for (int i = 0; i < kBestParseTrees_.size(); i++) { output.writeMessage(34, kBestParseTrees_.get(i)); @@ -6105,15 +6847,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBool(57, hasCorefMentionsAnnotation_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeBytes(58, getSentenceIDBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 58, sentenceID_); + } + if (((bitField0_ & 0x00200000) == 0x00200000)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 59, sectionDate_); + } + if (((bitField0_ & 0x00400000) == 0x00400000)) { + output.writeUInt32(60, sectionIndex_); } extensionWriter.writeUntil(256, output); - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -6143,31 +6890,30 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, parseTree_); + .computeMessageSize(7, getParseTree()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, basicDependencies_); + .computeMessageSize(8, getBasicDependencies()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, collapsedDependencies_); + .computeMessageSize(9, getCollapsedDependencies()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, collapsedCCProcessedDependencies_); + .computeMessageSize(10, getCollapsedCCProcessedDependencies()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, paragraph_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getTextBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, text_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, alternativeDependencies_); + .computeMessageSize(13, getAlternativeDependencies()); } for (int i = 0; i < openieTriple_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -6183,11 +6929,11 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, enhancedDependencies_); + .computeMessageSize(17, getEnhancedDependencies()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, enhancedPlusPlusDependencies_); + .computeMessageSize(18, getEnhancedPlusPlusDependencies()); } for (int i = 0; i < character_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -6195,15 +6941,14 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, binarizedParseTree_); + .computeMessageSize(31, getBinarizedParseTree()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, annotatedParseTree_); + .computeMessageSize(32, getAnnotatedParseTree()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(33, getSentimentBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, sentiment_); } for (int i = 0; i < kBestParseTrees_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -6242,20 +6987,326 @@ public int getSerializedSize() { .computeBoolSize(57, hasCorefMentionsAnnotation_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(58, sentenceID_); + } + if (((bitField0_ & 0x00200000) == 0x00200000)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(59, sectionDate_); + } + if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(58, getSentenceIDBytes()); + .computeUInt32Size(60, sectionIndex_); } size += extensionsSerializedSize(); - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence) obj; + + boolean result = true; + result = result && getTokenList() + .equals(other.getTokenList()); + result = result && (hasTokenOffsetBegin() == other.hasTokenOffsetBegin()); + if (hasTokenOffsetBegin()) { + result = result && (getTokenOffsetBegin() + == other.getTokenOffsetBegin()); + } + result = result && (hasTokenOffsetEnd() == other.hasTokenOffsetEnd()); + if (hasTokenOffsetEnd()) { + result = result && (getTokenOffsetEnd() + == other.getTokenOffsetEnd()); + } + result = result && (hasSentenceIndex() == other.hasSentenceIndex()); + if (hasSentenceIndex()) { + result = result && (getSentenceIndex() + == other.getSentenceIndex()); + } + result = result && (hasCharacterOffsetBegin() == other.hasCharacterOffsetBegin()); + if (hasCharacterOffsetBegin()) { + result = result && (getCharacterOffsetBegin() + == other.getCharacterOffsetBegin()); + } + result = result && (hasCharacterOffsetEnd() == other.hasCharacterOffsetEnd()); + if (hasCharacterOffsetEnd()) { + result = result && (getCharacterOffsetEnd() + == other.getCharacterOffsetEnd()); + } + result = result && (hasParseTree() == other.hasParseTree()); + if (hasParseTree()) { + result = result && getParseTree() + .equals(other.getParseTree()); + } + result = result && (hasBinarizedParseTree() == other.hasBinarizedParseTree()); + if (hasBinarizedParseTree()) { + result = result && getBinarizedParseTree() + .equals(other.getBinarizedParseTree()); + } + result = result && (hasAnnotatedParseTree() == other.hasAnnotatedParseTree()); + if (hasAnnotatedParseTree()) { + result = result && getAnnotatedParseTree() + .equals(other.getAnnotatedParseTree()); + } + result = result && (hasSentiment() == other.hasSentiment()); + if (hasSentiment()) { + result = result && getSentiment() + .equals(other.getSentiment()); + } + result = result && getKBestParseTreesList() + .equals(other.getKBestParseTreesList()); + result = result && (hasBasicDependencies() == other.hasBasicDependencies()); + if (hasBasicDependencies()) { + result = result && getBasicDependencies() + .equals(other.getBasicDependencies()); + } + result = result && (hasCollapsedDependencies() == other.hasCollapsedDependencies()); + if (hasCollapsedDependencies()) { + result = result && getCollapsedDependencies() + .equals(other.getCollapsedDependencies()); + } + result = result && (hasCollapsedCCProcessedDependencies() == other.hasCollapsedCCProcessedDependencies()); + if (hasCollapsedCCProcessedDependencies()) { + result = result && getCollapsedCCProcessedDependencies() + .equals(other.getCollapsedCCProcessedDependencies()); + } + result = result && (hasAlternativeDependencies() == other.hasAlternativeDependencies()); + if (hasAlternativeDependencies()) { + result = result && getAlternativeDependencies() + .equals(other.getAlternativeDependencies()); + } + result = result && getOpenieTripleList() + .equals(other.getOpenieTripleList()); + result = result && getKbpTripleList() + .equals(other.getKbpTripleList()); + result = result && getEntailedSentenceList() + .equals(other.getEntailedSentenceList()); + result = result && getEntailedClauseList() + .equals(other.getEntailedClauseList()); + result = result && (hasEnhancedDependencies() == other.hasEnhancedDependencies()); + if (hasEnhancedDependencies()) { + result = result && getEnhancedDependencies() + .equals(other.getEnhancedDependencies()); + } + result = result && (hasEnhancedPlusPlusDependencies() == other.hasEnhancedPlusPlusDependencies()); + if (hasEnhancedPlusPlusDependencies()) { + result = result && getEnhancedPlusPlusDependencies() + .equals(other.getEnhancedPlusPlusDependencies()); + } + result = result && getCharacterList() + .equals(other.getCharacterList()); + result = result && (hasParagraph() == other.hasParagraph()); + if (hasParagraph()) { + result = result && (getParagraph() + == other.getParagraph()); + } + result = result && (hasText() == other.hasText()); + if (hasText()) { + result = result && getText() + .equals(other.getText()); + } + result = result && (hasHasRelationAnnotations() == other.hasHasRelationAnnotations()); + if (hasHasRelationAnnotations()) { + result = result && (getHasRelationAnnotations() + == other.getHasRelationAnnotations()); + } + result = result && getEntityList() + .equals(other.getEntityList()); + result = result && getRelationList() + .equals(other.getRelationList()); + result = result && (hasHasNumerizedTokensAnnotation() == other.hasHasNumerizedTokensAnnotation()); + if (hasHasNumerizedTokensAnnotation()) { + result = result && (getHasNumerizedTokensAnnotation() + == other.getHasNumerizedTokensAnnotation()); + } + result = result && getMentionsList() + .equals(other.getMentionsList()); + result = result && getMentionsForCorefList() + .equals(other.getMentionsForCorefList()); + result = result && (hasHasCorefMentionsAnnotation() == other.hasHasCorefMentionsAnnotation()); + if (hasHasCorefMentionsAnnotation()) { + result = result && (getHasCorefMentionsAnnotation() + == other.getHasCorefMentionsAnnotation()); + } + result = result && (hasSentenceID() == other.hasSentenceID()); + if (hasSentenceID()) { + result = result && getSentenceID() + .equals(other.getSentenceID()); + } + result = result && (hasSectionDate() == other.hasSectionDate()); + if (hasSectionDate()) { + result = result && getSectionDate() + .equals(other.getSectionDate()); + } + result = result && (hasSectionIndex() == other.hasSectionIndex()); + if (hasSectionIndex()) { + result = result && (getSectionIndex() + == other.getSectionIndex()); + } + result = result && unknownFields.equals(other.unknownFields); + result = result && + getExtensionFields().equals(other.getExtensionFields()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getTokenCount() > 0) { + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getTokenList().hashCode(); + } + if (hasTokenOffsetBegin()) { + hash = (37 * hash) + TOKENOFFSETBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getTokenOffsetBegin(); + } + if (hasTokenOffsetEnd()) { + hash = (37 * hash) + TOKENOFFSETEND_FIELD_NUMBER; + hash = (53 * hash) + getTokenOffsetEnd(); + } + if (hasSentenceIndex()) { + hash = (37 * hash) + SENTENCEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getSentenceIndex(); + } + if (hasCharacterOffsetBegin()) { + hash = (37 * hash) + CHARACTEROFFSETBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getCharacterOffsetBegin(); + } + if (hasCharacterOffsetEnd()) { + hash = (37 * hash) + CHARACTEROFFSETEND_FIELD_NUMBER; + hash = (53 * hash) + getCharacterOffsetEnd(); + } + if (hasParseTree()) { + hash = (37 * hash) + PARSETREE_FIELD_NUMBER; + hash = (53 * hash) + getParseTree().hashCode(); + } + if (hasBinarizedParseTree()) { + hash = (37 * hash) + BINARIZEDPARSETREE_FIELD_NUMBER; + hash = (53 * hash) + getBinarizedParseTree().hashCode(); + } + if (hasAnnotatedParseTree()) { + hash = (37 * hash) + ANNOTATEDPARSETREE_FIELD_NUMBER; + hash = (53 * hash) + getAnnotatedParseTree().hashCode(); + } + if (hasSentiment()) { + hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; + hash = (53 * hash) + getSentiment().hashCode(); + } + if (getKBestParseTreesCount() > 0) { + hash = (37 * hash) + KBESTPARSETREES_FIELD_NUMBER; + hash = (53 * hash) + getKBestParseTreesList().hashCode(); + } + if (hasBasicDependencies()) { + hash = (37 * hash) + BASICDEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getBasicDependencies().hashCode(); + } + if (hasCollapsedDependencies()) { + hash = (37 * hash) + COLLAPSEDDEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getCollapsedDependencies().hashCode(); + } + if (hasCollapsedCCProcessedDependencies()) { + hash = (37 * hash) + COLLAPSEDCCPROCESSEDDEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getCollapsedCCProcessedDependencies().hashCode(); + } + if (hasAlternativeDependencies()) { + hash = (37 * hash) + ALTERNATIVEDEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getAlternativeDependencies().hashCode(); + } + if (getOpenieTripleCount() > 0) { + hash = (37 * hash) + OPENIETRIPLE_FIELD_NUMBER; + hash = (53 * hash) + getOpenieTripleList().hashCode(); + } + if (getKbpTripleCount() > 0) { + hash = (37 * hash) + KBPTRIPLE_FIELD_NUMBER; + hash = (53 * hash) + getKbpTripleList().hashCode(); + } + if (getEntailedSentenceCount() > 0) { + hash = (37 * hash) + ENTAILEDSENTENCE_FIELD_NUMBER; + hash = (53 * hash) + getEntailedSentenceList().hashCode(); + } + if (getEntailedClauseCount() > 0) { + hash = (37 * hash) + ENTAILEDCLAUSE_FIELD_NUMBER; + hash = (53 * hash) + getEntailedClauseList().hashCode(); + } + if (hasEnhancedDependencies()) { + hash = (37 * hash) + ENHANCEDDEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedDependencies().hashCode(); + } + if (hasEnhancedPlusPlusDependencies()) { + hash = (37 * hash) + ENHANCEDPLUSPLUSDEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedPlusPlusDependencies().hashCode(); + } + if (getCharacterCount() > 0) { + hash = (37 * hash) + CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getCharacterList().hashCode(); + } + if (hasParagraph()) { + hash = (37 * hash) + PARAGRAPH_FIELD_NUMBER; + hash = (53 * hash) + getParagraph(); + } + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } + if (hasHasRelationAnnotations()) { + hash = (37 * hash) + HASRELATIONANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasRelationAnnotations()); + } + if (getEntityCount() > 0) { + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntityList().hashCode(); + } + if (getRelationCount() > 0) { + hash = (37 * hash) + RELATION_FIELD_NUMBER; + hash = (53 * hash) + getRelationList().hashCode(); + } + if (hasHasNumerizedTokensAnnotation()) { + hash = (37 * hash) + HASNUMERIZEDTOKENSANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasNumerizedTokensAnnotation()); + } + if (getMentionsCount() > 0) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentionsList().hashCode(); + } + if (getMentionsForCorefCount() > 0) { + hash = (37 * hash) + MENTIONSFORCOREF_FIELD_NUMBER; + hash = (53 * hash) + getMentionsForCorefList().hashCode(); + } + if (hasHasCorefMentionsAnnotation()) { + hash = (37 * hash) + HASCOREFMENTIONSANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasCorefMentionsAnnotation()); + } + if (hasSentenceID()) { + hash = (37 * hash) + SENTENCEID_FIELD_NUMBER; + hash = (53 * hash) + getSentenceID().hashCode(); + } + if (hasSectionDate()) { + hash = (37 * hash) + SECTIONDATE_FIELD_NUMBER; + hash = (53 * hash) + getSectionDate().hashCode(); + } + if (hasSectionIndex()) { + hash = (37 * hash) + SECTIONINDEX_FIELD_NUMBER; + hash = (53 * hash) + getSectionIndex(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom( @@ -6281,66 +7332,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Sentence} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, Builder> implements edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -6353,12 +7416,13 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTokenFieldBuilder(); getParseTreeFieldBuilder(); getBinarizedParseTreeFieldBuilder(); @@ -6381,10 +7445,6 @@ private void maybeForceBuilderInitialization() { getMentionsForCorefFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); if (tokenBuilder_ == null) { @@ -6404,19 +7464,19 @@ public Builder clear() { characterOffsetEnd_ = 0; bitField0_ = (bitField0_ & ~0x00000020); if (parseTreeBuilder_ == null) { - parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); + parseTree_ = null; } else { parseTreeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (binarizedParseTreeBuilder_ == null) { - binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); + binarizedParseTree_ = null; } else { binarizedParseTreeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (annotatedParseTreeBuilder_ == null) { - annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); + annotatedParseTree_ = null; } else { annotatedParseTreeBuilder_.clear(); } @@ -6430,25 +7490,25 @@ public Builder clear() { kBestParseTreesBuilder_.clear(); } if (basicDependenciesBuilder_ == null) { - basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + basicDependencies_ = null; } else { basicDependenciesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (collapsedDependenciesBuilder_ == null) { - collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + collapsedDependencies_ = null; } else { collapsedDependenciesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (collapsedCCProcessedDependenciesBuilder_ == null) { - collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + collapsedCCProcessedDependencies_ = null; } else { collapsedCCProcessedDependenciesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (alternativeDependenciesBuilder_ == null) { - alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + alternativeDependencies_ = null; } else { alternativeDependenciesBuilder_.clear(); } @@ -6478,13 +7538,13 @@ public Builder clear() { entailedClauseBuilder_.clear(); } if (enhancedDependenciesBuilder_ == null) { - enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + enhancedDependencies_ = null; } else { enhancedDependenciesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); if (enhancedPlusPlusDependenciesBuilder_ == null) { - enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + enhancedPlusPlusDependencies_ = null; } else { enhancedPlusPlusDependenciesBuilder_.clear(); } @@ -6531,13 +7591,13 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x40000000); sentenceID_ = ""; bitField0_ = (bitField0_ & ~0x80000000); + sectionDate_ = ""; + bitField1_ = (bitField1_ & ~0x00000001); + sectionIndex_ = 0; + bitField1_ = (bitField1_ & ~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_Sentence_descriptor; @@ -6558,6 +7618,7 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence build() { 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 from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (tokenBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -6778,11 +7839,68 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence buildPartial() { to_bitField0_ |= 0x00100000; } result.sentenceID_ = sentenceID_; + if (((from_bitField1_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00200000; + } + result.sectionDate_ = sectionDate_; + if (((from_bitField1_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00400000; + } + result.sectionIndex_ = sectionIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, Type> extension, + Type value) { + return (Builder) super.setExtension(extension, value); + } + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, java.util.List> extension, + int index, Type value) { + return (Builder) super.setExtension(extension, index, value); + } + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, java.util.List> extension, + Type value) { + return (Builder) super.addExtension(extension, value); + } + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, ?> extension) { + return (Builder) super.clearExtension(extension); + } 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); @@ -6813,7 +7931,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) token_ = other.token_; bitField0_ = (bitField0_ & ~0x00000001); tokenBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTokenFieldBuilder() : null; } else { tokenBuilder_.addAllMessages(other.token_); @@ -6868,7 +7986,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) kBestParseTrees_ = other.kBestParseTrees_; bitField0_ = (bitField0_ & ~0x00000400); kBestParseTreesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKBestParseTreesFieldBuilder() : null; } else { kBestParseTreesBuilder_.addAllMessages(other.kBestParseTrees_); @@ -6906,7 +8024,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) openieTriple_ = other.openieTriple_; bitField0_ = (bitField0_ & ~0x00008000); openieTripleBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpenieTripleFieldBuilder() : null; } else { openieTripleBuilder_.addAllMessages(other.openieTriple_); @@ -6932,7 +8050,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) kbpTriple_ = other.kbpTriple_; bitField0_ = (bitField0_ & ~0x00010000); kbpTripleBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKbpTripleFieldBuilder() : null; } else { kbpTripleBuilder_.addAllMessages(other.kbpTriple_); @@ -6958,7 +8076,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) entailedSentence_ = other.entailedSentence_; bitField0_ = (bitField0_ & ~0x00020000); entailedSentenceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntailedSentenceFieldBuilder() : null; } else { entailedSentenceBuilder_.addAllMessages(other.entailedSentence_); @@ -6984,7 +8102,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) entailedClause_ = other.entailedClause_; bitField0_ = (bitField0_ & ~0x00040000); entailedClauseBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntailedClauseFieldBuilder() : null; } else { entailedClauseBuilder_.addAllMessages(other.entailedClause_); @@ -7016,7 +8134,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) character_ = other.character_; bitField0_ = (bitField0_ & ~0x00200000); characterBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCharacterFieldBuilder() : null; } else { characterBuilder_.addAllMessages(other.character_); @@ -7053,7 +8171,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) entity_ = other.entity_; bitField0_ = (bitField0_ & ~0x02000000); entityBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntityFieldBuilder() : null; } else { entityBuilder_.addAllMessages(other.entity_); @@ -7079,7 +8197,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) relation_ = other.relation_; bitField0_ = (bitField0_ & ~0x04000000); relationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRelationFieldBuilder() : null; } else { relationBuilder_.addAllMessages(other.relation_); @@ -7108,7 +8226,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) mentions_ = other.mentions_; bitField0_ = (bitField0_ & ~0x10000000); mentionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMentionsFieldBuilder() : null; } else { mentionsBuilder_.addAllMessages(other.mentions_); @@ -7134,7 +8252,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) mentionsForCoref_ = other.mentionsForCoref_; bitField0_ = (bitField0_ & ~0x20000000); mentionsForCorefBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMentionsForCorefFieldBuilder() : null; } else { mentionsForCorefBuilder_.addAllMessages(other.mentionsForCoref_); @@ -7149,88 +8267,83 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence other) sentenceID_ = other.sentenceID_; onChanged(); } + if (other.hasSectionDate()) { + bitField1_ |= 0x00000001; + sectionDate_ = other.sectionDate_; + onChanged(); + } + if (other.hasSectionIndex()) { + setSectionIndex(other.getSectionIndex()); + } this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); 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; @@ -7245,7 +8358,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -7254,8 +8367,8 @@ public Builder mergeFrom( return this; } private int bitField0_; + private int bitField1_; - // repeated .edu.stanford.nlp.pipeline.Token token = 1; private java.util.List token_ = java.util.Collections.emptyList(); private void ensureTokenIsMutable() { @@ -7265,7 +8378,7 @@ private void ensureTokenIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> tokenBuilder_; /** @@ -7397,7 +8510,8 @@ public Builder addAllToken( java.lang.Iterable values) { if (tokenBuilder_ == null) { ensureTokenIsMutable(); - super.addAll(values, token_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, token_); onChanged(); } else { tokenBuilder_.addAllMessages(values); @@ -7480,11 +8594,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addTokenBuilder( getTokenBuilderList() { return getTokenFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + tokenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>( token_, ((bitField0_ & 0x00000001) == 0x00000001), @@ -7495,7 +8609,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addTokenBuilder( return tokenBuilder_; } - // required uint32 tokenOffsetBegin = 2; private int tokenOffsetBegin_ ; /** * required uint32 tokenOffsetBegin = 2; @@ -7528,7 +8641,6 @@ public Builder clearTokenOffsetBegin() { return this; } - // required uint32 tokenOffsetEnd = 3; private int tokenOffsetEnd_ ; /** * required uint32 tokenOffsetEnd = 3; @@ -7561,7 +8673,6 @@ public Builder clearTokenOffsetEnd() { return this; } - // optional uint32 sentenceIndex = 4; private int sentenceIndex_ ; /** * optional uint32 sentenceIndex = 4; @@ -7594,7 +8705,6 @@ public Builder clearSentenceIndex() { return this; } - // optional uint32 characterOffsetBegin = 5; private int characterOffsetBegin_ ; /** * optional uint32 characterOffsetBegin = 5; @@ -7627,7 +8737,6 @@ public Builder clearCharacterOffsetBegin() { return this; } - // optional uint32 characterOffsetEnd = 6; private int characterOffsetEnd_ ; /** * optional uint32 characterOffsetEnd = 6; @@ -7660,9 +8769,8 @@ public Builder clearCharacterOffsetEnd() { return this; } - // optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; - private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseTree_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -7675,7 +8783,7 @@ public boolean hasParseTree() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getParseTree() { if (parseTreeBuilder_ == null) { - return parseTree_; + return parseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : parseTree_; } else { return parseTreeBuilder_.getMessage(); } @@ -7716,6 +8824,7 @@ public Builder setParseTree( public Builder mergeParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) { if (parseTreeBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && + parseTree_ != null && parseTree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) { parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder(parseTree_).mergeFrom(value).buildPartial(); @@ -7734,7 +8843,7 @@ public Builder mergeParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree */ public Builder clearParseTree() { if (parseTreeBuilder_ == null) { - parseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); + parseTree_ = null; onChanged(); } else { parseTreeBuilder_.clear(); @@ -7757,19 +8866,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOr if (parseTreeBuilder_ != null) { return parseTreeBuilder_.getMessageOrBuilder(); } else { - return parseTree_; + return parseTree_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : parseTree_; } } /** * optional .edu.stanford.nlp.pipeline.ParseTree parseTree = 7; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + parseTreeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>( - parseTree_, + getParseTree(), getParentForChildren(), isClean()); parseTree_ = null; @@ -7777,9 +8887,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getParseTreeOr return parseTreeBuilder_; } - // optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; - private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree binarizedParseTree_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -7792,7 +8901,7 @@ public boolean hasBinarizedParseTree() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getBinarizedParseTree() { if (binarizedParseTreeBuilder_ == null) { - return binarizedParseTree_; + return binarizedParseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : binarizedParseTree_; } else { return binarizedParseTreeBuilder_.getMessage(); } @@ -7833,6 +8942,7 @@ public Builder setBinarizedParseTree( public Builder mergeBinarizedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) { if (binarizedParseTreeBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && + binarizedParseTree_ != null && binarizedParseTree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) { binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder(binarizedParseTree_).mergeFrom(value).buildPartial(); @@ -7851,7 +8961,7 @@ public Builder mergeBinarizedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.P */ public Builder clearBinarizedParseTree() { if (binarizedParseTreeBuilder_ == null) { - binarizedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); + binarizedParseTree_ = null; onChanged(); } else { binarizedParseTreeBuilder_.clear(); @@ -7874,19 +8984,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedPa if (binarizedParseTreeBuilder_ != null) { return binarizedParseTreeBuilder_.getMessageOrBuilder(); } else { - return binarizedParseTree_; + return binarizedParseTree_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : binarizedParseTree_; } } /** * optional .edu.stanford.nlp.pipeline.ParseTree binarizedParseTree = 31; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + binarizedParseTreeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>( - binarizedParseTree_, + getBinarizedParseTree(), getParentForChildren(), isClean()); binarizedParseTree_ = null; @@ -7894,9 +9005,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getBinarizedPa return binarizedParseTreeBuilder_; } - // optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; - private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree annotatedParseTree_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -7909,7 +9019,7 @@ public boolean hasAnnotatedParseTree() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getAnnotatedParseTree() { if (annotatedParseTreeBuilder_ == null) { - return annotatedParseTree_; + return annotatedParseTree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : annotatedParseTree_; } else { return annotatedParseTreeBuilder_.getMessage(); } @@ -7950,6 +9060,7 @@ public Builder setAnnotatedParseTree( public Builder mergeAnnotatedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree value) { if (annotatedParseTreeBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && + annotatedParseTree_ != null && annotatedParseTree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance()) { annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.newBuilder(annotatedParseTree_).mergeFrom(value).buildPartial(); @@ -7968,7 +9079,7 @@ public Builder mergeAnnotatedParseTree(edu.stanford.nlp.pipeline.CoreNLPProtos.P */ public Builder clearAnnotatedParseTree() { if (annotatedParseTreeBuilder_ == null) { - annotatedParseTree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance(); + annotatedParseTree_ = null; onChanged(); } else { annotatedParseTreeBuilder_.clear(); @@ -7991,19 +9102,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedPa if (annotatedParseTreeBuilder_ != null) { return annotatedParseTreeBuilder_.getMessageOrBuilder(); } else { - return annotatedParseTree_; + return annotatedParseTree_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.getDefaultInstance() : annotatedParseTree_; } } /** * optional .edu.stanford.nlp.pipeline.ParseTree annotatedParseTree = 32; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + annotatedParseTreeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>( - annotatedParseTree_, + getAnnotatedParseTree(), getParentForChildren(), isClean()); annotatedParseTree_ = null; @@ -8011,7 +9123,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getAnnotatedPa return annotatedParseTreeBuilder_; } - // optional string sentiment = 33; private java.lang.Object sentiment_ = ""; /** * optional string sentiment = 33; @@ -8025,9 +9136,12 @@ public boolean hasSentiment() { public java.lang.String getSentiment() { java.lang.Object ref = sentiment_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - sentiment_ = s; + 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; @@ -8085,7 +9199,6 @@ public Builder setSentimentBytes( return this; } - // repeated .edu.stanford.nlp.pipeline.ParseTree kBestParseTrees = 34; private java.util.List kBestParseTrees_ = java.util.Collections.emptyList(); private void ensureKBestParseTreesIsMutable() { @@ -8095,7 +9208,7 @@ private void ensureKBestParseTreesIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> kBestParseTreesBuilder_; /** @@ -8227,7 +9340,8 @@ public Builder addAllKBestParseTrees( java.lang.Iterable values) { if (kBestParseTreesBuilder_ == null) { ensureKBestParseTreesIsMutable(); - super.addAll(values, kBestParseTrees_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kBestParseTrees_); onChanged(); } else { kBestParseTreesBuilder_.addAllMessages(values); @@ -8310,11 +9424,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addKBestParseTr getKBestParseTreesBuilderList() { return getKBestParseTreesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + kBestParseTreesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>( kBestParseTrees_, ((bitField0_ & 0x00000400) == 0x00000400), @@ -8325,9 +9439,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addKBestParseTr return kBestParseTreesBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph basicDependencies_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -8340,7 +9453,7 @@ public boolean hasBasicDependencies() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getBasicDependencies() { if (basicDependenciesBuilder_ == null) { - return basicDependencies_; + return basicDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : basicDependencies_; } else { return basicDependenciesBuilder_.getMessage(); } @@ -8381,6 +9494,7 @@ public Builder setBasicDependencies( public Builder mergeBasicDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (basicDependenciesBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && + basicDependencies_ != null && basicDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(basicDependencies_).mergeFrom(value).buildPartial(); @@ -8399,7 +9513,7 @@ public Builder mergeBasicDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.De */ public Builder clearBasicDependencies() { if (basicDependenciesBuilder_ == null) { - basicDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + basicDependencies_ = null; onChanged(); } else { basicDependenciesBuilder_.clear(); @@ -8422,19 +9536,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasic if (basicDependenciesBuilder_ != null) { return basicDependenciesBuilder_.getMessageOrBuilder(); } else { - return basicDependencies_; + return basicDependencies_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : basicDependencies_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph basicDependencies = 8; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + basicDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - basicDependencies_, + getBasicDependencies(), getParentForChildren(), isClean()); basicDependencies_ = null; @@ -8442,9 +9557,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getBasic return basicDependenciesBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedDependencies_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -8457,7 +9571,7 @@ public boolean hasCollapsedDependencies() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedDependencies() { if (collapsedDependenciesBuilder_ == null) { - return collapsedDependencies_; + return collapsedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedDependencies_; } else { return collapsedDependenciesBuilder_.getMessage(); } @@ -8498,6 +9612,7 @@ public Builder setCollapsedDependencies( public Builder mergeCollapsedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (collapsedDependenciesBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && + collapsedDependencies_ != null && collapsedDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(collapsedDependencies_).mergeFrom(value).buildPartial(); @@ -8516,7 +9631,7 @@ public Builder mergeCollapsedDependencies(edu.stanford.nlp.pipeline.CoreNLPProto */ public Builder clearCollapsedDependencies() { if (collapsedDependenciesBuilder_ == null) { - collapsedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + collapsedDependencies_ = null; onChanged(); } else { collapsedDependenciesBuilder_.clear(); @@ -8539,19 +9654,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getColla if (collapsedDependenciesBuilder_ != null) { return collapsedDependenciesBuilder_.getMessageOrBuilder(); } else { - return collapsedDependencies_; + return collapsedDependencies_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedDependencies_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedDependencies = 9; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + collapsedDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - collapsedDependencies_, + getCollapsedDependencies(), getParentForChildren(), isClean()); collapsedDependencies_ = null; @@ -8559,9 +9675,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getColla return collapsedDependenciesBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph collapsedCCProcessedDependencies_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -8574,7 +9689,7 @@ public boolean hasCollapsedCCProcessedDependencies() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getCollapsedCCProcessedDependencies() { if (collapsedCCProcessedDependenciesBuilder_ == null) { - return collapsedCCProcessedDependencies_; + return collapsedCCProcessedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedCCProcessedDependencies_; } else { return collapsedCCProcessedDependenciesBuilder_.getMessage(); } @@ -8615,6 +9730,7 @@ public Builder setCollapsedCCProcessedDependencies( public Builder mergeCollapsedCCProcessedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (collapsedCCProcessedDependenciesBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && + collapsedCCProcessedDependencies_ != null && collapsedCCProcessedDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(collapsedCCProcessedDependencies_).mergeFrom(value).buildPartial(); @@ -8633,7 +9749,7 @@ public Builder mergeCollapsedCCProcessedDependencies(edu.stanford.nlp.pipeline.C */ public Builder clearCollapsedCCProcessedDependencies() { if (collapsedCCProcessedDependenciesBuilder_ == null) { - collapsedCCProcessedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + collapsedCCProcessedDependencies_ = null; onChanged(); } else { collapsedCCProcessedDependenciesBuilder_.clear(); @@ -8656,19 +9772,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getColla if (collapsedCCProcessedDependenciesBuilder_ != null) { return collapsedCCProcessedDependenciesBuilder_.getMessageOrBuilder(); } else { - return collapsedCCProcessedDependencies_; + return collapsedCCProcessedDependencies_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : collapsedCCProcessedDependencies_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph collapsedCCProcessedDependencies = 10; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + collapsedCCProcessedDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - collapsedCCProcessedDependencies_, + getCollapsedCCProcessedDependencies(), getParentForChildren(), isClean()); collapsedCCProcessedDependencies_ = null; @@ -8676,9 +9793,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getColla return collapsedCCProcessedDependenciesBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph alternativeDependencies_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -8691,7 +9807,7 @@ public boolean hasAlternativeDependencies() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getAlternativeDependencies() { if (alternativeDependenciesBuilder_ == null) { - return alternativeDependencies_; + return alternativeDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : alternativeDependencies_; } else { return alternativeDependenciesBuilder_.getMessage(); } @@ -8732,6 +9848,7 @@ public Builder setAlternativeDependencies( public Builder mergeAlternativeDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (alternativeDependenciesBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && + alternativeDependencies_ != null && alternativeDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(alternativeDependencies_).mergeFrom(value).buildPartial(); @@ -8750,7 +9867,7 @@ public Builder mergeAlternativeDependencies(edu.stanford.nlp.pipeline.CoreNLPPro */ public Builder clearAlternativeDependencies() { if (alternativeDependenciesBuilder_ == null) { - alternativeDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + alternativeDependencies_ = null; onChanged(); } else { alternativeDependenciesBuilder_.clear(); @@ -8773,19 +9890,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlter if (alternativeDependenciesBuilder_ != null) { return alternativeDependenciesBuilder_.getMessageOrBuilder(); } else { - return alternativeDependencies_; + return alternativeDependencies_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : alternativeDependencies_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph alternativeDependencies = 13; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + alternativeDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - alternativeDependencies_, + getAlternativeDependencies(), getParentForChildren(), isClean()); alternativeDependencies_ = null; @@ -8793,7 +9911,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getAlter return alternativeDependenciesBuilder_; } - // repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; private java.util.List openieTriple_ = java.util.Collections.emptyList(); private void ensureOpenieTripleIsMutable() { @@ -8803,15 +9920,15 @@ private void ensureOpenieTripleIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public java.util.List getOpenieTripleList() { if (openieTripleBuilder_ == null) { @@ -8821,11 +9938,11 @@ public java.util.List ge } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public int getOpenieTripleCount() { if (openieTripleBuilder_ == null) { @@ -8835,11 +9952,11 @@ public int getOpenieTripleCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getOpenieTriple(int index) { if (openieTripleBuilder_ == null) { @@ -8849,11 +9966,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getOpenieTriple(in } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder setOpenieTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) { @@ -8870,11 +9987,11 @@ public Builder setOpenieTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder setOpenieTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) { @@ -8888,11 +10005,11 @@ public Builder setOpenieTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder addOpenieTriple(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) { if (openieTripleBuilder_ == null) { @@ -8908,11 +10025,11 @@ public Builder addOpenieTriple(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationT return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder addOpenieTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) { @@ -8929,11 +10046,11 @@ public Builder addOpenieTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder addOpenieTriple( edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) { @@ -8947,11 +10064,11 @@ public Builder addOpenieTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder addOpenieTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) { @@ -8965,17 +10082,18 @@ public Builder addOpenieTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder addAllOpenieTriple( java.lang.Iterable values) { if (openieTripleBuilder_ == null) { ensureOpenieTripleIsMutable(); - super.addAll(values, openieTriple_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, openieTriple_); onChanged(); } else { openieTripleBuilder_.addAllMessages(values); @@ -8983,11 +10101,11 @@ public Builder addAllOpenieTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder clearOpenieTriple() { if (openieTripleBuilder_ == null) { @@ -9000,11 +10118,11 @@ public Builder clearOpenieTriple() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public Builder removeOpenieTriple(int index) { if (openieTripleBuilder_ == null) { @@ -9017,22 +10135,22 @@ public Builder removeOpenieTriple(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenieTripleOrBuilder( int index) { @@ -9042,11 +10160,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenie } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public java.util.List getOpenieTripleOrBuilderList() { @@ -9057,22 +10175,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getOpenie } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addOpenieTripleBuilder( int index) { @@ -9080,21 +10198,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addOpenieT index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; - * *
        * The OpenIE triples in the sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple openieTriple = 14; */ public java.util.List getOpenieTripleBuilderList() { return getOpenieTripleFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + openieTripleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder>( openieTriple_, ((bitField0_ & 0x00008000) == 0x00008000), @@ -9105,7 +10223,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addOpenieT return openieTripleBuilder_; } - // repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; private java.util.List kbpTriple_ = java.util.Collections.emptyList(); private void ensureKbpTripleIsMutable() { @@ -9115,15 +10232,15 @@ private void ensureKbpTripleIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public java.util.List getKbpTripleList() { if (kbpTripleBuilder_ == null) { @@ -9133,11 +10250,11 @@ public java.util.List ge } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public int getKbpTripleCount() { if (kbpTripleBuilder_ == null) { @@ -9147,11 +10264,11 @@ public int getKbpTripleCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getKbpTriple(int index) { if (kbpTripleBuilder_ == null) { @@ -9161,11 +10278,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getKbpTriple(int i } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder setKbpTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) { @@ -9182,11 +10299,11 @@ public Builder setKbpTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder setKbpTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) { @@ -9200,11 +10317,11 @@ public Builder setKbpTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder addKbpTriple(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) { if (kbpTripleBuilder_ == null) { @@ -9220,11 +10337,11 @@ public Builder addKbpTriple(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTrip return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder addKbpTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple value) { @@ -9241,11 +10358,11 @@ public Builder addKbpTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder addKbpTriple( edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) { @@ -9259,11 +10376,11 @@ public Builder addKbpTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder addKbpTriple( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder builderForValue) { @@ -9277,17 +10394,18 @@ public Builder addKbpTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder addAllKbpTriple( java.lang.Iterable values) { if (kbpTripleBuilder_ == null) { ensureKbpTripleIsMutable(); - super.addAll(values, kbpTriple_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, kbpTriple_); onChanged(); } else { kbpTripleBuilder_.addAllMessages(values); @@ -9295,11 +10413,11 @@ public Builder addAllKbpTriple( return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder clearKbpTriple() { if (kbpTripleBuilder_ == null) { @@ -9312,11 +10430,11 @@ public Builder clearKbpTriple() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public Builder removeKbpTriple(int index) { if (kbpTripleBuilder_ == null) { @@ -9329,22 +10447,22 @@ public Builder removeKbpTriple(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTripleOrBuilder( int index) { @@ -9354,11 +10472,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTri } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public java.util.List getKbpTripleOrBuilderList() { @@ -9369,22 +10487,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder getKbpTri } } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addKbpTripleBuilder( int index) { @@ -9392,21 +10510,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addKbpTrip index, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; - * *
        * The KBP triples in this sentence
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.RelationTriple kbpTriple = 16; */ public java.util.List getKbpTripleBuilderList() { return getKbpTripleFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + kbpTripleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder>( kbpTriple_, ((bitField0_ & 0x00010000) == 0x00010000), @@ -9417,7 +10535,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple.Builder addKbpTrip return kbpTripleBuilder_; } - // repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; private java.util.List entailedSentence_ = java.util.Collections.emptyList(); private void ensureEntailedSentenceIsMutable() { @@ -9427,15 +10544,15 @@ private void ensureEntailedSentenceIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public java.util.List getEntailedSentenceList() { if (entailedSentenceBuilder_ == null) { @@ -9445,11 +10562,11 @@ public java.util.List } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public int getEntailedSentenceCount() { if (entailedSentenceBuilder_ == null) { @@ -9459,11 +10576,11 @@ public int getEntailedSentenceCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedSentence(int index) { if (entailedSentenceBuilder_ == null) { @@ -9473,11 +10590,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedSente } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder setEntailedSentence( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) { @@ -9494,11 +10611,11 @@ public Builder setEntailedSentence( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder setEntailedSentence( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) { @@ -9512,11 +10629,11 @@ public Builder setEntailedSentence( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder addEntailedSentence(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) { if (entailedSentenceBuilder_ == null) { @@ -9532,11 +10649,11 @@ public Builder addEntailedSentence(edu.stanford.nlp.pipeline.CoreNLPProtos.Sente return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder addEntailedSentence( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) { @@ -9553,11 +10670,11 @@ public Builder addEntailedSentence( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder addEntailedSentence( edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) { @@ -9571,11 +10688,11 @@ public Builder addEntailedSentence( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder addEntailedSentence( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) { @@ -9589,17 +10706,18 @@ public Builder addEntailedSentence( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder addAllEntailedSentence( java.lang.Iterable values) { if (entailedSentenceBuilder_ == null) { ensureEntailedSentenceIsMutable(); - super.addAll(values, entailedSentence_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entailedSentence_); onChanged(); } else { entailedSentenceBuilder_.addAllMessages(values); @@ -9607,11 +10725,11 @@ public Builder addAllEntailedSentence( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder clearEntailedSentence() { if (entailedSentenceBuilder_ == null) { @@ -9624,11 +10742,11 @@ public Builder clearEntailedSentence() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public Builder removeEntailedSentence(int index) { if (entailedSentenceBuilder_ == null) { @@ -9641,22 +10759,22 @@ public Builder removeEntailedSentence(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedSentenceOrBuilder( int index) { @@ -9666,11 +10784,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEnta } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public java.util.List getEntailedSentenceOrBuilderList() { @@ -9681,22 +10799,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEnta } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntailedSentenceBuilder( int index) { @@ -9704,21 +10822,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntai index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; - * *
        * The entailed sentences, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedSentence = 15; */ public java.util.List getEntailedSentenceBuilderList() { return getEntailedSentenceFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + entailedSentenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder>( entailedSentence_, ((bitField0_ & 0x00020000) == 0x00020000), @@ -9729,7 +10847,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntai return entailedSentenceBuilder_; } - // repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; private java.util.List entailedClause_ = java.util.Collections.emptyList(); private void ensureEntailedClauseIsMutable() { @@ -9739,15 +10856,15 @@ private void ensureEntailedClauseIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder> entailedClauseBuilder_; /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public java.util.List getEntailedClauseList() { if (entailedClauseBuilder_ == null) { @@ -9757,11 +10874,11 @@ public java.util.List } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public int getEntailedClauseCount() { if (entailedClauseBuilder_ == null) { @@ -9771,11 +10888,11 @@ public int getEntailedClauseCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedClause(int index) { if (entailedClauseBuilder_ == null) { @@ -9785,11 +10902,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getEntailedClaus } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder setEntailedClause( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) { @@ -9806,11 +10923,11 @@ public Builder setEntailedClause( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder setEntailedClause( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) { @@ -9824,11 +10941,11 @@ public Builder setEntailedClause( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder addEntailedClause(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) { if (entailedClauseBuilder_ == null) { @@ -9844,11 +10961,11 @@ public Builder addEntailedClause(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentenc return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder addEntailedClause( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment value) { @@ -9865,11 +10982,11 @@ public Builder addEntailedClause( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder addEntailedClause( edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) { @@ -9883,11 +11000,11 @@ public Builder addEntailedClause( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder addEntailedClause( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder builderForValue) { @@ -9901,17 +11018,18 @@ public Builder addEntailedClause( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder addAllEntailedClause( java.lang.Iterable values) { if (entailedClauseBuilder_ == null) { ensureEntailedClauseIsMutable(); - super.addAll(values, entailedClause_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entailedClause_); onChanged(); } else { entailedClauseBuilder_.addAllMessages(values); @@ -9919,11 +11037,11 @@ public Builder addAllEntailedClause( return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder clearEntailedClause() { if (entailedClauseBuilder_ == null) { @@ -9936,11 +11054,11 @@ public Builder clearEntailedClause() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public Builder removeEntailedClause(int index) { if (entailedClauseBuilder_ == null) { @@ -9953,22 +11071,22 @@ public Builder removeEntailedClause(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder getEntailedClauseBuilder( int index) { return getEntailedClauseFieldBuilder().getBuilder(index); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEntailedClauseOrBuilder( int index) { @@ -9978,11 +11096,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEnta } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public java.util.List getEntailedClauseOrBuilderList() { @@ -9993,22 +11111,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder getEnta } } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntailedClauseBuilder() { return getEntailedClauseFieldBuilder().addBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntailedClauseBuilder( int index) { @@ -10016,21 +11134,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntai index, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; - * *
        * The entailed clauses, by natural logic
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.SentenceFragment entailedClause = 35; */ public java.util.List getEntailedClauseBuilderList() { return getEntailedClauseFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder> getEntailedClauseFieldBuilder() { if (entailedClauseBuilder_ == null) { - entailedClauseBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + entailedClauseBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder>( entailedClause_, ((bitField0_ & 0x00040000) == 0x00040000), @@ -10041,9 +11159,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment.Builder addEntai return entailedClauseBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedDependencies_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -10056,7 +11173,7 @@ public boolean hasEnhancedDependencies() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedDependencies() { if (enhancedDependenciesBuilder_ == null) { - return enhancedDependencies_; + return enhancedDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedDependencies_; } else { return enhancedDependenciesBuilder_.getMessage(); } @@ -10097,6 +11214,7 @@ public Builder setEnhancedDependencies( public Builder mergeEnhancedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (enhancedDependenciesBuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000) && + enhancedDependencies_ != null && enhancedDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(enhancedDependencies_).mergeFrom(value).buildPartial(); @@ -10115,7 +11233,7 @@ public Builder mergeEnhancedDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos */ public Builder clearEnhancedDependencies() { if (enhancedDependenciesBuilder_ == null) { - enhancedDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + enhancedDependencies_ = null; onChanged(); } else { enhancedDependenciesBuilder_.clear(); @@ -10138,19 +11256,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhan if (enhancedDependenciesBuilder_ != null) { return enhancedDependenciesBuilder_.getMessageOrBuilder(); } else { - return enhancedDependencies_; + return enhancedDependencies_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedDependencies_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedDependencies = 17; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + enhancedDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - enhancedDependencies_, + getEnhancedDependencies(), getParentForChildren(), isClean()); enhancedDependencies_ = null; @@ -10158,9 +11277,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhan return enhancedDependenciesBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph enhancedPlusPlusDependencies_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -10173,7 +11291,7 @@ public boolean hasEnhancedPlusPlusDependencies() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getEnhancedPlusPlusDependencies() { if (enhancedPlusPlusDependenciesBuilder_ == null) { - return enhancedPlusPlusDependencies_; + return enhancedPlusPlusDependencies_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedPlusPlusDependencies_; } else { return enhancedPlusPlusDependenciesBuilder_.getMessage(); } @@ -10214,6 +11332,7 @@ public Builder setEnhancedPlusPlusDependencies( public Builder mergeEnhancedPlusPlusDependencies(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (enhancedPlusPlusDependenciesBuilder_ == null) { if (((bitField0_ & 0x00100000) == 0x00100000) && + enhancedPlusPlusDependencies_ != null && enhancedPlusPlusDependencies_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(enhancedPlusPlusDependencies_).mergeFrom(value).buildPartial(); @@ -10232,7 +11351,7 @@ public Builder mergeEnhancedPlusPlusDependencies(edu.stanford.nlp.pipeline.CoreN */ public Builder clearEnhancedPlusPlusDependencies() { if (enhancedPlusPlusDependenciesBuilder_ == null) { - enhancedPlusPlusDependencies_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + enhancedPlusPlusDependencies_ = null; onChanged(); } else { enhancedPlusPlusDependenciesBuilder_.clear(); @@ -10255,19 +11374,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhan if (enhancedPlusPlusDependenciesBuilder_ != null) { return enhancedPlusPlusDependenciesBuilder_.getMessageOrBuilder(); } else { - return enhancedPlusPlusDependencies_; + return enhancedPlusPlusDependencies_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : enhancedPlusPlusDependencies_; } } /** * optional .edu.stanford.nlp.pipeline.DependencyGraph enhancedPlusPlusDependencies = 18; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + enhancedPlusPlusDependenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - enhancedPlusPlusDependencies_, + getEnhancedPlusPlusDependencies(), getParentForChildren(), isClean()); enhancedPlusPlusDependencies_ = null; @@ -10275,7 +11395,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getEnhan return enhancedPlusPlusDependenciesBuilder_; } - // repeated .edu.stanford.nlp.pipeline.Token character = 19; private java.util.List character_ = java.util.Collections.emptyList(); private void ensureCharacterIsMutable() { @@ -10285,7 +11404,7 @@ private void ensureCharacterIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder> characterBuilder_; /** @@ -10417,7 +11536,8 @@ public Builder addAllCharacter( java.lang.Iterable values) { if (characterBuilder_ == null) { ensureCharacterIsMutable(); - super.addAll(values, character_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, character_); onChanged(); } else { characterBuilder_.addAllMessages(values); @@ -10500,11 +11620,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder getCharacterBuilderList() { return getCharacterFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + characterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Token, edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder>( character_, ((bitField0_ & 0x00200000) == 0x00200000), @@ -10515,7 +11635,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token.Builder addCharacterBuilder return characterBuilder_; } - // optional uint32 paragraph = 11; private int paragraph_ ; /** * optional uint32 paragraph = 11; @@ -10548,42 +11667,44 @@ public Builder clearParagraph() { return this; } - // optional string text = 12; private java.lang.Object text_ = ""; /** - * optional string text = 12; - * *
        * Only needed if we're only saving the sentence.
        * 
+ * + * optional string text = 12; */ public boolean hasText() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** - * optional string text = 12; - * *
        * Only needed if we're only saving the sentence.
        * 
+ * + * optional string text = 12; */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; + 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.
        * 
+ * + * optional string text = 12; */ public com.google.protobuf.ByteString getTextBytes() { @@ -10599,11 +11720,11 @@ public java.lang.String getText() { } } /** - * optional string text = 12; - * *
        * Only needed if we're only saving the sentence.
        * 
+ * + * optional string text = 12; */ public Builder setText( java.lang.String value) { @@ -10616,11 +11737,11 @@ public Builder setText( return this; } /** - * optional string text = 12; - * *
        * Only needed if we're only saving the sentence.
        * 
+ * + * optional string text = 12; */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00800000); @@ -10629,11 +11750,11 @@ public Builder clearText() { return this; } /** - * optional string text = 12; - * *
        * Only needed if we're only saving the sentence.
        * 
+ * + * optional string text = 12; */ public Builder setTextBytes( com.google.protobuf.ByteString value) { @@ -10646,34 +11767,33 @@ public Builder setTextBytes( return this; } - // optional bool hasRelationAnnotations = 51; private boolean hasRelationAnnotations_ ; /** - * optional bool hasRelationAnnotations = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional bool hasRelationAnnotations = 51; */ public boolean hasHasRelationAnnotations() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** - * optional bool hasRelationAnnotations = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional bool hasRelationAnnotations = 51; */ public boolean getHasRelationAnnotations() { return hasRelationAnnotations_; } /** - * optional bool hasRelationAnnotations = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional bool hasRelationAnnotations = 51; */ public Builder setHasRelationAnnotations(boolean value) { bitField0_ |= 0x01000000; @@ -10682,11 +11802,11 @@ public Builder setHasRelationAnnotations(boolean value) { return this; } /** - * optional bool hasRelationAnnotations = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional bool hasRelationAnnotations = 51; */ public Builder clearHasRelationAnnotations() { bitField0_ = (bitField0_ & ~0x01000000); @@ -10695,7 +11815,6 @@ public Builder clearHasRelationAnnotations() { return this; } - // repeated .edu.stanford.nlp.pipeline.Entity entity = 52; private java.util.List entity_ = java.util.Collections.emptyList(); private void ensureEntityIsMutable() { @@ -10705,7 +11824,7 @@ private void ensureEntityIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder> entityBuilder_; /** @@ -10837,7 +11956,8 @@ public Builder addAllEntity( java.lang.Iterable values) { if (entityBuilder_ == null) { ensureEntityIsMutable(); - super.addAll(values, entity_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entity_); onChanged(); } else { entityBuilder_.addAllMessages(values); @@ -10920,11 +12040,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addEntityBuilder( getEntityBuilderList() { return getEntityFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder>( entity_, ((bitField0_ & 0x02000000) == 0x02000000), @@ -10935,7 +12055,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addEntityBuilder( return entityBuilder_; } - // repeated .edu.stanford.nlp.pipeline.Relation relation = 53; private java.util.List relation_ = java.util.Collections.emptyList(); private void ensureRelationIsMutable() { @@ -10945,7 +12064,7 @@ private void ensureRelationIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Relation, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder> relationBuilder_; /** @@ -11077,7 +12196,8 @@ public Builder addAllRelation( java.lang.Iterable values) { if (relationBuilder_ == null) { ensureRelationIsMutable(); - super.addAll(values, relation_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relation_); onChanged(); } else { relationBuilder_.addAllMessages(values); @@ -11160,11 +12280,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder addRelationBuild getRelationBuilderList() { return getRelationFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + relationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Relation, edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder>( relation_, ((bitField0_ & 0x04000000) == 0x04000000), @@ -11175,7 +12295,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation.Builder addRelationBuild return relationBuilder_; } - // optional bool hasNumerizedTokensAnnotation = 54; private boolean hasNumerizedTokensAnnotation_ ; /** * optional bool hasNumerizedTokensAnnotation = 54; @@ -11208,7 +12327,6 @@ public Builder clearHasNumerizedTokensAnnotation() { return this; } - // repeated .edu.stanford.nlp.pipeline.NERMention mentions = 55; private java.util.List mentions_ = java.util.Collections.emptyList(); private void ensureMentionsIsMutable() { @@ -11218,7 +12336,7 @@ private void ensureMentionsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder> mentionsBuilder_; /** @@ -11350,7 +12468,8 @@ public Builder addAllMentions( java.lang.Iterable values) { if (mentionsBuilder_ == null) { ensureMentionsIsMutable(); - super.addAll(values, mentions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mentions_); onChanged(); } else { mentionsBuilder_.addAllMessages(values); @@ -11433,11 +12552,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBui getMentionsBuilderList() { return getMentionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + mentionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder>( mentions_, ((bitField0_ & 0x10000000) == 0x10000000), @@ -11448,7 +12567,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention.Builder addMentionsBui return mentionsBuilder_; } - // repeated .edu.stanford.nlp.pipeline.Mention mentionsForCoref = 56; private java.util.List mentionsForCoref_ = java.util.Collections.emptyList(); private void ensureMentionsForCorefIsMutable() { @@ -11458,7 +12576,7 @@ private void ensureMentionsForCorefIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Mention, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder> mentionsForCorefBuilder_; /** @@ -11590,7 +12708,8 @@ public Builder addAllMentionsForCoref( java.lang.Iterable values) { if (mentionsForCorefBuilder_ == null) { ensureMentionsForCorefIsMutable(); - super.addAll(values, mentionsForCoref_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mentionsForCoref_); onChanged(); } else { mentionsForCorefBuilder_.addAllMessages(values); @@ -11673,11 +12792,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder addMentionsForCor getMentionsForCorefBuilderList() { return getMentionsForCorefFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + mentionsForCorefBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Mention, edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder>( mentionsForCoref_, ((bitField0_ & 0x20000000) == 0x20000000), @@ -11688,7 +12807,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention.Builder addMentionsForCor return mentionsForCorefBuilder_; } - // optional bool hasCorefMentionsAnnotation = 57; private boolean hasCorefMentionsAnnotation_ ; /** * optional bool hasCorefMentionsAnnotation = 57; @@ -11721,42 +12839,44 @@ public Builder clearHasCorefMentionsAnnotation() { return this; } - // optional string sentenceID = 58; private java.lang.Object sentenceID_ = ""; /** - * optional string sentenceID = 58; - * *
        * Useful when storing sentences (e.g. ForEach)
        * 
+ * + * optional string sentenceID = 58; */ public boolean hasSentenceID() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** - * optional string sentenceID = 58; - * *
        * Useful when storing sentences (e.g. ForEach)
        * 
+ * + * optional string sentenceID = 58; */ public java.lang.String getSentenceID() { java.lang.Object ref = sentenceID_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - sentenceID_ = s; + 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)
        * 
+ * + * optional string sentenceID = 58; */ public com.google.protobuf.ByteString getSentenceIDBytes() { @@ -11772,11 +12892,11 @@ public java.lang.String getSentenceID() { } } /** - * optional string sentenceID = 58; - * *
        * Useful when storing sentences (e.g. ForEach)
        * 
+ * + * optional string sentenceID = 58; */ public Builder setSentenceID( java.lang.String value) { @@ -11789,11 +12909,11 @@ public Builder setSentenceID( return this; } /** - * optional string sentenceID = 58; - * *
        * Useful when storing sentences (e.g. ForEach)
        * 
+ * + * optional string sentenceID = 58; */ public Builder clearSentenceID() { bitField0_ = (bitField0_ & ~0x80000000); @@ -11802,11 +12922,11 @@ public Builder clearSentenceID() { return this; } /** - * optional string sentenceID = 58; - * *
        * Useful when storing sentences (e.g. ForEach)
        * 
+ * + * optional string sentenceID = 58; */ public Builder setSentenceIDBytes( com.google.protobuf.ByteString value) { @@ -11819,711 +12939,867 @@ public Builder setSentenceIDBytes( return this; } + private java.lang.Object sectionDate_ = ""; + /** + *
+       * date of section
+       * 
+ * + * optional string sectionDate = 59; + */ + public boolean hasSectionDate() { + return ((bitField1_ & 0x00000001) == 0x00000001); + } + /** + *
+       * date of section
+       * 
+ * + * optional string sectionDate = 59; + */ + public java.lang.String getSectionDate() { + java.lang.Object ref = sectionDate_; + 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()) { + sectionDate_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * date of section
+       * 
+ * + * optional string sectionDate = 59; + */ + public com.google.protobuf.ByteString + getSectionDateBytes() { + java.lang.Object ref = sectionDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sectionDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * date of section
+       * 
+ * + * optional string sectionDate = 59; + */ + public Builder setSectionDate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + sectionDate_ = value; + onChanged(); + return this; + } + /** + *
+       * date of section
+       * 
+ * + * optional string sectionDate = 59; + */ + public Builder clearSectionDate() { + bitField1_ = (bitField1_ & ~0x00000001); + sectionDate_ = getDefaultInstance().getSectionDate(); + onChanged(); + return this; + } + /** + *
+       * date of section
+       * 
+ * + * optional string sectionDate = 59; + */ + public Builder setSectionDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + sectionDate_ = value; + onChanged(); + return this; + } + + private int sectionIndex_ ; + /** + *
+       * section index for this sentence's section
+       * 
+ * + * optional uint32 sectionIndex = 60; + */ + public boolean hasSectionIndex() { + return ((bitField1_ & 0x00000002) == 0x00000002); + } + /** + *
+       * section index for this sentence's section
+       * 
+ * + * optional uint32 sectionIndex = 60; + */ + public int getSectionIndex() { + return sectionIndex_; + } + /** + *
+       * section index for this sentence's section
+       * 
+ * + * optional uint32 sectionIndex = 60; + */ + public Builder setSectionIndex(int value) { + bitField1_ |= 0x00000002; + sectionIndex_ = value; + onChanged(); + return this; + } + /** + *
+       * section index for this sentence's section
+       * 
+ * + * optional uint32 sectionIndex = 60; + */ + public Builder clearSectionIndex() { + bitField1_ = (bitField1_ & ~0x00000002); + sectionIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Sentence) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Sentence) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence DEFAULT_INSTANCE; static { - defaultInstance = new Sentence(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Sentence) } public interface TokenOrBuilder extends - com.google.protobuf.GeneratedMessage. + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Token) + com.google.protobuf.GeneratedMessageV3. ExtendableMessageOrBuilder { - // optional string word = 1; /** - * optional string word = 1; - * *
      * Fields set by the default annotators [new CoreNLP(new Properties())]
      * 
+ * + * optional string word = 1; */ boolean hasWord(); /** - * optional string word = 1; - * *
      * Fields set by the default annotators [new CoreNLP(new Properties())]
      * 
+ * + * optional string word = 1; */ java.lang.String getWord(); /** - * optional string word = 1; - * *
      * Fields set by the default annotators [new CoreNLP(new Properties())]
      * 
+ * + * optional string word = 1; */ com.google.protobuf.ByteString getWordBytes(); - // optional string pos = 2; /** - * optional string pos = 2; - * *
      * The word's part of speech tag
      * 
+ * + * optional string pos = 2; */ boolean hasPos(); /** - * optional string pos = 2; - * *
      * The word's part of speech tag
      * 
+ * + * optional string pos = 2; */ java.lang.String getPos(); /** - * optional string pos = 2; - * *
      * The word's part of speech tag
      * 
+ * + * optional string pos = 2; */ com.google.protobuf.ByteString getPosBytes(); - // optional string value = 3; /** - * optional string value = 3; - * *
      * The word's 'value', (e.g., parse tree node)
      * 
+ * + * optional string value = 3; */ boolean hasValue(); /** - * optional string value = 3; - * *
      * The word's 'value', (e.g., parse tree node)
      * 
+ * + * optional string value = 3; */ java.lang.String getValue(); /** - * optional string value = 3; - * *
      * The word's 'value', (e.g., parse tree node)
      * 
+ * + * optional string value = 3; */ com.google.protobuf.ByteString getValueBytes(); - // optional string category = 4; /** - * optional string category = 4; - * *
      * The word's 'category' (e.g., parse tree node)
      * 
+ * + * optional string category = 4; */ boolean hasCategory(); /** - * optional string category = 4; - * *
      * The word's 'category' (e.g., parse tree node)
      * 
+ * + * optional string category = 4; */ java.lang.String getCategory(); /** - * optional string category = 4; - * *
      * The word's 'category' (e.g., parse tree node)
      * 
+ * + * optional string category = 4; */ com.google.protobuf.ByteString getCategoryBytes(); - // optional string before = 5; /** - * optional string before = 5; - * *
      * The whitespace/xml before the token
      * 
+ * + * optional string before = 5; */ boolean hasBefore(); /** - * optional string before = 5; - * *
      * The whitespace/xml before the token
      * 
+ * + * optional string before = 5; */ java.lang.String getBefore(); /** - * optional string before = 5; - * *
      * The whitespace/xml before the token
      * 
+ * + * optional string before = 5; */ com.google.protobuf.ByteString getBeforeBytes(); - // optional string after = 6; /** - * optional string after = 6; - * *
      * The whitespace/xml after the token
      * 
+ * + * optional string after = 6; */ boolean hasAfter(); /** - * optional string after = 6; - * *
      * The whitespace/xml after the token
      * 
+ * + * optional string after = 6; */ java.lang.String getAfter(); /** - * optional string after = 6; - * *
      * The whitespace/xml after the token
      * 
+ * + * optional string after = 6; */ com.google.protobuf.ByteString getAfterBytes(); - // optional string originalText = 7; /** - * optional string originalText = 7; - * *
      * The original text for this token
      * 
+ * + * optional string originalText = 7; */ boolean hasOriginalText(); /** - * optional string originalText = 7; - * *
      * The original text for this token
      * 
+ * + * optional string originalText = 7; */ java.lang.String getOriginalText(); /** - * optional string originalText = 7; - * *
      * The original text for this token
      * 
+ * + * optional string originalText = 7; */ com.google.protobuf.ByteString getOriginalTextBytes(); - // optional string ner = 8; /** - * optional string ner = 8; - * *
      * The word's NER tag
      * 
+ * + * optional string ner = 8; */ boolean hasNer(); /** - * optional string ner = 8; - * *
      * The word's NER tag
      * 
+ * + * optional string ner = 8; */ java.lang.String getNer(); /** - * optional string ner = 8; - * *
      * The word's NER tag
      * 
+ * + * optional string ner = 8; */ com.google.protobuf.ByteString getNerBytes(); - // optional string normalizedNER = 9; /** - * optional string normalizedNER = 9; - * *
      * The word's normalized NER tag
      * 
+ * + * optional string normalizedNER = 9; */ boolean hasNormalizedNER(); /** - * optional string normalizedNER = 9; - * *
      * The word's normalized NER tag
      * 
+ * + * optional string normalizedNER = 9; */ java.lang.String getNormalizedNER(); /** - * optional string normalizedNER = 9; - * *
      * The word's normalized NER tag
      * 
+ * + * optional string normalizedNER = 9; */ com.google.protobuf.ByteString getNormalizedNERBytes(); - // optional string lemma = 10; /** - * optional string lemma = 10; - * *
      * The word's lemma
      * 
+ * + * optional string lemma = 10; */ boolean hasLemma(); /** - * optional string lemma = 10; - * *
      * The word's lemma
      * 
+ * + * optional string lemma = 10; */ java.lang.String getLemma(); /** - * optional string lemma = 10; - * *
      * The word's lemma
      * 
+ * + * optional string lemma = 10; */ com.google.protobuf.ByteString getLemmaBytes(); - // optional uint32 beginChar = 11; /** - * optional uint32 beginChar = 11; - * *
      * The character offset begin, in the document
      * 
+ * + * optional uint32 beginChar = 11; */ boolean hasBeginChar(); /** - * optional uint32 beginChar = 11; - * *
      * The character offset begin, in the document
      * 
+ * + * optional uint32 beginChar = 11; */ int getBeginChar(); - // optional uint32 endChar = 12; /** - * optional uint32 endChar = 12; - * *
      * The character offset end, in the document
      * 
+ * + * optional uint32 endChar = 12; */ boolean hasEndChar(); /** - * optional uint32 endChar = 12; - * *
      * The character offset end, in the document
      * 
+ * + * optional uint32 endChar = 12; */ int getEndChar(); - // optional uint32 utterance = 13; /** - * optional uint32 utterance = 13; - * *
      * The utterance tag used in dcoref
      * 
+ * + * optional uint32 utterance = 13; */ boolean hasUtterance(); /** - * optional uint32 utterance = 13; - * *
      * The utterance tag used in dcoref
      * 
+ * + * optional uint32 utterance = 13; */ int getUtterance(); - // optional string speaker = 14; /** - * optional string speaker = 14; - * *
      * The speaker speaking this word
      * 
+ * + * optional string speaker = 14; */ boolean hasSpeaker(); /** - * optional string speaker = 14; - * *
      * The speaker speaking this word
      * 
+ * + * optional string speaker = 14; */ java.lang.String getSpeaker(); /** - * optional string speaker = 14; - * *
      * The speaker speaking this word
      * 
+ * + * optional string speaker = 14; */ com.google.protobuf.ByteString getSpeakerBytes(); - // optional uint32 beginIndex = 15; /** - * optional uint32 beginIndex = 15; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 beginIndex = 15; */ boolean hasBeginIndex(); /** - * optional uint32 beginIndex = 15; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 beginIndex = 15; */ int getBeginIndex(); - // optional uint32 endIndex = 16; /** - * optional uint32 endIndex = 16; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 endIndex = 16; */ boolean hasEndIndex(); /** - * optional uint32 endIndex = 16; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 endIndex = 16; */ int getEndIndex(); - // optional uint32 tokenBeginIndex = 17; /** - * optional uint32 tokenBeginIndex = 17; - * *
      * The begin index of the token
      * 
+ * + * optional uint32 tokenBeginIndex = 17; */ boolean hasTokenBeginIndex(); /** - * optional uint32 tokenBeginIndex = 17; - * *
      * The begin index of the token
      * 
+ * + * optional uint32 tokenBeginIndex = 17; */ int getTokenBeginIndex(); - // optional uint32 tokenEndIndex = 18; /** - * optional uint32 tokenEndIndex = 18; - * *
      * The end index of the token
      * 
+ * + * optional uint32 tokenEndIndex = 18; */ boolean hasTokenEndIndex(); /** - * optional uint32 tokenEndIndex = 18; - * *
      * The end index of the token
      * 
+ * + * optional uint32 tokenEndIndex = 18; */ int getTokenEndIndex(); - // optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
      * The time this word refers to
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ boolean hasTimexValue(); /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
      * The time this word refers to
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimexValue(); /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
      * The time this word refers to
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBuilder(); - // optional bool hasXmlContext = 21; /** - * optional bool hasXmlContext = 21; - * *
      * Used by clean xml annotator
      * 
+ * + * optional bool hasXmlContext = 21; */ boolean hasHasXmlContext(); /** - * optional bool hasXmlContext = 21; - * *
      * Used by clean xml annotator
      * 
+ * + * optional bool hasXmlContext = 21; */ boolean getHasXmlContext(); - // repeated string xmlContext = 22; /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ java.util.List - getXmlContextList(); + getXmlContextList(); /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ int getXmlContextCount(); /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ java.lang.String getXmlContext(int index); /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ com.google.protobuf.ByteString getXmlContextBytes(int index); - // optional uint32 corefClusterID = 23; /** - * optional uint32 corefClusterID = 23; - * *
      * The [primary] cluster id for this token
      * 
+ * + * optional uint32 corefClusterID = 23; */ boolean hasCorefClusterID(); /** - * optional uint32 corefClusterID = 23; - * *
      * The [primary] cluster id for this token
      * 
+ * + * optional uint32 corefClusterID = 23; */ int getCorefClusterID(); - // optional string answer = 24; /** - * optional string answer = 24; - * *
      * A temporary annotation which is occasionally left in
      * 
+ * + * optional string answer = 24; */ boolean hasAnswer(); /** - * optional string answer = 24; - * *
      * A temporary annotation which is occasionally left in
      * 
+ * + * optional string answer = 24; */ java.lang.String getAnswer(); /** - * optional string answer = 24; - * *
      * A temporary annotation which is occasionally left in
      * 
+ * + * optional string answer = 24; */ com.google.protobuf.ByteString getAnswerBytes(); - // optional uint32 headWordIndex = 26; /** - * optional uint32 headWordIndex = 26; - * *
      *  optional string projectedCategory = 25;   // The syntactic category of the maximal constituent headed by the word. Not used anywhere, so deleted.
      * 
+ * + * optional uint32 headWordIndex = 26; */ 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.
      * 
+ * + * optional uint32 headWordIndex = 26; */ int getHeadWordIndex(); - // optional .edu.stanford.nlp.pipeline.Operator operator = 27; /** - * 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)?
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ 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)?
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ 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)?
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBuilder(); - // optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
      * The polarity of this word, according to Natural Logic
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ boolean hasPolarity(); /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
      * The polarity of this word, according to Natural Logic
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getPolarity(); /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
      * The polarity of this word, according to Natural Logic
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBuilder(); - // optional .edu.stanford.nlp.pipeline.Span span = 29; /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
      * The span of a leaf node of a tree
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ boolean hasSpan(); /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
      * The span of a leaf node of a tree
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ edu.stanford.nlp.pipeline.CoreNLPProtos.Span getSpan(); /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
      * The span of a leaf node of a tree
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder(); - // optional string sentiment = 30; /** - * optional string sentiment = 30; - * *
      * The final sentiment of the sentence
      * 
+ * + * optional string sentiment = 30; */ boolean hasSentiment(); /** - * optional string sentiment = 30; - * *
      * The final sentiment of the sentence
      * 
+ * + * optional string sentiment = 30; */ java.lang.String getSentiment(); /** - * optional string sentiment = 30; - * *
      * The final sentiment of the sentence
      * 
+ * + * optional string sentiment = 30; */ com.google.protobuf.ByteString getSentimentBytes(); - // optional int32 quotationIndex = 31; /** - * optional int32 quotationIndex = 31; - * *
      * The index of the quotation this token refers to
      * 
+ * + * optional int32 quotationIndex = 31; */ boolean hasQuotationIndex(); /** - * optional int32 quotationIndex = 31; - * *
      * The index of the quotation this token refers to
      * 
+ * + * optional int32 quotationIndex = 31; */ int getQuotationIndex(); - // optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; /** * optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; */ @@ -12537,34 +13813,32 @@ public interface TokenOrBuilder extends */ edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConllUFeaturesOrBuilder(); - // optional string coarseTag = 33; /** - * optional string coarseTag = 33; - * *
      *  The coarse POS tag (used to store the UPOS tag)
      * 
+ * + * optional string coarseTag = 33; */ boolean hasCoarseTag(); /** - * optional string coarseTag = 33; - * *
      *  The coarse POS tag (used to store the UPOS tag)
      * 
+ * + * optional string coarseTag = 33; */ java.lang.String getCoarseTag(); /** - * optional string coarseTag = 33; - * *
      *  The coarse POS tag (used to store the UPOS tag)
      * 
+ * + * optional string coarseTag = 33; */ com.google.protobuf.ByteString getCoarseTagBytes(); - // optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; /** * optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; */ @@ -12578,7 +13852,6 @@ public interface TokenOrBuilder extends */ edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanOrBuilder(); - // optional string conllUMisc = 35; /** * optional string conllUMisc = 35; */ @@ -12593,7 +13866,6 @@ public interface TokenOrBuilder extends com.google.protobuf.ByteString getConllUMiscBytes(); - // optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; /** * optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; */ @@ -12607,7 +13879,6 @@ public interface TokenOrBuilder extends */ edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSecondaryDepsOrBuilder(); - // optional string wikipediaEntity = 37; /** * optional string wikipediaEntity = 37; */ @@ -12622,115 +13893,110 @@ public interface TokenOrBuilder extends com.google.protobuf.ByteString getWikipediaEntityBytes(); - // optional string gender = 51; /** - * optional string gender = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional string gender = 51; */ boolean hasGender(); /** - * optional string gender = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional string gender = 51; */ java.lang.String getGender(); /** - * optional string gender = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional string gender = 51; */ com.google.protobuf.ByteString getGenderBytes(); - // optional string trueCase = 52; /** - * optional string trueCase = 52; - * *
      * true case type of token
      * 
+ * + * optional string trueCase = 52; */ boolean hasTrueCase(); /** - * optional string trueCase = 52; - * *
      * true case type of token
      * 
+ * + * optional string trueCase = 52; */ java.lang.String getTrueCase(); /** - * optional string trueCase = 52; - * *
      * true case type of token
      * 
+ * + * optional string trueCase = 52; */ com.google.protobuf.ByteString getTrueCaseBytes(); - // optional string trueCaseText = 53; /** - * optional string trueCaseText = 53; - * *
      * true case gloss of token
      * 
+ * + * optional string trueCaseText = 53; */ boolean hasTrueCaseText(); /** - * optional string trueCaseText = 53; - * *
      * true case gloss of token
      * 
+ * + * optional string trueCaseText = 53; */ java.lang.String getTrueCaseText(); /** - * optional string trueCaseText = 53; - * *
      * true case gloss of token
      * 
+ * + * optional string trueCaseText = 53; */ com.google.protobuf.ByteString getTrueCaseTextBytes(); - // optional string chineseChar = 54; /** - * optional string chineseChar = 54; - * *
      *  Chinese character info
      * 
+ * + * optional string chineseChar = 54; */ boolean hasChineseChar(); /** - * optional string chineseChar = 54; - * *
      *  Chinese character info
      * 
+ * + * optional string chineseChar = 54; */ java.lang.String getChineseChar(); /** - * optional string chineseChar = 54; - * *
      *  Chinese character info
      * 
+ * + * optional string chineseChar = 54; */ com.google.protobuf.ByteString getChineseCharBytes(); - // optional string chineseSeg = 55; /** * optional string chineseSeg = 55; */ @@ -12746,43 +14012,67 @@ public interface TokenOrBuilder extends getChineseSegBytes(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Token} - * *
-   *
    * The serialized version of a Token (a CoreLabel).
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Token} */ - public static final class Token extends - com.google.protobuf.GeneratedMessage.ExtendableMessage< - Token> implements TokenOrBuilder { + public static final class Token extends + com.google.protobuf.GeneratedMessageV3.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) { + private Token(com.google.protobuf.GeneratedMessageV3.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 Token() { + 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; + hasXmlContext_ = false; + xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY; + corefClusterID_ = 0; + answer_ = ""; + headWordIndex_ = 0; + sentiment_ = ""; + quotationIndex_ = 0; + coarseTag_ = ""; + conllUMisc_ = ""; + wikipediaEntity_ = ""; + gender_ = ""; + trueCase_ = ""; + trueCaseText_ = ""; + chineseChar_ = ""; + chineseSeg_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Token( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -12803,53 +14093,63 @@ private Token( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - word_ = input.readBytes(); + word_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - pos_ = input.readBytes(); + pos_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - value_ = input.readBytes(); + value_ = bs; break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - category_ = input.readBytes(); + category_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - before_ = input.readBytes(); + before_ = bs; break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - after_ = input.readBytes(); + after_ = bs; break; } case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - originalText_ = input.readBytes(); + originalText_ = bs; break; } case 66: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - ner_ = input.readBytes(); + ner_ = bs; break; } case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; - normalizedNER_ = input.readBytes(); + normalizedNER_ = bs; break; } case 82: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - lemma_ = input.readBytes(); + lemma_ = bs; break; } case 88: { @@ -12868,8 +14168,9 @@ private Token( break; } case 114: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; - speaker_ = input.readBytes(); + speaker_ = bs; break; } case 120: { @@ -12911,11 +14212,12 @@ private Token( 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(input.readBytes()); + xmlContext_.add(bs); break; } case 184: { @@ -12924,8 +14226,9 @@ private Token( break; } case 194: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00200000; - answer_ = input.readBytes(); + answer_ = bs; break; } case 208: { @@ -12973,8 +14276,9 @@ private Token( break; } case 242: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x04000000; - sentiment_ = input.readBytes(); + sentiment_ = bs; break; } case 248: { @@ -12996,8 +14300,9 @@ private Token( break; } case 266: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x20000000; - coarseTag_ = input.readBytes(); + coarseTag_ = bs; break; } case 274: { @@ -13014,8 +14319,9 @@ private Token( break; } case 282: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x80000000; - conllUMisc_ = input.readBytes(); + conllUMisc_ = bs; break; } case 290: { @@ -13032,33 +14338,39 @@ private Token( break; } case 298: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000002; - wikipediaEntity_ = input.readBytes(); + wikipediaEntity_ = bs; break; } case 410: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000004; - gender_ = input.readBytes(); + gender_ = bs; break; } case 418: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000008; - trueCase_ = input.readBytes(); + trueCase_ = bs; break; } case 426: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000010; - trueCaseText_ = input.readBytes(); + trueCaseText_ = bs; break; } case 434: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000020; - chineseChar_ = input.readBytes(); + chineseChar_ = bs; break; } case 442: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField1_ |= 0x00000040; - chineseSeg_ = input.readBytes(); + chineseSeg_ = bs; break; } } @@ -13067,10 +14379,10 @@ private Token( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { - xmlContext_ = new com.google.protobuf.UnmodifiableLazyStringList(xmlContext_); + xmlContext_ = xmlContext_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -13081,49 +14393,33 @@ private Token( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional string word = 1; public static final int WORD_FIELD_NUMBER = 1; - private java.lang.Object word_; + private volatile java.lang.Object word_; /** - * optional string word = 1; - * *
      * Fields set by the default annotators [new CoreNLP(new Properties())]
      * 
+ * + * optional string word = 1; */ public boolean hasWord() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string word = 1; - * *
      * Fields set by the default annotators [new CoreNLP(new Properties())]
      * 
+ * + * optional string word = 1; */ public java.lang.String getWord() { java.lang.Object ref = word_; @@ -13140,11 +14436,11 @@ public java.lang.String getWord() { } } /** - * optional string word = 1; - * *
      * Fields set by the default annotators [new CoreNLP(new Properties())]
      * 
+ * + * optional string word = 1; */ public com.google.protobuf.ByteString getWordBytes() { @@ -13160,25 +14456,24 @@ public java.lang.String getWord() { } } - // optional string pos = 2; public static final int POS_FIELD_NUMBER = 2; - private java.lang.Object pos_; + private volatile java.lang.Object pos_; /** - * optional string pos = 2; - * *
      * The word's part of speech tag
      * 
+ * + * optional string pos = 2; */ public boolean hasPos() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string pos = 2; - * *
      * The word's part of speech tag
      * 
+ * + * optional string pos = 2; */ public java.lang.String getPos() { java.lang.Object ref = pos_; @@ -13195,11 +14490,11 @@ public java.lang.String getPos() { } } /** - * optional string pos = 2; - * *
      * The word's part of speech tag
      * 
+ * + * optional string pos = 2; */ public com.google.protobuf.ByteString getPosBytes() { @@ -13215,25 +14510,24 @@ public java.lang.String getPos() { } } - // optional string value = 3; public static final int VALUE_FIELD_NUMBER = 3; - private java.lang.Object value_; + private volatile java.lang.Object value_; /** - * optional string value = 3; - * *
      * The word's 'value', (e.g., parse tree node)
      * 
+ * + * optional string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string value = 3; - * *
      * The word's 'value', (e.g., parse tree node)
      * 
+ * + * optional string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; @@ -13250,11 +14544,11 @@ public java.lang.String getValue() { } } /** - * optional string value = 3; - * *
      * The word's 'value', (e.g., parse tree node)
      * 
+ * + * optional string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { @@ -13270,25 +14564,24 @@ public java.lang.String getValue() { } } - // optional string category = 4; public static final int CATEGORY_FIELD_NUMBER = 4; - private java.lang.Object category_; + private volatile java.lang.Object category_; /** - * optional string category = 4; - * *
      * The word's 'category' (e.g., parse tree node)
      * 
+ * + * optional string category = 4; */ public boolean hasCategory() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional string category = 4; - * *
      * The word's 'category' (e.g., parse tree node)
      * 
+ * + * optional string category = 4; */ public java.lang.String getCategory() { java.lang.Object ref = category_; @@ -13305,11 +14598,11 @@ public java.lang.String getCategory() { } } /** - * optional string category = 4; - * *
      * The word's 'category' (e.g., parse tree node)
      * 
+ * + * optional string category = 4; */ public com.google.protobuf.ByteString getCategoryBytes() { @@ -13325,25 +14618,24 @@ public java.lang.String getCategory() { } } - // optional string before = 5; public static final int BEFORE_FIELD_NUMBER = 5; - private java.lang.Object before_; + private volatile java.lang.Object before_; /** - * optional string before = 5; - * *
      * The whitespace/xml before the token
      * 
+ * + * optional string before = 5; */ public boolean hasBefore() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional string before = 5; - * *
      * The whitespace/xml before the token
      * 
+ * + * optional string before = 5; */ public java.lang.String getBefore() { java.lang.Object ref = before_; @@ -13360,11 +14652,11 @@ public java.lang.String getBefore() { } } /** - * optional string before = 5; - * *
      * The whitespace/xml before the token
      * 
+ * + * optional string before = 5; */ public com.google.protobuf.ByteString getBeforeBytes() { @@ -13380,25 +14672,24 @@ public java.lang.String getBefore() { } } - // optional string after = 6; public static final int AFTER_FIELD_NUMBER = 6; - private java.lang.Object after_; + private volatile java.lang.Object after_; /** - * optional string after = 6; - * *
      * The whitespace/xml after the token
      * 
+ * + * optional string after = 6; */ public boolean hasAfter() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** - * optional string after = 6; - * *
      * The whitespace/xml after the token
      * 
+ * + * optional string after = 6; */ public java.lang.String getAfter() { java.lang.Object ref = after_; @@ -13415,11 +14706,11 @@ public java.lang.String getAfter() { } } /** - * optional string after = 6; - * *
      * The whitespace/xml after the token
      * 
+ * + * optional string after = 6; */ public com.google.protobuf.ByteString getAfterBytes() { @@ -13435,25 +14726,24 @@ public java.lang.String getAfter() { } } - // optional string originalText = 7; public static final int ORIGINALTEXT_FIELD_NUMBER = 7; - private java.lang.Object originalText_; + private volatile java.lang.Object originalText_; /** - * optional string originalText = 7; - * *
      * The original text for this token
      * 
+ * + * optional string originalText = 7; */ public boolean hasOriginalText() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional string originalText = 7; - * *
      * The original text for this token
      * 
+ * + * optional string originalText = 7; */ public java.lang.String getOriginalText() { java.lang.Object ref = originalText_; @@ -13470,11 +14760,11 @@ public java.lang.String getOriginalText() { } } /** - * optional string originalText = 7; - * *
      * The original text for this token
      * 
+ * + * optional string originalText = 7; */ public com.google.protobuf.ByteString getOriginalTextBytes() { @@ -13490,25 +14780,24 @@ public java.lang.String getOriginalText() { } } - // optional string ner = 8; public static final int NER_FIELD_NUMBER = 8; - private java.lang.Object ner_; + private volatile java.lang.Object ner_; /** - * optional string ner = 8; - * *
      * The word's NER tag
      * 
+ * + * optional string ner = 8; */ public boolean hasNer() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional string ner = 8; - * *
      * The word's NER tag
      * 
+ * + * optional string ner = 8; */ public java.lang.String getNer() { java.lang.Object ref = ner_; @@ -13525,11 +14814,11 @@ public java.lang.String getNer() { } } /** - * optional string ner = 8; - * *
      * The word's NER tag
      * 
+ * + * optional string ner = 8; */ public com.google.protobuf.ByteString getNerBytes() { @@ -13545,25 +14834,24 @@ public java.lang.String getNer() { } } - // optional string normalizedNER = 9; public static final int NORMALIZEDNER_FIELD_NUMBER = 9; - private java.lang.Object normalizedNER_; + private volatile java.lang.Object normalizedNER_; /** - * optional string normalizedNER = 9; - * *
      * The word's normalized NER tag
      * 
+ * + * optional string normalizedNER = 9; */ public boolean hasNormalizedNER() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** - * optional string normalizedNER = 9; - * *
      * The word's normalized NER tag
      * 
+ * + * optional string normalizedNER = 9; */ public java.lang.String getNormalizedNER() { java.lang.Object ref = normalizedNER_; @@ -13580,11 +14868,11 @@ public java.lang.String getNormalizedNER() { } } /** - * optional string normalizedNER = 9; - * *
      * The word's normalized NER tag
      * 
+ * + * optional string normalizedNER = 9; */ public com.google.protobuf.ByteString getNormalizedNERBytes() { @@ -13600,25 +14888,24 @@ public java.lang.String getNormalizedNER() { } } - // optional string lemma = 10; public static final int LEMMA_FIELD_NUMBER = 10; - private java.lang.Object lemma_; + private volatile java.lang.Object lemma_; /** - * optional string lemma = 10; - * *
      * The word's lemma
      * 
+ * + * optional string lemma = 10; */ public boolean hasLemma() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional string lemma = 10; - * *
      * The word's lemma
      * 
+ * + * optional string lemma = 10; */ public java.lang.String getLemma() { java.lang.Object ref = lemma_; @@ -13635,11 +14922,11 @@ public java.lang.String getLemma() { } } /** - * optional string lemma = 10; - * *
      * The word's lemma
      * 
+ * + * optional string lemma = 10; */ public com.google.protobuf.ByteString getLemmaBytes() { @@ -13655,97 +14942,93 @@ public java.lang.String getLemma() { } } - // optional uint32 beginChar = 11; public static final int BEGINCHAR_FIELD_NUMBER = 11; private int beginChar_; /** - * optional uint32 beginChar = 11; - * *
      * The character offset begin, in the document
      * 
+ * + * optional uint32 beginChar = 11; */ public boolean hasBeginChar() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** - * optional uint32 beginChar = 11; - * *
      * The character offset begin, in the document
      * 
+ * + * optional uint32 beginChar = 11; */ public int getBeginChar() { return beginChar_; } - // optional uint32 endChar = 12; public static final int ENDCHAR_FIELD_NUMBER = 12; private int endChar_; /** - * optional uint32 endChar = 12; - * *
      * The character offset end, in the document
      * 
+ * + * optional uint32 endChar = 12; */ public boolean hasEndChar() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** - * optional uint32 endChar = 12; - * *
      * The character offset end, in the document
      * 
+ * + * optional uint32 endChar = 12; */ public int getEndChar() { return endChar_; } - // optional uint32 utterance = 13; public static final int UTTERANCE_FIELD_NUMBER = 13; private int utterance_; /** - * optional uint32 utterance = 13; - * *
      * The utterance tag used in dcoref
      * 
+ * + * optional uint32 utterance = 13; */ public boolean hasUtterance() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** - * optional uint32 utterance = 13; - * *
      * The utterance tag used in dcoref
      * 
+ * + * optional uint32 utterance = 13; */ public int getUtterance() { return utterance_; } - // optional string speaker = 14; public static final int SPEAKER_FIELD_NUMBER = 14; - private java.lang.Object speaker_; + private volatile java.lang.Object speaker_; /** - * optional string speaker = 14; - * *
      * The speaker speaking this word
      * 
+ * + * optional string speaker = 14; */ public boolean hasSpeaker() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** - * optional string speaker = 14; - * *
      * The speaker speaking this word
      * 
+ * + * optional string speaker = 14; */ public java.lang.String getSpeaker() { java.lang.Object ref = speaker_; @@ -13762,11 +15045,11 @@ public java.lang.String getSpeaker() { } } /** - * optional string speaker = 14; - * *
      * The speaker speaking this word
      * 
+ * + * optional string speaker = 14; */ public com.google.protobuf.ByteString getSpeakerBytes() { @@ -13782,249 +15065,240 @@ public java.lang.String getSpeaker() { } } - // optional uint32 beginIndex = 15; public static final int BEGININDEX_FIELD_NUMBER = 15; private int beginIndex_; /** - * optional uint32 beginIndex = 15; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 beginIndex = 15; */ public boolean hasBeginIndex() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** - * optional uint32 beginIndex = 15; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 beginIndex = 15; */ public int getBeginIndex() { return beginIndex_; } - // optional uint32 endIndex = 16; public static final int ENDINDEX_FIELD_NUMBER = 16; private int endIndex_; /** - * optional uint32 endIndex = 16; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 endIndex = 16; */ public boolean hasEndIndex() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** - * optional uint32 endIndex = 16; - * *
      * The begin index of, e.g., a span
      * 
+ * + * optional uint32 endIndex = 16; */ public int getEndIndex() { return endIndex_; } - // optional uint32 tokenBeginIndex = 17; public static final int TOKENBEGININDEX_FIELD_NUMBER = 17; private int tokenBeginIndex_; /** - * optional uint32 tokenBeginIndex = 17; - * *
      * The begin index of the token
      * 
+ * + * optional uint32 tokenBeginIndex = 17; */ public boolean hasTokenBeginIndex() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** - * optional uint32 tokenBeginIndex = 17; - * *
      * The begin index of the token
      * 
+ * + * optional uint32 tokenBeginIndex = 17; */ public int getTokenBeginIndex() { return tokenBeginIndex_; } - // optional uint32 tokenEndIndex = 18; public static final int TOKENENDINDEX_FIELD_NUMBER = 18; private int tokenEndIndex_; /** - * optional uint32 tokenEndIndex = 18; - * *
      * The end index of the token
      * 
+ * + * optional uint32 tokenEndIndex = 18; */ public boolean hasTokenEndIndex() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** - * optional uint32 tokenEndIndex = 18; - * *
      * The end index of the token
      * 
+ * + * optional uint32 tokenEndIndex = 18; */ public int getTokenEndIndex() { return tokenEndIndex_; } - // optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; 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
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public boolean hasTimexValue() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
      * The time this word refers to
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimexValue() { - return timexValue_; + return timexValue_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timexValue_; } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
      * The time this word refers to
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBuilder() { - return timexValue_; + return timexValue_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timexValue_; } - // optional bool hasXmlContext = 21; public static final int HASXMLCONTEXT_FIELD_NUMBER = 21; private boolean hasXmlContext_; /** - * optional bool hasXmlContext = 21; - * *
      * Used by clean xml annotator
      * 
+ * + * optional bool hasXmlContext = 21; */ public boolean hasHasXmlContext() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** - * optional bool hasXmlContext = 21; - * *
      * Used by clean xml annotator
      * 
+ * + * optional bool hasXmlContext = 21; */ public boolean getHasXmlContext() { return hasXmlContext_; } - // repeated string xmlContext = 22; public static final int XMLCONTEXT_FIELD_NUMBER = 22; private com.google.protobuf.LazyStringList xmlContext_; /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getXmlContextList() { return xmlContext_; } /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ public int getXmlContextCount() { return xmlContext_.size(); } /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ public java.lang.String getXmlContext(int index) { return xmlContext_.get(index); } /** - * repeated string xmlContext = 22; - * *
      * Used by clean xml annotator
      * 
+ * + * repeated string xmlContext = 22; */ public com.google.protobuf.ByteString getXmlContextBytes(int index) { return xmlContext_.getByteString(index); } - // optional uint32 corefClusterID = 23; public static final int COREFCLUSTERID_FIELD_NUMBER = 23; private int corefClusterID_; /** - * optional uint32 corefClusterID = 23; - * *
      * The [primary] cluster id for this token
      * 
+ * + * optional uint32 corefClusterID = 23; */ public boolean hasCorefClusterID() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** - * optional uint32 corefClusterID = 23; - * *
      * The [primary] cluster id for this token
      * 
+ * + * optional uint32 corefClusterID = 23; */ public int getCorefClusterID() { return corefClusterID_; } - // optional string answer = 24; public static final int ANSWER_FIELD_NUMBER = 24; - private java.lang.Object answer_; + private volatile java.lang.Object answer_; /** - * optional string answer = 24; - * *
      * A temporary annotation which is occasionally left in
      * 
+ * + * optional string answer = 24; */ public boolean hasAnswer() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** - * optional string answer = 24; - * *
      * A temporary annotation which is occasionally left in
      * 
+ * + * optional string answer = 24; */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; @@ -14041,11 +15315,11 @@ public java.lang.String getAnswer() { } } /** - * optional string answer = 24; - * *
      * A temporary annotation which is occasionally left in
      * 
+ * + * optional string answer = 24; */ public com.google.protobuf.ByteString getAnswerBytes() { @@ -14061,151 +15335,146 @@ public java.lang.String getAnswer() { } } - // optional uint32 headWordIndex = 26; 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.
      * 
+ * + * optional uint32 headWordIndex = 26; */ 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.
      * 
+ * + * optional uint32 headWordIndex = 26; */ public int getHeadWordIndex() { return headWordIndex_; } - // optional .edu.stanford.nlp.pipeline.Operator operator = 27; 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)?
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ 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)?
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getOperator() { - return operator_; + return operator_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance() : 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)?
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBuilder() { - return operator_; + return operator_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance() : operator_; } - // optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; 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
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public boolean hasPolarity() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
      * The polarity of this word, according to Natural Logic
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getPolarity() { - return polarity_; + return polarity_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance() : polarity_; } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
      * The polarity of this word, according to Natural Logic
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBuilder() { - return polarity_; + return polarity_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance() : polarity_; } - // optional .edu.stanford.nlp.pipeline.Span span = 29; 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
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public boolean hasSpan() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
      * The span of a leaf node of a tree
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getSpan() { - return span_; + return span_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : span_; } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
      * The span of a leaf node of a tree
      * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder() { - return span_; + return span_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : span_; } - // optional string sentiment = 30; public static final int SENTIMENT_FIELD_NUMBER = 30; - private java.lang.Object sentiment_; + private volatile java.lang.Object sentiment_; /** - * optional string sentiment = 30; - * *
      * The final sentiment of the sentence
      * 
+ * + * optional string sentiment = 30; */ public boolean hasSentiment() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** - * optional string sentiment = 30; - * *
      * The final sentiment of the sentence
      * 
+ * + * optional string sentiment = 30; */ public java.lang.String getSentiment() { java.lang.Object ref = sentiment_; @@ -14222,11 +15491,11 @@ public java.lang.String getSentiment() { } } /** - * optional string sentiment = 30; - * *
      * The final sentiment of the sentence
      * 
+ * + * optional string sentiment = 30; */ public com.google.protobuf.ByteString getSentimentBytes() { @@ -14242,31 +15511,29 @@ public java.lang.String getSentiment() { } } - // optional int32 quotationIndex = 31; public static final int QUOTATIONINDEX_FIELD_NUMBER = 31; private int quotationIndex_; /** - * optional int32 quotationIndex = 31; - * *
      * The index of the quotation this token refers to
      * 
+ * + * optional int32 quotationIndex = 31; */ public boolean hasQuotationIndex() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** - * optional int32 quotationIndex = 31; - * *
      * The index of the quotation this token refers to
      * 
+ * + * optional int32 quotationIndex = 31; */ public int getQuotationIndex() { return quotationIndex_; } - // optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; public static final int CONLLUFEATURES_FIELD_NUMBER = 32; private edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString conllUFeatures_; /** @@ -14279,34 +15546,33 @@ public boolean hasConllUFeatures() { * optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getConllUFeatures() { - return conllUFeatures_; + return conllUFeatures_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance() : conllUFeatures_; } /** * optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConllUFeaturesOrBuilder() { - return conllUFeatures_; + return conllUFeatures_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance() : conllUFeatures_; } - // optional string coarseTag = 33; public static final int COARSETAG_FIELD_NUMBER = 33; - private java.lang.Object coarseTag_; + private volatile java.lang.Object coarseTag_; /** - * optional string coarseTag = 33; - * *
      *  The coarse POS tag (used to store the UPOS tag)
      * 
+ * + * optional string coarseTag = 33; */ public boolean hasCoarseTag() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** - * optional string coarseTag = 33; - * *
      *  The coarse POS tag (used to store the UPOS tag)
      * 
+ * + * optional string coarseTag = 33; */ public java.lang.String getCoarseTag() { java.lang.Object ref = coarseTag_; @@ -14323,11 +15589,11 @@ public java.lang.String getCoarseTag() { } } /** - * optional string coarseTag = 33; - * *
      *  The coarse POS tag (used to store the UPOS tag)
      * 
+ * + * optional string coarseTag = 33; */ public com.google.protobuf.ByteString getCoarseTagBytes() { @@ -14343,7 +15609,6 @@ public java.lang.String getCoarseTag() { } } - // optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; public static final int CONLLUTOKENSPAN_FIELD_NUMBER = 34; private edu.stanford.nlp.pipeline.CoreNLPProtos.Span conllUTokenSpan_; /** @@ -14356,18 +15621,17 @@ public boolean hasConllUTokenSpan() { * optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getConllUTokenSpan() { - return conllUTokenSpan_; + return conllUTokenSpan_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : conllUTokenSpan_; } /** * optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanOrBuilder() { - return conllUTokenSpan_; + return conllUTokenSpan_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : conllUTokenSpan_; } - // optional string conllUMisc = 35; public static final int CONLLUMISC_FIELD_NUMBER = 35; - private java.lang.Object conllUMisc_; + private volatile java.lang.Object conllUMisc_; /** * optional string conllUMisc = 35; */ @@ -14408,7 +15672,6 @@ public java.lang.String getConllUMisc() { } } - // optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; public static final int CONLLUSECONDARYDEPS_FIELD_NUMBER = 36; private edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString conllUSecondaryDeps_; /** @@ -14421,18 +15684,17 @@ public boolean hasConllUSecondaryDeps() { * optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getConllUSecondaryDeps() { - return conllUSecondaryDeps_; + return conllUSecondaryDeps_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance() : conllUSecondaryDeps_; } /** * optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSecondaryDepsOrBuilder() { - return conllUSecondaryDeps_; + return conllUSecondaryDeps_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance() : conllUSecondaryDeps_; } - // optional string wikipediaEntity = 37; public static final int WIKIPEDIAENTITY_FIELD_NUMBER = 37; - private java.lang.Object wikipediaEntity_; + private volatile java.lang.Object wikipediaEntity_; /** * optional string wikipediaEntity = 37; */ @@ -14473,25 +15735,24 @@ public java.lang.String getWikipediaEntity() { } } - // optional string gender = 51; public static final int GENDER_FIELD_NUMBER = 51; - private java.lang.Object gender_; + private volatile java.lang.Object gender_; /** - * optional string gender = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional string gender = 51; */ public boolean hasGender() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** - * optional string gender = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional string gender = 51; */ public java.lang.String getGender() { java.lang.Object ref = gender_; @@ -14508,11 +15769,11 @@ public java.lang.String getGender() { } } /** - * optional string gender = 51; - * *
      * Fields set by other annotators in CoreNLP
      * 
+ * + * optional string gender = 51; */ public com.google.protobuf.ByteString getGenderBytes() { @@ -14528,25 +15789,24 @@ public java.lang.String getGender() { } } - // optional string trueCase = 52; public static final int TRUECASE_FIELD_NUMBER = 52; - private java.lang.Object trueCase_; + private volatile java.lang.Object trueCase_; /** - * optional string trueCase = 52; - * *
      * true case type of token
      * 
+ * + * optional string trueCase = 52; */ public boolean hasTrueCase() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** - * optional string trueCase = 52; - * *
      * true case type of token
      * 
+ * + * optional string trueCase = 52; */ public java.lang.String getTrueCase() { java.lang.Object ref = trueCase_; @@ -14563,11 +15823,11 @@ public java.lang.String getTrueCase() { } } /** - * optional string trueCase = 52; - * *
      * true case type of token
      * 
+ * + * optional string trueCase = 52; */ public com.google.protobuf.ByteString getTrueCaseBytes() { @@ -14583,25 +15843,24 @@ public java.lang.String getTrueCase() { } } - // optional string trueCaseText = 53; public static final int TRUECASETEXT_FIELD_NUMBER = 53; - private java.lang.Object trueCaseText_; + private volatile java.lang.Object trueCaseText_; /** - * optional string trueCaseText = 53; - * *
      * true case gloss of token
      * 
+ * + * optional string trueCaseText = 53; */ public boolean hasTrueCaseText() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** - * optional string trueCaseText = 53; - * *
      * true case gloss of token
      * 
+ * + * optional string trueCaseText = 53; */ public java.lang.String getTrueCaseText() { java.lang.Object ref = trueCaseText_; @@ -14618,11 +15877,11 @@ public java.lang.String getTrueCaseText() { } } /** - * optional string trueCaseText = 53; - * *
      * true case gloss of token
      * 
+ * + * optional string trueCaseText = 53; */ public com.google.protobuf.ByteString getTrueCaseTextBytes() { @@ -14638,25 +15897,24 @@ public java.lang.String getTrueCaseText() { } } - // optional string chineseChar = 54; public static final int CHINESECHAR_FIELD_NUMBER = 54; - private java.lang.Object chineseChar_; + private volatile java.lang.Object chineseChar_; /** - * optional string chineseChar = 54; - * *
      *  Chinese character info
      * 
+ * + * optional string chineseChar = 54; */ public boolean hasChineseChar() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** - * optional string chineseChar = 54; - * *
      *  Chinese character info
      * 
+ * + * optional string chineseChar = 54; */ public java.lang.String getChineseChar() { java.lang.Object ref = chineseChar_; @@ -14673,11 +15931,11 @@ public java.lang.String getChineseChar() { } } /** - * optional string chineseChar = 54; - * *
      *  Chinese character info
      * 
+ * + * optional string chineseChar = 54; */ public com.google.protobuf.ByteString getChineseCharBytes() { @@ -14693,9 +15951,8 @@ public java.lang.String getChineseChar() { } } - // optional string chineseSeg = 55; public static final int CHINESESEG_FIELD_NUMBER = 55; - private java.lang.Object chineseSeg_; + private volatile java.lang.Object chineseSeg_; /** * optional string chineseSeg = 55; */ @@ -14736,52 +15993,11 @@ public java.lang.String getChineseSeg() { } } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (hasOperator()) { if (!getOperator().isInitialized()) { @@ -14817,39 +16033,38 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - com.google.protobuf.GeneratedMessage - .ExtendableMessage.ExtensionWriter extensionWriter = - newExtensionWriter(); + com.google.protobuf.GeneratedMessageV3 + .ExtendableMessage.ExtensionWriter + extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getWordBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, word_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPosBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pos_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getValueBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getCategoryBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, category_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getBeforeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, before_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getAfterBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, after_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getOriginalTextBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, originalText_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getNerBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ner_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getNormalizedNERBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, normalizedNER_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getLemmaBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, lemma_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt32(11, beginChar_); @@ -14861,7 +16076,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(13, utterance_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBytes(14, getSpeakerBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, speaker_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeUInt32(15, beginIndex_); @@ -14876,120 +16091,109 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(18, tokenEndIndex_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(19, timexValue_); + output.writeMessage(19, getTimexValue()); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeBool(21, hasXmlContext_); } for (int i = 0; i < xmlContext_.size(); i++) { - output.writeBytes(22, xmlContext_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, xmlContext_.getRaw(i)); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeUInt32(23, corefClusterID_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { - output.writeBytes(24, getAnswerBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, answer_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeUInt32(26, headWordIndex_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { - output.writeMessage(27, operator_); + output.writeMessage(27, getOperator()); } if (((bitField0_ & 0x01000000) == 0x01000000)) { - output.writeMessage(28, polarity_); + output.writeMessage(28, getPolarity()); } if (((bitField0_ & 0x02000000) == 0x02000000)) { - output.writeMessage(29, span_); + output.writeMessage(29, getSpan()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { - output.writeBytes(30, getSentimentBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, sentiment_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeInt32(31, quotationIndex_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(32, conllUFeatures_); + output.writeMessage(32, getConllUFeatures()); } if (((bitField0_ & 0x20000000) == 0x20000000)) { - output.writeBytes(33, getCoarseTagBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 33, coarseTag_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { - output.writeMessage(34, conllUTokenSpan_); + output.writeMessage(34, getConllUTokenSpan()); } if (((bitField0_ & 0x80000000) == 0x80000000)) { - output.writeBytes(35, getConllUMiscBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 35, conllUMisc_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { - output.writeMessage(36, conllUSecondaryDeps_); + output.writeMessage(36, getConllUSecondaryDeps()); } if (((bitField1_ & 0x00000002) == 0x00000002)) { - output.writeBytes(37, getWikipediaEntityBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 37, wikipediaEntity_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { - output.writeBytes(51, getGenderBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 51, gender_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { - output.writeBytes(52, getTrueCaseBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 52, trueCase_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { - output.writeBytes(53, getTrueCaseTextBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 53, trueCaseText_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { - output.writeBytes(54, getChineseCharBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 54, chineseChar_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { - output.writeBytes(55, getChineseSegBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 55, chineseSeg_); } extensionWriter.writeUntil(256, output); - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getWordBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, word_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPosBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pos_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getValueBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getCategoryBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, category_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getBeforeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, before_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getAfterBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, after_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getOriginalTextBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, originalText_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getNerBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ner_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getNormalizedNERBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, normalizedNER_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getLemmaBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, lemma_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream @@ -15004,8 +16208,7 @@ public int getSerializedSize() { .computeUInt32Size(13, utterance_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getSpeakerBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, speaker_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream @@ -15025,7 +16228,7 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, timexValue_); + .computeMessageSize(19, getTimexValue()); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream @@ -15034,8 +16237,7 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < xmlContext_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(xmlContext_.getByteString(i)); + dataSize += computeStringSizeNoTag(xmlContext_.getRaw(i)); } size += dataSize; size += 2 * getXmlContextList().size(); @@ -15045,8 +16247,7 @@ public int getSerializedSize() { .computeUInt32Size(23, corefClusterID_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(24, getAnswerBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, answer_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream @@ -15054,19 +16255,18 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, operator_); + .computeMessageSize(27, getOperator()); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, polarity_); + .computeMessageSize(28, getPolarity()); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, span_); + .computeMessageSize(29, getSpan()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(30, getSentimentBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, sentiment_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream @@ -15074,59 +16274,433 @@ public int getSerializedSize() { } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, conllUFeatures_); + .computeMessageSize(32, getConllUFeatures()); } if (((bitField0_ & 0x20000000) == 0x20000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(33, getCoarseTagBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, coarseTag_); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, conllUTokenSpan_); + .computeMessageSize(34, getConllUTokenSpan()); } if (((bitField0_ & 0x80000000) == 0x80000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(35, getConllUMiscBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, conllUMisc_); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, conllUSecondaryDeps_); + .computeMessageSize(36, getConllUSecondaryDeps()); } if (((bitField1_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(37, getWikipediaEntityBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, wikipediaEntity_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(51, getGenderBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(51, gender_); } if (((bitField1_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(52, getTrueCaseBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(52, trueCase_); } if (((bitField1_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(53, getTrueCaseTextBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(53, trueCaseText_); } if (((bitField1_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(54, getChineseCharBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(54, chineseChar_); } if (((bitField1_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(55, getChineseSegBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(55, chineseSeg_); } size += extensionsSerializedSize(); - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Token)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Token other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Token) obj; + + boolean result = true; + result = result && (hasWord() == other.hasWord()); + if (hasWord()) { + result = result && getWord() + .equals(other.getWord()); + } + result = result && (hasPos() == other.hasPos()); + if (hasPos()) { + result = result && getPos() + .equals(other.getPos()); + } + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasCategory() == other.hasCategory()); + if (hasCategory()) { + result = result && getCategory() + .equals(other.getCategory()); + } + result = result && (hasBefore() == other.hasBefore()); + if (hasBefore()) { + result = result && getBefore() + .equals(other.getBefore()); + } + result = result && (hasAfter() == other.hasAfter()); + if (hasAfter()) { + result = result && getAfter() + .equals(other.getAfter()); + } + result = result && (hasOriginalText() == other.hasOriginalText()); + if (hasOriginalText()) { + result = result && getOriginalText() + .equals(other.getOriginalText()); + } + result = result && (hasNer() == other.hasNer()); + if (hasNer()) { + result = result && getNer() + .equals(other.getNer()); + } + result = result && (hasNormalizedNER() == other.hasNormalizedNER()); + if (hasNormalizedNER()) { + result = result && getNormalizedNER() + .equals(other.getNormalizedNER()); + } + result = result && (hasLemma() == other.hasLemma()); + if (hasLemma()) { + result = result && getLemma() + .equals(other.getLemma()); + } + result = result && (hasBeginChar() == other.hasBeginChar()); + if (hasBeginChar()) { + result = result && (getBeginChar() + == other.getBeginChar()); + } + result = result && (hasEndChar() == other.hasEndChar()); + if (hasEndChar()) { + result = result && (getEndChar() + == other.getEndChar()); + } + result = result && (hasUtterance() == other.hasUtterance()); + if (hasUtterance()) { + result = result && (getUtterance() + == other.getUtterance()); + } + result = result && (hasSpeaker() == other.hasSpeaker()); + if (hasSpeaker()) { + result = result && getSpeaker() + .equals(other.getSpeaker()); + } + result = result && (hasBeginIndex() == other.hasBeginIndex()); + if (hasBeginIndex()) { + result = result && (getBeginIndex() + == other.getBeginIndex()); + } + result = result && (hasEndIndex() == other.hasEndIndex()); + if (hasEndIndex()) { + result = result && (getEndIndex() + == other.getEndIndex()); + } + result = result && (hasTokenBeginIndex() == other.hasTokenBeginIndex()); + if (hasTokenBeginIndex()) { + result = result && (getTokenBeginIndex() + == other.getTokenBeginIndex()); + } + result = result && (hasTokenEndIndex() == other.hasTokenEndIndex()); + if (hasTokenEndIndex()) { + result = result && (getTokenEndIndex() + == other.getTokenEndIndex()); + } + result = result && (hasTimexValue() == other.hasTimexValue()); + if (hasTimexValue()) { + result = result && getTimexValue() + .equals(other.getTimexValue()); + } + result = result && (hasHasXmlContext() == other.hasHasXmlContext()); + if (hasHasXmlContext()) { + result = result && (getHasXmlContext() + == other.getHasXmlContext()); + } + result = result && getXmlContextList() + .equals(other.getXmlContextList()); + result = result && (hasCorefClusterID() == other.hasCorefClusterID()); + if (hasCorefClusterID()) { + result = result && (getCorefClusterID() + == other.getCorefClusterID()); + } + result = result && (hasAnswer() == other.hasAnswer()); + if (hasAnswer()) { + result = result && getAnswer() + .equals(other.getAnswer()); + } + result = result && (hasHeadWordIndex() == other.hasHeadWordIndex()); + if (hasHeadWordIndex()) { + result = result && (getHeadWordIndex() + == other.getHeadWordIndex()); + } + result = result && (hasOperator() == other.hasOperator()); + if (hasOperator()) { + result = result && getOperator() + .equals(other.getOperator()); + } + result = result && (hasPolarity() == other.hasPolarity()); + if (hasPolarity()) { + result = result && getPolarity() + .equals(other.getPolarity()); + } + result = result && (hasSpan() == other.hasSpan()); + if (hasSpan()) { + result = result && getSpan() + .equals(other.getSpan()); + } + result = result && (hasSentiment() == other.hasSentiment()); + if (hasSentiment()) { + result = result && getSentiment() + .equals(other.getSentiment()); + } + result = result && (hasQuotationIndex() == other.hasQuotationIndex()); + if (hasQuotationIndex()) { + result = result && (getQuotationIndex() + == other.getQuotationIndex()); + } + result = result && (hasConllUFeatures() == other.hasConllUFeatures()); + if (hasConllUFeatures()) { + result = result && getConllUFeatures() + .equals(other.getConllUFeatures()); + } + result = result && (hasCoarseTag() == other.hasCoarseTag()); + if (hasCoarseTag()) { + result = result && getCoarseTag() + .equals(other.getCoarseTag()); + } + result = result && (hasConllUTokenSpan() == other.hasConllUTokenSpan()); + if (hasConllUTokenSpan()) { + result = result && getConllUTokenSpan() + .equals(other.getConllUTokenSpan()); + } + result = result && (hasConllUMisc() == other.hasConllUMisc()); + if (hasConllUMisc()) { + result = result && getConllUMisc() + .equals(other.getConllUMisc()); + } + result = result && (hasConllUSecondaryDeps() == other.hasConllUSecondaryDeps()); + if (hasConllUSecondaryDeps()) { + result = result && getConllUSecondaryDeps() + .equals(other.getConllUSecondaryDeps()); + } + result = result && (hasWikipediaEntity() == other.hasWikipediaEntity()); + if (hasWikipediaEntity()) { + result = result && getWikipediaEntity() + .equals(other.getWikipediaEntity()); + } + result = result && (hasGender() == other.hasGender()); + if (hasGender()) { + result = result && getGender() + .equals(other.getGender()); + } + result = result && (hasTrueCase() == other.hasTrueCase()); + if (hasTrueCase()) { + result = result && getTrueCase() + .equals(other.getTrueCase()); + } + result = result && (hasTrueCaseText() == other.hasTrueCaseText()); + if (hasTrueCaseText()) { + result = result && getTrueCaseText() + .equals(other.getTrueCaseText()); + } + result = result && (hasChineseChar() == other.hasChineseChar()); + if (hasChineseChar()) { + result = result && getChineseChar() + .equals(other.getChineseChar()); + } + result = result && (hasChineseSeg() == other.hasChineseSeg()); + if (hasChineseSeg()) { + result = result && getChineseSeg() + .equals(other.getChineseSeg()); + } + result = result && unknownFields.equals(other.unknownFields); + result = result && + getExtensionFields().equals(other.getExtensionFields()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasWord()) { + hash = (37 * hash) + WORD_FIELD_NUMBER; + hash = (53 * hash) + getWord().hashCode(); + } + if (hasPos()) { + hash = (37 * hash) + POS_FIELD_NUMBER; + hash = (53 * hash) + getPos().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasCategory()) { + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategory().hashCode(); + } + if (hasBefore()) { + hash = (37 * hash) + BEFORE_FIELD_NUMBER; + hash = (53 * hash) + getBefore().hashCode(); + } + if (hasAfter()) { + hash = (37 * hash) + AFTER_FIELD_NUMBER; + hash = (53 * hash) + getAfter().hashCode(); + } + if (hasOriginalText()) { + hash = (37 * hash) + ORIGINALTEXT_FIELD_NUMBER; + hash = (53 * hash) + getOriginalText().hashCode(); + } + if (hasNer()) { + hash = (37 * hash) + NER_FIELD_NUMBER; + hash = (53 * hash) + getNer().hashCode(); + } + if (hasNormalizedNER()) { + hash = (37 * hash) + NORMALIZEDNER_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedNER().hashCode(); + } + if (hasLemma()) { + hash = (37 * hash) + LEMMA_FIELD_NUMBER; + hash = (53 * hash) + getLemma().hashCode(); + } + if (hasBeginChar()) { + hash = (37 * hash) + BEGINCHAR_FIELD_NUMBER; + hash = (53 * hash) + getBeginChar(); + } + if (hasEndChar()) { + hash = (37 * hash) + ENDCHAR_FIELD_NUMBER; + hash = (53 * hash) + getEndChar(); + } + if (hasUtterance()) { + hash = (37 * hash) + UTTERANCE_FIELD_NUMBER; + hash = (53 * hash) + getUtterance(); + } + if (hasSpeaker()) { + hash = (37 * hash) + SPEAKER_FIELD_NUMBER; + hash = (53 * hash) + getSpeaker().hashCode(); + } + if (hasBeginIndex()) { + hash = (37 * hash) + BEGININDEX_FIELD_NUMBER; + hash = (53 * hash) + getBeginIndex(); + } + if (hasEndIndex()) { + hash = (37 * hash) + ENDINDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + } + if (hasTokenBeginIndex()) { + hash = (37 * hash) + TOKENBEGININDEX_FIELD_NUMBER; + hash = (53 * hash) + getTokenBeginIndex(); + } + if (hasTokenEndIndex()) { + hash = (37 * hash) + TOKENENDINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndIndex(); + } + if (hasTimexValue()) { + hash = (37 * hash) + TIMEXVALUE_FIELD_NUMBER; + hash = (53 * hash) + getTimexValue().hashCode(); + } + if (hasHasXmlContext()) { + hash = (37 * hash) + HASXMLCONTEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasXmlContext()); + } + if (getXmlContextCount() > 0) { + hash = (37 * hash) + XMLCONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getXmlContextList().hashCode(); + } + if (hasCorefClusterID()) { + hash = (37 * hash) + COREFCLUSTERID_FIELD_NUMBER; + hash = (53 * hash) + getCorefClusterID(); + } + if (hasAnswer()) { + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + } + if (hasHeadWordIndex()) { + hash = (37 * hash) + HEADWORDINDEX_FIELD_NUMBER; + hash = (53 * hash) + getHeadWordIndex(); + } + if (hasOperator()) { + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getOperator().hashCode(); + } + if (hasPolarity()) { + hash = (37 * hash) + POLARITY_FIELD_NUMBER; + hash = (53 * hash) + getPolarity().hashCode(); + } + if (hasSpan()) { + hash = (37 * hash) + SPAN_FIELD_NUMBER; + hash = (53 * hash) + getSpan().hashCode(); + } + if (hasSentiment()) { + hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; + hash = (53 * hash) + getSentiment().hashCode(); + } + if (hasQuotationIndex()) { + hash = (37 * hash) + QUOTATIONINDEX_FIELD_NUMBER; + hash = (53 * hash) + getQuotationIndex(); + } + if (hasConllUFeatures()) { + hash = (37 * hash) + CONLLUFEATURES_FIELD_NUMBER; + hash = (53 * hash) + getConllUFeatures().hashCode(); + } + if (hasCoarseTag()) { + hash = (37 * hash) + COARSETAG_FIELD_NUMBER; + hash = (53 * hash) + getCoarseTag().hashCode(); + } + if (hasConllUTokenSpan()) { + hash = (37 * hash) + CONLLUTOKENSPAN_FIELD_NUMBER; + hash = (53 * hash) + getConllUTokenSpan().hashCode(); + } + if (hasConllUMisc()) { + hash = (37 * hash) + CONLLUMISC_FIELD_NUMBER; + hash = (53 * hash) + getConllUMisc().hashCode(); + } + if (hasConllUSecondaryDeps()) { + hash = (37 * hash) + CONLLUSECONDARYDEPS_FIELD_NUMBER; + hash = (53 * hash) + getConllUSecondaryDeps().hashCode(); + } + if (hasWikipediaEntity()) { + hash = (37 * hash) + WIKIPEDIAENTITY_FIELD_NUMBER; + hash = (53 * hash) + getWikipediaEntity().hashCode(); + } + if (hasGender()) { + hash = (37 * hash) + GENDER_FIELD_NUMBER; + hash = (53 * hash) + getGender().hashCode(); + } + if (hasTrueCase()) { + hash = (37 * hash) + TRUECASE_FIELD_NUMBER; + hash = (53 * hash) + getTrueCase().hashCode(); + } + if (hasTrueCaseText()) { + hash = (37 * hash) + TRUECASETEXT_FIELD_NUMBER; + hash = (53 * hash) + getTrueCaseText().hashCode(); + } + if (hasChineseChar()) { + hash = (37 * hash) + CHINESECHAR_FIELD_NUMBER; + hash = (53 * hash) + getChineseChar().hashCode(); + } + if (hasChineseSeg()) { + hash = (37 * hash) + CHINESESEG_FIELD_NUMBER; + hash = (53 * hash) + getChineseSeg().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom( @@ -15152,66 +16726,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Token prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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).
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Token} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.ExtendableBuilder< - edu.stanford.nlp.pipeline.CoreNLPProtos.Token, Builder> implements edu.stanford.nlp.pipeline.CoreNLPProtos.TokenOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -15224,12 +16810,13 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTimexValueFieldBuilder(); getOperatorFieldBuilder(); getPolarityFieldBuilder(); @@ -15239,10 +16826,6 @@ private void maybeForceBuilderInitialization() { getConllUSecondaryDepsFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); word_ = ""; @@ -15282,7 +16865,7 @@ public Builder clear() { tokenEndIndex_ = 0; bitField0_ = (bitField0_ & ~0x00020000); if (timexValueBuilder_ == null) { - timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); + timexValue_ = null; } else { timexValueBuilder_.clear(); } @@ -15298,19 +16881,19 @@ public Builder clear() { headWordIndex_ = 0; bitField0_ = (bitField0_ & ~0x00800000); if (operatorBuilder_ == null) { - operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance(); + operator_ = null; } else { operatorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); if (polarityBuilder_ == null) { - polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance(); + polarity_ = null; } else { polarityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); if (spanBuilder_ == null) { - span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); + span_ = null; } else { spanBuilder_.clear(); } @@ -15320,7 +16903,7 @@ public Builder clear() { quotationIndex_ = 0; bitField0_ = (bitField0_ & ~0x10000000); if (conllUFeaturesBuilder_ == null) { - conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance(); + conllUFeatures_ = null; } else { conllUFeaturesBuilder_.clear(); } @@ -15328,7 +16911,7 @@ public Builder clear() { coarseTag_ = ""; bitField0_ = (bitField0_ & ~0x40000000); if (conllUTokenSpanBuilder_ == null) { - conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); + conllUTokenSpan_ = null; } else { conllUTokenSpanBuilder_.clear(); } @@ -15336,7 +16919,7 @@ public Builder clear() { conllUMisc_ = ""; bitField1_ = (bitField1_ & ~0x00000001); if (conllUSecondaryDepsBuilder_ == null) { - conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance(); + conllUSecondaryDeps_ = null; } else { conllUSecondaryDepsBuilder_.clear(); } @@ -15356,10 +16939,6 @@ public Builder 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_Token_descriptor; @@ -15468,8 +17047,7 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token buildPartial() { } result.hasXmlContext_ = hasXmlContext_; if (((bitField0_ & 0x00100000) == 0x00100000)) { - xmlContext_ = new com.google.protobuf.UnmodifiableLazyStringList( - xmlContext_); + xmlContext_ = xmlContext_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00100000); } result.xmlContext_ = xmlContext_; @@ -15579,6 +17157,55 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Token buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Token, Type> extension, + Type value) { + return (Builder) super.setExtension(extension, value); + } + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Token, java.util.List> extension, + int index, Type value) { + return (Builder) super.setExtension(extension, index, value); + } + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Token, java.util.List> extension, + Type value) { + return (Builder) super.addExtension(extension, value); + } + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension< + edu.stanford.nlp.pipeline.CoreNLPProtos.Token, ?> extension) { + return (Builder) super.clearExtension(extension); + } 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); @@ -15760,37 +17387,33 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Token other) { onChanged(); } this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); 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; @@ -15805,7 +17428,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Token) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -15816,42 +17439,44 @@ public Builder mergeFrom( private int bitField0_; private int bitField1_; - // optional string word = 1; private java.lang.Object word_ = ""; /** - * optional string word = 1; - * *
        * Fields set by the default annotators [new CoreNLP(new Properties())]
        * 
+ * + * optional string word = 1; */ public boolean hasWord() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string word = 1; - * *
        * Fields set by the default annotators [new CoreNLP(new Properties())]
        * 
+ * + * optional string word = 1; */ public java.lang.String getWord() { java.lang.Object ref = word_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - word_ = s; + 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())]
        * 
+ * + * optional string word = 1; */ public com.google.protobuf.ByteString getWordBytes() { @@ -15867,11 +17492,11 @@ public java.lang.String getWord() { } } /** - * optional string word = 1; - * *
        * Fields set by the default annotators [new CoreNLP(new Properties())]
        * 
+ * + * optional string word = 1; */ public Builder setWord( java.lang.String value) { @@ -15884,11 +17509,11 @@ public Builder setWord( return this; } /** - * optional string word = 1; - * *
        * Fields set by the default annotators [new CoreNLP(new Properties())]
        * 
+ * + * optional string word = 1; */ public Builder clearWord() { bitField0_ = (bitField0_ & ~0x00000001); @@ -15897,11 +17522,11 @@ public Builder clearWord() { return this; } /** - * optional string word = 1; - * *
        * Fields set by the default annotators [new CoreNLP(new Properties())]
        * 
+ * + * optional string word = 1; */ public Builder setWordBytes( com.google.protobuf.ByteString value) { @@ -15914,42 +17539,44 @@ public Builder setWordBytes( return this; } - // optional string pos = 2; private java.lang.Object pos_ = ""; /** - * optional string pos = 2; - * *
        * The word's part of speech tag
        * 
+ * + * optional string pos = 2; */ public boolean hasPos() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string pos = 2; - * *
        * The word's part of speech tag
        * 
+ * + * optional string pos = 2; */ public java.lang.String getPos() { java.lang.Object ref = pos_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - pos_ = s; + 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
        * 
+ * + * optional string pos = 2; */ public com.google.protobuf.ByteString getPosBytes() { @@ -15965,11 +17592,11 @@ public java.lang.String getPos() { } } /** - * optional string pos = 2; - * *
        * The word's part of speech tag
        * 
+ * + * optional string pos = 2; */ public Builder setPos( java.lang.String value) { @@ -15982,11 +17609,11 @@ public Builder setPos( return this; } /** - * optional string pos = 2; - * *
        * The word's part of speech tag
        * 
+ * + * optional string pos = 2; */ public Builder clearPos() { bitField0_ = (bitField0_ & ~0x00000002); @@ -15995,11 +17622,11 @@ public Builder clearPos() { return this; } /** - * optional string pos = 2; - * *
        * The word's part of speech tag
        * 
+ * + * optional string pos = 2; */ public Builder setPosBytes( com.google.protobuf.ByteString value) { @@ -16012,42 +17639,44 @@ public Builder setPosBytes( return this; } - // optional string value = 3; private java.lang.Object value_ = ""; /** - * optional string value = 3; - * *
        * The word's 'value', (e.g., parse tree node)
        * 
+ * + * optional string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string value = 3; - * *
        * The word's 'value', (e.g., parse tree node)
        * 
+ * + * optional string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - value_ = s; + 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)
        * 
+ * + * optional string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { @@ -16063,11 +17692,11 @@ public java.lang.String getValue() { } } /** - * optional string value = 3; - * *
        * The word's 'value', (e.g., parse tree node)
        * 
+ * + * optional string value = 3; */ public Builder setValue( java.lang.String value) { @@ -16080,11 +17709,11 @@ public Builder setValue( return this; } /** - * optional string value = 3; - * *
        * The word's 'value', (e.g., parse tree node)
        * 
+ * + * optional string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); @@ -16093,11 +17722,11 @@ public Builder clearValue() { return this; } /** - * optional string value = 3; - * *
        * The word's 'value', (e.g., parse tree node)
        * 
+ * + * optional string value = 3; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { @@ -16110,42 +17739,44 @@ public Builder setValueBytes( return this; } - // optional string category = 4; private java.lang.Object category_ = ""; /** - * optional string category = 4; - * *
        * The word's 'category' (e.g., parse tree node)
        * 
+ * + * optional string category = 4; */ public boolean hasCategory() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional string category = 4; - * *
        * The word's 'category' (e.g., parse tree node)
        * 
+ * + * optional string category = 4; */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - category_ = s; + 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)
        * 
+ * + * optional string category = 4; */ public com.google.protobuf.ByteString getCategoryBytes() { @@ -16161,11 +17792,11 @@ public java.lang.String getCategory() { } } /** - * optional string category = 4; - * *
        * The word's 'category' (e.g., parse tree node)
        * 
+ * + * optional string category = 4; */ public Builder setCategory( java.lang.String value) { @@ -16178,11 +17809,11 @@ public Builder setCategory( return this; } /** - * optional string category = 4; - * *
        * The word's 'category' (e.g., parse tree node)
        * 
+ * + * optional string category = 4; */ public Builder clearCategory() { bitField0_ = (bitField0_ & ~0x00000008); @@ -16191,11 +17822,11 @@ public Builder clearCategory() { return this; } /** - * optional string category = 4; - * *
        * The word's 'category' (e.g., parse tree node)
        * 
+ * + * optional string category = 4; */ public Builder setCategoryBytes( com.google.protobuf.ByteString value) { @@ -16208,42 +17839,44 @@ public Builder setCategoryBytes( return this; } - // optional string before = 5; private java.lang.Object before_ = ""; /** - * optional string before = 5; - * *
        * The whitespace/xml before the token
        * 
+ * + * optional string before = 5; */ public boolean hasBefore() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional string before = 5; - * *
        * The whitespace/xml before the token
        * 
+ * + * optional string before = 5; */ public java.lang.String getBefore() { java.lang.Object ref = before_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - before_ = s; + 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
        * 
+ * + * optional string before = 5; */ public com.google.protobuf.ByteString getBeforeBytes() { @@ -16259,11 +17892,11 @@ public java.lang.String getBefore() { } } /** - * optional string before = 5; - * *
        * The whitespace/xml before the token
        * 
+ * + * optional string before = 5; */ public Builder setBefore( java.lang.String value) { @@ -16276,11 +17909,11 @@ public Builder setBefore( return this; } /** - * optional string before = 5; - * *
        * The whitespace/xml before the token
        * 
+ * + * optional string before = 5; */ public Builder clearBefore() { bitField0_ = (bitField0_ & ~0x00000010); @@ -16289,11 +17922,11 @@ public Builder clearBefore() { return this; } /** - * optional string before = 5; - * *
        * The whitespace/xml before the token
        * 
+ * + * optional string before = 5; */ public Builder setBeforeBytes( com.google.protobuf.ByteString value) { @@ -16306,42 +17939,44 @@ public Builder setBeforeBytes( return this; } - // optional string after = 6; private java.lang.Object after_ = ""; /** - * optional string after = 6; - * *
        * The whitespace/xml after the token
        * 
+ * + * optional string after = 6; */ public boolean hasAfter() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** - * optional string after = 6; - * *
        * The whitespace/xml after the token
        * 
+ * + * optional string after = 6; */ public java.lang.String getAfter() { java.lang.Object ref = after_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - after_ = s; + 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
        * 
+ * + * optional string after = 6; */ public com.google.protobuf.ByteString getAfterBytes() { @@ -16357,11 +17992,11 @@ public java.lang.String getAfter() { } } /** - * optional string after = 6; - * *
        * The whitespace/xml after the token
        * 
+ * + * optional string after = 6; */ public Builder setAfter( java.lang.String value) { @@ -16374,11 +18009,11 @@ public Builder setAfter( return this; } /** - * optional string after = 6; - * *
        * The whitespace/xml after the token
        * 
+ * + * optional string after = 6; */ public Builder clearAfter() { bitField0_ = (bitField0_ & ~0x00000020); @@ -16387,11 +18022,11 @@ public Builder clearAfter() { return this; } /** - * optional string after = 6; - * *
        * The whitespace/xml after the token
        * 
+ * + * optional string after = 6; */ public Builder setAfterBytes( com.google.protobuf.ByteString value) { @@ -16404,42 +18039,44 @@ public Builder setAfterBytes( return this; } - // optional string originalText = 7; private java.lang.Object originalText_ = ""; /** - * optional string originalText = 7; - * *
        * The original text for this token
        * 
+ * + * optional string originalText = 7; */ public boolean hasOriginalText() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional string originalText = 7; - * *
        * The original text for this token
        * 
+ * + * optional string originalText = 7; */ public java.lang.String getOriginalText() { java.lang.Object ref = originalText_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - originalText_ = s; + 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
        * 
+ * + * optional string originalText = 7; */ public com.google.protobuf.ByteString getOriginalTextBytes() { @@ -16455,11 +18092,11 @@ public java.lang.String getOriginalText() { } } /** - * optional string originalText = 7; - * *
        * The original text for this token
        * 
+ * + * optional string originalText = 7; */ public Builder setOriginalText( java.lang.String value) { @@ -16472,11 +18109,11 @@ public Builder setOriginalText( return this; } /** - * optional string originalText = 7; - * *
        * The original text for this token
        * 
+ * + * optional string originalText = 7; */ public Builder clearOriginalText() { bitField0_ = (bitField0_ & ~0x00000040); @@ -16485,11 +18122,11 @@ public Builder clearOriginalText() { return this; } /** - * optional string originalText = 7; - * *
        * The original text for this token
        * 
+ * + * optional string originalText = 7; */ public Builder setOriginalTextBytes( com.google.protobuf.ByteString value) { @@ -16502,42 +18139,44 @@ public Builder setOriginalTextBytes( return this; } - // optional string ner = 8; private java.lang.Object ner_ = ""; /** - * optional string ner = 8; - * *
        * The word's NER tag
        * 
+ * + * optional string ner = 8; */ public boolean hasNer() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional string ner = 8; - * *
        * The word's NER tag
        * 
+ * + * optional string ner = 8; */ public java.lang.String getNer() { java.lang.Object ref = ner_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - ner_ = s; + 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
        * 
+ * + * optional string ner = 8; */ public com.google.protobuf.ByteString getNerBytes() { @@ -16553,11 +18192,11 @@ public java.lang.String getNer() { } } /** - * optional string ner = 8; - * *
        * The word's NER tag
        * 
+ * + * optional string ner = 8; */ public Builder setNer( java.lang.String value) { @@ -16570,11 +18209,11 @@ public Builder setNer( return this; } /** - * optional string ner = 8; - * *
        * The word's NER tag
        * 
+ * + * optional string ner = 8; */ public Builder clearNer() { bitField0_ = (bitField0_ & ~0x00000080); @@ -16583,11 +18222,11 @@ public Builder clearNer() { return this; } /** - * optional string ner = 8; - * *
        * The word's NER tag
        * 
+ * + * optional string ner = 8; */ public Builder setNerBytes( com.google.protobuf.ByteString value) { @@ -16600,42 +18239,44 @@ public Builder setNerBytes( return this; } - // optional string normalizedNER = 9; private java.lang.Object normalizedNER_ = ""; /** - * optional string normalizedNER = 9; - * *
        * The word's normalized NER tag
        * 
+ * + * optional string normalizedNER = 9; */ public boolean hasNormalizedNER() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** - * optional string normalizedNER = 9; - * *
        * The word's normalized NER tag
        * 
+ * + * optional string normalizedNER = 9; */ public java.lang.String getNormalizedNER() { java.lang.Object ref = normalizedNER_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - normalizedNER_ = s; + 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
        * 
+ * + * optional string normalizedNER = 9; */ public com.google.protobuf.ByteString getNormalizedNERBytes() { @@ -16651,11 +18292,11 @@ public java.lang.String getNormalizedNER() { } } /** - * optional string normalizedNER = 9; - * *
        * The word's normalized NER tag
        * 
+ * + * optional string normalizedNER = 9; */ public Builder setNormalizedNER( java.lang.String value) { @@ -16668,11 +18309,11 @@ public Builder setNormalizedNER( return this; } /** - * optional string normalizedNER = 9; - * *
        * The word's normalized NER tag
        * 
+ * + * optional string normalizedNER = 9; */ public Builder clearNormalizedNER() { bitField0_ = (bitField0_ & ~0x00000100); @@ -16681,11 +18322,11 @@ public Builder clearNormalizedNER() { return this; } /** - * optional string normalizedNER = 9; - * *
        * The word's normalized NER tag
        * 
+ * + * optional string normalizedNER = 9; */ public Builder setNormalizedNERBytes( com.google.protobuf.ByteString value) { @@ -16698,42 +18339,44 @@ public Builder setNormalizedNERBytes( return this; } - // optional string lemma = 10; private java.lang.Object lemma_ = ""; /** - * optional string lemma = 10; - * *
        * The word's lemma
        * 
+ * + * optional string lemma = 10; */ public boolean hasLemma() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional string lemma = 10; - * *
        * The word's lemma
        * 
+ * + * optional string lemma = 10; */ public java.lang.String getLemma() { java.lang.Object ref = lemma_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - lemma_ = s; + 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
        * 
+ * + * optional string lemma = 10; */ public com.google.protobuf.ByteString getLemmaBytes() { @@ -16749,11 +18392,11 @@ public java.lang.String getLemma() { } } /** - * optional string lemma = 10; - * *
        * The word's lemma
        * 
+ * + * optional string lemma = 10; */ public Builder setLemma( java.lang.String value) { @@ -16766,11 +18409,11 @@ public Builder setLemma( return this; } /** - * optional string lemma = 10; - * *
        * The word's lemma
        * 
+ * + * optional string lemma = 10; */ public Builder clearLemma() { bitField0_ = (bitField0_ & ~0x00000200); @@ -16779,11 +18422,11 @@ public Builder clearLemma() { return this; } /** - * optional string lemma = 10; - * *
        * The word's lemma
        * 
+ * + * optional string lemma = 10; */ public Builder setLemmaBytes( com.google.protobuf.ByteString value) { @@ -16796,34 +18439,33 @@ public Builder setLemmaBytes( return this; } - // optional uint32 beginChar = 11; private int beginChar_ ; /** - * optional uint32 beginChar = 11; - * *
        * The character offset begin, in the document
        * 
+ * + * optional uint32 beginChar = 11; */ public boolean hasBeginChar() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** - * optional uint32 beginChar = 11; - * *
        * The character offset begin, in the document
        * 
+ * + * optional uint32 beginChar = 11; */ public int getBeginChar() { return beginChar_; } /** - * optional uint32 beginChar = 11; - * *
        * The character offset begin, in the document
        * 
+ * + * optional uint32 beginChar = 11; */ public Builder setBeginChar(int value) { bitField0_ |= 0x00000400; @@ -16832,11 +18474,11 @@ public Builder setBeginChar(int value) { return this; } /** - * optional uint32 beginChar = 11; - * *
        * The character offset begin, in the document
        * 
+ * + * optional uint32 beginChar = 11; */ public Builder clearBeginChar() { bitField0_ = (bitField0_ & ~0x00000400); @@ -16845,34 +18487,33 @@ public Builder clearBeginChar() { return this; } - // optional uint32 endChar = 12; private int endChar_ ; /** - * optional uint32 endChar = 12; - * *
        * The character offset end, in the document
        * 
+ * + * optional uint32 endChar = 12; */ public boolean hasEndChar() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** - * optional uint32 endChar = 12; - * *
        * The character offset end, in the document
        * 
+ * + * optional uint32 endChar = 12; */ public int getEndChar() { return endChar_; } /** - * optional uint32 endChar = 12; - * *
        * The character offset end, in the document
        * 
+ * + * optional uint32 endChar = 12; */ public Builder setEndChar(int value) { bitField0_ |= 0x00000800; @@ -16881,11 +18522,11 @@ public Builder setEndChar(int value) { return this; } /** - * optional uint32 endChar = 12; - * *
        * The character offset end, in the document
        * 
+ * + * optional uint32 endChar = 12; */ public Builder clearEndChar() { bitField0_ = (bitField0_ & ~0x00000800); @@ -16894,34 +18535,33 @@ public Builder clearEndChar() { return this; } - // optional uint32 utterance = 13; private int utterance_ ; /** - * optional uint32 utterance = 13; - * *
        * The utterance tag used in dcoref
        * 
+ * + * optional uint32 utterance = 13; */ public boolean hasUtterance() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** - * optional uint32 utterance = 13; - * *
        * The utterance tag used in dcoref
        * 
+ * + * optional uint32 utterance = 13; */ public int getUtterance() { return utterance_; } /** - * optional uint32 utterance = 13; - * *
        * The utterance tag used in dcoref
        * 
+ * + * optional uint32 utterance = 13; */ public Builder setUtterance(int value) { bitField0_ |= 0x00001000; @@ -16930,11 +18570,11 @@ public Builder setUtterance(int value) { return this; } /** - * optional uint32 utterance = 13; - * *
        * The utterance tag used in dcoref
        * 
+ * + * optional uint32 utterance = 13; */ public Builder clearUtterance() { bitField0_ = (bitField0_ & ~0x00001000); @@ -16943,42 +18583,44 @@ public Builder clearUtterance() { return this; } - // optional string speaker = 14; private java.lang.Object speaker_ = ""; /** - * optional string speaker = 14; - * *
        * The speaker speaking this word
        * 
+ * + * optional string speaker = 14; */ public boolean hasSpeaker() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** - * optional string speaker = 14; - * *
        * The speaker speaking this word
        * 
+ * + * optional string speaker = 14; */ public java.lang.String getSpeaker() { java.lang.Object ref = speaker_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - speaker_ = s; + 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
        * 
+ * + * optional string speaker = 14; */ public com.google.protobuf.ByteString getSpeakerBytes() { @@ -16994,11 +18636,11 @@ public java.lang.String getSpeaker() { } } /** - * optional string speaker = 14; - * *
        * The speaker speaking this word
        * 
+ * + * optional string speaker = 14; */ public Builder setSpeaker( java.lang.String value) { @@ -17011,11 +18653,11 @@ public Builder setSpeaker( return this; } /** - * optional string speaker = 14; - * *
        * The speaker speaking this word
        * 
+ * + * optional string speaker = 14; */ public Builder clearSpeaker() { bitField0_ = (bitField0_ & ~0x00002000); @@ -17024,11 +18666,11 @@ public Builder clearSpeaker() { return this; } /** - * optional string speaker = 14; - * *
        * The speaker speaking this word
        * 
+ * + * optional string speaker = 14; */ public Builder setSpeakerBytes( com.google.protobuf.ByteString value) { @@ -17041,34 +18683,33 @@ public Builder setSpeakerBytes( return this; } - // optional uint32 beginIndex = 15; private int beginIndex_ ; /** - * optional uint32 beginIndex = 15; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 beginIndex = 15; */ public boolean hasBeginIndex() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** - * optional uint32 beginIndex = 15; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 beginIndex = 15; */ public int getBeginIndex() { return beginIndex_; } /** - * optional uint32 beginIndex = 15; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 beginIndex = 15; */ public Builder setBeginIndex(int value) { bitField0_ |= 0x00004000; @@ -17077,11 +18718,11 @@ public Builder setBeginIndex(int value) { return this; } /** - * optional uint32 beginIndex = 15; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 beginIndex = 15; */ public Builder clearBeginIndex() { bitField0_ = (bitField0_ & ~0x00004000); @@ -17090,34 +18731,33 @@ public Builder clearBeginIndex() { return this; } - // optional uint32 endIndex = 16; private int endIndex_ ; /** - * optional uint32 endIndex = 16; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 endIndex = 16; */ public boolean hasEndIndex() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** - * optional uint32 endIndex = 16; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 endIndex = 16; */ public int getEndIndex() { return endIndex_; } /** - * optional uint32 endIndex = 16; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 endIndex = 16; */ public Builder setEndIndex(int value) { bitField0_ |= 0x00008000; @@ -17126,11 +18766,11 @@ public Builder setEndIndex(int value) { return this; } /** - * optional uint32 endIndex = 16; - * *
        * The begin index of, e.g., a span
        * 
+ * + * optional uint32 endIndex = 16; */ public Builder clearEndIndex() { bitField0_ = (bitField0_ & ~0x00008000); @@ -17139,34 +18779,33 @@ public Builder clearEndIndex() { return this; } - // optional uint32 tokenBeginIndex = 17; private int tokenBeginIndex_ ; /** - * optional uint32 tokenBeginIndex = 17; - * *
        * The begin index of the token
        * 
+ * + * optional uint32 tokenBeginIndex = 17; */ public boolean hasTokenBeginIndex() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** - * optional uint32 tokenBeginIndex = 17; - * *
        * The begin index of the token
        * 
+ * + * optional uint32 tokenBeginIndex = 17; */ public int getTokenBeginIndex() { return tokenBeginIndex_; } /** - * optional uint32 tokenBeginIndex = 17; - * *
        * The begin index of the token
        * 
+ * + * optional uint32 tokenBeginIndex = 17; */ public Builder setTokenBeginIndex(int value) { bitField0_ |= 0x00010000; @@ -17175,11 +18814,11 @@ public Builder setTokenBeginIndex(int value) { return this; } /** - * optional uint32 tokenBeginIndex = 17; - * *
        * The begin index of the token
        * 
+ * + * optional uint32 tokenBeginIndex = 17; */ public Builder clearTokenBeginIndex() { bitField0_ = (bitField0_ & ~0x00010000); @@ -17188,34 +18827,33 @@ public Builder clearTokenBeginIndex() { return this; } - // optional uint32 tokenEndIndex = 18; private int tokenEndIndex_ ; /** - * optional uint32 tokenEndIndex = 18; - * *
        * The end index of the token
        * 
+ * + * optional uint32 tokenEndIndex = 18; */ public boolean hasTokenEndIndex() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** - * optional uint32 tokenEndIndex = 18; - * *
        * The end index of the token
        * 
+ * + * optional uint32 tokenEndIndex = 18; */ public int getTokenEndIndex() { return tokenEndIndex_; } /** - * optional uint32 tokenEndIndex = 18; - * *
        * The end index of the token
        * 
+ * + * optional uint32 tokenEndIndex = 18; */ public Builder setTokenEndIndex(int value) { bitField0_ |= 0x00020000; @@ -17224,11 +18862,11 @@ public Builder setTokenEndIndex(int value) { return this; } /** - * optional uint32 tokenEndIndex = 18; - * *
        * The end index of the token
        * 
+ * + * optional uint32 tokenEndIndex = 18; */ public Builder clearTokenEndIndex() { bitField0_ = (bitField0_ & ~0x00020000); @@ -17237,40 +18875,39 @@ public Builder clearTokenEndIndex() { return this; } - // optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timexValue_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public boolean hasTimexValue() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimexValue() { if (timexValueBuilder_ == null) { - return timexValue_; + return timexValue_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timexValue_; } else { return timexValueBuilder_.getMessage(); } } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public Builder setTimexValue(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) { if (timexValueBuilder_ == null) { @@ -17286,11 +18923,11 @@ public Builder setTimexValue(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value return this; } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public Builder setTimexValue( edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder builderForValue) { @@ -17304,15 +18941,16 @@ public Builder setTimexValue( return this; } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public Builder mergeTimexValue(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) { if (timexValueBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000) && + timexValue_ != null && timexValue_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance()) { timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.newBuilder(timexValue_).mergeFrom(value).buildPartial(); @@ -17327,15 +18965,15 @@ public Builder mergeTimexValue(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex val return this; } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public Builder clearTimexValue() { if (timexValueBuilder_ == null) { - timexValue_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); + timexValue_ = null; onChanged(); } else { timexValueBuilder_.clear(); @@ -17344,11 +18982,11 @@ public Builder clearTimexValue() { return this; } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder getTimexValueBuilder() { bitField0_ |= 0x00040000; @@ -17356,33 +18994,34 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder getTimexValueBuilde return getTimexValueFieldBuilder().getBuilder(); } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBuilder() { if (timexValueBuilder_ != null) { return timexValueBuilder_.getMessageOrBuilder(); } else { - return timexValue_; + return timexValue_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timexValue_; } } /** - * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; - * *
        * The time this word refers to
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Timex timexValue = 19; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + timexValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder>( - timexValue_, + getTimexValue(), getParentForChildren(), isClean()); timexValue_ = null; @@ -17390,34 +19029,33 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexValueOrBui return timexValueBuilder_; } - // optional bool hasXmlContext = 21; private boolean hasXmlContext_ ; /** - * optional bool hasXmlContext = 21; - * *
        * Used by clean xml annotator
        * 
+ * + * optional bool hasXmlContext = 21; */ public boolean hasHasXmlContext() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** - * optional bool hasXmlContext = 21; - * *
        * Used by clean xml annotator
        * 
+ * + * optional bool hasXmlContext = 21; */ public boolean getHasXmlContext() { return hasXmlContext_; } /** - * optional bool hasXmlContext = 21; - * *
        * Used by clean xml annotator
        * 
+ * + * optional bool hasXmlContext = 21; */ public Builder setHasXmlContext(boolean value) { bitField0_ |= 0x00080000; @@ -17426,11 +19064,11 @@ public Builder setHasXmlContext(boolean value) { return this; } /** - * optional bool hasXmlContext = 21; - * *
        * Used by clean xml annotator
        * 
+ * + * optional bool hasXmlContext = 21; */ public Builder clearHasXmlContext() { bitField0_ = (bitField0_ & ~0x00080000); @@ -17439,7 +19077,6 @@ public Builder clearHasXmlContext() { return this; } - // repeated string xmlContext = 22; private com.google.protobuf.LazyStringList xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureXmlContextIsMutable() { if (!((bitField0_ & 0x00100000) == 0x00100000)) { @@ -17448,53 +19085,53 @@ private void ensureXmlContextIsMutable() { } } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getXmlContextList() { - return java.util.Collections.unmodifiableList(xmlContext_); + return xmlContext_.getUnmodifiableView(); } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public int getXmlContextCount() { return xmlContext_.size(); } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public java.lang.String getXmlContext(int index) { return xmlContext_.get(index); } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public com.google.protobuf.ByteString getXmlContextBytes(int index) { return xmlContext_.getByteString(index); } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public Builder setXmlContext( int index, java.lang.String value) { @@ -17507,11 +19144,11 @@ public Builder setXmlContext( return this; } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public Builder addXmlContext( java.lang.String value) { @@ -17524,25 +19161,26 @@ public Builder addXmlContext( return this; } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public Builder addAllXmlContext( java.lang.Iterable values) { ensureXmlContextIsMutable(); - super.addAll(values, xmlContext_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, xmlContext_); onChanged(); return this; } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public Builder clearXmlContext() { xmlContext_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -17551,11 +19189,11 @@ public Builder clearXmlContext() { return this; } /** - * repeated string xmlContext = 22; - * *
        * Used by clean xml annotator
        * 
+ * + * repeated string xmlContext = 22; */ public Builder addXmlContextBytes( com.google.protobuf.ByteString value) { @@ -17568,34 +19206,33 @@ public Builder addXmlContextBytes( return this; } - // optional uint32 corefClusterID = 23; private int corefClusterID_ ; /** - * optional uint32 corefClusterID = 23; - * *
        * The [primary] cluster id for this token
        * 
+ * + * optional uint32 corefClusterID = 23; */ public boolean hasCorefClusterID() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** - * optional uint32 corefClusterID = 23; - * *
        * The [primary] cluster id for this token
        * 
+ * + * optional uint32 corefClusterID = 23; */ public int getCorefClusterID() { return corefClusterID_; } /** - * optional uint32 corefClusterID = 23; - * *
        * The [primary] cluster id for this token
        * 
+ * + * optional uint32 corefClusterID = 23; */ public Builder setCorefClusterID(int value) { bitField0_ |= 0x00200000; @@ -17604,11 +19241,11 @@ public Builder setCorefClusterID(int value) { return this; } /** - * optional uint32 corefClusterID = 23; - * *
        * The [primary] cluster id for this token
        * 
+ * + * optional uint32 corefClusterID = 23; */ public Builder clearCorefClusterID() { bitField0_ = (bitField0_ & ~0x00200000); @@ -17617,42 +19254,44 @@ public Builder clearCorefClusterID() { return this; } - // optional string answer = 24; private java.lang.Object answer_ = ""; /** - * optional string answer = 24; - * *
        * A temporary annotation which is occasionally left in
        * 
+ * + * optional string answer = 24; */ public boolean hasAnswer() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** - * optional string answer = 24; - * *
        * A temporary annotation which is occasionally left in
        * 
+ * + * optional string answer = 24; */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - answer_ = s; + 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
        * 
+ * + * optional string answer = 24; */ public com.google.protobuf.ByteString getAnswerBytes() { @@ -17668,11 +19307,11 @@ public java.lang.String getAnswer() { } } /** - * optional string answer = 24; - * *
        * A temporary annotation which is occasionally left in
        * 
+ * + * optional string answer = 24; */ public Builder setAnswer( java.lang.String value) { @@ -17685,11 +19324,11 @@ public Builder setAnswer( return this; } /** - * optional string answer = 24; - * *
        * A temporary annotation which is occasionally left in
        * 
+ * + * optional string answer = 24; */ public Builder clearAnswer() { bitField0_ = (bitField0_ & ~0x00400000); @@ -17698,11 +19337,11 @@ public Builder clearAnswer() { return this; } /** - * optional string answer = 24; - * *
        * A temporary annotation which is occasionally left in
        * 
+ * + * optional string answer = 24; */ public Builder setAnswerBytes( com.google.protobuf.ByteString value) { @@ -17715,34 +19354,33 @@ public Builder setAnswerBytes( return this; } - // optional uint32 headWordIndex = 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.
        * 
+ * + * optional uint32 headWordIndex = 26; */ 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.
        * 
+ * + * optional uint32 headWordIndex = 26; */ 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.
        * 
+ * + * optional uint32 headWordIndex = 26; */ public Builder setHeadWordIndex(int value) { bitField0_ |= 0x00800000; @@ -17751,11 +19389,11 @@ public Builder setHeadWordIndex(int value) { 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.
        * 
+ * + * optional uint32 headWordIndex = 26; */ public Builder clearHeadWordIndex() { bitField0_ = (bitField0_ & ~0x00800000); @@ -17764,40 +19402,39 @@ public Builder clearHeadWordIndex() { return this; } - // optional .edu.stanford.nlp.pipeline.Operator operator = 27; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Operator operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.Operator operator_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getOperator() { if (operatorBuilder_ == null) { - return operator_; + return operator_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance() : 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public Builder setOperator(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator value) { if (operatorBuilder_ == null) { @@ -17813,11 +19450,11 @@ public Builder setOperator(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator valu 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public Builder setOperator( edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder builderForValue) { @@ -17831,15 +19468,16 @@ public Builder setOperator( 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public Builder mergeOperator(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator value) { if (operatorBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000) && + operator_ != null && operator_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance()) { operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.newBuilder(operator_).mergeFrom(value).buildPartial(); @@ -17854,15 +19492,15 @@ public Builder mergeOperator(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator va 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public Builder clearOperator() { if (operatorBuilder_ == null) { - operator_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance(); + operator_ = null; onChanged(); } else { operatorBuilder_.clear(); @@ -17871,11 +19509,11 @@ public Builder clearOperator() { 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder getOperatorBuilder() { bitField0_ |= 0x01000000; @@ -17883,33 +19521,34 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder getOperatorBuild 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBuilder() { if (operatorBuilder_ != null) { return operatorBuilder_.getMessageOrBuilder(); } else { - return operator_; + return operator_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.getDefaultInstance() : 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)?
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Operator operator = 27; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + operatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Operator, edu.stanford.nlp.pipeline.CoreNLPProtos.Operator.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder>( - operator_, + getOperator(), getParentForChildren(), isClean()); operator_ = null; @@ -17917,40 +19556,39 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder getOperatorOrBu return operatorBuilder_; } - // optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity polarity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public boolean hasPolarity() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getPolarity() { if (polarityBuilder_ == null) { - return polarity_; + return polarity_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance() : polarity_; } else { return polarityBuilder_.getMessage(); } } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public Builder setPolarity(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity value) { if (polarityBuilder_ == null) { @@ -17966,11 +19604,11 @@ public Builder setPolarity(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity valu return this; } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public Builder setPolarity( edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder builderForValue) { @@ -17984,15 +19622,16 @@ public Builder setPolarity( return this; } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public Builder mergePolarity(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity value) { if (polarityBuilder_ == null) { if (((bitField0_ & 0x02000000) == 0x02000000) && + polarity_ != null && polarity_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance()) { polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.newBuilder(polarity_).mergeFrom(value).buildPartial(); @@ -18007,15 +19646,15 @@ public Builder mergePolarity(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity va return this; } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public Builder clearPolarity() { if (polarityBuilder_ == null) { - polarity_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance(); + polarity_ = null; onChanged(); } else { polarityBuilder_.clear(); @@ -18024,11 +19663,11 @@ public Builder clearPolarity() { return this; } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder getPolarityBuilder() { bitField0_ |= 0x02000000; @@ -18036,33 +19675,34 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder getPolarityBuild return getPolarityFieldBuilder().getBuilder(); } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBuilder() { if (polarityBuilder_ != null) { return polarityBuilder_.getMessageOrBuilder(); } else { - return polarity_; + return polarity_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.getDefaultInstance() : polarity_; } } /** - * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; - * *
        * The polarity of this word, according to Natural Logic
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Polarity polarity = 28; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + polarityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity, edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder>( - polarity_, + getPolarity(), getParentForChildren(), isClean()); polarity_ = null; @@ -18070,40 +19710,39 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder getPolarityOrBu return polarityBuilder_; } - // optional .edu.stanford.nlp.pipeline.Span span = 29; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Span span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.Span span_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public boolean hasSpan() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getSpan() { if (spanBuilder_ == null) { - return span_; + return span_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : span_; } else { return spanBuilder_.getMessage(); } } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public Builder setSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) { if (spanBuilder_ == null) { @@ -18119,11 +19758,11 @@ public Builder setSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) { return this; } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public Builder setSpan( edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder builderForValue) { @@ -18137,15 +19776,16 @@ public Builder setSpan( return this; } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public Builder mergeSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) { if (spanBuilder_ == null) { if (((bitField0_ & 0x04000000) == 0x04000000) && + span_ != null && span_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance()) { span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.newBuilder(span_).mergeFrom(value).buildPartial(); @@ -18160,15 +19800,15 @@ public Builder mergeSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) { return this; } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public Builder clearSpan() { if (spanBuilder_ == null) { - span_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); + span_ = null; onChanged(); } else { spanBuilder_.clear(); @@ -18177,11 +19817,11 @@ public Builder clearSpan() { return this; } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder getSpanBuilder() { bitField0_ |= 0x04000000; @@ -18189,33 +19829,34 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder getSpanBuilder() { return getSpanFieldBuilder().getBuilder(); } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder() { if (spanBuilder_ != null) { return spanBuilder_.getMessageOrBuilder(); } else { - return span_; + return span_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : span_; } } /** - * optional .edu.stanford.nlp.pipeline.Span span = 29; - * *
        * The span of a leaf node of a tree
        * 
+ * + * optional .edu.stanford.nlp.pipeline.Span span = 29; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + spanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder>( - span_, + getSpan(), getParentForChildren(), isClean()); span_ = null; @@ -18223,42 +19864,44 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getSpanOrBuilder() return spanBuilder_; } - // optional string sentiment = 30; private java.lang.Object sentiment_ = ""; /** - * optional string sentiment = 30; - * *
        * The final sentiment of the sentence
        * 
+ * + * optional string sentiment = 30; */ public boolean hasSentiment() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** - * optional string sentiment = 30; - * *
        * The final sentiment of the sentence
        * 
+ * + * optional string sentiment = 30; */ public java.lang.String getSentiment() { java.lang.Object ref = sentiment_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - sentiment_ = s; + 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
        * 
+ * + * optional string sentiment = 30; */ public com.google.protobuf.ByteString getSentimentBytes() { @@ -18274,11 +19917,11 @@ public java.lang.String getSentiment() { } } /** - * optional string sentiment = 30; - * *
        * The final sentiment of the sentence
        * 
+ * + * optional string sentiment = 30; */ public Builder setSentiment( java.lang.String value) { @@ -18291,11 +19934,11 @@ public Builder setSentiment( return this; } /** - * optional string sentiment = 30; - * *
        * The final sentiment of the sentence
        * 
+ * + * optional string sentiment = 30; */ public Builder clearSentiment() { bitField0_ = (bitField0_ & ~0x08000000); @@ -18304,11 +19947,11 @@ public Builder clearSentiment() { return this; } /** - * optional string sentiment = 30; - * *
        * The final sentiment of the sentence
        * 
+ * + * optional string sentiment = 30; */ public Builder setSentimentBytes( com.google.protobuf.ByteString value) { @@ -18321,34 +19964,33 @@ public Builder setSentimentBytes( return this; } - // optional int32 quotationIndex = 31; private int quotationIndex_ ; /** - * optional int32 quotationIndex = 31; - * *
        * The index of the quotation this token refers to
        * 
+ * + * optional int32 quotationIndex = 31; */ public boolean hasQuotationIndex() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** - * optional int32 quotationIndex = 31; - * *
        * The index of the quotation this token refers to
        * 
+ * + * optional int32 quotationIndex = 31; */ public int getQuotationIndex() { return quotationIndex_; } /** - * optional int32 quotationIndex = 31; - * *
        * The index of the quotation this token refers to
        * 
+ * + * optional int32 quotationIndex = 31; */ public Builder setQuotationIndex(int value) { bitField0_ |= 0x10000000; @@ -18357,11 +19999,11 @@ public Builder setQuotationIndex(int value) { return this; } /** - * optional int32 quotationIndex = 31; - * *
        * The index of the quotation this token refers to
        * 
+ * + * optional int32 quotationIndex = 31; */ public Builder clearQuotationIndex() { bitField0_ = (bitField0_ & ~0x10000000); @@ -18370,9 +20012,8 @@ public Builder clearQuotationIndex() { return this; } - // optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; - private edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString conllUFeatures_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -18385,7 +20026,7 @@ public boolean hasConllUFeatures() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getConllUFeatures() { if (conllUFeaturesBuilder_ == null) { - return conllUFeatures_; + return conllUFeatures_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance() : conllUFeatures_; } else { return conllUFeaturesBuilder_.getMessage(); } @@ -18426,6 +20067,7 @@ public Builder setConllUFeatures( public Builder mergeConllUFeatures(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString value) { if (conllUFeaturesBuilder_ == null) { if (((bitField0_ & 0x20000000) == 0x20000000) && + conllUFeatures_ != null && conllUFeatures_ != edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance()) { conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.newBuilder(conllUFeatures_).mergeFrom(value).buildPartial(); @@ -18444,7 +20086,7 @@ public Builder mergeConllUFeatures(edu.stanford.nlp.pipeline.CoreNLPProtos.MapSt */ public Builder clearConllUFeatures() { if (conllUFeaturesBuilder_ == null) { - conllUFeatures_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance(); + conllUFeatures_ = null; onChanged(); } else { conllUFeaturesBuilder_.clear(); @@ -18467,19 +20109,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConll if (conllUFeaturesBuilder_ != null) { return conllUFeaturesBuilder_.getMessageOrBuilder(); } else { - return conllUFeatures_; + return conllUFeatures_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.getDefaultInstance() : conllUFeatures_; } } /** * optional .edu.stanford.nlp.pipeline.MapStringString conllUFeatures = 32; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + conllUFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder>( - conllUFeatures_, + getConllUFeatures(), getParentForChildren(), isClean()); conllUFeatures_ = null; @@ -18487,42 +20130,44 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder getConll return conllUFeaturesBuilder_; } - // optional string coarseTag = 33; private java.lang.Object coarseTag_ = ""; /** - * optional string coarseTag = 33; - * *
        *  The coarse POS tag (used to store the UPOS tag)
        * 
+ * + * optional string coarseTag = 33; */ public boolean hasCoarseTag() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** - * optional string coarseTag = 33; - * *
        *  The coarse POS tag (used to store the UPOS tag)
        * 
+ * + * optional string coarseTag = 33; */ public java.lang.String getCoarseTag() { java.lang.Object ref = coarseTag_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - coarseTag_ = s; + 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)
        * 
+ * + * optional string coarseTag = 33; */ public com.google.protobuf.ByteString getCoarseTagBytes() { @@ -18538,11 +20183,11 @@ public java.lang.String getCoarseTag() { } } /** - * optional string coarseTag = 33; - * *
        *  The coarse POS tag (used to store the UPOS tag)
        * 
+ * + * optional string coarseTag = 33; */ public Builder setCoarseTag( java.lang.String value) { @@ -18555,11 +20200,11 @@ public Builder setCoarseTag( return this; } /** - * optional string coarseTag = 33; - * *
        *  The coarse POS tag (used to store the UPOS tag)
        * 
+ * + * optional string coarseTag = 33; */ public Builder clearCoarseTag() { bitField0_ = (bitField0_ & ~0x40000000); @@ -18568,11 +20213,11 @@ public Builder clearCoarseTag() { return this; } /** - * optional string coarseTag = 33; - * *
        *  The coarse POS tag (used to store the UPOS tag)
        * 
+ * + * optional string coarseTag = 33; */ public Builder setCoarseTagBytes( com.google.protobuf.ByteString value) { @@ -18585,9 +20230,8 @@ public Builder setCoarseTagBytes( return this; } - // optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Span conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.Span conllUTokenSpan_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -18600,7 +20244,7 @@ public boolean hasConllUTokenSpan() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getConllUTokenSpan() { if (conllUTokenSpanBuilder_ == null) { - return conllUTokenSpan_; + return conllUTokenSpan_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : conllUTokenSpan_; } else { return conllUTokenSpanBuilder_.getMessage(); } @@ -18641,6 +20285,7 @@ public Builder setConllUTokenSpan( public Builder mergeConllUTokenSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span value) { if (conllUTokenSpanBuilder_ == null) { if (((bitField0_ & 0x80000000) == 0x80000000) && + conllUTokenSpan_ != null && conllUTokenSpan_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance()) { conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.newBuilder(conllUTokenSpan_).mergeFrom(value).buildPartial(); @@ -18659,7 +20304,7 @@ public Builder mergeConllUTokenSpan(edu.stanford.nlp.pipeline.CoreNLPProtos.Span */ public Builder clearConllUTokenSpan() { if (conllUTokenSpanBuilder_ == null) { - conllUTokenSpan_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance(); + conllUTokenSpan_ = null; onChanged(); } else { conllUTokenSpanBuilder_.clear(); @@ -18682,19 +20327,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanO if (conllUTokenSpanBuilder_ != null) { return conllUTokenSpanBuilder_.getMessageOrBuilder(); } else { - return conllUTokenSpan_; + return conllUTokenSpan_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.Span.getDefaultInstance() : conllUTokenSpan_; } } /** * optional .edu.stanford.nlp.pipeline.Span conllUTokenSpan = 34; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + conllUTokenSpanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Span, edu.stanford.nlp.pipeline.CoreNLPProtos.Span.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder>( - conllUTokenSpan_, + getConllUTokenSpan(), getParentForChildren(), isClean()); conllUTokenSpan_ = null; @@ -18702,7 +20348,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder getConllUTokenSpanO return conllUTokenSpanBuilder_; } - // optional string conllUMisc = 35; private java.lang.Object conllUMisc_ = ""; /** * optional string conllUMisc = 35; @@ -18716,9 +20361,12 @@ public boolean hasConllUMisc() { public java.lang.String getConllUMisc() { java.lang.Object ref = conllUMisc_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - conllUMisc_ = s; + 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; @@ -18776,9 +20424,8 @@ public Builder setConllUMiscBytes( return this; } - // optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; - private edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString conllUSecondaryDeps_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -18791,7 +20438,7 @@ public boolean hasConllUSecondaryDeps() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getConllUSecondaryDeps() { if (conllUSecondaryDepsBuilder_ == null) { - return conllUSecondaryDeps_; + return conllUSecondaryDeps_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance() : conllUSecondaryDeps_; } else { return conllUSecondaryDepsBuilder_.getMessage(); } @@ -18832,6 +20479,7 @@ public Builder setConllUSecondaryDeps( public Builder mergeConllUSecondaryDeps(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString value) { if (conllUSecondaryDepsBuilder_ == null) { if (((bitField1_ & 0x00000002) == 0x00000002) && + conllUSecondaryDeps_ != null && conllUSecondaryDeps_ != edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance()) { conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.newBuilder(conllUSecondaryDeps_).mergeFrom(value).buildPartial(); @@ -18850,7 +20498,7 @@ public Builder mergeConllUSecondaryDeps(edu.stanford.nlp.pipeline.CoreNLPProtos. */ public Builder clearConllUSecondaryDeps() { if (conllUSecondaryDepsBuilder_ == null) { - conllUSecondaryDeps_ = edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance(); + conllUSecondaryDeps_ = null; onChanged(); } else { conllUSecondaryDepsBuilder_.clear(); @@ -18873,19 +20521,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSe if (conllUSecondaryDepsBuilder_ != null) { return conllUSecondaryDepsBuilder_.getMessageOrBuilder(); } else { - return conllUSecondaryDeps_; + return conllUSecondaryDeps_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.getDefaultInstance() : conllUSecondaryDeps_; } } /** * optional .edu.stanford.nlp.pipeline.MapIntString conllUSecondaryDeps = 36; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + conllUSecondaryDepsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder>( - conllUSecondaryDeps_, + getConllUSecondaryDeps(), getParentForChildren(), isClean()); conllUSecondaryDeps_ = null; @@ -18893,7 +20542,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder getConllUSe return conllUSecondaryDepsBuilder_; } - // optional string wikipediaEntity = 37; private java.lang.Object wikipediaEntity_ = ""; /** * optional string wikipediaEntity = 37; @@ -18907,9 +20555,12 @@ public boolean hasWikipediaEntity() { public java.lang.String getWikipediaEntity() { java.lang.Object ref = wikipediaEntity_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - wikipediaEntity_ = s; + 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; @@ -18967,42 +20618,44 @@ public Builder setWikipediaEntityBytes( return this; } - // optional string gender = 51; private java.lang.Object gender_ = ""; /** - * optional string gender = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional string gender = 51; */ public boolean hasGender() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** - * optional string gender = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional string gender = 51; */ public java.lang.String getGender() { java.lang.Object ref = gender_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - gender_ = s; + 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
        * 
+ * + * optional string gender = 51; */ public com.google.protobuf.ByteString getGenderBytes() { @@ -19018,11 +20671,11 @@ public java.lang.String getGender() { } } /** - * optional string gender = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional string gender = 51; */ public Builder setGender( java.lang.String value) { @@ -19035,11 +20688,11 @@ public Builder setGender( return this; } /** - * optional string gender = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional string gender = 51; */ public Builder clearGender() { bitField1_ = (bitField1_ & ~0x00000008); @@ -19048,11 +20701,11 @@ public Builder clearGender() { return this; } /** - * optional string gender = 51; - * *
        * Fields set by other annotators in CoreNLP
        * 
+ * + * optional string gender = 51; */ public Builder setGenderBytes( com.google.protobuf.ByteString value) { @@ -19065,42 +20718,44 @@ public Builder setGenderBytes( return this; } - // optional string trueCase = 52; private java.lang.Object trueCase_ = ""; /** - * optional string trueCase = 52; - * *
        * true case type of token
        * 
+ * + * optional string trueCase = 52; */ public boolean hasTrueCase() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** - * optional string trueCase = 52; - * *
        * true case type of token
        * 
+ * + * optional string trueCase = 52; */ public java.lang.String getTrueCase() { java.lang.Object ref = trueCase_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - trueCase_ = s; + 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
        * 
+ * + * optional string trueCase = 52; */ public com.google.protobuf.ByteString getTrueCaseBytes() { @@ -19116,11 +20771,11 @@ public java.lang.String getTrueCase() { } } /** - * optional string trueCase = 52; - * *
        * true case type of token
        * 
+ * + * optional string trueCase = 52; */ public Builder setTrueCase( java.lang.String value) { @@ -19133,11 +20788,11 @@ public Builder setTrueCase( return this; } /** - * optional string trueCase = 52; - * *
        * true case type of token
        * 
+ * + * optional string trueCase = 52; */ public Builder clearTrueCase() { bitField1_ = (bitField1_ & ~0x00000010); @@ -19146,11 +20801,11 @@ public Builder clearTrueCase() { return this; } /** - * optional string trueCase = 52; - * *
        * true case type of token
        * 
+ * + * optional string trueCase = 52; */ public Builder setTrueCaseBytes( com.google.protobuf.ByteString value) { @@ -19163,42 +20818,44 @@ public Builder setTrueCaseBytes( return this; } - // optional string trueCaseText = 53; private java.lang.Object trueCaseText_ = ""; /** - * optional string trueCaseText = 53; - * *
        * true case gloss of token
        * 
+ * + * optional string trueCaseText = 53; */ public boolean hasTrueCaseText() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** - * optional string trueCaseText = 53; - * *
        * true case gloss of token
        * 
+ * + * optional string trueCaseText = 53; */ public java.lang.String getTrueCaseText() { java.lang.Object ref = trueCaseText_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - trueCaseText_ = s; + 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
        * 
+ * + * optional string trueCaseText = 53; */ public com.google.protobuf.ByteString getTrueCaseTextBytes() { @@ -19214,11 +20871,11 @@ public java.lang.String getTrueCaseText() { } } /** - * optional string trueCaseText = 53; - * *
        * true case gloss of token
        * 
+ * + * optional string trueCaseText = 53; */ public Builder setTrueCaseText( java.lang.String value) { @@ -19231,11 +20888,11 @@ public Builder setTrueCaseText( return this; } /** - * optional string trueCaseText = 53; - * *
        * true case gloss of token
        * 
+ * + * optional string trueCaseText = 53; */ public Builder clearTrueCaseText() { bitField1_ = (bitField1_ & ~0x00000020); @@ -19244,11 +20901,11 @@ public Builder clearTrueCaseText() { return this; } /** - * optional string trueCaseText = 53; - * *
        * true case gloss of token
        * 
+ * + * optional string trueCaseText = 53; */ public Builder setTrueCaseTextBytes( com.google.protobuf.ByteString value) { @@ -19261,42 +20918,44 @@ public Builder setTrueCaseTextBytes( return this; } - // optional string chineseChar = 54; private java.lang.Object chineseChar_ = ""; /** - * optional string chineseChar = 54; - * *
        *  Chinese character info
        * 
+ * + * optional string chineseChar = 54; */ public boolean hasChineseChar() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** - * optional string chineseChar = 54; - * *
        *  Chinese character info
        * 
+ * + * optional string chineseChar = 54; */ public java.lang.String getChineseChar() { java.lang.Object ref = chineseChar_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - chineseChar_ = s; + 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
        * 
+ * + * optional string chineseChar = 54; */ public com.google.protobuf.ByteString getChineseCharBytes() { @@ -19312,11 +20971,11 @@ public java.lang.String getChineseChar() { } } /** - * optional string chineseChar = 54; - * *
        *  Chinese character info
        * 
+ * + * optional string chineseChar = 54; */ public Builder setChineseChar( java.lang.String value) { @@ -19329,11 +20988,11 @@ public Builder setChineseChar( return this; } /** - * optional string chineseChar = 54; - * *
        *  Chinese character info
        * 
+ * + * optional string chineseChar = 54; */ public Builder clearChineseChar() { bitField1_ = (bitField1_ & ~0x00000040); @@ -19342,11 +21001,11 @@ public Builder clearChineseChar() { return this; } /** - * optional string chineseChar = 54; - * *
        *  Chinese character info
        * 
+ * + * optional string chineseChar = 54; */ public Builder setChineseCharBytes( com.google.protobuf.ByteString value) { @@ -19359,7 +21018,6 @@ public Builder setChineseCharBytes( return this; } - // optional string chineseSeg = 55; private java.lang.Object chineseSeg_ = ""; /** * optional string chineseSeg = 55; @@ -19373,9 +21031,12 @@ public boolean hasChineseSeg() { public java.lang.String getChineseSeg() { java.lang.Object ref = chineseSeg_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - chineseSeg_ = s; + 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; @@ -19432,22 +21093,59 @@ public Builder setChineseSegBytes( onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Token) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Token) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Token DEFAULT_INSTANCE; static { - defaultInstance = new Token(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Token(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Token getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Token getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Token) } - public interface QuoteOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface QuoteOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Quote) + com.google.protobuf.MessageOrBuilder { - // optional string text = 1; /** * optional string text = 1; */ @@ -19462,7 +21160,6 @@ public interface QuoteOrBuilder com.google.protobuf.ByteString getTextBytes(); - // optional uint32 begin = 2; /** * optional uint32 begin = 2; */ @@ -19472,7 +21169,6 @@ public interface QuoteOrBuilder */ int getBegin(); - // optional uint32 end = 3; /** * optional uint32 end = 3; */ @@ -19482,7 +21178,6 @@ public interface QuoteOrBuilder */ int getEnd(); - // optional uint32 sentenceBegin = 5; /** * optional uint32 sentenceBegin = 5; */ @@ -19492,7 +21187,6 @@ public interface QuoteOrBuilder */ int getSentenceBegin(); - // optional uint32 sentenceEnd = 6; /** * optional uint32 sentenceEnd = 6; */ @@ -19502,7 +21196,6 @@ public interface QuoteOrBuilder */ int getSentenceEnd(); - // optional uint32 tokenBegin = 7; /** * optional uint32 tokenBegin = 7; */ @@ -19512,7 +21205,6 @@ public interface QuoteOrBuilder */ int getTokenBegin(); - // optional uint32 tokenEnd = 8; /** * optional uint32 tokenEnd = 8; */ @@ -19522,7 +21214,6 @@ public interface QuoteOrBuilder */ int getTokenEnd(); - // optional string docid = 9; /** * optional string docid = 9; */ @@ -19537,7 +21228,6 @@ public interface QuoteOrBuilder com.google.protobuf.ByteString getDocidBytes(); - // optional uint32 index = 10; /** * optional uint32 index = 10; */ @@ -19548,43 +21238,42 @@ public interface QuoteOrBuilder int getIndex(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Quote} - * *
-   *
    * A quotation marker in text
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Quote} */ - public static final class Quote extends - com.google.protobuf.GeneratedMessage - implements QuoteOrBuilder { + public static final class Quote extends + com.google.protobuf.GeneratedMessageV3 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) { + private Quote(com.google.protobuf.GeneratedMessageV3.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 Quote() { + text_ = ""; + begin_ = 0; + end_ = 0; + sentenceBegin_ = 0; + sentenceEnd_ = 0; + tokenBegin_ = 0; + tokenEnd_ = 0; + docid_ = ""; + index_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Quote( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -19604,8 +21293,9 @@ private Quote( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - text_ = input.readBytes(); + text_ = bs; break; } case 16: { @@ -19639,8 +21329,9 @@ private Quote( break; } case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - docid_ = input.readBytes(); + docid_ = bs; break; } case 80: { @@ -19654,7 +21345,7 @@ private Quote( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -19665,32 +21356,16 @@ private Quote( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional string text = 1; public static final int TEXT_FIELD_NUMBER = 1; - private java.lang.Object text_; + private volatile java.lang.Object text_; /** * optional string text = 1; */ @@ -19731,7 +21406,6 @@ public java.lang.String getText() { } } - // optional uint32 begin = 2; public static final int BEGIN_FIELD_NUMBER = 2; private int begin_; /** @@ -19747,7 +21421,6 @@ public int getBegin() { return begin_; } - // optional uint32 end = 3; public static final int END_FIELD_NUMBER = 3; private int end_; /** @@ -19763,7 +21436,6 @@ public int getEnd() { return end_; } - // optional uint32 sentenceBegin = 5; public static final int SENTENCEBEGIN_FIELD_NUMBER = 5; private int sentenceBegin_; /** @@ -19779,7 +21451,6 @@ public int getSentenceBegin() { return sentenceBegin_; } - // optional uint32 sentenceEnd = 6; public static final int SENTENCEEND_FIELD_NUMBER = 6; private int sentenceEnd_; /** @@ -19795,7 +21466,6 @@ public int getSentenceEnd() { return sentenceEnd_; } - // optional uint32 tokenBegin = 7; public static final int TOKENBEGIN_FIELD_NUMBER = 7; private int tokenBegin_; /** @@ -19811,7 +21481,6 @@ public int getTokenBegin() { return tokenBegin_; } - // optional uint32 tokenEnd = 8; public static final int TOKENEND_FIELD_NUMBER = 8; private int tokenEnd_; /** @@ -19827,9 +21496,8 @@ public int getTokenEnd() { return tokenEnd_; } - // optional string docid = 9; public static final int DOCID_FIELD_NUMBER = 9; - private java.lang.Object docid_; + private volatile java.lang.Object docid_; /** * optional string docid = 9; */ @@ -19870,7 +21538,6 @@ public java.lang.String getDocid() { } } - // optional uint32 index = 10; public static final int INDEX_FIELD_NUMBER = 10; private int index_; /** @@ -19886,21 +21553,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -19908,9 +21565,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTextBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, begin_); @@ -19931,23 +21587,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(8, tokenEnd_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(9, getDocidBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, docid_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(10, index_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTextBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -19974,23 +21628,124 @@ public int getSerializedSize() { .computeUInt32Size(8, tokenEnd_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getDocidBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, docid_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, index_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Quote)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Quote other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Quote) obj; + + boolean result = true; + result = result && (hasText() == other.hasText()); + if (hasText()) { + result = result && getText() + .equals(other.getText()); + } + result = result && (hasBegin() == other.hasBegin()); + if (hasBegin()) { + result = result && (getBegin() + == other.getBegin()); + } + result = result && (hasEnd() == other.hasEnd()); + if (hasEnd()) { + result = result && (getEnd() + == other.getEnd()); + } + result = result && (hasSentenceBegin() == other.hasSentenceBegin()); + if (hasSentenceBegin()) { + result = result && (getSentenceBegin() + == other.getSentenceBegin()); + } + result = result && (hasSentenceEnd() == other.hasSentenceEnd()); + if (hasSentenceEnd()) { + result = result && (getSentenceEnd() + == other.getSentenceEnd()); + } + result = result && (hasTokenBegin() == other.hasTokenBegin()); + if (hasTokenBegin()) { + result = result && (getTokenBegin() + == other.getTokenBegin()); + } + result = result && (hasTokenEnd() == other.hasTokenEnd()); + if (hasTokenEnd()) { + result = result && (getTokenEnd() + == other.getTokenEnd()); + } + result = result && (hasDocid() == other.hasDocid()); + if (hasDocid()) { + result = result && getDocid() + .equals(other.getDocid()); + } + result = result && (hasIndex() == other.hasIndex()); + if (hasIndex()) { + result = result && (getIndex() + == other.getIndex()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } + if (hasBegin()) { + hash = (37 * hash) + BEGIN_FIELD_NUMBER; + hash = (53 * hash) + getBegin(); + } + if (hasEnd()) { + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd(); + } + if (hasSentenceBegin()) { + hash = (37 * hash) + SENTENCEBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getSentenceBegin(); + } + if (hasSentenceEnd()) { + hash = (37 * hash) + SENTENCEEND_FIELD_NUMBER; + hash = (53 * hash) + getSentenceEnd(); + } + if (hasTokenBegin()) { + hash = (37 * hash) + TOKENBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getTokenBegin(); + } + if (hasTokenEnd()) { + hash = (37 * hash) + TOKENEND_FIELD_NUMBER; + hash = (53 * hash) + getTokenEnd(); + } + if (hasDocid()) { + hash = (37 * hash) + DOCID_FIELD_NUMBER; + hash = (53 * hash) + getDocid().hashCode(); + } + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom( @@ -20016,66 +21771,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Quote} - * *
-     *
      * A quotation marker in text
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Quote} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.QuoteOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Quote_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -20088,18 +21854,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); text_ = ""; @@ -20123,10 +21886,6 @@ public Builder 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_Quote_descriptor; @@ -20189,6 +21948,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -20231,7 +22016,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Quote other) { if (other.hasIndex()) { setIndex(other.getIndex()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -20248,7 +22034,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Quote) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -20258,7 +22044,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional string text = 1; private java.lang.Object text_ = ""; /** * optional string text = 1; @@ -20272,9 +22057,12 @@ public boolean hasText() { public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; + 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; @@ -20332,7 +22120,6 @@ public Builder setTextBytes( return this; } - // optional uint32 begin = 2; private int begin_ ; /** * optional uint32 begin = 2; @@ -20365,7 +22152,6 @@ public Builder clearBegin() { return this; } - // optional uint32 end = 3; private int end_ ; /** * optional uint32 end = 3; @@ -20398,7 +22184,6 @@ public Builder clearEnd() { return this; } - // optional uint32 sentenceBegin = 5; private int sentenceBegin_ ; /** * optional uint32 sentenceBegin = 5; @@ -20431,7 +22216,6 @@ public Builder clearSentenceBegin() { return this; } - // optional uint32 sentenceEnd = 6; private int sentenceEnd_ ; /** * optional uint32 sentenceEnd = 6; @@ -20464,7 +22248,6 @@ public Builder clearSentenceEnd() { return this; } - // optional uint32 tokenBegin = 7; private int tokenBegin_ ; /** * optional uint32 tokenBegin = 7; @@ -20497,7 +22280,6 @@ public Builder clearTokenBegin() { return this; } - // optional uint32 tokenEnd = 8; private int tokenEnd_ ; /** * optional uint32 tokenEnd = 8; @@ -20530,7 +22312,6 @@ public Builder clearTokenEnd() { return this; } - // optional string docid = 9; private java.lang.Object docid_ = ""; /** * optional string docid = 9; @@ -20544,9 +22325,12 @@ public boolean hasDocid() { public java.lang.String getDocid() { java.lang.Object ref = docid_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - docid_ = s; + 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; @@ -20604,7 +22388,6 @@ public Builder setDocidBytes( return this; } - // optional uint32 index = 10; private int index_ ; /** * optional uint32 index = 10; @@ -20636,22 +22419,59 @@ public Builder clearIndex() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Quote) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Quote) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Quote DEFAULT_INSTANCE; static { - defaultInstance = new Quote(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Quote(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Quote getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Quote getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Quote) } - public interface ParseTreeOrBuilder - extends com.google.protobuf.MessageOrBuilder { + 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; /** * repeated .edu.stanford.nlp.pipeline.ParseTree child = 1; */ @@ -20676,7 +22496,6 @@ public interface ParseTreeOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder( int index); - // optional string value = 2; /** * optional string value = 2; */ @@ -20691,7 +22510,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder( com.google.protobuf.ByteString getValueBytes(); - // optional uint32 yieldBeginIndex = 3; /** * optional uint32 yieldBeginIndex = 3; */ @@ -20701,7 +22519,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder( */ int getYieldBeginIndex(); - // optional uint32 yieldEndIndex = 4; /** * optional uint32 yieldEndIndex = 4; */ @@ -20711,7 +22528,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder( */ int getYieldEndIndex(); - // optional double score = 5; /** * optional double score = 5; */ @@ -20721,7 +22537,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder( */ double getScore(); - // optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; /** * optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; */ @@ -20732,43 +22547,39 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuilder( edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment getSentiment(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.ParseTree} - * *
-   *
    * A syntactic parse tree, with scores.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.ParseTree} */ - public static final class ParseTree extends - com.google.protobuf.GeneratedMessage - implements ParseTreeOrBuilder { + public static final class ParseTree extends + com.google.protobuf.GeneratedMessageV3 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) { + private ParseTree(com.google.protobuf.GeneratedMessageV3.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 ParseTree() { + child_ = java.util.Collections.emptyList(); + value_ = ""; + yieldBeginIndex_ = 0; + yieldEndIndex_ = 0; + score_ = 0D; + sentiment_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private ParseTree( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -20792,12 +22603,14 @@ private ParseTree( child_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - child_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.PARSER, extensionRegistry)); + 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_ = input.readBytes(); + value_ = bs; break; } case 24: { @@ -20822,7 +22635,7 @@ private ParseTree( unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000010; - sentiment_ = value; + sentiment_ = rawValue; } break; } @@ -20832,7 +22645,7 @@ private ParseTree( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { child_ = java.util.Collections.unmodifiableList(child_); @@ -20846,30 +22659,14 @@ private ParseTree( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // repeated .edu.stanford.nlp.pipeline.ParseTree child = 1; public static final int CHILD_FIELD_NUMBER = 1; private java.util.List child_; /** @@ -20905,9 +22702,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder getChildOrBuil return child_.get(index); } - // optional string value = 2; public static final int VALUE_FIELD_NUMBER = 2; - private java.lang.Object value_; + private volatile java.lang.Object value_; /** * optional string value = 2; */ @@ -20948,7 +22744,6 @@ public java.lang.String getValue() { } } - // optional uint32 yieldBeginIndex = 3; public static final int YIELDBEGININDEX_FIELD_NUMBER = 3; private int yieldBeginIndex_; /** @@ -20964,7 +22759,6 @@ public int getYieldBeginIndex() { return yieldBeginIndex_; } - // optional uint32 yieldEndIndex = 4; public static final int YIELDENDINDEX_FIELD_NUMBER = 4; private int yieldEndIndex_; /** @@ -20980,7 +22774,6 @@ public int getYieldEndIndex() { return yieldEndIndex_; } - // optional double score = 5; public static final int SCORE_FIELD_NUMBER = 5; private double score_; /** @@ -20996,9 +22789,8 @@ public double getScore() { return score_; } - // optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; public static final int SENTIMENT_FIELD_NUMBER = 6; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment sentiment_; + private int sentiment_; /** * optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; */ @@ -21009,21 +22801,15 @@ public boolean hasSentiment() { * optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment getSentiment() { - return sentiment_; + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment result = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.valueOf(sentiment_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE : result; } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -21031,12 +22817,11 @@ public final boolean isInitialized() { 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()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(3, yieldBeginIndex_); @@ -21048,14 +22833,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeDouble(5, score_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(6, sentiment_.getNumber()); + output.writeEnum(6, sentiment_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -21064,8 +22848,7 @@ public int getSerializedSize() { .computeMessageSize(1, child_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getValueBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -21081,18 +22864,92 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, sentiment_.getNumber()); + .computeEnumSize(6, sentiment_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree other = (edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree) obj; + + boolean result = true; + result = result && getChildList() + .equals(other.getChildList()); + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasYieldBeginIndex() == other.hasYieldBeginIndex()); + if (hasYieldBeginIndex()) { + result = result && (getYieldBeginIndex() + == other.getYieldBeginIndex()); + } + result = result && (hasYieldEndIndex() == other.hasYieldEndIndex()); + if (hasYieldEndIndex()) { + result = result && (getYieldEndIndex() + == other.getYieldEndIndex()); + } + result = result && (hasScore() == other.hasScore()); + if (hasScore()) { + result = result && ( + java.lang.Double.doubleToLongBits(getScore()) + == java.lang.Double.doubleToLongBits( + other.getScore())); + } + result = result && (hasSentiment() == other.hasSentiment()); + if (hasSentiment()) { + result = result && sentiment_ == other.sentiment_; + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getChildCount() > 0) { + hash = (37 * hash) + CHILD_FIELD_NUMBER; + hash = (53 * hash) + getChildList().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasYieldBeginIndex()) { + hash = (37 * hash) + YIELDBEGININDEX_FIELD_NUMBER; + hash = (53 * hash) + getYieldBeginIndex(); + } + if (hasYieldEndIndex()) { + hash = (37 * hash) + YIELDENDINDEX_FIELD_NUMBER; + hash = (53 * hash) + getYieldEndIndex(); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + if (hasSentiment()) { + hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; + hash = (53 * hash) + sentiment_; + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom( @@ -21118,66 +22975,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.ParseTree} - * *
-     *
      * A syntactic parse tree, with scores.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.ParseTree} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_ParseTree_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -21190,19 +23058,16 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getChildFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); if (childBuilder_ == null) { @@ -21219,15 +23084,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000008); score_ = 0D; bitField0_ = (bitField0_ & ~0x00000010); - sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE; + sentiment_ = 0; 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; @@ -21283,6 +23144,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -21313,7 +23200,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree other child_ = other.child_; bitField0_ = (bitField0_ & ~0x00000001); childBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildFieldBuilder() : null; } else { childBuilder_.addAllMessages(other.child_); @@ -21337,7 +23224,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree other if (other.hasSentiment()) { setSentiment(other.getSentiment()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -21354,7 +23242,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -21364,7 +23252,6 @@ public Builder mergeFrom( } private int bitField0_; - // repeated .edu.stanford.nlp.pipeline.ParseTree child = 1; private java.util.List child_ = java.util.Collections.emptyList(); private void ensureChildIsMutable() { @@ -21374,7 +23261,7 @@ private void ensureChildIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder> childBuilder_; /** @@ -21506,7 +23393,8 @@ public Builder addAllChild( java.lang.Iterable values) { if (childBuilder_ == null) { ensureChildIsMutable(); - super.addAll(values, child_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, child_); onChanged(); } else { childBuilder_.addAllMessages(values); @@ -21589,11 +23477,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addChildBuilder getChildBuilderList() { return getChildFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + childBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTreeOrBuilder>( child_, ((bitField0_ & 0x00000001) == 0x00000001), @@ -21604,7 +23492,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree.Builder addChildBuilder return childBuilder_; } - // optional string value = 2; private java.lang.Object value_ = ""; /** * optional string value = 2; @@ -21618,9 +23505,12 @@ public boolean hasValue() { public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - value_ = s; + 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; @@ -21678,7 +23568,6 @@ public Builder setValueBytes( return this; } - // optional uint32 yieldBeginIndex = 3; private int yieldBeginIndex_ ; /** * optional uint32 yieldBeginIndex = 3; @@ -21711,7 +23600,6 @@ public Builder clearYieldBeginIndex() { return this; } - // optional uint32 yieldEndIndex = 4; private int yieldEndIndex_ ; /** * optional uint32 yieldEndIndex = 4; @@ -21744,7 +23632,6 @@ public Builder clearYieldEndIndex() { return this; } - // optional double score = 5; private double score_ ; /** * optional double score = 5; @@ -21777,8 +23664,7 @@ public Builder clearScore() { return this; } - // optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE; + private int sentiment_ = 0; /** * optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; */ @@ -21789,7 +23675,8 @@ public boolean hasSentiment() { * optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment getSentiment() { - return sentiment_; + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment result = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.valueOf(sentiment_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE : result; } /** * optional .edu.stanford.nlp.pipeline.Sentiment sentiment = 6; @@ -21799,7 +23686,7 @@ public Builder setSentiment(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment va throw new NullPointerException(); } bitField0_ |= 0x00000020; - sentiment_ = value; + sentiment_ = value.getNumber(); onChanged(); return this; } @@ -21808,26 +23695,63 @@ public Builder setSentiment(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment va */ public Builder clearSentiment() { bitField0_ = (bitField0_ & ~0x00000020); - sentiment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Sentiment.STRONG_NEGATIVE; + sentiment_ = 0; onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.ParseTree) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.ParseTree) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree DEFAULT_INSTANCE; static { - defaultInstance = new ParseTree(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.ParseTree getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.ParseTree) } - public interface DependencyGraphOrBuilder - extends com.google.protobuf.MessageOrBuilder { + 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; /** * repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1; */ @@ -21852,7 +23776,6 @@ public interface DependencyGraphOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder getNodeOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2; /** * repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2; */ @@ -21877,7 +23800,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder getNodeOrB edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder getEdgeOrBuilder( int index); - // repeated uint32 root = 3 [packed = true]; /** * repeated uint32 root = 3 [packed = true]; */ @@ -21892,43 +23814,36 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder getEdgeOrB int getRoot(int index); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph} - * *
-   *
    * A dependency graph representation.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph} */ - public static final class DependencyGraph extends - com.google.protobuf.GeneratedMessage - implements DependencyGraphOrBuilder { + public static final class DependencyGraph extends + com.google.protobuf.GeneratedMessageV3 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) { + private DependencyGraph(com.google.protobuf.GeneratedMessageV3.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 DependencyGraph() { + node_ = java.util.Collections.emptyList(); + edge_ = java.util.Collections.emptyList(); + root_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private DependencyGraph( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -21952,7 +23867,8 @@ private DependencyGraph( node_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - node_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.PARSER, extensionRegistry)); + node_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.PARSER, extensionRegistry)); break; } case 18: { @@ -21960,7 +23876,8 @@ private DependencyGraph( edge_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } - edge_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.PARSER, extensionRegistry)); + edge_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.PARSER, extensionRegistry)); break; } case 24: { @@ -21990,7 +23907,7 @@ private DependencyGraph( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { node_ = java.util.Collections.unmodifiableList(node_); @@ -22010,32 +23927,17 @@ private DependencyGraph( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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 { - public interface NodeOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required uint32 sentenceIndex = 1; /** * required uint32 sentenceIndex = 1; */ @@ -22045,7 +23947,6 @@ public interface NodeOrBuilder */ int getSentenceIndex(); - // required uint32 index = 2; /** * required uint32 index = 2; */ @@ -22055,7 +23956,6 @@ public interface NodeOrBuilder */ int getIndex(); - // optional uint32 copyAnnotation = 3; /** * optional uint32 copyAnnotation = 3; */ @@ -22068,36 +23968,30 @@ public interface NodeOrBuilder /** * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph.Node} */ - public static final class Node extends - com.google.protobuf.GeneratedMessage - implements NodeOrBuilder { + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 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) { + private Node(com.google.protobuf.GeneratedMessageV3.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 Node() { + sentenceIndex_ = 0; + index_ = 0; + copyAnnotation_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Node( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -22137,7 +24031,7 @@ private Node( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -22148,30 +24042,14 @@ private Node( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // required uint32 sentenceIndex = 1; public static final int SENTENCEINDEX_FIELD_NUMBER = 1; private int sentenceIndex_; /** @@ -22187,7 +24065,6 @@ public int getSentenceIndex() { return sentenceIndex_; } - // required uint32 index = 2; public static final int INDEX_FIELD_NUMBER = 2; private int index_; /** @@ -22203,7 +24080,6 @@ public int getIndex() { return index_; } - // optional uint32 copyAnnotation = 3; public static final int COPYANNOTATION_FIELD_NUMBER = 3; private int copyAnnotation_; /** @@ -22219,15 +24095,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasSentenceIndex()) { memoizedIsInitialized = 0; @@ -22243,7 +24115,6 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, sentenceIndex_); } @@ -22253,12 +24124,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, copyAnnotation_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -22274,16 +24144,64 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, copyAnnotation_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node other = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node) obj; + + boolean result = true; + result = result && (hasSentenceIndex() == other.hasSentenceIndex()); + if (hasSentenceIndex()) { + result = result && (getSentenceIndex() + == other.getSentenceIndex()); + } + result = result && (hasIndex() == other.hasIndex()); + if (hasIndex()) { + result = result && (getIndex() + == other.getIndex()); + } + result = result && (hasCopyAnnotation() == other.hasCopyAnnotation()); + if (hasCopyAnnotation()) { + result = result && (getCopyAnnotation() + == other.getCopyAnnotation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSentenceIndex()) { + hash = (37 * hash) + SENTENCEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getSentenceIndex(); + } + if (hasIndex()) { + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + } + if (hasCopyAnnotation()) { + hash = (37 * hash) + COPYANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getCopyAnnotation(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom( @@ -22309,46 +24227,57 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parse } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -22356,14 +24285,15 @@ protected Builder newBuilderForType( * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph.Node} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -22376,18 +24306,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); sentenceIndex_ = 0; @@ -22399,10 +24326,6 @@ public Builder 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_DependencyGraph_Node_descriptor; @@ -22441,6 +24364,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node buildPartial return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -22461,17 +24410,16 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph if (other.hasCopyAnnotation()) { setCopyAnnotation(other.getCopyAnnotation()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasSentenceIndex()) { - return false; } if (!hasIndex()) { - return false; } return true; @@ -22486,7 +24434,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -22496,7 +24444,6 @@ public Builder mergeFrom( } private int bitField0_; - // required uint32 sentenceIndex = 1; private int sentenceIndex_ ; /** * required uint32 sentenceIndex = 1; @@ -22529,7 +24476,6 @@ public Builder clearSentenceIndex() { return this; } - // required uint32 index = 2; private int index_ ; /** * required uint32 index = 2; @@ -22562,7 +24508,6 @@ public Builder clearIndex() { return this; } - // optional uint32 copyAnnotation = 3; private int copyAnnotation_ ; /** * optional uint32 copyAnnotation = 3; @@ -22594,22 +24539,59 @@ public Builder clearCopyAnnotation() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.DependencyGraph.Node) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph.Node) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node DEFAULT_INSTANCE; static { - defaultInstance = new Node(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph.Node) } - public interface EdgeOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface EdgeOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.DependencyGraph.Edge) + com.google.protobuf.MessageOrBuilder { - // required uint32 source = 1; /** * required uint32 source = 1; */ @@ -22619,7 +24601,6 @@ public interface EdgeOrBuilder */ int getSource(); - // required uint32 target = 2; /** * required uint32 target = 2; */ @@ -22629,7 +24610,6 @@ public interface EdgeOrBuilder */ int getTarget(); - // optional string dep = 3; /** * optional string dep = 3; */ @@ -22644,7 +24624,6 @@ public interface EdgeOrBuilder com.google.protobuf.ByteString getDepBytes(); - // optional bool isExtra = 4; /** * optional bool isExtra = 4; */ @@ -22654,7 +24633,6 @@ public interface EdgeOrBuilder */ boolean getIsExtra(); - // optional uint32 sourceCopy = 5; /** * optional uint32 sourceCopy = 5; */ @@ -22664,7 +24642,6 @@ public interface EdgeOrBuilder */ int getSourceCopy(); - // optional uint32 targetCopy = 6; /** * optional uint32 targetCopy = 6; */ @@ -22674,7 +24651,6 @@ public interface EdgeOrBuilder */ int getTargetCopy(); - // optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; /** * optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; */ @@ -22687,36 +24663,34 @@ public interface EdgeOrBuilder /** * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph.Edge} */ - public static final class Edge extends - com.google.protobuf.GeneratedMessage - implements EdgeOrBuilder { + public static final class Edge extends + com.google.protobuf.GeneratedMessageV3 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) { + private Edge(com.google.protobuf.GeneratedMessageV3.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 Edge() { + source_ = 0; + target_ = 0; + dep_ = ""; + isExtra_ = false; + sourceCopy_ = 0; + targetCopy_ = 0; + language_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Edge( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -22746,8 +24720,9 @@ private Edge( break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - dep_ = input.readBytes(); + dep_ = bs; break; } case 32: { @@ -22772,7 +24747,7 @@ private Edge( unknownFields.mergeVarintField(7, rawValue); } else { bitField0_ |= 0x00000040; - language_ = value; + language_ = rawValue; } break; } @@ -22782,7 +24757,7 @@ private Edge( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -22793,30 +24768,14 @@ private Edge( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // required uint32 source = 1; public static final int SOURCE_FIELD_NUMBER = 1; private int source_; /** @@ -22832,7 +24791,6 @@ public int getSource() { return source_; } - // required uint32 target = 2; public static final int TARGET_FIELD_NUMBER = 2; private int target_; /** @@ -22848,9 +24806,8 @@ public int getTarget() { return target_; } - // optional string dep = 3; public static final int DEP_FIELD_NUMBER = 3; - private java.lang.Object dep_; + private volatile java.lang.Object dep_; /** * optional string dep = 3; */ @@ -22891,7 +24848,6 @@ public java.lang.String getDep() { } } - // optional bool isExtra = 4; public static final int ISEXTRA_FIELD_NUMBER = 4; private boolean isExtra_; /** @@ -22907,7 +24863,6 @@ public boolean getIsExtra() { return isExtra_; } - // optional uint32 sourceCopy = 5; public static final int SOURCECOPY_FIELD_NUMBER = 5; private int sourceCopy_; /** @@ -22923,7 +24878,6 @@ public int getSourceCopy() { return sourceCopy_; } - // optional uint32 targetCopy = 6; public static final int TARGETCOPY_FIELD_NUMBER = 6; private int targetCopy_; /** @@ -22939,9 +24893,8 @@ public int getTargetCopy() { return targetCopy_; } - // optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; public static final int LANGUAGE_FIELD_NUMBER = 7; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Language language_; + private int language_; /** * optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; */ @@ -22952,22 +24905,15 @@ public boolean hasLanguage() { * optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Language getLanguage() { - return language_; + edu.stanford.nlp.pipeline.CoreNLPProtos.Language result = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.valueOf(language_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown : result; } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasSource()) { memoizedIsInitialized = 0; @@ -22983,7 +24929,6 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, source_); } @@ -22991,7 +24936,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(2, target_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDepBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dep_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, isExtra_); @@ -23003,14 +24948,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(6, targetCopy_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, language_.getNumber()); + output.writeEnum(7, language_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -23023,8 +24967,7 @@ public int getSerializedSize() { .computeUInt32Size(2, target_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDepBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dep_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream @@ -23040,18 +24983,102 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, language_.getNumber()); + .computeEnumSize(7, language_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge other = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge) obj; + + boolean result = true; + result = result && (hasSource() == other.hasSource()); + if (hasSource()) { + result = result && (getSource() + == other.getSource()); + } + result = result && (hasTarget() == other.hasTarget()); + if (hasTarget()) { + result = result && (getTarget() + == other.getTarget()); + } + result = result && (hasDep() == other.hasDep()); + if (hasDep()) { + result = result && getDep() + .equals(other.getDep()); + } + result = result && (hasIsExtra() == other.hasIsExtra()); + if (hasIsExtra()) { + result = result && (getIsExtra() + == other.getIsExtra()); + } + result = result && (hasSourceCopy() == other.hasSourceCopy()); + if (hasSourceCopy()) { + result = result && (getSourceCopy() + == other.getSourceCopy()); + } + result = result && (hasTargetCopy() == other.hasTargetCopy()); + if (hasTargetCopy()) { + result = result && (getTargetCopy() + == other.getTargetCopy()); + } + result = result && (hasLanguage() == other.hasLanguage()); + if (hasLanguage()) { + result = result && language_ == other.language_; + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource(); + } + if (hasTarget()) { + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget(); + } + if (hasDep()) { + hash = (37 * hash) + DEP_FIELD_NUMBER; + hash = (53 * hash) + getDep().hashCode(); + } + if (hasIsExtra()) { + hash = (37 * hash) + ISEXTRA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsExtra()); + } + if (hasSourceCopy()) { + hash = (37 * hash) + SOURCECOPY_FIELD_NUMBER; + hash = (53 * hash) + getSourceCopy(); + } + if (hasTargetCopy()) { + hash = (37 * hash) + TARGETCOPY_FIELD_NUMBER; + hash = (53 * hash) + getTargetCopy(); + } + if (hasLanguage()) { + hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom( @@ -23077,46 +25104,57 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parse } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -23124,14 +25162,15 @@ protected Builder newBuilderForType( * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph.Edge} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -23144,18 +25183,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); source_ = 0; @@ -23170,15 +25206,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000010); targetCopy_ = 0; bitField0_ = (bitField0_ & ~0x00000020); - language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown; + language_ = 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_DependencyGraph_Edge_descriptor; @@ -23233,6 +25265,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge buildPartial return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -23267,17 +25325,16 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph if (other.hasLanguage()) { setLanguage(other.getLanguage()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasSource()) { - return false; } if (!hasTarget()) { - return false; } return true; @@ -23292,7 +25349,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -23302,7 +25359,6 @@ public Builder mergeFrom( } private int bitField0_; - // required uint32 source = 1; private int source_ ; /** * required uint32 source = 1; @@ -23335,7 +25391,6 @@ public Builder clearSource() { return this; } - // required uint32 target = 2; private int target_ ; /** * required uint32 target = 2; @@ -23368,7 +25423,6 @@ public Builder clearTarget() { return this; } - // optional string dep = 3; private java.lang.Object dep_ = ""; /** * optional string dep = 3; @@ -23382,9 +25436,12 @@ public boolean hasDep() { public java.lang.String getDep() { java.lang.Object ref = dep_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - dep_ = s; + 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; @@ -23442,7 +25499,6 @@ public Builder setDepBytes( return this; } - // optional bool isExtra = 4; private boolean isExtra_ ; /** * optional bool isExtra = 4; @@ -23475,7 +25531,6 @@ public Builder clearIsExtra() { return this; } - // optional uint32 sourceCopy = 5; private int sourceCopy_ ; /** * optional uint32 sourceCopy = 5; @@ -23508,7 +25563,6 @@ public Builder clearSourceCopy() { return this; } - // optional uint32 targetCopy = 6; private int targetCopy_ ; /** * optional uint32 targetCopy = 6; @@ -23541,8 +25595,7 @@ public Builder clearTargetCopy() { return this; } - // optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Language language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown; + private int language_ = 0; /** * optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; */ @@ -23553,7 +25606,8 @@ public boolean hasLanguage() { * optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Language getLanguage() { - return language_; + edu.stanford.nlp.pipeline.CoreNLPProtos.Language result = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.valueOf(language_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown : result; } /** * optional .edu.stanford.nlp.pipeline.Language language = 7 [default = Unknown]; @@ -23563,7 +25617,7 @@ public Builder setLanguage(edu.stanford.nlp.pipeline.CoreNLPProtos.Language valu throw new NullPointerException(); } bitField0_ |= 0x00000040; - language_ = value; + language_ = value.getNumber(); onChanged(); return this; } @@ -23572,23 +25626,59 @@ public Builder setLanguage(edu.stanford.nlp.pipeline.CoreNLPProtos.Language valu */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000040); - language_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Language.Unknown; + language_ = 0; onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.DependencyGraph.Edge) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph.Edge) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge DEFAULT_INSTANCE; static { - defaultInstance = new Edge(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph.Edge) } - // repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1; public static final int NODE_FIELD_NUMBER = 1; private java.util.List node_; /** @@ -23624,7 +25714,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder get return node_.get(index); } - // repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2; public static final int EDGE_FIELD_NUMBER = 2; private java.util.List edge_; /** @@ -23660,7 +25749,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder get return edge_.get(index); } - // repeated uint32 root = 3 [packed = true]; public static final int ROOT_FIELD_NUMBER = 3; private java.util.List root_; /** @@ -23684,15 +25772,11 @@ public int getRoot(int 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; for (int i = 0; i < getNodeCount(); i++) { if (!getNode(i).isInitialized()) { @@ -23720,18 +25804,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, edge_.get(i)); } if (getRootList().size() > 0) { - output.writeRawVarint32(26); - output.writeRawVarint32(rootMemoizedSerializedSize); + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(rootMemoizedSerializedSize); } for (int i = 0; i < root_.size(); i++) { output.writeUInt32NoTag(root_.get(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -23757,16 +25840,55 @@ public int getSerializedSize() { } rootMemoizedSerializedSize = dataSize; } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph other = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph) obj; + + boolean result = true; + result = result && getNodeList() + .equals(other.getNodeList()); + result = result && getEdgeList() + .equals(other.getEdgeList()); + result = result && getRootList() + .equals(other.getRootList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getNodeCount() > 0) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNodeList().hashCode(); + } + if (getEdgeCount() > 0) { + hash = (37 * hash) + EDGE_FIELD_NUMBER; + hash = (53 * hash) + getEdgeList().hashCode(); + } + if (getRootCount() > 0) { + hash = (37 * hash) + ROOT_FIELD_NUMBER; + hash = (53 * hash) + getRootList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom( @@ -23792,66 +25914,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph} - * *
-     *
      * A dependency graph representation.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.DependencyGraph} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_DependencyGraph_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -23864,20 +25997,17 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getNodeFieldBuilder(); getEdgeFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); if (nodeBuilder_ == null) { @@ -23897,10 +26027,6 @@ public Builder 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_DependencyGraph_descriptor; @@ -23948,6 +26074,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -23978,7 +26130,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph node_ = other.node_; bitField0_ = (bitField0_ & ~0x00000001); nodeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodeFieldBuilder() : null; } else { nodeBuilder_.addAllMessages(other.node_); @@ -24004,7 +26156,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph edge_ = other.edge_; bitField0_ = (bitField0_ & ~0x00000002); edgeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEdgeFieldBuilder() : null; } else { edgeBuilder_.addAllMessages(other.edge_); @@ -24021,20 +26173,19 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph } onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); 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; } } @@ -24050,7 +26201,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -24060,7 +26211,6 @@ public Builder mergeFrom( } private int bitField0_; - // repeated .edu.stanford.nlp.pipeline.DependencyGraph.Node node = 1; private java.util.List node_ = java.util.Collections.emptyList(); private void ensureNodeIsMutable() { @@ -24070,7 +26220,7 @@ private void ensureNodeIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.NodeOrBuilder> nodeBuilder_; /** @@ -24202,7 +26352,8 @@ public Builder addAllNode( java.lang.Iterable values) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); - super.addAll(values, node_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, node_); onChanged(); } else { nodeBuilder_.addAllMessages(values); @@ -24285,11 +26436,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder addN getNodeBuilderList() { return getNodeFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 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), @@ -24300,7 +26451,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Node.Builder addN return nodeBuilder_; } - // repeated .edu.stanford.nlp.pipeline.DependencyGraph.Edge edge = 2; private java.util.List edge_ = java.util.Collections.emptyList(); private void ensureEdgeIsMutable() { @@ -24310,7 +26460,7 @@ private void ensureEdgeIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.EdgeOrBuilder> edgeBuilder_; /** @@ -24442,7 +26592,8 @@ public Builder addAllEdge( java.lang.Iterable values) { if (edgeBuilder_ == null) { ensureEdgeIsMutable(); - super.addAll(values, edge_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, edge_); onChanged(); } else { edgeBuilder_.addAllMessages(values); @@ -24525,11 +26676,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder addE getEdgeBuilderList() { return getEdgeFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + edgeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 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), @@ -24540,7 +26691,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Edge.Builder addE return edgeBuilder_; } - // repeated uint32 root = 3 [packed = true]; private java.util.List root_ = java.util.Collections.emptyList(); private void ensureRootIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { @@ -24592,7 +26742,8 @@ public Builder addRoot(int value) { public Builder addAllRoot( java.lang.Iterable values) { ensureRootIsMutable(); - super.addAll(values, root_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, root_); onChanged(); return this; } @@ -24605,22 +26756,59 @@ public Builder clearRoot() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.DependencyGraph) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph DEFAULT_INSTANCE; static { - defaultInstance = new DependencyGraph(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.DependencyGraph) } - public interface CorefChainOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface CorefChainOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.CorefChain) + com.google.protobuf.MessageOrBuilder { - // required int32 chainID = 1; /** * required int32 chainID = 1; */ @@ -24630,7 +26818,6 @@ public interface CorefChainOrBuilder */ int getChainID(); - // repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2; /** * repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2; */ @@ -24655,7 +26842,6 @@ public interface CorefChainOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder getMentionOrBuilder( int index); - // required uint32 representative = 3; /** * required uint32 representative = 3; */ @@ -24666,44 +26852,37 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder getMent int getRepresentative(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain} - * *
-   *
    * A coreference chain.
    * These fields are not *really* optional. CoreNLP will crash without them.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain} */ - public static final class CorefChain extends - com.google.protobuf.GeneratedMessage - implements CorefChainOrBuilder { + public static final class CorefChain extends + com.google.protobuf.GeneratedMessageV3 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) { + private CorefChain(com.google.protobuf.GeneratedMessageV3.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 CorefChain() { + chainID_ = 0; + mention_ = java.util.Collections.emptyList(); + representative_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private CorefChain( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -24732,7 +26911,8 @@ private CorefChain( mention_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } - mention_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.PARSER, extensionRegistry)); + mention_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.PARSER, extensionRegistry)); break; } case 24: { @@ -24746,7 +26926,7 @@ private CorefChain( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mention_ = java.util.Collections.unmodifiableList(mention_); @@ -24760,32 +26940,17 @@ private CorefChain( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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 com.google.protobuf.MessageOrBuilder { + public interface CorefMentionOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.CorefChain.CorefMention) + com.google.protobuf.MessageOrBuilder { - // optional int32 mentionID = 1; /** * optional int32 mentionID = 1; */ @@ -24795,7 +26960,6 @@ public interface CorefMentionOrBuilder */ int getMentionID(); - // optional string mentionType = 2; /** * optional string mentionType = 2; */ @@ -24810,7 +26974,6 @@ public interface CorefMentionOrBuilder com.google.protobuf.ByteString getMentionTypeBytes(); - // optional string number = 3; /** * optional string number = 3; */ @@ -24825,7 +26988,6 @@ public interface CorefMentionOrBuilder com.google.protobuf.ByteString getNumberBytes(); - // optional string gender = 4; /** * optional string gender = 4; */ @@ -24840,7 +27002,6 @@ public interface CorefMentionOrBuilder com.google.protobuf.ByteString getGenderBytes(); - // optional string animacy = 5; /** * optional string animacy = 5; */ @@ -24855,7 +27016,6 @@ public interface CorefMentionOrBuilder com.google.protobuf.ByteString getAnimacyBytes(); - // optional uint32 beginIndex = 6; /** * optional uint32 beginIndex = 6; */ @@ -24865,7 +27025,6 @@ public interface CorefMentionOrBuilder */ int getBeginIndex(); - // optional uint32 endIndex = 7; /** * optional uint32 endIndex = 7; */ @@ -24875,7 +27034,6 @@ public interface CorefMentionOrBuilder */ int getEndIndex(); - // optional uint32 headIndex = 9; /** * optional uint32 headIndex = 9; */ @@ -24885,7 +27043,6 @@ public interface CorefMentionOrBuilder */ int getHeadIndex(); - // optional uint32 sentenceIndex = 10; /** * optional uint32 sentenceIndex = 10; */ @@ -24895,57 +27052,57 @@ public interface CorefMentionOrBuilder */ int getSentenceIndex(); - // optional uint32 position = 11; /** - * optional uint32 position = 11; - * *
        * the second element of position
        * 
+ * + * optional uint32 position = 11; */ boolean hasPosition(); /** - * optional uint32 position = 11; - * *
        * the second element of position
        * 
+ * + * optional uint32 position = 11; */ int getPosition(); } /** * Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain.CorefMention} */ - public static final class CorefMention extends - com.google.protobuf.GeneratedMessage - implements CorefMentionOrBuilder { + public static final class CorefMention extends + com.google.protobuf.GeneratedMessageV3 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) { + private CorefMention(com.google.protobuf.GeneratedMessageV3.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 CorefMention() { + mentionID_ = 0; + mentionType_ = ""; + number_ = ""; + gender_ = ""; + animacy_ = ""; + beginIndex_ = 0; + endIndex_ = 0; + headIndex_ = 0; + sentenceIndex_ = 0; + position_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private CorefMention( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -24970,23 +27127,27 @@ private CorefMention( break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - mentionType_ = input.readBytes(); + mentionType_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - number_ = input.readBytes(); + number_ = bs; break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - gender_ = input.readBytes(); + gender_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - animacy_ = input.readBytes(); + animacy_ = bs; break; } case 48: { @@ -25020,7 +27181,7 @@ private CorefMention( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -25031,30 +27192,14 @@ private CorefMention( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional int32 mentionID = 1; public static final int MENTIONID_FIELD_NUMBER = 1; private int mentionID_; /** @@ -25070,9 +27215,8 @@ public int getMentionID() { return mentionID_; } - // optional string mentionType = 2; public static final int MENTIONTYPE_FIELD_NUMBER = 2; - private java.lang.Object mentionType_; + private volatile java.lang.Object mentionType_; /** * optional string mentionType = 2; */ @@ -25113,9 +27257,8 @@ public java.lang.String getMentionType() { } } - // optional string number = 3; public static final int NUMBER_FIELD_NUMBER = 3; - private java.lang.Object number_; + private volatile java.lang.Object number_; /** * optional string number = 3; */ @@ -25156,9 +27299,8 @@ public java.lang.String getNumber() { } } - // optional string gender = 4; public static final int GENDER_FIELD_NUMBER = 4; - private java.lang.Object gender_; + private volatile java.lang.Object gender_; /** * optional string gender = 4; */ @@ -25199,9 +27341,8 @@ public java.lang.String getGender() { } } - // optional string animacy = 5; public static final int ANIMACY_FIELD_NUMBER = 5; - private java.lang.Object animacy_; + private volatile java.lang.Object animacy_; /** * optional string animacy = 5; */ @@ -25242,7 +27383,6 @@ public java.lang.String getAnimacy() { } } - // optional uint32 beginIndex = 6; public static final int BEGININDEX_FIELD_NUMBER = 6; private int beginIndex_; /** @@ -25258,7 +27398,6 @@ public int getBeginIndex() { return beginIndex_; } - // optional uint32 endIndex = 7; public static final int ENDINDEX_FIELD_NUMBER = 7; private int endIndex_; /** @@ -25274,7 +27413,6 @@ public int getEndIndex() { return endIndex_; } - // optional uint32 headIndex = 9; public static final int HEADINDEX_FIELD_NUMBER = 9; private int headIndex_; /** @@ -25290,7 +27428,6 @@ public int getHeadIndex() { return headIndex_; } - // optional uint32 sentenceIndex = 10; public static final int SENTENCEINDEX_FIELD_NUMBER = 10; private int sentenceIndex_; /** @@ -25306,46 +27443,34 @@ public int getSentenceIndex() { return sentenceIndex_; } - // optional uint32 position = 11; public static final int POSITION_FIELD_NUMBER = 11; private int position_; /** - * optional uint32 position = 11; - * *
        * the second element of position
        * 
+ * + * optional uint32 position = 11; */ public boolean hasPosition() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional uint32 position = 11; - * *
        * the second element of position
        * 
+ * + * optional uint32 position = 11; */ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -25353,21 +27478,20 @@ public final boolean isInitialized() { 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()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mentionType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNumberBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGenderBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gender_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getAnimacyBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, animacy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, beginIndex_); @@ -25384,12 +27508,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt32(11, position_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -25398,20 +27521,16 @@ public int getSerializedSize() { .computeInt32Size(1, mentionID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getMentionTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mentionType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNumberBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGenderBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gender_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getAnimacyBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, animacy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream @@ -25433,16 +27552,127 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, position_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention other = (edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention) obj; + + boolean result = true; + result = result && (hasMentionID() == other.hasMentionID()); + if (hasMentionID()) { + result = result && (getMentionID() + == other.getMentionID()); + } + result = result && (hasMentionType() == other.hasMentionType()); + if (hasMentionType()) { + result = result && getMentionType() + .equals(other.getMentionType()); + } + result = result && (hasNumber() == other.hasNumber()); + if (hasNumber()) { + result = result && getNumber() + .equals(other.getNumber()); + } + result = result && (hasGender() == other.hasGender()); + if (hasGender()) { + result = result && getGender() + .equals(other.getGender()); + } + result = result && (hasAnimacy() == other.hasAnimacy()); + if (hasAnimacy()) { + result = result && getAnimacy() + .equals(other.getAnimacy()); + } + result = result && (hasBeginIndex() == other.hasBeginIndex()); + if (hasBeginIndex()) { + result = result && (getBeginIndex() + == other.getBeginIndex()); + } + result = result && (hasEndIndex() == other.hasEndIndex()); + if (hasEndIndex()) { + result = result && (getEndIndex() + == other.getEndIndex()); + } + result = result && (hasHeadIndex() == other.hasHeadIndex()); + if (hasHeadIndex()) { + result = result && (getHeadIndex() + == other.getHeadIndex()); + } + result = result && (hasSentenceIndex() == other.hasSentenceIndex()); + if (hasSentenceIndex()) { + result = result && (getSentenceIndex() + == other.getSentenceIndex()); + } + result = result && (hasPosition() == other.hasPosition()); + if (hasPosition()) { + result = result && (getPosition() + == other.getPosition()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasMentionID()) { + hash = (37 * hash) + MENTIONID_FIELD_NUMBER; + hash = (53 * hash) + getMentionID(); + } + if (hasMentionType()) { + hash = (37 * hash) + MENTIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + getMentionType().hashCode(); + } + if (hasNumber()) { + hash = (37 * hash) + NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getNumber().hashCode(); + } + if (hasGender()) { + hash = (37 * hash) + GENDER_FIELD_NUMBER; + hash = (53 * hash) + getGender().hashCode(); + } + if (hasAnimacy()) { + hash = (37 * hash) + ANIMACY_FIELD_NUMBER; + hash = (53 * hash) + getAnimacy().hashCode(); + } + if (hasBeginIndex()) { + hash = (37 * hash) + BEGININDEX_FIELD_NUMBER; + hash = (53 * hash) + getBeginIndex(); + } + if (hasEndIndex()) { + hash = (37 * hash) + ENDINDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + } + if (hasHeadIndex()) { + hash = (37 * hash) + HEADINDEX_FIELD_NUMBER; + hash = (53 * hash) + getHeadIndex(); + } + if (hasSentenceIndex()) { + hash = (37 * hash) + SENTENCEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getSentenceIndex(); + } + if (hasPosition()) { + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom( @@ -25468,46 +27698,57 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention pa } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -25515,14 +27756,15 @@ protected Builder newBuilderForType( * Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain.CorefMention} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -25535,18 +27777,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); mentionID_ = 0; @@ -25572,10 +27811,6 @@ public Builder 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_CorefChain_CorefMention_descriptor; @@ -25642,6 +27877,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention buildPart return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -25691,7 +27952,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.Core if (other.hasPosition()) { setPosition(other.getPosition()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -25708,7 +27970,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -25718,7 +27980,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional int32 mentionID = 1; private int mentionID_ ; /** * optional int32 mentionID = 1; @@ -25751,7 +28012,6 @@ public Builder clearMentionID() { return this; } - // optional string mentionType = 2; private java.lang.Object mentionType_ = ""; /** * optional string mentionType = 2; @@ -25765,9 +28025,12 @@ public boolean hasMentionType() { public java.lang.String getMentionType() { java.lang.Object ref = mentionType_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - mentionType_ = s; + 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; @@ -25825,7 +28088,6 @@ public Builder setMentionTypeBytes( return this; } - // optional string number = 3; private java.lang.Object number_ = ""; /** * optional string number = 3; @@ -25839,9 +28101,12 @@ public boolean hasNumber() { public java.lang.String getNumber() { java.lang.Object ref = number_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - number_ = s; + 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; @@ -25899,7 +28164,6 @@ public Builder setNumberBytes( return this; } - // optional string gender = 4; private java.lang.Object gender_ = ""; /** * optional string gender = 4; @@ -25913,9 +28177,12 @@ public boolean hasGender() { public java.lang.String getGender() { java.lang.Object ref = gender_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - gender_ = s; + 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; @@ -25973,7 +28240,6 @@ public Builder setGenderBytes( return this; } - // optional string animacy = 5; private java.lang.Object animacy_ = ""; /** * optional string animacy = 5; @@ -25987,9 +28253,12 @@ public boolean hasAnimacy() { public java.lang.String getAnimacy() { java.lang.Object ref = animacy_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - animacy_ = s; + 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; @@ -26047,7 +28316,6 @@ public Builder setAnimacyBytes( return this; } - // optional uint32 beginIndex = 6; private int beginIndex_ ; /** * optional uint32 beginIndex = 6; @@ -26080,7 +28348,6 @@ public Builder clearBeginIndex() { return this; } - // optional uint32 endIndex = 7; private int endIndex_ ; /** * optional uint32 endIndex = 7; @@ -26113,7 +28380,6 @@ public Builder clearEndIndex() { return this; } - // optional uint32 headIndex = 9; private int headIndex_ ; /** * optional uint32 headIndex = 9; @@ -26146,7 +28412,6 @@ public Builder clearHeadIndex() { return this; } - // optional uint32 sentenceIndex = 10; private int sentenceIndex_ ; /** * optional uint32 sentenceIndex = 10; @@ -26179,34 +28444,33 @@ public Builder clearSentenceIndex() { return this; } - // optional uint32 position = 11; private int position_ ; /** - * optional uint32 position = 11; - * *
          * the second element of position
          * 
+ * + * optional uint32 position = 11; */ public boolean hasPosition() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional uint32 position = 11; - * *
          * the second element of position
          * 
+ * + * optional uint32 position = 11; */ public int getPosition() { return position_; } /** - * optional uint32 position = 11; - * *
          * the second element of position
          * 
+ * + * optional uint32 position = 11; */ public Builder setPosition(int value) { bitField0_ |= 0x00000200; @@ -26215,11 +28479,11 @@ public Builder setPosition(int value) { return this; } /** - * optional uint32 position = 11; - * *
          * the second element of position
          * 
+ * + * optional uint32 position = 11; */ public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000200); @@ -26227,20 +28491,56 @@ public Builder clearPosition() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.CorefChain.CorefMention) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.CorefChain.CorefMention) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention DEFAULT_INSTANCE; static { - defaultInstance = new CorefMention(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.CorefChain.CorefMention) } private int bitField0_; - // required int32 chainID = 1; public static final int CHAINID_FIELD_NUMBER = 1; private int chainID_; /** @@ -26256,7 +28556,6 @@ public int getChainID() { return chainID_; } - // repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2; public static final int MENTION_FIELD_NUMBER = 2; private java.util.List mention_; /** @@ -26292,7 +28591,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder return mention_.get(index); } - // required uint32 representative = 3; public static final int REPRESENTATIVE_FIELD_NUMBER = 3; private int representative_; /** @@ -26308,15 +28606,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasChainID()) { memoizedIsInitialized = 0; @@ -26332,7 +28626,6 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, chainID_); } @@ -26342,12 +28635,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(3, representative_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -26363,16 +28655,61 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, representative_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain other = (edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain) obj; + + boolean result = true; + result = result && (hasChainID() == other.hasChainID()); + if (hasChainID()) { + result = result && (getChainID() + == other.getChainID()); + } + result = result && getMentionList() + .equals(other.getMentionList()); + result = result && (hasRepresentative() == other.hasRepresentative()); + if (hasRepresentative()) { + result = result && (getRepresentative() + == other.getRepresentative()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasChainID()) { + hash = (37 * hash) + CHAINID_FIELD_NUMBER; + hash = (53 * hash) + getChainID(); + } + if (getMentionCount() > 0) { + hash = (37 * hash) + MENTION_FIELD_NUMBER; + hash = (53 * hash) + getMentionList().hashCode(); + } + if (hasRepresentative()) { + hash = (37 * hash) + REPRESENTATIVE_FIELD_NUMBER; + hash = (53 * hash) + getRepresentative(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom( @@ -26398,67 +28735,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.CorefChain} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChainOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_CorefChain_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -26471,19 +28819,16 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMentionFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); chainID_ = 0; @@ -26499,10 +28844,6 @@ public Builder 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_CorefChain_descriptor; @@ -26546,6 +28887,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -26579,7 +28946,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain othe mention_ = other.mention_; bitField0_ = (bitField0_ & ~0x00000002); mentionBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMentionFieldBuilder() : null; } else { mentionBuilder_.addAllMessages(other.mention_); @@ -26589,17 +28956,16 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain othe if (other.hasRepresentative()) { setRepresentative(other.getRepresentative()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasChainID()) { - return false; } if (!hasRepresentative()) { - return false; } return true; @@ -26614,7 +28980,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -26624,7 +28990,6 @@ public Builder mergeFrom( } private int bitField0_; - // required int32 chainID = 1; private int chainID_ ; /** * required int32 chainID = 1; @@ -26657,7 +29022,6 @@ public Builder clearChainID() { return this; } - // repeated .edu.stanford.nlp.pipeline.CorefChain.CorefMention mention = 2; private java.util.List mention_ = java.util.Collections.emptyList(); private void ensureMentionIsMutable() { @@ -26667,7 +29031,7 @@ private void ensureMentionIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMentionOrBuilder> mentionBuilder_; /** @@ -26799,7 +29163,8 @@ public Builder addAllMention( java.lang.Iterable values) { if (mentionBuilder_ == null) { ensureMentionIsMutable(); - super.addAll(values, mention_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mention_); onChanged(); } else { mentionBuilder_.addAllMessages(values); @@ -26882,11 +29247,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder a getMentionBuilderList() { return getMentionFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + mentionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 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), @@ -26897,7 +29262,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.CorefMention.Builder a return mentionBuilder_; } - // required uint32 representative = 3; private int representative_ ; /** * required uint32 representative = 3; @@ -26929,22 +29293,59 @@ public Builder clearRepresentative() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.CorefChain) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.CorefChain) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain DEFAULT_INSTANCE; static { - defaultInstance = new CorefChain(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.CorefChain) } - public interface MentionOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface MentionOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Mention) + com.google.protobuf.MessageOrBuilder { - // optional int32 mentionID = 1; /** * optional int32 mentionID = 1; */ @@ -26954,7 +29355,6 @@ public interface MentionOrBuilder */ int getMentionID(); - // optional string mentionType = 2; /** * optional string mentionType = 2; */ @@ -26969,7 +29369,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getMentionTypeBytes(); - // optional string number = 3; /** * optional string number = 3; */ @@ -26984,7 +29383,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getNumberBytes(); - // optional string gender = 4; /** * optional string gender = 4; */ @@ -26999,7 +29397,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getGenderBytes(); - // optional string animacy = 5; /** * optional string animacy = 5; */ @@ -27014,7 +29411,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getAnimacyBytes(); - // optional string person = 6; /** * optional string person = 6; */ @@ -27029,7 +29425,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getPersonBytes(); - // optional uint32 startIndex = 7; /** * optional uint32 startIndex = 7; */ @@ -27039,7 +29434,6 @@ public interface MentionOrBuilder */ int getStartIndex(); - // optional uint32 endIndex = 9; /** * optional uint32 endIndex = 9; */ @@ -27049,7 +29443,6 @@ public interface MentionOrBuilder */ int getEndIndex(); - // optional uint32 headIndex = 10; /** * optional uint32 headIndex = 10; */ @@ -27059,7 +29452,6 @@ public interface MentionOrBuilder */ int getHeadIndex(); - // optional string headString = 11; /** * optional string headString = 11; */ @@ -27074,7 +29466,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getHeadStringBytes(); - // optional string nerString = 12; /** * optional string nerString = 12; */ @@ -27089,7 +29480,6 @@ public interface MentionOrBuilder com.google.protobuf.ByteString getNerStringBytes(); - // optional uint32 originalRef = 13; /** * optional uint32 originalRef = 13; */ @@ -27099,7 +29489,6 @@ public interface MentionOrBuilder */ int getOriginalRef(); - // optional int32 goldCorefClusterID = 14; /** * optional int32 goldCorefClusterID = 14; */ @@ -27109,7 +29498,6 @@ public interface MentionOrBuilder */ int getGoldCorefClusterID(); - // optional int32 corefClusterID = 15; /** * optional int32 corefClusterID = 15; */ @@ -27119,7 +29507,6 @@ public interface MentionOrBuilder */ int getCorefClusterID(); - // optional uint32 mentionNum = 16; /** * optional uint32 mentionNum = 16; */ @@ -27129,7 +29516,6 @@ public interface MentionOrBuilder */ int getMentionNum(); - // optional uint32 sentNum = 17; /** * optional uint32 sentNum = 17; */ @@ -27139,7 +29525,6 @@ public interface MentionOrBuilder */ int getSentNum(); - // optional uint32 utter = 18; /** * optional uint32 utter = 18; */ @@ -27149,7 +29534,6 @@ public interface MentionOrBuilder */ int getUtter(); - // optional uint32 paragraph = 19; /** * optional uint32 paragraph = 19; */ @@ -27159,7 +29543,6 @@ public interface MentionOrBuilder */ int getParagraph(); - // optional bool isSubject = 20; /** * optional bool isSubject = 20; */ @@ -27169,7 +29552,6 @@ public interface MentionOrBuilder */ boolean getIsSubject(); - // optional bool isDirectObject = 21; /** * optional bool isDirectObject = 21; */ @@ -27179,7 +29561,6 @@ public interface MentionOrBuilder */ boolean getIsDirectObject(); - // optional bool isIndirectObject = 22; /** * optional bool isIndirectObject = 22; */ @@ -27189,7 +29570,6 @@ public interface MentionOrBuilder */ boolean getIsIndirectObject(); - // optional bool isPrepositionObject = 23; /** * optional bool isPrepositionObject = 23; */ @@ -27199,7 +29579,6 @@ public interface MentionOrBuilder */ boolean getIsPrepositionObject(); - // optional bool hasTwin = 24; /** * optional bool hasTwin = 24; */ @@ -27209,7 +29588,6 @@ public interface MentionOrBuilder */ boolean getHasTwin(); - // optional bool generic = 25; /** * optional bool generic = 25; */ @@ -27219,7 +29597,6 @@ public interface MentionOrBuilder */ boolean getGeneric(); - // optional bool isSingleton = 26; /** * optional bool isSingleton = 26; */ @@ -27229,7 +29606,6 @@ public interface MentionOrBuilder */ boolean getIsSingleton(); - // optional bool hasBasicDependency = 27; /** * optional bool hasBasicDependency = 27; */ @@ -27239,7 +29615,6 @@ public interface MentionOrBuilder */ boolean getHasBasicDependency(); - // optional bool hasEnhancedDepenedncy = 28; /** * optional bool hasEnhancedDepenedncy = 28; */ @@ -27249,7 +29624,6 @@ public interface MentionOrBuilder */ boolean getHasEnhancedDepenedncy(); - // optional bool hasContextParseTree = 29; /** * optional bool hasContextParseTree = 29; */ @@ -27259,7 +29633,6 @@ public interface MentionOrBuilder */ boolean getHasContextParseTree(); - // optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ @@ -27273,7 +29646,6 @@ public interface MentionOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndexedWordOrBuilder(); - // optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ @@ -27287,7 +29659,6 @@ public interface MentionOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDependingVerbOrBuilder(); - // optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ @@ -27301,7 +29672,6 @@ public interface MentionOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordOrBuilder(); - // optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ @@ -27315,7 +29685,6 @@ public interface MentionOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerInfoOrBuilder(); - // repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; /** * repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; */ @@ -27340,7 +29709,6 @@ public interface MentionOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getSentenceWordsOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; /** * repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; */ @@ -27365,12 +29733,11 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getSentenceWordsOrB edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBuilder( int index); - // repeated string dependents = 52; /** * repeated string dependents = 52; */ java.util.List - getDependentsList(); + getDependentsList(); /** * repeated string dependents = 52; */ @@ -27385,12 +29752,11 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu com.google.protobuf.ByteString getDependentsBytes(int index); - // repeated string preprocessedTerms = 53; /** * repeated string preprocessedTerms = 53; */ java.util.List - getPreprocessedTermsList(); + getPreprocessedTermsList(); /** * repeated string preprocessedTerms = 53; */ @@ -27405,7 +29771,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu com.google.protobuf.ByteString getPreprocessedTermsBytes(int index); - // repeated int32 appositions = 54; /** * repeated int32 appositions = 54; */ @@ -27419,7 +29784,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu */ int getAppositions(int index); - // repeated int32 predicateNominatives = 55; /** * repeated int32 predicateNominatives = 55; */ @@ -27433,7 +29797,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu */ int getPredicateNominatives(int index); - // repeated int32 relativePronouns = 56; /** * repeated int32 relativePronouns = 56; */ @@ -27447,7 +29810,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu */ int getRelativePronouns(int index); - // repeated int32 listMembers = 57; /** * repeated int32 listMembers = 57; */ @@ -27461,7 +29823,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu */ int getListMembers(int index); - // repeated int32 belongToLists = 58; /** * repeated int32 belongToLists = 58; */ @@ -27478,36 +29839,64 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalSpanOrBu /** * Protobuf type {@code edu.stanford.nlp.pipeline.Mention} */ - public static final class Mention extends - com.google.protobuf.GeneratedMessage - implements MentionOrBuilder { + public static final class Mention extends + com.google.protobuf.GeneratedMessageV3 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) { + private Mention(com.google.protobuf.GeneratedMessageV3.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 Mention() { + 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; + 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 final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Mention( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = @@ -27533,28 +29922,33 @@ private Mention( break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - mentionType_ = input.readBytes(); + mentionType_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - number_ = input.readBytes(); + number_ = bs; break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - gender_ = input.readBytes(); + gender_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - animacy_ = input.readBytes(); + animacy_ = bs; break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - person_ = input.readBytes(); + person_ = bs; break; } case 56: { @@ -27573,13 +29967,15 @@ private Mention( break; } case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - headString_ = input.readBytes(); + headString_ = bs; break; } case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - nerString_ = input.readBytes(); + nerString_ = bs; break; } case 104: { @@ -27724,7 +30120,8 @@ private Mention( sentenceWords_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000001; } - sentenceWords_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry)); + sentenceWords_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry)); break; } case 410: { @@ -27732,23 +30129,26 @@ private Mention( originalSpan_ = new java.util.ArrayList(); mutable_bitField1_ |= 0x00000002; } - originalSpan_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.PARSER, extensionRegistry)); + 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(input.readBytes()); + 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(input.readBytes()); + preprocessedTerms_.add(bs); break; } case 432: { @@ -27862,7 +30262,7 @@ private Mention( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField1_ & 0x00000001) == 0x00000001)) { sentenceWords_ = java.util.Collections.unmodifiableList(sentenceWords_); @@ -27871,10 +30271,10 @@ private Mention( originalSpan_ = java.util.Collections.unmodifiableList(originalSpan_); } if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) { - dependents_ = new com.google.protobuf.UnmodifiableLazyStringList(dependents_); + dependents_ = dependents_.getUnmodifiableView(); } if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) { - preprocessedTerms_ = new com.google.protobuf.UnmodifiableLazyStringList(preprocessedTerms_); + preprocessedTerms_ = preprocessedTerms_.getUnmodifiableView(); } if (((mutable_bitField1_ & 0x00000010) == 0x00000010)) { appositions_ = java.util.Collections.unmodifiableList(appositions_); @@ -27900,30 +30300,14 @@ private Mention( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Mention_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional int32 mentionID = 1; public static final int MENTIONID_FIELD_NUMBER = 1; private int mentionID_; /** @@ -27939,9 +30323,8 @@ public int getMentionID() { return mentionID_; } - // optional string mentionType = 2; public static final int MENTIONTYPE_FIELD_NUMBER = 2; - private java.lang.Object mentionType_; + private volatile java.lang.Object mentionType_; /** * optional string mentionType = 2; */ @@ -27982,9 +30365,8 @@ public java.lang.String getMentionType() { } } - // optional string number = 3; public static final int NUMBER_FIELD_NUMBER = 3; - private java.lang.Object number_; + private volatile java.lang.Object number_; /** * optional string number = 3; */ @@ -28025,9 +30407,8 @@ public java.lang.String getNumber() { } } - // optional string gender = 4; public static final int GENDER_FIELD_NUMBER = 4; - private java.lang.Object gender_; + private volatile java.lang.Object gender_; /** * optional string gender = 4; */ @@ -28068,9 +30449,8 @@ public java.lang.String getGender() { } } - // optional string animacy = 5; public static final int ANIMACY_FIELD_NUMBER = 5; - private java.lang.Object animacy_; + private volatile java.lang.Object animacy_; /** * optional string animacy = 5; */ @@ -28111,9 +30491,8 @@ public java.lang.String getAnimacy() { } } - // optional string person = 6; public static final int PERSON_FIELD_NUMBER = 6; - private java.lang.Object person_; + private volatile java.lang.Object person_; /** * optional string person = 6; */ @@ -28154,7 +30533,6 @@ public java.lang.String getPerson() { } } - // optional uint32 startIndex = 7; public static final int STARTINDEX_FIELD_NUMBER = 7; private int startIndex_; /** @@ -28170,7 +30548,6 @@ public int getStartIndex() { return startIndex_; } - // optional uint32 endIndex = 9; public static final int ENDINDEX_FIELD_NUMBER = 9; private int endIndex_; /** @@ -28186,7 +30563,6 @@ public int getEndIndex() { return endIndex_; } - // optional uint32 headIndex = 10; public static final int HEADINDEX_FIELD_NUMBER = 10; private int headIndex_; /** @@ -28202,9 +30578,8 @@ public int getHeadIndex() { return headIndex_; } - // optional string headString = 11; public static final int HEADSTRING_FIELD_NUMBER = 11; - private java.lang.Object headString_; + private volatile java.lang.Object headString_; /** * optional string headString = 11; */ @@ -28245,9 +30620,8 @@ public java.lang.String getHeadString() { } } - // optional string nerString = 12; public static final int NERSTRING_FIELD_NUMBER = 12; - private java.lang.Object nerString_; + private volatile java.lang.Object nerString_; /** * optional string nerString = 12; */ @@ -28288,7 +30662,6 @@ public java.lang.String getNerString() { } } - // optional uint32 originalRef = 13; public static final int ORIGINALREF_FIELD_NUMBER = 13; private int originalRef_; /** @@ -28304,7 +30677,6 @@ public int getOriginalRef() { return originalRef_; } - // optional int32 goldCorefClusterID = 14; public static final int GOLDCOREFCLUSTERID_FIELD_NUMBER = 14; private int goldCorefClusterID_; /** @@ -28320,7 +30692,6 @@ public int getGoldCorefClusterID() { return goldCorefClusterID_; } - // optional int32 corefClusterID = 15; public static final int COREFCLUSTERID_FIELD_NUMBER = 15; private int corefClusterID_; /** @@ -28336,7 +30707,6 @@ public int getCorefClusterID() { return corefClusterID_; } - // optional uint32 mentionNum = 16; public static final int MENTIONNUM_FIELD_NUMBER = 16; private int mentionNum_; /** @@ -28352,7 +30722,6 @@ public int getMentionNum() { return mentionNum_; } - // optional uint32 sentNum = 17; public static final int SENTNUM_FIELD_NUMBER = 17; private int sentNum_; /** @@ -28368,7 +30737,6 @@ public int getSentNum() { return sentNum_; } - // optional uint32 utter = 18; public static final int UTTER_FIELD_NUMBER = 18; private int utter_; /** @@ -28384,7 +30752,6 @@ public int getUtter() { return utter_; } - // optional uint32 paragraph = 19; public static final int PARAGRAPH_FIELD_NUMBER = 19; private int paragraph_; /** @@ -28400,7 +30767,6 @@ public int getParagraph() { return paragraph_; } - // optional bool isSubject = 20; public static final int ISSUBJECT_FIELD_NUMBER = 20; private boolean isSubject_; /** @@ -28416,7 +30782,6 @@ public boolean getIsSubject() { return isSubject_; } - // optional bool isDirectObject = 21; public static final int ISDIRECTOBJECT_FIELD_NUMBER = 21; private boolean isDirectObject_; /** @@ -28432,7 +30797,6 @@ public boolean getIsDirectObject() { return isDirectObject_; } - // optional bool isIndirectObject = 22; public static final int ISINDIRECTOBJECT_FIELD_NUMBER = 22; private boolean isIndirectObject_; /** @@ -28448,7 +30812,6 @@ public boolean getIsIndirectObject() { return isIndirectObject_; } - // optional bool isPrepositionObject = 23; public static final int ISPREPOSITIONOBJECT_FIELD_NUMBER = 23; private boolean isPrepositionObject_; /** @@ -28464,7 +30827,6 @@ public boolean getIsPrepositionObject() { return isPrepositionObject_; } - // optional bool hasTwin = 24; public static final int HASTWIN_FIELD_NUMBER = 24; private boolean hasTwin_; /** @@ -28480,7 +30842,6 @@ public boolean getHasTwin() { return hasTwin_; } - // optional bool generic = 25; public static final int GENERIC_FIELD_NUMBER = 25; private boolean generic_; /** @@ -28496,7 +30857,6 @@ public boolean getGeneric() { return generic_; } - // optional bool isSingleton = 26; public static final int ISSINGLETON_FIELD_NUMBER = 26; private boolean isSingleton_; /** @@ -28512,7 +30872,6 @@ public boolean getIsSingleton() { return isSingleton_; } - // optional bool hasBasicDependency = 27; public static final int HASBASICDEPENDENCY_FIELD_NUMBER = 27; private boolean hasBasicDependency_; /** @@ -28528,7 +30887,6 @@ public boolean getHasBasicDependency() { return hasBasicDependency_; } - // optional bool hasEnhancedDepenedncy = 28; public static final int HASENHANCEDDEPENEDNCY_FIELD_NUMBER = 28; private boolean hasEnhancedDepenedncy_; /** @@ -28544,7 +30902,6 @@ public boolean getHasEnhancedDepenedncy() { return hasEnhancedDepenedncy_; } - // optional bool hasContextParseTree = 29; public static final int HASCONTEXTPARSETREE_FIELD_NUMBER = 29; private boolean hasContextParseTree_; /** @@ -28560,7 +30917,6 @@ public boolean getHasContextParseTree() { return hasContextParseTree_; } - // optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; public static final int HEADINDEXEDWORD_FIELD_NUMBER = 30; private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headIndexedWord_; /** @@ -28573,16 +30929,15 @@ public boolean hasHeadIndexedWord() { * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadIndexedWord() { - return headIndexedWord_; + return headIndexedWord_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headIndexedWord_; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndexedWordOrBuilder() { - return headIndexedWord_; + return headIndexedWord_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headIndexedWord_; } - // optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; public static final int DEPENDINGVERB_FIELD_NUMBER = 31; private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord dependingVerb_; /** @@ -28595,16 +30950,15 @@ public boolean hasDependingVerb() { * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDependingVerb() { - return dependingVerb_; + return dependingVerb_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : dependingVerb_; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDependingVerbOrBuilder() { - return dependingVerb_; + return dependingVerb_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : dependingVerb_; } - // optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; public static final int HEADWORD_FIELD_NUMBER = 32; private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headWord_; /** @@ -28617,16 +30971,15 @@ public boolean hasHeadWord() { * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadWord() { - return headWord_; + return headWord_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headWord_; } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordOrBuilder() { - return headWord_; + return headWord_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headWord_; } - // optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; public static final int SPEAKERINFO_FIELD_NUMBER = 33; private edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo speakerInfo_; /** @@ -28639,16 +30992,15 @@ public boolean hasSpeakerInfo() { * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getSpeakerInfo() { - return speakerInfo_; + return speakerInfo_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance() : speakerInfo_; } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerInfoOrBuilder() { - return speakerInfo_; + return speakerInfo_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance() : speakerInfo_; } - // repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; public static final int SENTENCEWORDS_FIELD_NUMBER = 50; private java.util.List sentenceWords_; /** @@ -28684,7 +31036,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getSentenceW return sentenceWords_.get(index); } - // repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; public static final int ORIGINALSPAN_FIELD_NUMBER = 51; private java.util.List originalSpan_; /** @@ -28720,13 +31071,12 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getOriginalS return originalSpan_.get(index); } - // repeated string dependents = 52; public static final int DEPENDENTS_FIELD_NUMBER = 52; private com.google.protobuf.LazyStringList dependents_; /** * repeated string dependents = 52; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getDependentsList() { return dependents_; } @@ -28750,13 +31100,12 @@ public java.lang.String getDependents(int index) { return dependents_.getByteString(index); } - // repeated string preprocessedTerms = 53; public static final int PREPROCESSEDTERMS_FIELD_NUMBER = 53; private com.google.protobuf.LazyStringList preprocessedTerms_; /** * repeated string preprocessedTerms = 53; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getPreprocessedTermsList() { return preprocessedTerms_; } @@ -28780,7 +31129,6 @@ public java.lang.String getPreprocessedTerms(int index) { return preprocessedTerms_.getByteString(index); } - // repeated int32 appositions = 54; public static final int APPOSITIONS_FIELD_NUMBER = 54; private java.util.List appositions_; /** @@ -28803,7 +31151,6 @@ public int getAppositions(int index) { return appositions_.get(index); } - // repeated int32 predicateNominatives = 55; public static final int PREDICATENOMINATIVES_FIELD_NUMBER = 55; private java.util.List predicateNominatives_; /** @@ -28826,7 +31173,6 @@ public int getPredicateNominatives(int index) { return predicateNominatives_.get(index); } - // repeated int32 relativePronouns = 56; public static final int RELATIVEPRONOUNS_FIELD_NUMBER = 56; private java.util.List relativePronouns_; /** @@ -28849,7 +31195,6 @@ public int getRelativePronouns(int index) { return relativePronouns_.get(index); } - // repeated int32 listMembers = 57; public static final int LISTMEMBERS_FIELD_NUMBER = 57; private java.util.List listMembers_; /** @@ -28872,7 +31217,6 @@ public int getListMembers(int index) { return listMembers_.get(index); } - // repeated int32 belongToLists = 58; public static final int BELONGTOLISTS_FIELD_NUMBER = 58; private java.util.List belongToLists_; /** @@ -28895,53 +31239,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -28949,24 +31251,23 @@ public final boolean isInitialized() { 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()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mentionType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNumberBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getGenderBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, gender_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getAnimacyBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, animacy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getPersonBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, person_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, startIndex_); @@ -28978,10 +31279,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(10, headIndex_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(11, getHeadStringBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, headString_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, getNerStringBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, nerString_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(13, originalRef_); @@ -29035,16 +31336,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBool(29, hasContextParseTree_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(30, headIndexedWord_); + output.writeMessage(30, getHeadIndexedWord()); } if (((bitField0_ & 0x20000000) == 0x20000000)) { - output.writeMessage(31, dependingVerb_); + output.writeMessage(31, getDependingVerb()); } if (((bitField0_ & 0x40000000) == 0x40000000)) { - output.writeMessage(32, headWord_); + output.writeMessage(32, getHeadWord()); } if (((bitField0_ & 0x80000000) == 0x80000000)) { - output.writeMessage(33, speakerInfo_); + output.writeMessage(33, getSpeakerInfo()); } for (int i = 0; i < sentenceWords_.size(); i++) { output.writeMessage(50, sentenceWords_.get(i)); @@ -29053,10 +31354,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(51, originalSpan_.get(i)); } for (int i = 0; i < dependents_.size(); i++) { - output.writeBytes(52, dependents_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 52, dependents_.getRaw(i)); } for (int i = 0; i < preprocessedTerms_.size(); i++) { - output.writeBytes(53, preprocessedTerms_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 53, preprocessedTerms_.getRaw(i)); } for (int i = 0; i < appositions_.size(); i++) { output.writeInt32(54, appositions_.get(i)); @@ -29073,12 +31374,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < belongToLists_.size(); i++) { output.writeInt32(58, belongToLists_.get(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -29087,24 +31387,19 @@ public int getSerializedSize() { .computeInt32Size(1, mentionID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getMentionTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mentionType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNumberBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getGenderBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, gender_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getAnimacyBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, animacy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getPersonBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, person_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream @@ -29119,12 +31414,10 @@ public int getSerializedSize() { .computeUInt32Size(10, headIndex_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getHeadStringBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, headString_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getNerStringBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, nerString_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream @@ -29196,19 +31489,19 @@ public int getSerializedSize() { } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, headIndexedWord_); + .computeMessageSize(30, getHeadIndexedWord()); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, dependingVerb_); + .computeMessageSize(31, getDependingVerb()); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, headWord_); + .computeMessageSize(32, getHeadWord()); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, speakerInfo_); + .computeMessageSize(33, getSpeakerInfo()); } for (int i = 0; i < sentenceWords_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -29221,8 +31514,7 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < dependents_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(dependents_.getByteString(i)); + dataSize += computeStringSizeNoTag(dependents_.getRaw(i)); } size += dataSize; size += 2 * getDependentsList().size(); @@ -29230,8 +31522,7 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < preprocessedTerms_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(preprocessedTerms_.getByteString(i)); + dataSize += computeStringSizeNoTag(preprocessedTerms_.getRaw(i)); } size += dataSize; size += 2 * getPreprocessedTermsList().size(); @@ -29281,16 +31572,389 @@ public int getSerializedSize() { size += dataSize; size += 2 * getBelongToListsList().size(); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Mention)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Mention other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Mention) obj; + + boolean result = true; + result = result && (hasMentionID() == other.hasMentionID()); + if (hasMentionID()) { + result = result && (getMentionID() + == other.getMentionID()); + } + result = result && (hasMentionType() == other.hasMentionType()); + if (hasMentionType()) { + result = result && getMentionType() + .equals(other.getMentionType()); + } + result = result && (hasNumber() == other.hasNumber()); + if (hasNumber()) { + result = result && getNumber() + .equals(other.getNumber()); + } + result = result && (hasGender() == other.hasGender()); + if (hasGender()) { + result = result && getGender() + .equals(other.getGender()); + } + result = result && (hasAnimacy() == other.hasAnimacy()); + if (hasAnimacy()) { + result = result && getAnimacy() + .equals(other.getAnimacy()); + } + result = result && (hasPerson() == other.hasPerson()); + if (hasPerson()) { + result = result && getPerson() + .equals(other.getPerson()); + } + result = result && (hasStartIndex() == other.hasStartIndex()); + if (hasStartIndex()) { + result = result && (getStartIndex() + == other.getStartIndex()); + } + result = result && (hasEndIndex() == other.hasEndIndex()); + if (hasEndIndex()) { + result = result && (getEndIndex() + == other.getEndIndex()); + } + result = result && (hasHeadIndex() == other.hasHeadIndex()); + if (hasHeadIndex()) { + result = result && (getHeadIndex() + == other.getHeadIndex()); + } + result = result && (hasHeadString() == other.hasHeadString()); + if (hasHeadString()) { + result = result && getHeadString() + .equals(other.getHeadString()); + } + result = result && (hasNerString() == other.hasNerString()); + if (hasNerString()) { + result = result && getNerString() + .equals(other.getNerString()); + } + result = result && (hasOriginalRef() == other.hasOriginalRef()); + if (hasOriginalRef()) { + result = result && (getOriginalRef() + == other.getOriginalRef()); + } + result = result && (hasGoldCorefClusterID() == other.hasGoldCorefClusterID()); + if (hasGoldCorefClusterID()) { + result = result && (getGoldCorefClusterID() + == other.getGoldCorefClusterID()); + } + result = result && (hasCorefClusterID() == other.hasCorefClusterID()); + if (hasCorefClusterID()) { + result = result && (getCorefClusterID() + == other.getCorefClusterID()); + } + result = result && (hasMentionNum() == other.hasMentionNum()); + if (hasMentionNum()) { + result = result && (getMentionNum() + == other.getMentionNum()); + } + result = result && (hasSentNum() == other.hasSentNum()); + if (hasSentNum()) { + result = result && (getSentNum() + == other.getSentNum()); + } + result = result && (hasUtter() == other.hasUtter()); + if (hasUtter()) { + result = result && (getUtter() + == other.getUtter()); + } + result = result && (hasParagraph() == other.hasParagraph()); + if (hasParagraph()) { + result = result && (getParagraph() + == other.getParagraph()); + } + result = result && (hasIsSubject() == other.hasIsSubject()); + if (hasIsSubject()) { + result = result && (getIsSubject() + == other.getIsSubject()); + } + result = result && (hasIsDirectObject() == other.hasIsDirectObject()); + if (hasIsDirectObject()) { + result = result && (getIsDirectObject() + == other.getIsDirectObject()); + } + result = result && (hasIsIndirectObject() == other.hasIsIndirectObject()); + if (hasIsIndirectObject()) { + result = result && (getIsIndirectObject() + == other.getIsIndirectObject()); + } + result = result && (hasIsPrepositionObject() == other.hasIsPrepositionObject()); + if (hasIsPrepositionObject()) { + result = result && (getIsPrepositionObject() + == other.getIsPrepositionObject()); + } + result = result && (hasHasTwin() == other.hasHasTwin()); + if (hasHasTwin()) { + result = result && (getHasTwin() + == other.getHasTwin()); + } + result = result && (hasGeneric() == other.hasGeneric()); + if (hasGeneric()) { + result = result && (getGeneric() + == other.getGeneric()); + } + result = result && (hasIsSingleton() == other.hasIsSingleton()); + if (hasIsSingleton()) { + result = result && (getIsSingleton() + == other.getIsSingleton()); + } + result = result && (hasHasBasicDependency() == other.hasHasBasicDependency()); + if (hasHasBasicDependency()) { + result = result && (getHasBasicDependency() + == other.getHasBasicDependency()); + } + result = result && (hasHasEnhancedDepenedncy() == other.hasHasEnhancedDepenedncy()); + if (hasHasEnhancedDepenedncy()) { + result = result && (getHasEnhancedDepenedncy() + == other.getHasEnhancedDepenedncy()); + } + result = result && (hasHasContextParseTree() == other.hasHasContextParseTree()); + if (hasHasContextParseTree()) { + result = result && (getHasContextParseTree() + == other.getHasContextParseTree()); + } + result = result && (hasHeadIndexedWord() == other.hasHeadIndexedWord()); + if (hasHeadIndexedWord()) { + result = result && getHeadIndexedWord() + .equals(other.getHeadIndexedWord()); + } + result = result && (hasDependingVerb() == other.hasDependingVerb()); + if (hasDependingVerb()) { + result = result && getDependingVerb() + .equals(other.getDependingVerb()); + } + result = result && (hasHeadWord() == other.hasHeadWord()); + if (hasHeadWord()) { + result = result && getHeadWord() + .equals(other.getHeadWord()); + } + result = result && (hasSpeakerInfo() == other.hasSpeakerInfo()); + if (hasSpeakerInfo()) { + result = result && getSpeakerInfo() + .equals(other.getSpeakerInfo()); + } + result = result && getSentenceWordsList() + .equals(other.getSentenceWordsList()); + result = result && getOriginalSpanList() + .equals(other.getOriginalSpanList()); + result = result && getDependentsList() + .equals(other.getDependentsList()); + result = result && getPreprocessedTermsList() + .equals(other.getPreprocessedTermsList()); + result = result && getAppositionsList() + .equals(other.getAppositionsList()); + result = result && getPredicateNominativesList() + .equals(other.getPredicateNominativesList()); + result = result && getRelativePronounsList() + .equals(other.getRelativePronounsList()); + result = result && getListMembersList() + .equals(other.getListMembersList()); + result = result && getBelongToListsList() + .equals(other.getBelongToListsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasMentionID()) { + hash = (37 * hash) + MENTIONID_FIELD_NUMBER; + hash = (53 * hash) + getMentionID(); + } + if (hasMentionType()) { + hash = (37 * hash) + MENTIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + getMentionType().hashCode(); + } + if (hasNumber()) { + hash = (37 * hash) + NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getNumber().hashCode(); + } + if (hasGender()) { + hash = (37 * hash) + GENDER_FIELD_NUMBER; + hash = (53 * hash) + getGender().hashCode(); + } + if (hasAnimacy()) { + hash = (37 * hash) + ANIMACY_FIELD_NUMBER; + hash = (53 * hash) + getAnimacy().hashCode(); + } + if (hasPerson()) { + hash = (37 * hash) + PERSON_FIELD_NUMBER; + hash = (53 * hash) + getPerson().hashCode(); + } + if (hasStartIndex()) { + hash = (37 * hash) + STARTINDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + } + if (hasEndIndex()) { + hash = (37 * hash) + ENDINDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + } + if (hasHeadIndex()) { + hash = (37 * hash) + HEADINDEX_FIELD_NUMBER; + hash = (53 * hash) + getHeadIndex(); + } + if (hasHeadString()) { + hash = (37 * hash) + HEADSTRING_FIELD_NUMBER; + hash = (53 * hash) + getHeadString().hashCode(); + } + if (hasNerString()) { + hash = (37 * hash) + NERSTRING_FIELD_NUMBER; + hash = (53 * hash) + getNerString().hashCode(); + } + if (hasOriginalRef()) { + hash = (37 * hash) + ORIGINALREF_FIELD_NUMBER; + hash = (53 * hash) + getOriginalRef(); + } + if (hasGoldCorefClusterID()) { + hash = (37 * hash) + GOLDCOREFCLUSTERID_FIELD_NUMBER; + hash = (53 * hash) + getGoldCorefClusterID(); + } + if (hasCorefClusterID()) { + hash = (37 * hash) + COREFCLUSTERID_FIELD_NUMBER; + hash = (53 * hash) + getCorefClusterID(); + } + if (hasMentionNum()) { + hash = (37 * hash) + MENTIONNUM_FIELD_NUMBER; + hash = (53 * hash) + getMentionNum(); + } + if (hasSentNum()) { + hash = (37 * hash) + SENTNUM_FIELD_NUMBER; + hash = (53 * hash) + getSentNum(); + } + if (hasUtter()) { + hash = (37 * hash) + UTTER_FIELD_NUMBER; + hash = (53 * hash) + getUtter(); + } + if (hasParagraph()) { + hash = (37 * hash) + PARAGRAPH_FIELD_NUMBER; + hash = (53 * hash) + getParagraph(); + } + if (hasIsSubject()) { + hash = (37 * hash) + ISSUBJECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSubject()); + } + if (hasIsDirectObject()) { + hash = (37 * hash) + ISDIRECTOBJECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsDirectObject()); + } + if (hasIsIndirectObject()) { + hash = (37 * hash) + ISINDIRECTOBJECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsIndirectObject()); + } + if (hasIsPrepositionObject()) { + hash = (37 * hash) + ISPREPOSITIONOBJECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrepositionObject()); + } + if (hasHasTwin()) { + hash = (37 * hash) + HASTWIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasTwin()); + } + if (hasGeneric()) { + hash = (37 * hash) + GENERIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGeneric()); + } + if (hasIsSingleton()) { + hash = (37 * hash) + ISSINGLETON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSingleton()); + } + if (hasHasBasicDependency()) { + hash = (37 * hash) + HASBASICDEPENDENCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasBasicDependency()); + } + if (hasHasEnhancedDepenedncy()) { + hash = (37 * hash) + HASENHANCEDDEPENEDNCY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasEnhancedDepenedncy()); + } + if (hasHasContextParseTree()) { + hash = (37 * hash) + HASCONTEXTPARSETREE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasContextParseTree()); + } + if (hasHeadIndexedWord()) { + hash = (37 * hash) + HEADINDEXEDWORD_FIELD_NUMBER; + hash = (53 * hash) + getHeadIndexedWord().hashCode(); + } + if (hasDependingVerb()) { + hash = (37 * hash) + DEPENDINGVERB_FIELD_NUMBER; + hash = (53 * hash) + getDependingVerb().hashCode(); + } + if (hasHeadWord()) { + hash = (37 * hash) + HEADWORD_FIELD_NUMBER; + hash = (53 * hash) + getHeadWord().hashCode(); + } + if (hasSpeakerInfo()) { + hash = (37 * hash) + SPEAKERINFO_FIELD_NUMBER; + hash = (53 * hash) + getSpeakerInfo().hashCode(); + } + if (getSentenceWordsCount() > 0) { + hash = (37 * hash) + SENTENCEWORDS_FIELD_NUMBER; + hash = (53 * hash) + getSentenceWordsList().hashCode(); + } + if (getOriginalSpanCount() > 0) { + hash = (37 * hash) + ORIGINALSPAN_FIELD_NUMBER; + hash = (53 * hash) + getOriginalSpanList().hashCode(); + } + if (getDependentsCount() > 0) { + hash = (37 * hash) + DEPENDENTS_FIELD_NUMBER; + hash = (53 * hash) + getDependentsList().hashCode(); + } + if (getPreprocessedTermsCount() > 0) { + hash = (37 * hash) + PREPROCESSEDTERMS_FIELD_NUMBER; + hash = (53 * hash) + getPreprocessedTermsList().hashCode(); + } + if (getAppositionsCount() > 0) { + hash = (37 * hash) + APPOSITIONS_FIELD_NUMBER; + hash = (53 * hash) + getAppositionsList().hashCode(); + } + if (getPredicateNominativesCount() > 0) { + hash = (37 * hash) + PREDICATENOMINATIVES_FIELD_NUMBER; + hash = (53 * hash) + getPredicateNominativesList().hashCode(); + } + if (getRelativePronounsCount() > 0) { + hash = (37 * hash) + RELATIVEPRONOUNS_FIELD_NUMBER; + hash = (53 * hash) + getRelativePronounsList().hashCode(); + } + if (getListMembersCount() > 0) { + hash = (37 * hash) + LISTMEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getListMembersList().hashCode(); + } + if (getBelongToListsCount() > 0) { + hash = (37 * hash) + BELONGTOLISTS_FIELD_NUMBER; + hash = (53 * hash) + getBelongToListsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention parseFrom( @@ -29316,46 +31980,57 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -29363,14 +32038,15 @@ protected Builder newBuilderForType( * Protobuf type {@code edu.stanford.nlp.pipeline.Mention} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.MentionOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Mention_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -29383,12 +32059,13 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadIndexedWordFieldBuilder(); getDependingVerbFieldBuilder(); getHeadWordFieldBuilder(); @@ -29397,10 +32074,6 @@ private void maybeForceBuilderInitialization() { getOriginalSpanFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); mentionID_ = 0; @@ -29460,25 +32133,25 @@ public Builder clear() { hasContextParseTree_ = false; bitField0_ = (bitField0_ & ~0x08000000); if (headIndexedWordBuilder_ == null) { - headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); + headIndexedWord_ = null; } else { headIndexedWordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); if (dependingVerbBuilder_ == null) { - dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); + dependingVerb_ = null; } else { dependingVerbBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x20000000); if (headWordBuilder_ == null) { - headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); + headWord_ = null; } else { headWordBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x40000000); if (speakerInfoBuilder_ == null) { - speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); + speakerInfo_ = null; } else { speakerInfoBuilder_.clear(); } @@ -29512,10 +32185,6 @@ public Builder 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_Mention_descriptor; @@ -29701,14 +32370,12 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention buildPartial() { result.originalSpan_ = originalSpanBuilder_.build(); } if (((bitField1_ & 0x00000004) == 0x00000004)) { - dependents_ = new com.google.protobuf.UnmodifiableLazyStringList( - dependents_); + dependents_ = dependents_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00000004); } result.dependents_ = dependents_; if (((bitField1_ & 0x00000008) == 0x00000008)) { - preprocessedTerms_ = new com.google.protobuf.UnmodifiableLazyStringList( - preprocessedTerms_); + preprocessedTerms_ = preprocessedTerms_.getUnmodifiableView(); bitField1_ = (bitField1_ & ~0x00000008); } result.preprocessedTerms_ = preprocessedTerms_; @@ -29742,6 +32409,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -29882,7 +32575,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention other) sentenceWords_ = other.sentenceWords_; bitField1_ = (bitField1_ & ~0x00000001); sentenceWordsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSentenceWordsFieldBuilder() : null; } else { sentenceWordsBuilder_.addAllMessages(other.sentenceWords_); @@ -29908,7 +32601,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention other) originalSpan_ = other.originalSpan_; bitField1_ = (bitField1_ & ~0x00000002); originalSpanBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOriginalSpanFieldBuilder() : null; } else { originalSpanBuilder_.addAllMessages(other.originalSpan_); @@ -29985,7 +32678,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Mention other) } onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -30002,7 +32696,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Mention) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -30013,7 +32707,6 @@ public Builder mergeFrom( private int bitField0_; private int bitField1_; - // optional int32 mentionID = 1; private int mentionID_ ; /** * optional int32 mentionID = 1; @@ -30046,7 +32739,6 @@ public Builder clearMentionID() { return this; } - // optional string mentionType = 2; private java.lang.Object mentionType_ = ""; /** * optional string mentionType = 2; @@ -30060,9 +32752,12 @@ public boolean hasMentionType() { public java.lang.String getMentionType() { java.lang.Object ref = mentionType_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - mentionType_ = s; + 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; @@ -30120,7 +32815,6 @@ public Builder setMentionTypeBytes( return this; } - // optional string number = 3; private java.lang.Object number_ = ""; /** * optional string number = 3; @@ -30134,9 +32828,12 @@ public boolean hasNumber() { public java.lang.String getNumber() { java.lang.Object ref = number_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - number_ = s; + 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; @@ -30194,7 +32891,6 @@ public Builder setNumberBytes( return this; } - // optional string gender = 4; private java.lang.Object gender_ = ""; /** * optional string gender = 4; @@ -30208,9 +32904,12 @@ public boolean hasGender() { public java.lang.String getGender() { java.lang.Object ref = gender_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - gender_ = s; + 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; @@ -30268,7 +32967,6 @@ public Builder setGenderBytes( return this; } - // optional string animacy = 5; private java.lang.Object animacy_ = ""; /** * optional string animacy = 5; @@ -30282,9 +32980,12 @@ public boolean hasAnimacy() { public java.lang.String getAnimacy() { java.lang.Object ref = animacy_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - animacy_ = s; + 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; @@ -30342,7 +33043,6 @@ public Builder setAnimacyBytes( return this; } - // optional string person = 6; private java.lang.Object person_ = ""; /** * optional string person = 6; @@ -30356,9 +33056,12 @@ public boolean hasPerson() { public java.lang.String getPerson() { java.lang.Object ref = person_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - person_ = s; + 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; @@ -30416,7 +33119,6 @@ public Builder setPersonBytes( return this; } - // optional uint32 startIndex = 7; private int startIndex_ ; /** * optional uint32 startIndex = 7; @@ -30449,7 +33151,6 @@ public Builder clearStartIndex() { return this; } - // optional uint32 endIndex = 9; private int endIndex_ ; /** * optional uint32 endIndex = 9; @@ -30482,7 +33183,6 @@ public Builder clearEndIndex() { return this; } - // optional uint32 headIndex = 10; private int headIndex_ ; /** * optional uint32 headIndex = 10; @@ -30515,7 +33215,6 @@ public Builder clearHeadIndex() { return this; } - // optional string headString = 11; private java.lang.Object headString_ = ""; /** * optional string headString = 11; @@ -30529,9 +33228,12 @@ public boolean hasHeadString() { public java.lang.String getHeadString() { java.lang.Object ref = headString_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - headString_ = s; + 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; @@ -30589,7 +33291,6 @@ public Builder setHeadStringBytes( return this; } - // optional string nerString = 12; private java.lang.Object nerString_ = ""; /** * optional string nerString = 12; @@ -30603,9 +33304,12 @@ public boolean hasNerString() { public java.lang.String getNerString() { java.lang.Object ref = nerString_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - nerString_ = s; + 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; @@ -30663,7 +33367,6 @@ public Builder setNerStringBytes( return this; } - // optional uint32 originalRef = 13; private int originalRef_ ; /** * optional uint32 originalRef = 13; @@ -30696,7 +33399,6 @@ public Builder clearOriginalRef() { return this; } - // optional int32 goldCorefClusterID = 14; private int goldCorefClusterID_ ; /** * optional int32 goldCorefClusterID = 14; @@ -30729,7 +33431,6 @@ public Builder clearGoldCorefClusterID() { return this; } - // optional int32 corefClusterID = 15; private int corefClusterID_ ; /** * optional int32 corefClusterID = 15; @@ -30762,7 +33463,6 @@ public Builder clearCorefClusterID() { return this; } - // optional uint32 mentionNum = 16; private int mentionNum_ ; /** * optional uint32 mentionNum = 16; @@ -30795,7 +33495,6 @@ public Builder clearMentionNum() { return this; } - // optional uint32 sentNum = 17; private int sentNum_ ; /** * optional uint32 sentNum = 17; @@ -30828,7 +33527,6 @@ public Builder clearSentNum() { return this; } - // optional uint32 utter = 18; private int utter_ ; /** * optional uint32 utter = 18; @@ -30861,7 +33559,6 @@ public Builder clearUtter() { return this; } - // optional uint32 paragraph = 19; private int paragraph_ ; /** * optional uint32 paragraph = 19; @@ -30894,7 +33591,6 @@ public Builder clearParagraph() { return this; } - // optional bool isSubject = 20; private boolean isSubject_ ; /** * optional bool isSubject = 20; @@ -30927,7 +33623,6 @@ public Builder clearIsSubject() { return this; } - // optional bool isDirectObject = 21; private boolean isDirectObject_ ; /** * optional bool isDirectObject = 21; @@ -30960,7 +33655,6 @@ public Builder clearIsDirectObject() { return this; } - // optional bool isIndirectObject = 22; private boolean isIndirectObject_ ; /** * optional bool isIndirectObject = 22; @@ -30993,7 +33687,6 @@ public Builder clearIsIndirectObject() { return this; } - // optional bool isPrepositionObject = 23; private boolean isPrepositionObject_ ; /** * optional bool isPrepositionObject = 23; @@ -31026,7 +33719,6 @@ public Builder clearIsPrepositionObject() { return this; } - // optional bool hasTwin = 24; private boolean hasTwin_ ; /** * optional bool hasTwin = 24; @@ -31059,7 +33751,6 @@ public Builder clearHasTwin() { return this; } - // optional bool generic = 25; private boolean generic_ ; /** * optional bool generic = 25; @@ -31092,7 +33783,6 @@ public Builder clearGeneric() { return this; } - // optional bool isSingleton = 26; private boolean isSingleton_ ; /** * optional bool isSingleton = 26; @@ -31125,7 +33815,6 @@ public Builder clearIsSingleton() { return this; } - // optional bool hasBasicDependency = 27; private boolean hasBasicDependency_ ; /** * optional bool hasBasicDependency = 27; @@ -31158,7 +33847,6 @@ public Builder clearHasBasicDependency() { return this; } - // optional bool hasEnhancedDepenedncy = 28; private boolean hasEnhancedDepenedncy_ ; /** * optional bool hasEnhancedDepenedncy = 28; @@ -31191,7 +33879,6 @@ public Builder clearHasEnhancedDepenedncy() { return this; } - // optional bool hasContextParseTree = 29; private boolean hasContextParseTree_ ; /** * optional bool hasContextParseTree = 29; @@ -31224,9 +33911,8 @@ public Builder clearHasContextParseTree() { return this; } - // optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; - private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headIndexedWord_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -31239,7 +33925,7 @@ public boolean hasHeadIndexedWord() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadIndexedWord() { if (headIndexedWordBuilder_ == null) { - return headIndexedWord_; + return headIndexedWord_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headIndexedWord_; } else { return headIndexedWordBuilder_.getMessage(); } @@ -31280,6 +33966,7 @@ public Builder setHeadIndexedWord( public Builder mergeHeadIndexedWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (headIndexedWordBuilder_ == null) { if (((bitField0_ & 0x10000000) == 0x10000000) && + headIndexedWord_ != null && headIndexedWord_ != edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) { headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.newBuilder(headIndexedWord_).mergeFrom(value).buildPartial(); @@ -31298,7 +33985,7 @@ public Builder mergeHeadIndexedWord(edu.stanford.nlp.pipeline.CoreNLPProtos.Inde */ public Builder clearHeadIndexedWord() { if (headIndexedWordBuilder_ == null) { - headIndexedWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); + headIndexedWord_ = null; onChanged(); } else { headIndexedWordBuilder_.clear(); @@ -31321,19 +34008,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndex if (headIndexedWordBuilder_ != null) { return headIndexedWordBuilder_.getMessageOrBuilder(); } else { - return headIndexedWord_; + return headIndexedWord_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headIndexedWord_; } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headIndexedWord = 30; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + headIndexedWordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( - headIndexedWord_, + getHeadIndexedWord(), getParentForChildren(), isClean()); headIndexedWord_ = null; @@ -31341,9 +34029,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadIndex return headIndexedWordBuilder_; } - // optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; - private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord dependingVerb_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -31356,7 +34043,7 @@ public boolean hasDependingVerb() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDependingVerb() { if (dependingVerbBuilder_ == null) { - return dependingVerb_; + return dependingVerb_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : dependingVerb_; } else { return dependingVerbBuilder_.getMessage(); } @@ -31397,6 +34084,7 @@ public Builder setDependingVerb( public Builder mergeDependingVerb(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (dependingVerbBuilder_ == null) { if (((bitField0_ & 0x20000000) == 0x20000000) && + dependingVerb_ != null && dependingVerb_ != edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) { dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.newBuilder(dependingVerb_).mergeFrom(value).buildPartial(); @@ -31415,7 +34103,7 @@ public Builder mergeDependingVerb(edu.stanford.nlp.pipeline.CoreNLPProtos.Indexe */ public Builder clearDependingVerb() { if (dependingVerbBuilder_ == null) { - dependingVerb_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); + dependingVerb_ = null; onChanged(); } else { dependingVerbBuilder_.clear(); @@ -31438,19 +34126,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDepending if (dependingVerbBuilder_ != null) { return dependingVerbBuilder_.getMessageOrBuilder(); } else { - return dependingVerb_; + return dependingVerb_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : dependingVerb_; } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord dependingVerb = 31; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + dependingVerbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( - dependingVerb_, + getDependingVerb(), getParentForChildren(), isClean()); dependingVerb_ = null; @@ -31458,9 +34147,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getDepending return dependingVerbBuilder_; } - // optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; - private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord headWord_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -31473,7 +34161,7 @@ public boolean hasHeadWord() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getHeadWord() { if (headWordBuilder_ == null) { - return headWord_; + return headWord_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headWord_; } else { return headWordBuilder_.getMessage(); } @@ -31514,6 +34202,7 @@ public Builder setHeadWord( public Builder mergeHeadWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord value) { if (headWordBuilder_ == null) { if (((bitField0_ & 0x40000000) == 0x40000000) && + headWord_ != null && headWord_ != edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance()) { headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.newBuilder(headWord_).mergeFrom(value).buildPartial(); @@ -31532,7 +34221,7 @@ public Builder mergeHeadWord(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord */ public Builder clearHeadWord() { if (headWordBuilder_ == null) { - headWord_ = edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance(); + headWord_ = null; onChanged(); } else { headWordBuilder_.clear(); @@ -31555,19 +34244,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordO if (headWordBuilder_ != null) { return headWordBuilder_.getMessageOrBuilder(); } else { - return headWord_; + return headWord_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.getDefaultInstance() : headWord_; } } /** * optional .edu.stanford.nlp.pipeline.IndexedWord headWord = 32; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + headWordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( - headWord_, + getHeadWord(), getParentForChildren(), isClean()); headWord_ = null; @@ -31575,9 +34265,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder getHeadWordO return headWordBuilder_; } - // optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; - private edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo speakerInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -31590,7 +34279,7 @@ public boolean hasSpeakerInfo() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getSpeakerInfo() { if (speakerInfoBuilder_ == null) { - return speakerInfo_; + return speakerInfo_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance() : speakerInfo_; } else { return speakerInfoBuilder_.getMessage(); } @@ -31631,6 +34320,7 @@ public Builder setSpeakerInfo( public Builder mergeSpeakerInfo(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo value) { if (speakerInfoBuilder_ == null) { if (((bitField0_ & 0x80000000) == 0x80000000) && + speakerInfo_ != null && speakerInfo_ != edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance()) { speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.newBuilder(speakerInfo_).mergeFrom(value).buildPartial(); @@ -31649,7 +34339,7 @@ public Builder mergeSpeakerInfo(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerI */ public Builder clearSpeakerInfo() { if (speakerInfoBuilder_ == null) { - speakerInfo_ = edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance(); + speakerInfo_ = null; onChanged(); } else { speakerInfoBuilder_.clear(); @@ -31672,19 +34362,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerIn if (speakerInfoBuilder_ != null) { return speakerInfoBuilder_.getMessageOrBuilder(); } else { - return speakerInfo_; + return speakerInfo_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.getDefaultInstance() : speakerInfo_; } } /** * optional .edu.stanford.nlp.pipeline.SpeakerInfo speakerInfo = 33; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + speakerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder>( - speakerInfo_, + getSpeakerInfo(), getParentForChildren(), isClean()); speakerInfo_ = null; @@ -31692,7 +34383,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder getSpeakerIn return speakerInfoBuilder_; } - // repeated .edu.stanford.nlp.pipeline.IndexedWord sentenceWords = 50; private java.util.List sentenceWords_ = java.util.Collections.emptyList(); private void ensureSentenceWordsIsMutable() { @@ -31702,7 +34392,7 @@ private void ensureSentenceWordsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> sentenceWordsBuilder_; /** @@ -31834,7 +34524,8 @@ public Builder addAllSentenceWords( java.lang.Iterable values) { if (sentenceWordsBuilder_ == null) { ensureSentenceWordsIsMutable(); - super.addAll(values, sentenceWords_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sentenceWords_); onChanged(); } else { sentenceWordsBuilder_.addAllMessages(values); @@ -31917,11 +34608,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addSentenceWo getSentenceWordsBuilderList() { return getSentenceWordsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + sentenceWordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( sentenceWords_, ((bitField1_ & 0x00000001) == 0x00000001), @@ -31932,7 +34623,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addSentenceWo return sentenceWordsBuilder_; } - // repeated .edu.stanford.nlp.pipeline.IndexedWord originalSpan = 51; private java.util.List originalSpan_ = java.util.Collections.emptyList(); private void ensureOriginalSpanIsMutable() { @@ -31942,7 +34632,7 @@ private void ensureOriginalSpanIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder> originalSpanBuilder_; /** @@ -32074,7 +34764,8 @@ public Builder addAllOriginalSpan( java.lang.Iterable values) { if (originalSpanBuilder_ == null) { ensureOriginalSpanIsMutable(); - super.addAll(values, originalSpan_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, originalSpan_); onChanged(); } else { originalSpanBuilder_.addAllMessages(values); @@ -32157,11 +34848,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addOriginalSp getOriginalSpanBuilderList() { return getOriginalSpanFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + originalSpanBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder>( originalSpan_, ((bitField1_ & 0x00000002) == 0x00000002), @@ -32172,7 +34863,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord.Builder addOriginalSp return originalSpanBuilder_; } - // repeated string dependents = 52; private com.google.protobuf.LazyStringList dependents_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDependentsIsMutable() { if (!((bitField1_ & 0x00000004) == 0x00000004)) { @@ -32183,9 +34873,9 @@ private void ensureDependentsIsMutable() { /** * repeated string dependents = 52; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getDependentsList() { - return java.util.Collections.unmodifiableList(dependents_); + return dependents_.getUnmodifiableView(); } /** * repeated string dependents = 52; @@ -32238,7 +34928,8 @@ public Builder addDependents( public Builder addAllDependents( java.lang.Iterable values) { ensureDependentsIsMutable(); - super.addAll(values, dependents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dependents_); onChanged(); return this; } @@ -32265,7 +34956,6 @@ public Builder addDependentsBytes( return this; } - // repeated string preprocessedTerms = 53; private com.google.protobuf.LazyStringList preprocessedTerms_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePreprocessedTermsIsMutable() { if (!((bitField1_ & 0x00000008) == 0x00000008)) { @@ -32276,9 +34966,9 @@ private void ensurePreprocessedTermsIsMutable() { /** * repeated string preprocessedTerms = 53; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getPreprocessedTermsList() { - return java.util.Collections.unmodifiableList(preprocessedTerms_); + return preprocessedTerms_.getUnmodifiableView(); } /** * repeated string preprocessedTerms = 53; @@ -32331,7 +35021,8 @@ public Builder addPreprocessedTerms( public Builder addAllPreprocessedTerms( java.lang.Iterable values) { ensurePreprocessedTermsIsMutable(); - super.addAll(values, preprocessedTerms_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, preprocessedTerms_); onChanged(); return this; } @@ -32358,7 +35049,6 @@ public Builder addPreprocessedTermsBytes( return this; } - // repeated int32 appositions = 54; private java.util.List appositions_ = java.util.Collections.emptyList(); private void ensureAppositionsIsMutable() { if (!((bitField1_ & 0x00000010) == 0x00000010)) { @@ -32410,7 +35100,8 @@ public Builder addAppositions(int value) { public Builder addAllAppositions( java.lang.Iterable values) { ensureAppositionsIsMutable(); - super.addAll(values, appositions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, appositions_); onChanged(); return this; } @@ -32424,7 +35115,6 @@ public Builder clearAppositions() { return this; } - // repeated int32 predicateNominatives = 55; private java.util.List predicateNominatives_ = java.util.Collections.emptyList(); private void ensurePredicateNominativesIsMutable() { if (!((bitField1_ & 0x00000020) == 0x00000020)) { @@ -32476,7 +35166,8 @@ public Builder addPredicateNominatives(int value) { public Builder addAllPredicateNominatives( java.lang.Iterable values) { ensurePredicateNominativesIsMutable(); - super.addAll(values, predicateNominatives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, predicateNominatives_); onChanged(); return this; } @@ -32490,7 +35181,6 @@ public Builder clearPredicateNominatives() { return this; } - // repeated int32 relativePronouns = 56; private java.util.List relativePronouns_ = java.util.Collections.emptyList(); private void ensureRelativePronounsIsMutable() { if (!((bitField1_ & 0x00000040) == 0x00000040)) { @@ -32542,7 +35232,8 @@ public Builder addRelativePronouns(int value) { public Builder addAllRelativePronouns( java.lang.Iterable values) { ensureRelativePronounsIsMutable(); - super.addAll(values, relativePronouns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relativePronouns_); onChanged(); return this; } @@ -32556,7 +35247,6 @@ public Builder clearRelativePronouns() { return this; } - // repeated int32 listMembers = 57; private java.util.List listMembers_ = java.util.Collections.emptyList(); private void ensureListMembersIsMutable() { if (!((bitField1_ & 0x00000080) == 0x00000080)) { @@ -32608,7 +35298,8 @@ public Builder addListMembers(int value) { public Builder addAllListMembers( java.lang.Iterable values) { ensureListMembersIsMutable(); - super.addAll(values, listMembers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listMembers_); onChanged(); return this; } @@ -32622,7 +35313,6 @@ public Builder clearListMembers() { return this; } - // repeated int32 belongToLists = 58; private java.util.List belongToLists_ = java.util.Collections.emptyList(); private void ensureBelongToListsIsMutable() { if (!((bitField1_ & 0x00000100) == 0x00000100)) { @@ -32674,7 +35364,8 @@ public Builder addBelongToLists(int value) { public Builder addAllBelongToLists( java.lang.Iterable values) { ensureBelongToListsIsMutable(); - super.addAll(values, belongToLists_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, belongToLists_); onChanged(); return this; } @@ -32687,22 +35378,59 @@ public Builder clearBelongToLists() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Mention) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Mention) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Mention DEFAULT_INSTANCE; static { - defaultInstance = new Mention(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Mention(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Mention getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Mention getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Mention) } - public interface IndexedWordOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface IndexedWordOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.IndexedWord) + com.google.protobuf.MessageOrBuilder { - // optional uint32 sentenceNum = 1; /** * optional uint32 sentenceNum = 1; */ @@ -32712,7 +35440,6 @@ public interface IndexedWordOrBuilder */ int getSentenceNum(); - // optional uint32 tokenIndex = 2; /** * optional uint32 tokenIndex = 2; */ @@ -32722,7 +35449,6 @@ public interface IndexedWordOrBuilder */ int getTokenIndex(); - // optional uint32 docID = 3; /** * optional uint32 docID = 3; */ @@ -32732,7 +35458,6 @@ public interface IndexedWordOrBuilder */ int getDocID(); - // optional uint32 copyCount = 4; /** * optional uint32 copyCount = 4; */ @@ -32745,36 +35470,31 @@ public interface IndexedWordOrBuilder /** * Protobuf type {@code edu.stanford.nlp.pipeline.IndexedWord} */ - public static final class IndexedWord extends - com.google.protobuf.GeneratedMessage - implements IndexedWordOrBuilder { + public static final class IndexedWord extends + com.google.protobuf.GeneratedMessageV3 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) { + private IndexedWord(com.google.protobuf.GeneratedMessageV3.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 IndexedWord() { + sentenceNum_ = 0; + tokenIndex_ = 0; + docID_ = 0; + copyCount_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private IndexedWord( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -32819,7 +35539,7 @@ private IndexedWord( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -32830,30 +35550,14 @@ private IndexedWord( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_IndexedWord_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional uint32 sentenceNum = 1; public static final int SENTENCENUM_FIELD_NUMBER = 1; private int sentenceNum_; /** @@ -32869,7 +35573,6 @@ public int getSentenceNum() { return sentenceNum_; } - // optional uint32 tokenIndex = 2; public static final int TOKENINDEX_FIELD_NUMBER = 2; private int tokenIndex_; /** @@ -32885,7 +35588,6 @@ public int getTokenIndex() { return tokenIndex_; } - // optional uint32 docID = 3; public static final int DOCID_FIELD_NUMBER = 3; private int docID_; /** @@ -32901,7 +35603,6 @@ public int getDocID() { return docID_; } - // optional uint32 copyCount = 4; public static final int COPYCOUNT_FIELD_NUMBER = 4; private int copyCount_; /** @@ -32917,16 +35618,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -32934,7 +35630,6 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, sentenceNum_); } @@ -32947,12 +35642,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, copyCount_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -32972,16 +35666,73 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, copyCount_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord other = (edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord) obj; + + boolean result = true; + result = result && (hasSentenceNum() == other.hasSentenceNum()); + if (hasSentenceNum()) { + result = result && (getSentenceNum() + == other.getSentenceNum()); + } + result = result && (hasTokenIndex() == other.hasTokenIndex()); + if (hasTokenIndex()) { + result = result && (getTokenIndex() + == other.getTokenIndex()); + } + result = result && (hasDocID() == other.hasDocID()); + if (hasDocID()) { + result = result && (getDocID() + == other.getDocID()); + } + result = result && (hasCopyCount() == other.hasCopyCount()); + if (hasCopyCount()) { + result = result && (getCopyCount() + == other.getCopyCount()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSentenceNum()) { + hash = (37 * hash) + SENTENCENUM_FIELD_NUMBER; + hash = (53 * hash) + getSentenceNum(); + } + if (hasTokenIndex()) { + hash = (37 * hash) + TOKENINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTokenIndex(); + } + if (hasDocID()) { + hash = (37 * hash) + DOCID_FIELD_NUMBER; + hash = (53 * hash) + getDocID(); + } + if (hasCopyCount()) { + hash = (37 * hash) + COPYCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getCopyCount(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord parseFrom( @@ -33007,46 +35758,57 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -33054,14 +35816,15 @@ protected Builder newBuilderForType( * Protobuf type {@code edu.stanford.nlp.pipeline.IndexedWord} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWordOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_IndexedWord_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -33074,18 +35837,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); sentenceNum_ = 0; @@ -33099,10 +35859,6 @@ public Builder 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_IndexedWord_descriptor; @@ -33145,6 +35901,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -33168,7 +35950,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord oth if (other.hasCopyCount()) { setCopyCount(other.getCopyCount()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -33185,7 +35968,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -33195,7 +35978,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional uint32 sentenceNum = 1; private int sentenceNum_ ; /** * optional uint32 sentenceNum = 1; @@ -33228,7 +36010,6 @@ public Builder clearSentenceNum() { return this; } - // optional uint32 tokenIndex = 2; private int tokenIndex_ ; /** * optional uint32 tokenIndex = 2; @@ -33261,7 +36042,6 @@ public Builder clearTokenIndex() { return this; } - // optional uint32 docID = 3; private int docID_ ; /** * optional uint32 docID = 3; @@ -33294,7 +36074,6 @@ public Builder clearDocID() { return this; } - // optional uint32 copyCount = 4; private int copyCount_ ; /** * optional uint32 copyCount = 4; @@ -33326,22 +36105,59 @@ public Builder clearCopyCount() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.IndexedWord) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.IndexedWord) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord DEFAULT_INSTANCE; static { - defaultInstance = new IndexedWord(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.IndexedWord getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.IndexedWord) } - public interface SpeakerInfoOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SpeakerInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.SpeakerInfo) + com.google.protobuf.MessageOrBuilder { - // optional string speakerName = 1; /** * optional string speakerName = 1; */ @@ -33356,7 +36172,6 @@ public interface SpeakerInfoOrBuilder com.google.protobuf.ByteString getSpeakerNameBytes(); - // repeated int32 mentions = 2; /** * repeated int32 mentions = 2; */ @@ -33373,36 +36188,29 @@ public interface SpeakerInfoOrBuilder /** * Protobuf type {@code edu.stanford.nlp.pipeline.SpeakerInfo} */ - public static final class SpeakerInfo extends - com.google.protobuf.GeneratedMessage - implements SpeakerInfoOrBuilder { + public static final class SpeakerInfo extends + com.google.protobuf.GeneratedMessageV3 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) { + private SpeakerInfo(com.google.protobuf.GeneratedMessageV3.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 SpeakerInfo() { + speakerName_ = ""; + mentions_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private SpeakerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -33422,8 +36230,9 @@ private SpeakerInfo( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - speakerName_ = input.readBytes(); + speakerName_ = bs; break; } case 16: { @@ -33453,7 +36262,7 @@ private SpeakerInfo( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mentions_ = java.util.Collections.unmodifiableList(mentions_); @@ -33467,32 +36276,16 @@ private SpeakerInfo( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional string speakerName = 1; public static final int SPEAKERNAME_FIELD_NUMBER = 1; - private java.lang.Object speakerName_; + private volatile java.lang.Object speakerName_; /** * optional string speakerName = 1; */ @@ -33533,7 +36326,6 @@ public java.lang.String getSpeakerName() { } } - // repeated int32 mentions = 2; public static final int MENTIONS_FIELD_NUMBER = 2; private java.util.List mentions_; /** @@ -33556,14 +36348,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -33571,25 +36360,22 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getSpeakerNameBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speakerName_); } for (int i = 0; i < mentions_.size(); i++) { output.writeInt32(2, mentions_.get(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getSpeakerNameBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speakerName_); } { int dataSize = 0; @@ -33600,16 +36386,52 @@ public int getSerializedSize() { size += dataSize; size += 1 * getMentionsList().size(); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo other = (edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo) obj; + + boolean result = true; + result = result && (hasSpeakerName() == other.hasSpeakerName()); + if (hasSpeakerName()) { + result = result && getSpeakerName() + .equals(other.getSpeakerName()); + } + result = result && getMentionsList() + .equals(other.getMentionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSpeakerName()) { + hash = (37 * hash) + SPEAKERNAME_FIELD_NUMBER; + hash = (53 * hash) + getSpeakerName().hashCode(); + } + if (getMentionsCount() > 0) { + hash = (37 * hash) + MENTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMentionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo parseFrom( @@ -33635,46 +36457,57 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -33682,14 +36515,15 @@ protected Builder newBuilderForType( * Protobuf type {@code edu.stanford.nlp.pipeline.SpeakerInfo} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfoOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -33702,18 +36536,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); speakerName_ = ""; @@ -33723,10 +36554,6 @@ public Builder 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_SpeakerInfo_descriptor; @@ -33762,6 +36589,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -33788,7 +36641,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo oth } onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -33805,7 +36659,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -33815,7 +36669,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional string speakerName = 1; private java.lang.Object speakerName_ = ""; /** * optional string speakerName = 1; @@ -33829,9 +36682,12 @@ public boolean hasSpeakerName() { public java.lang.String getSpeakerName() { java.lang.Object ref = speakerName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - speakerName_ = s; + 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; @@ -33889,7 +36745,6 @@ public Builder setSpeakerNameBytes( return this; } - // repeated int32 mentions = 2; private java.util.List mentions_ = java.util.Collections.emptyList(); private void ensureMentionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { @@ -33941,7 +36796,8 @@ public Builder addMentions(int value) { public Builder addAllMentions( java.lang.Iterable values) { ensureMentionsIsMutable(); - super.addAll(values, mentions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mentions_); onChanged(); return this; } @@ -33954,22 +36810,59 @@ public Builder clearMentions() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.SpeakerInfo) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.SpeakerInfo) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo DEFAULT_INSTANCE; static { - defaultInstance = new SpeakerInfo(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.SpeakerInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.SpeakerInfo) } - public interface SpanOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SpanOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Span) + com.google.protobuf.MessageOrBuilder { - // required uint32 begin = 1; /** * required uint32 begin = 1; */ @@ -33979,7 +36872,6 @@ public interface SpanOrBuilder */ int getBegin(); - // required uint32 end = 2; /** * required uint32 end = 2; */ @@ -33990,43 +36882,35 @@ public interface SpanOrBuilder int getEnd(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Span} - * *
-   *
    * A Span of text
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Span} */ - public static final class Span extends - com.google.protobuf.GeneratedMessage - implements SpanOrBuilder { + public static final class Span extends + com.google.protobuf.GeneratedMessageV3 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) { + private Span(com.google.protobuf.GeneratedMessageV3.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 Span() { + begin_ = 0; + end_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Span( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -34061,7 +36945,7 @@ private Span( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -34072,30 +36956,14 @@ private Span( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Span_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // required uint32 begin = 1; public static final int BEGIN_FIELD_NUMBER = 1; private int begin_; /** @@ -34111,7 +36979,6 @@ public int getBegin() { return begin_; } - // required uint32 end = 2; public static final int END_FIELD_NUMBER = 2; private int end_; /** @@ -34127,14 +36994,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasBegin()) { memoizedIsInitialized = 0; @@ -34150,19 +37014,17 @@ public final boolean isInitialized() { 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); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -34174,16 +37036,55 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, end_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Span)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Span other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Span) obj; + + boolean result = true; + result = result && (hasBegin() == other.hasBegin()); + if (hasBegin()) { + result = result && (getBegin() + == other.getBegin()); + } + result = result && (hasEnd() == other.hasEnd()); + if (hasEnd()) { + result = result && (getEnd() + == other.getEnd()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasBegin()) { + hash = (37 * hash) + BEGIN_FIELD_NUMBER; + hash = (53 * hash) + getBegin(); + } + if (hasEnd()) { + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + getEnd(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span parseFrom( @@ -34209,66 +37110,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Span prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Span} - * *
-     *
      * A Span of text
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Span} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.SpanOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Span_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -34281,18 +37193,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); begin_ = 0; @@ -34302,10 +37211,6 @@ public Builder 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_Span_descriptor; @@ -34340,6 +37245,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Span buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -34357,17 +37288,16 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Span other) { if (other.hasEnd()) { setEnd(other.getEnd()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasBegin()) { - return false; } if (!hasEnd()) { - return false; } return true; @@ -34382,7 +37312,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Span) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -34392,7 +37322,6 @@ public Builder mergeFrom( } private int bitField0_; - // required uint32 begin = 1; private int begin_ ; /** * required uint32 begin = 1; @@ -34425,7 +37354,6 @@ public Builder clearBegin() { return this; } - // required uint32 end = 2; private int end_ ; /** * required uint32 end = 2; @@ -34457,22 +37385,59 @@ public Builder clearEnd() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Span) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Span) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Span DEFAULT_INSTANCE; static { - defaultInstance = new Span(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Span(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Span getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Span getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Span) } - public interface TimexOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface TimexOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Timex) + com.google.protobuf.MessageOrBuilder { - // optional string value = 1; /** * optional string value = 1; */ @@ -34487,7 +37452,6 @@ public interface TimexOrBuilder com.google.protobuf.ByteString getValueBytes(); - // optional string altValue = 2; /** * optional string altValue = 2; */ @@ -34502,7 +37466,6 @@ public interface TimexOrBuilder com.google.protobuf.ByteString getAltValueBytes(); - // optional string text = 3; /** * optional string text = 3; */ @@ -34517,7 +37480,6 @@ public interface TimexOrBuilder com.google.protobuf.ByteString getTextBytes(); - // optional string type = 4; /** * optional string type = 4; */ @@ -34532,7 +37494,6 @@ public interface TimexOrBuilder com.google.protobuf.ByteString getTypeBytes(); - // optional string tid = 5; /** * optional string tid = 5; */ @@ -34547,7 +37508,6 @@ public interface TimexOrBuilder com.google.protobuf.ByteString getTidBytes(); - // optional uint32 beginPoint = 6; /** * optional uint32 beginPoint = 6; */ @@ -34557,7 +37517,6 @@ public interface TimexOrBuilder */ int getBeginPoint(); - // optional uint32 endPoint = 7; /** * optional uint32 endPoint = 7; */ @@ -34568,44 +37527,41 @@ public interface TimexOrBuilder 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.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Timex} */ - public static final class Timex extends - com.google.protobuf.GeneratedMessage - implements TimexOrBuilder { + public static final class Timex extends + com.google.protobuf.GeneratedMessageV3 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) { + private Timex(com.google.protobuf.GeneratedMessageV3.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 Timex() { + value_ = ""; + altValue_ = ""; + text_ = ""; + type_ = ""; + tid_ = ""; + beginPoint_ = 0; + endPoint_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Timex( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -34625,28 +37581,33 @@ private Timex( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - value_ = input.readBytes(); + value_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - altValue_ = input.readBytes(); + altValue_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - text_ = input.readBytes(); + text_ = bs; break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - type_ = input.readBytes(); + type_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - tid_ = input.readBytes(); + tid_ = bs; break; } case 48: { @@ -34665,7 +37626,7 @@ private Timex( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -34676,32 +37637,16 @@ private Timex( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Timex_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional string value = 1; public static final int VALUE_FIELD_NUMBER = 1; - private java.lang.Object value_; + private volatile java.lang.Object value_; /** * optional string value = 1; */ @@ -34742,9 +37687,8 @@ public java.lang.String getValue() { } } - // optional string altValue = 2; public static final int ALTVALUE_FIELD_NUMBER = 2; - private java.lang.Object altValue_; + private volatile java.lang.Object altValue_; /** * optional string altValue = 2; */ @@ -34785,9 +37729,8 @@ public java.lang.String getAltValue() { } } - // optional string text = 3; public static final int TEXT_FIELD_NUMBER = 3; - private java.lang.Object text_; + private volatile java.lang.Object text_; /** * optional string text = 3; */ @@ -34828,9 +37771,8 @@ public java.lang.String getText() { } } - // optional string type = 4; public static final int TYPE_FIELD_NUMBER = 4; - private java.lang.Object type_; + private volatile java.lang.Object type_; /** * optional string type = 4; */ @@ -34871,9 +37813,8 @@ public java.lang.String getType() { } } - // optional string tid = 5; public static final int TID_FIELD_NUMBER = 5; - private java.lang.Object tid_; + private volatile java.lang.Object tid_; /** * optional string tid = 5; */ @@ -34914,7 +37855,6 @@ public java.lang.String getTid() { } } - // optional uint32 beginPoint = 6; public static final int BEGINPOINT_FIELD_NUMBER = 6; private int beginPoint_; /** @@ -34930,7 +37870,6 @@ public int getBeginPoint() { return beginPoint_; } - // optional uint32 endPoint = 7; public static final int ENDPOINT_FIELD_NUMBER = 7; private int endPoint_; /** @@ -34946,19 +37885,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -34966,21 +37897,20 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getValueBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAltValueBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, altValue_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getTextBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getTidBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tid_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, beginPoint_); @@ -34988,34 +37918,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, endPoint_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getValueBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAltValueBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, altValue_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getTextBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getTidBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tid_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream @@ -35025,16 +37949,100 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, endPoint_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Timex)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Timex other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Timex) obj; + + boolean result = true; + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasAltValue() == other.hasAltValue()); + if (hasAltValue()) { + result = result && getAltValue() + .equals(other.getAltValue()); + } + result = result && (hasText() == other.hasText()); + if (hasText()) { + result = result && getText() + .equals(other.getText()); + } + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasTid() == other.hasTid()); + if (hasTid()) { + result = result && getTid() + .equals(other.getTid()); + } + result = result && (hasBeginPoint() == other.hasBeginPoint()); + if (hasBeginPoint()) { + result = result && (getBeginPoint() + == other.getBeginPoint()); + } + result = result && (hasEndPoint() == other.hasEndPoint()); + if (hasEndPoint()) { + result = result && (getEndPoint() + == other.getEndPoint()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasAltValue()) { + hash = (37 * hash) + ALTVALUE_FIELD_NUMBER; + hash = (53 * hash) + getAltValue().hashCode(); + } + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasTid()) { + hash = (37 * hash) + TID_FIELD_NUMBER; + hash = (53 * hash) + getTid().hashCode(); + } + if (hasBeginPoint()) { + hash = (37 * hash) + BEGINPOINT_FIELD_NUMBER; + hash = (53 * hash) + getBeginPoint(); + } + if (hasEndPoint()) { + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndPoint(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex parseFrom( @@ -35060,67 +38068,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Timex} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Timex_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -35133,18 +38152,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); value_ = ""; @@ -35164,10 +38180,6 @@ public Builder 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_Timex_descriptor; @@ -35222,6 +38234,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -35264,7 +38302,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex other) { if (other.hasEndPoint()) { setEndPoint(other.getEndPoint()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -35281,7 +38320,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Timex) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -35291,7 +38330,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional string value = 1; private java.lang.Object value_ = ""; /** * optional string value = 1; @@ -35305,9 +38343,12 @@ public boolean hasValue() { public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - value_ = s; + 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; @@ -35365,7 +38406,6 @@ public Builder setValueBytes( return this; } - // optional string altValue = 2; private java.lang.Object altValue_ = ""; /** * optional string altValue = 2; @@ -35379,9 +38419,12 @@ public boolean hasAltValue() { public java.lang.String getAltValue() { java.lang.Object ref = altValue_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - altValue_ = s; + 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; @@ -35439,7 +38482,6 @@ public Builder setAltValueBytes( return this; } - // optional string text = 3; private java.lang.Object text_ = ""; /** * optional string text = 3; @@ -35453,9 +38495,12 @@ public boolean hasText() { public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; + 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; @@ -35513,7 +38558,6 @@ public Builder setTextBytes( return this; } - // optional string type = 4; private java.lang.Object type_ = ""; /** * optional string type = 4; @@ -35527,9 +38571,12 @@ public boolean hasType() { public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - type_ = s; + 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; @@ -35587,7 +38634,6 @@ public Builder setTypeBytes( return this; } - // optional string tid = 5; private java.lang.Object tid_ = ""; /** * optional string tid = 5; @@ -35601,9 +38647,12 @@ public boolean hasTid() { public java.lang.String getTid() { java.lang.Object ref = tid_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - tid_ = s; + 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; @@ -35661,7 +38710,6 @@ public Builder setTidBytes( return this; } - // optional uint32 beginPoint = 6; private int beginPoint_ ; /** * optional uint32 beginPoint = 6; @@ -35694,7 +38742,6 @@ public Builder clearBeginPoint() { return this; } - // optional uint32 endPoint = 7; private int endPoint_ ; /** * optional uint32 endPoint = 7; @@ -35726,22 +38773,59 @@ public Builder clearEndPoint() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Timex) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Timex) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Timex DEFAULT_INSTANCE; static { - defaultInstance = new Timex(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Timex(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Timex) } - public interface EntityOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface EntityOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Entity) + com.google.protobuf.MessageOrBuilder { - // optional uint32 headStart = 6; /** * optional uint32 headStart = 6; */ @@ -35751,7 +38835,6 @@ public interface EntityOrBuilder */ int getHeadStart(); - // optional uint32 headEnd = 7; /** * optional uint32 headEnd = 7; */ @@ -35761,7 +38844,6 @@ public interface EntityOrBuilder */ int getHeadEnd(); - // optional string mentionType = 8; /** * optional string mentionType = 8; */ @@ -35776,7 +38858,6 @@ public interface EntityOrBuilder com.google.protobuf.ByteString getMentionTypeBytes(); - // optional string normalizedName = 9; /** * optional string normalizedName = 9; */ @@ -35791,7 +38872,6 @@ public interface EntityOrBuilder com.google.protobuf.ByteString getNormalizedNameBytes(); - // optional uint32 headTokenIndex = 10; /** * optional uint32 headTokenIndex = 10; */ @@ -35801,7 +38881,6 @@ public interface EntityOrBuilder */ int getHeadTokenIndex(); - // optional string corefID = 11; /** * optional string corefID = 11; */ @@ -35816,34 +38895,32 @@ public interface EntityOrBuilder com.google.protobuf.ByteString getCorefIDBytes(); - // optional string objectID = 1; /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ boolean hasObjectID(); /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ java.lang.String getObjectID(); /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ com.google.protobuf.ByteString getObjectIDBytes(); - // optional uint32 extentStart = 2; /** * optional uint32 extentStart = 2; */ @@ -35853,7 +38930,6 @@ public interface EntityOrBuilder */ int getExtentStart(); - // optional uint32 extentEnd = 3; /** * optional uint32 extentEnd = 3; */ @@ -35863,7 +38939,6 @@ public interface EntityOrBuilder */ int getExtentEnd(); - // optional string type = 4; /** * optional string type = 4; */ @@ -35878,76 +38953,76 @@ public interface EntityOrBuilder com.google.protobuf.ByteString getTypeBytes(); - // optional string subtype = 5; /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ boolean hasSubtype(); /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ java.lang.String getSubtype(); /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ 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.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Entity} */ - public static final class Entity extends - com.google.protobuf.GeneratedMessage - implements EntityOrBuilder { + public static final class Entity extends + com.google.protobuf.GeneratedMessageV3 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) { + private Entity(com.google.protobuf.GeneratedMessageV3.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 Entity() { + headStart_ = 0; + headEnd_ = 0; + mentionType_ = ""; + normalizedName_ = ""; + headTokenIndex_ = 0; + corefID_ = ""; + objectID_ = ""; + extentStart_ = 0; + extentEnd_ = 0; + type_ = ""; + subtype_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Entity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -35967,8 +39042,9 @@ private Entity( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; - objectID_ = input.readBytes(); + objectID_ = bs; break; } case 16: { @@ -35982,13 +39058,15 @@ private Entity( break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; - type_ = input.readBytes(); + type_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; - subtype_ = input.readBytes(); + subtype_ = bs; break; } case 48: { @@ -36002,13 +39080,15 @@ private Entity( break; } case 66: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - mentionType_ = input.readBytes(); + mentionType_ = bs; break; } case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - normalizedName_ = input.readBytes(); + normalizedName_ = bs; break; } case 80: { @@ -36017,8 +39097,9 @@ private Entity( break; } case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - corefID_ = input.readBytes(); + corefID_ = bs; break; } } @@ -36027,7 +39108,7 @@ private Entity( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -36038,30 +39119,14 @@ private Entity( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Entity_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional uint32 headStart = 6; public static final int HEADSTART_FIELD_NUMBER = 6; private int headStart_; /** @@ -36077,7 +39142,6 @@ public int getHeadStart() { return headStart_; } - // optional uint32 headEnd = 7; public static final int HEADEND_FIELD_NUMBER = 7; private int headEnd_; /** @@ -36093,9 +39157,8 @@ public int getHeadEnd() { return headEnd_; } - // optional string mentionType = 8; public static final int MENTIONTYPE_FIELD_NUMBER = 8; - private java.lang.Object mentionType_; + private volatile java.lang.Object mentionType_; /** * optional string mentionType = 8; */ @@ -36136,9 +39199,8 @@ public java.lang.String getMentionType() { } } - // optional string normalizedName = 9; public static final int NORMALIZEDNAME_FIELD_NUMBER = 9; - private java.lang.Object normalizedName_; + private volatile java.lang.Object normalizedName_; /** * optional string normalizedName = 9; */ @@ -36179,7 +39241,6 @@ public java.lang.String getNormalizedName() { } } - // optional uint32 headTokenIndex = 10; public static final int HEADTOKENINDEX_FIELD_NUMBER = 10; private int headTokenIndex_; /** @@ -36195,9 +39256,8 @@ public int getHeadTokenIndex() { return headTokenIndex_; } - // optional string corefID = 11; public static final int COREFID_FIELD_NUMBER = 11; - private java.lang.Object corefID_; + private volatile java.lang.Object corefID_; /** * optional string corefID = 11; */ @@ -36238,25 +39298,24 @@ public java.lang.String getCorefID() { } } - // optional string objectID = 1; public static final int OBJECTID_FIELD_NUMBER = 1; - private java.lang.Object objectID_; + private volatile java.lang.Object objectID_; /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ public boolean hasObjectID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; @@ -36273,11 +39332,11 @@ public java.lang.String getObjectID() { } } /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ public com.google.protobuf.ByteString getObjectIDBytes() { @@ -36293,7 +39352,6 @@ public java.lang.String getObjectID() { } } - // optional uint32 extentStart = 2; public static final int EXTENTSTART_FIELD_NUMBER = 2; private int extentStart_; /** @@ -36309,7 +39367,6 @@ public int getExtentStart() { return extentStart_; } - // optional uint32 extentEnd = 3; public static final int EXTENTEND_FIELD_NUMBER = 3; private int extentEnd_; /** @@ -36325,9 +39382,8 @@ public int getExtentEnd() { return extentEnd_; } - // optional string type = 4; public static final int TYPE_FIELD_NUMBER = 4; - private java.lang.Object type_; + private volatile java.lang.Object type_; /** * optional string type = 4; */ @@ -36368,27 +39424,26 @@ public java.lang.String getType() { } } - // optional string subtype = 5; public static final int SUBTYPE_FIELD_NUMBER = 5; - private java.lang.Object subtype_; + private volatile java.lang.Object subtype_; /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ public boolean hasSubtype() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; @@ -36405,12 +39460,12 @@ public java.lang.String getSubtype() { } } /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ public com.google.protobuf.ByteString getSubtypeBytes() { @@ -36426,23 +39481,11 @@ public java.lang.String getSubtype() { } } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -36450,9 +39493,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(1, getObjectIDBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectID_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(2, extentStart_); @@ -36461,10 +39503,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(3, extentEnd_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(4, getTypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(5, getSubtypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subtype_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(6, headStart_); @@ -36473,29 +39515,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(7, headEnd_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(8, getMentionTypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mentionType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(9, getNormalizedNameBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, normalizedName_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(10, headTokenIndex_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(11, getCorefIDBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, corefID_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getObjectIDBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, objectID_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream @@ -36506,12 +39546,10 @@ public int getSerializedSize() { .computeUInt32Size(3, extentEnd_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getSubtypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, subtype_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream @@ -36522,31 +39560,148 @@ public int getSerializedSize() { .computeUInt32Size(7, headEnd_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getMentionTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, mentionType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getNormalizedNameBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, normalizedName_); } 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 += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, corefID_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Entity)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Entity other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Entity) obj; + + boolean result = true; + result = result && (hasHeadStart() == other.hasHeadStart()); + if (hasHeadStart()) { + result = result && (getHeadStart() + == other.getHeadStart()); + } + result = result && (hasHeadEnd() == other.hasHeadEnd()); + if (hasHeadEnd()) { + result = result && (getHeadEnd() + == other.getHeadEnd()); + } + result = result && (hasMentionType() == other.hasMentionType()); + if (hasMentionType()) { + result = result && getMentionType() + .equals(other.getMentionType()); + } + result = result && (hasNormalizedName() == other.hasNormalizedName()); + if (hasNormalizedName()) { + result = result && getNormalizedName() + .equals(other.getNormalizedName()); + } + result = result && (hasHeadTokenIndex() == other.hasHeadTokenIndex()); + if (hasHeadTokenIndex()) { + result = result && (getHeadTokenIndex() + == other.getHeadTokenIndex()); + } + result = result && (hasCorefID() == other.hasCorefID()); + if (hasCorefID()) { + result = result && getCorefID() + .equals(other.getCorefID()); + } + result = result && (hasObjectID() == other.hasObjectID()); + if (hasObjectID()) { + result = result && getObjectID() + .equals(other.getObjectID()); + } + result = result && (hasExtentStart() == other.hasExtentStart()); + if (hasExtentStart()) { + result = result && (getExtentStart() + == other.getExtentStart()); + } + result = result && (hasExtentEnd() == other.hasExtentEnd()); + if (hasExtentEnd()) { + result = result && (getExtentEnd() + == other.getExtentEnd()); + } + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasSubtype() == other.hasSubtype()); + if (hasSubtype()) { + result = result && getSubtype() + .equals(other.getSubtype()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasHeadStart()) { + hash = (37 * hash) + HEADSTART_FIELD_NUMBER; + hash = (53 * hash) + getHeadStart(); + } + if (hasHeadEnd()) { + hash = (37 * hash) + HEADEND_FIELD_NUMBER; + hash = (53 * hash) + getHeadEnd(); + } + if (hasMentionType()) { + hash = (37 * hash) + MENTIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + getMentionType().hashCode(); + } + if (hasNormalizedName()) { + hash = (37 * hash) + NORMALIZEDNAME_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedName().hashCode(); + } + if (hasHeadTokenIndex()) { + hash = (37 * hash) + HEADTOKENINDEX_FIELD_NUMBER; + hash = (53 * hash) + getHeadTokenIndex(); + } + if (hasCorefID()) { + hash = (37 * hash) + COREFID_FIELD_NUMBER; + hash = (53 * hash) + getCorefID().hashCode(); + } + if (hasObjectID()) { + hash = (37 * hash) + OBJECTID_FIELD_NUMBER; + hash = (53 * hash) + getObjectID().hashCode(); + } + if (hasExtentStart()) { + hash = (37 * hash) + EXTENTSTART_FIELD_NUMBER; + hash = (53 * hash) + getExtentStart(); + } + if (hasExtentEnd()) { + hash = (37 * hash) + EXTENTEND_FIELD_NUMBER; + hash = (53 * hash) + getExtentEnd(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasSubtype()) { + hash = (37 * hash) + SUBTYPE_FIELD_NUMBER; + hash = (53 * hash) + getSubtype().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity parseFrom( @@ -36572,68 +39727,79 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Entity} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Entity_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -36646,18 +39812,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); headStart_ = 0; @@ -36685,10 +39848,6 @@ public Builder 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_Entity_descriptor; @@ -36759,6 +39918,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -36815,7 +40000,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity other) { subtype_ = other.subtype_; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -36832,7 +40018,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Entity) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -36842,7 +40028,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional uint32 headStart = 6; private int headStart_ ; /** * optional uint32 headStart = 6; @@ -36875,7 +40060,6 @@ public Builder clearHeadStart() { return this; } - // optional uint32 headEnd = 7; private int headEnd_ ; /** * optional uint32 headEnd = 7; @@ -36908,7 +40092,6 @@ public Builder clearHeadEnd() { return this; } - // optional string mentionType = 8; private java.lang.Object mentionType_ = ""; /** * optional string mentionType = 8; @@ -36922,9 +40105,12 @@ public boolean hasMentionType() { public java.lang.String getMentionType() { java.lang.Object ref = mentionType_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - mentionType_ = s; + 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; @@ -36982,7 +40168,6 @@ public Builder setMentionTypeBytes( return this; } - // optional string normalizedName = 9; private java.lang.Object normalizedName_ = ""; /** * optional string normalizedName = 9; @@ -36996,9 +40181,12 @@ public boolean hasNormalizedName() { public java.lang.String getNormalizedName() { java.lang.Object ref = normalizedName_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - normalizedName_ = s; + 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; @@ -37056,7 +40244,6 @@ public Builder setNormalizedNameBytes( return this; } - // optional uint32 headTokenIndex = 10; private int headTokenIndex_ ; /** * optional uint32 headTokenIndex = 10; @@ -37089,7 +40276,6 @@ public Builder clearHeadTokenIndex() { return this; } - // optional string corefID = 11; private java.lang.Object corefID_ = ""; /** * optional string corefID = 11; @@ -37103,9 +40289,12 @@ public boolean hasCorefID() { public java.lang.String getCorefID() { java.lang.Object ref = corefID_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - corefID_ = s; + 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; @@ -37163,42 +40352,44 @@ public Builder setCorefIDBytes( return this; } - // optional string objectID = 1; private java.lang.Object objectID_ = ""; /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public boolean hasObjectID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - objectID_ = s; + 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
        * 
+ * + * optional string objectID = 1; */ public com.google.protobuf.ByteString getObjectIDBytes() { @@ -37214,11 +40405,11 @@ public java.lang.String getObjectID() { } } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public Builder setObjectID( java.lang.String value) { @@ -37231,11 +40422,11 @@ public Builder setObjectID( return this; } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public Builder clearObjectID() { bitField0_ = (bitField0_ & ~0x00000040); @@ -37244,11 +40435,11 @@ public Builder clearObjectID() { return this; } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public Builder setObjectIDBytes( com.google.protobuf.ByteString value) { @@ -37261,7 +40452,6 @@ public Builder setObjectIDBytes( return this; } - // optional uint32 extentStart = 2; private int extentStart_ ; /** * optional uint32 extentStart = 2; @@ -37294,7 +40484,6 @@ public Builder clearExtentStart() { return this; } - // optional uint32 extentEnd = 3; private int extentEnd_ ; /** * optional uint32 extentEnd = 3; @@ -37327,7 +40516,6 @@ public Builder clearExtentEnd() { return this; } - // optional string type = 4; private java.lang.Object type_ = ""; /** * optional string type = 4; @@ -37341,9 +40529,12 @@ public boolean hasType() { public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - type_ = s; + 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; @@ -37401,45 +40592,47 @@ public Builder setTypeBytes( return this; } - // optional string subtype = 5; private java.lang.Object subtype_ = ""; /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public boolean hasSubtype() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - subtype_ = s; + 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
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public com.google.protobuf.ByteString getSubtypeBytes() { @@ -37455,12 +40648,12 @@ public java.lang.String getSubtype() { } } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public Builder setSubtype( java.lang.String value) { @@ -37473,12 +40666,12 @@ public Builder setSubtype( return this; } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public Builder clearSubtype() { bitField0_ = (bitField0_ & ~0x00000400); @@ -37487,12 +40680,12 @@ public Builder clearSubtype() { return this; } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public Builder setSubtypeBytes( com.google.protobuf.ByteString value) { @@ -37504,27 +40697,64 @@ public Builder setSubtypeBytes( onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Entity) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Entity) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Entity DEFAULT_INSTANCE; static { - defaultInstance = new Entity(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Entity(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Entity) } - public interface RelationOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface RelationOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Relation) + com.google.protobuf.MessageOrBuilder { - // repeated string argName = 6; /** * repeated string argName = 6; */ java.util.List - getArgNameList(); + getArgNameList(); /** * repeated string argName = 6; */ @@ -37539,7 +40769,6 @@ public interface RelationOrBuilder com.google.protobuf.ByteString getArgNameBytes(int index); - // repeated .edu.stanford.nlp.pipeline.Entity arg = 7; /** * repeated .edu.stanford.nlp.pipeline.Entity arg = 7; */ @@ -37564,7 +40793,6 @@ public interface RelationOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( int index); - // optional string signature = 8; /** * optional string signature = 8; */ @@ -37579,34 +40807,32 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( com.google.protobuf.ByteString getSignatureBytes(); - // optional string objectID = 1; /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ boolean hasObjectID(); /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ java.lang.String getObjectID(); /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ com.google.protobuf.ByteString getObjectIDBytes(); - // optional uint32 extentStart = 2; /** * optional uint32 extentStart = 2; */ @@ -37616,7 +40842,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( */ int getExtentStart(); - // optional uint32 extentEnd = 3; /** * optional uint32 extentEnd = 3; */ @@ -37626,7 +40851,6 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( */ int getExtentEnd(); - // optional string type = 4; /** * optional string type = 4; */ @@ -37641,74 +40865,71 @@ edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( com.google.protobuf.ByteString getTypeBytes(); - // optional string subtype = 5; /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ boolean hasSubtype(); /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ java.lang.String getSubtype(); /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ com.google.protobuf.ByteString getSubtypeBytes(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Relation} - * *
-   *
    * A representation of a relation, mirroring RelationMention
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Relation} */ - public static final class Relation extends - com.google.protobuf.GeneratedMessage - implements RelationOrBuilder { + public static final class Relation extends + com.google.protobuf.GeneratedMessageV3 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) { + private Relation(com.google.protobuf.GeneratedMessageV3.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 Relation() { + argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; + arg_ = java.util.Collections.emptyList(); + signature_ = ""; + objectID_ = ""; + extentStart_ = 0; + extentEnd_ = 0; + type_ = ""; + subtype_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Relation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -37728,8 +40949,9 @@ private Relation( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - objectID_ = input.readBytes(); + objectID_ = bs; break; } case 16: { @@ -37743,21 +40965,24 @@ private Relation( break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - type_ = input.readBytes(); + type_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - subtype_ = input.readBytes(); + 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(input.readBytes()); + argName_.add(bs); break; } case 58: { @@ -37765,12 +40990,14 @@ private Relation( arg_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } - arg_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.PARSER, extensionRegistry)); + 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_ = input.readBytes(); + signature_ = bs; break; } } @@ -37779,10 +41006,10 @@ private Relation( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - argName_ = new com.google.protobuf.UnmodifiableLazyStringList(argName_); + argName_ = argName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { arg_ = java.util.Collections.unmodifiableList(arg_); @@ -37796,36 +41023,20 @@ private Relation( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Relation_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // repeated string argName = 6; public static final int ARGNAME_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList argName_; /** * repeated string argName = 6; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getArgNameList() { return argName_; } @@ -37849,7 +41060,6 @@ public java.lang.String getArgName(int index) { return argName_.getByteString(index); } - // repeated .edu.stanford.nlp.pipeline.Entity arg = 7; public static final int ARG_FIELD_NUMBER = 7; private java.util.List arg_; /** @@ -37885,9 +41095,8 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder getArgOrBuilder( return arg_.get(index); } - // optional string signature = 8; public static final int SIGNATURE_FIELD_NUMBER = 8; - private java.lang.Object signature_; + private volatile java.lang.Object signature_; /** * optional string signature = 8; */ @@ -37928,25 +41137,24 @@ public java.lang.String getSignature() { } } - // optional string objectID = 1; public static final int OBJECTID_FIELD_NUMBER = 1; - private java.lang.Object objectID_; + private volatile java.lang.Object objectID_; /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ public boolean hasObjectID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; @@ -37963,11 +41171,11 @@ public java.lang.String getObjectID() { } } /** - * optional string objectID = 1; - * *
      * inherited from ExtractionObject
      * 
+ * + * optional string objectID = 1; */ public com.google.protobuf.ByteString getObjectIDBytes() { @@ -37983,7 +41191,6 @@ public java.lang.String getObjectID() { } } - // optional uint32 extentStart = 2; public static final int EXTENTSTART_FIELD_NUMBER = 2; private int extentStart_; /** @@ -37999,7 +41206,6 @@ public int getExtentStart() { return extentStart_; } - // optional uint32 extentEnd = 3; public static final int EXTENTEND_FIELD_NUMBER = 3; private int extentEnd_; /** @@ -38015,9 +41221,8 @@ public int getExtentEnd() { return extentEnd_; } - // optional string type = 4; public static final int TYPE_FIELD_NUMBER = 4; - private java.lang.Object type_; + private volatile java.lang.Object type_; /** * optional string type = 4; */ @@ -38058,27 +41263,26 @@ public java.lang.String getType() { } } - // optional string subtype = 5; public static final int SUBTYPE_FIELD_NUMBER = 5; - private java.lang.Object subtype_; + private volatile java.lang.Object subtype_; /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ public boolean hasSubtype() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; @@ -38095,12 +41299,12 @@ public java.lang.String getSubtype() { } } /** - * optional string subtype = 5; - * *
      * Implicit
-     *       uint32 sentence       @see implicit in sentence
+     *       uint32 sentence       @see implicit in sentence
      * 
+ * + * optional string subtype = 5; */ public com.google.protobuf.ByteString getSubtypeBytes() { @@ -38116,20 +41320,11 @@ public java.lang.String getSubtype() { } } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -38137,9 +41332,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(1, getObjectIDBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(2, extentStart_); @@ -38148,32 +41342,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(3, extentEnd_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(4, getTypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(5, getSubtypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subtype_); } for (int i = 0; i < argName_.size(); i++) { - output.writeBytes(6, argName_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, argName_.getRaw(i)); } for (int i = 0; i < arg_.size(); i++) { output.writeMessage(7, arg_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(8, getSignatureBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, signature_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getObjectIDBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, objectID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream @@ -38184,18 +41376,15 @@ public int getSerializedSize() { .computeUInt32Size(3, extentEnd_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getSubtypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, subtype_); } { int dataSize = 0; for (int i = 0; i < argName_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(argName_.getByteString(i)); + dataSize += computeStringSizeNoTag(argName_.getRaw(i)); } size += dataSize; size += 1 * getArgNameList().size(); @@ -38205,19 +41394,105 @@ public int getSerializedSize() { .computeMessageSize(7, arg_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getSignatureBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, signature_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Relation)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Relation other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Relation) obj; + + boolean result = true; + result = result && getArgNameList() + .equals(other.getArgNameList()); + result = result && getArgList() + .equals(other.getArgList()); + result = result && (hasSignature() == other.hasSignature()); + if (hasSignature()) { + result = result && getSignature() + .equals(other.getSignature()); + } + result = result && (hasObjectID() == other.hasObjectID()); + if (hasObjectID()) { + result = result && getObjectID() + .equals(other.getObjectID()); + } + result = result && (hasExtentStart() == other.hasExtentStart()); + if (hasExtentStart()) { + result = result && (getExtentStart() + == other.getExtentStart()); + } + result = result && (hasExtentEnd() == other.hasExtentEnd()); + if (hasExtentEnd()) { + result = result && (getExtentEnd() + == other.getExtentEnd()); + } + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasSubtype() == other.hasSubtype()); + if (hasSubtype()) { + result = result && getSubtype() + .equals(other.getSubtype()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getArgNameCount() > 0) { + hash = (37 * hash) + ARGNAME_FIELD_NUMBER; + hash = (53 * hash) + getArgNameList().hashCode(); + } + if (getArgCount() > 0) { + hash = (37 * hash) + ARG_FIELD_NUMBER; + hash = (53 * hash) + getArgList().hashCode(); + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + if (hasObjectID()) { + hash = (37 * hash) + OBJECTID_FIELD_NUMBER; + hash = (53 * hash) + getObjectID().hashCode(); + } + if (hasExtentStart()) { + hash = (37 * hash) + EXTENTSTART_FIELD_NUMBER; + hash = (53 * hash) + getExtentStart(); + } + if (hasExtentEnd()) { + hash = (37 * hash) + EXTENTEND_FIELD_NUMBER; + hash = (53 * hash) + getExtentEnd(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasSubtype()) { + hash = (37 * hash) + SUBTYPE_FIELD_NUMBER; + hash = (53 * hash) + getSubtype().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation parseFrom( @@ -38243,66 +41518,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Relation} - * *
-     *
      * A representation of a relation, mirroring RelationMention
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Relation} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.RelationOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -38315,19 +41601,16 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getArgFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -38353,10 +41636,6 @@ public Builder 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_Relation_descriptor; @@ -38379,8 +41658,7 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - argName_ = new com.google.protobuf.UnmodifiableLazyStringList( - argName_); + argName_ = argName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.argName_ = argName_; @@ -38422,6 +41700,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -38462,7 +41766,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation other) arg_ = other.arg_; bitField0_ = (bitField0_ & ~0x00000002); argBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgFieldBuilder() : null; } else { argBuilder_.addAllMessages(other.arg_); @@ -38495,7 +41799,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Relation other) subtype_ = other.subtype_; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -38512,7 +41817,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Relation) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -38522,7 +41827,6 @@ public Builder mergeFrom( } private int bitField0_; - // repeated string argName = 6; private com.google.protobuf.LazyStringList argName_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { @@ -38533,9 +41837,9 @@ private void ensureArgNameIsMutable() { /** * repeated string argName = 6; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getArgNameList() { - return java.util.Collections.unmodifiableList(argName_); + return argName_.getUnmodifiableView(); } /** * repeated string argName = 6; @@ -38588,7 +41892,8 @@ public Builder addArgName( public Builder addAllArgName( java.lang.Iterable values) { ensureArgNameIsMutable(); - super.addAll(values, argName_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, argName_); onChanged(); return this; } @@ -38615,7 +41920,6 @@ public Builder addArgNameBytes( return this; } - // repeated .edu.stanford.nlp.pipeline.Entity arg = 7; private java.util.List arg_ = java.util.Collections.emptyList(); private void ensureArgIsMutable() { @@ -38625,7 +41929,7 @@ private void ensureArgIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder> argBuilder_; /** @@ -38757,7 +42061,8 @@ public Builder addAllArg( java.lang.Iterable values) { if (argBuilder_ == null) { ensureArgIsMutable(); - super.addAll(values, arg_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, arg_); onChanged(); } else { argBuilder_.addAllMessages(values); @@ -38840,11 +42145,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addArgBuilder( getArgBuilderList() { return getArgFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + argBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Entity, edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.EntityOrBuilder>( arg_, ((bitField0_ & 0x00000002) == 0x00000002), @@ -38855,7 +42160,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Entity.Builder addArgBuilder( return argBuilder_; } - // optional string signature = 8; private java.lang.Object signature_ = ""; /** * optional string signature = 8; @@ -38869,9 +42173,12 @@ public boolean hasSignature() { public java.lang.String getSignature() { java.lang.Object ref = signature_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - signature_ = s; + 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; @@ -38929,42 +42236,44 @@ public Builder setSignatureBytes( return this; } - // optional string objectID = 1; private java.lang.Object objectID_ = ""; /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public boolean hasObjectID() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public java.lang.String getObjectID() { java.lang.Object ref = objectID_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - objectID_ = s; + 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
        * 
+ * + * optional string objectID = 1; */ public com.google.protobuf.ByteString getObjectIDBytes() { @@ -38980,11 +42289,11 @@ public java.lang.String getObjectID() { } } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public Builder setObjectID( java.lang.String value) { @@ -38997,11 +42306,11 @@ public Builder setObjectID( return this; } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public Builder clearObjectID() { bitField0_ = (bitField0_ & ~0x00000008); @@ -39010,11 +42319,11 @@ public Builder clearObjectID() { return this; } /** - * optional string objectID = 1; - * *
        * inherited from ExtractionObject
        * 
+ * + * optional string objectID = 1; */ public Builder setObjectIDBytes( com.google.protobuf.ByteString value) { @@ -39027,7 +42336,6 @@ public Builder setObjectIDBytes( return this; } - // optional uint32 extentStart = 2; private int extentStart_ ; /** * optional uint32 extentStart = 2; @@ -39060,7 +42368,6 @@ public Builder clearExtentStart() { return this; } - // optional uint32 extentEnd = 3; private int extentEnd_ ; /** * optional uint32 extentEnd = 3; @@ -39093,7 +42400,6 @@ public Builder clearExtentEnd() { return this; } - // optional string type = 4; private java.lang.Object type_ = ""; /** * optional string type = 4; @@ -39107,9 +42413,12 @@ public boolean hasType() { public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - type_ = s; + 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; @@ -39167,45 +42476,47 @@ public Builder setTypeBytes( return this; } - // optional string subtype = 5; private java.lang.Object subtype_ = ""; /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public boolean hasSubtype() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public java.lang.String getSubtype() { java.lang.Object ref = subtype_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - subtype_ = s; + 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
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public com.google.protobuf.ByteString getSubtypeBytes() { @@ -39221,12 +42532,12 @@ public java.lang.String getSubtype() { } } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public Builder setSubtype( java.lang.String value) { @@ -39239,12 +42550,12 @@ public Builder setSubtype( return this; } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public Builder clearSubtype() { bitField0_ = (bitField0_ & ~0x00000080); @@ -39253,12 +42564,12 @@ public Builder clearSubtype() { return this; } /** - * optional string subtype = 5; - * *
        * Implicit
-       *       uint32 sentence       @see implicit in sentence
+       *       uint32 sentence       @see implicit in sentence
        * 
+ * + * optional string subtype = 5; */ public Builder setSubtypeBytes( com.google.protobuf.ByteString value) { @@ -39270,22 +42581,59 @@ public Builder setSubtypeBytes( onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Relation) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Relation) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Relation DEFAULT_INSTANCE; static { - defaultInstance = new Relation(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Relation(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Relation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Relation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Relation) } - public interface OperatorOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface OperatorOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Operator) + com.google.protobuf.MessageOrBuilder { - // required string name = 1; /** * required string name = 1; */ @@ -39300,7 +42648,6 @@ public interface OperatorOrBuilder com.google.protobuf.ByteString getNameBytes(); - // required int32 quantifierSpanBegin = 2; /** * required int32 quantifierSpanBegin = 2; */ @@ -39310,7 +42657,6 @@ public interface OperatorOrBuilder */ int getQuantifierSpanBegin(); - // required int32 quantifierSpanEnd = 3; /** * required int32 quantifierSpanEnd = 3; */ @@ -39320,7 +42666,6 @@ public interface OperatorOrBuilder */ int getQuantifierSpanEnd(); - // required int32 subjectSpanBegin = 4; /** * required int32 subjectSpanBegin = 4; */ @@ -39330,7 +42675,6 @@ public interface OperatorOrBuilder */ int getSubjectSpanBegin(); - // required int32 subjectSpanEnd = 5; /** * required int32 subjectSpanEnd = 5; */ @@ -39340,7 +42684,6 @@ public interface OperatorOrBuilder */ int getSubjectSpanEnd(); - // required int32 objectSpanBegin = 6; /** * required int32 objectSpanBegin = 6; */ @@ -39350,7 +42693,6 @@ public interface OperatorOrBuilder */ int getObjectSpanBegin(); - // required int32 objectSpanEnd = 7; /** * required int32 objectSpanEnd = 7; */ @@ -39361,43 +42703,40 @@ public interface OperatorOrBuilder int getObjectSpanEnd(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Operator} - * *
-   *
    * A Natural Logic operator
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Operator} */ - public static final class Operator extends - com.google.protobuf.GeneratedMessage - implements OperatorOrBuilder { + public static final class Operator extends + com.google.protobuf.GeneratedMessageV3 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) { + private Operator(com.google.protobuf.GeneratedMessageV3.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 Operator() { + name_ = ""; + quantifierSpanBegin_ = 0; + quantifierSpanEnd_ = 0; + subjectSpanBegin_ = 0; + subjectSpanEnd_ = 0; + objectSpanBegin_ = 0; + objectSpanEnd_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Operator( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -39417,8 +42756,9 @@ private Operator( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - name_ = input.readBytes(); + name_ = bs; break; } case 16: { @@ -39457,7 +42797,7 @@ private Operator( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -39468,32 +42808,16 @@ private Operator( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Operator_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; + private volatile java.lang.Object name_; /** * required string name = 1; */ @@ -39534,7 +42858,6 @@ public java.lang.String getName() { } } - // required int32 quantifierSpanBegin = 2; public static final int QUANTIFIERSPANBEGIN_FIELD_NUMBER = 2; private int quantifierSpanBegin_; /** @@ -39550,7 +42873,6 @@ public int getQuantifierSpanBegin() { return quantifierSpanBegin_; } - // required int32 quantifierSpanEnd = 3; public static final int QUANTIFIERSPANEND_FIELD_NUMBER = 3; private int quantifierSpanEnd_; /** @@ -39566,7 +42888,6 @@ public int getQuantifierSpanEnd() { return quantifierSpanEnd_; } - // required int32 subjectSpanBegin = 4; public static final int SUBJECTSPANBEGIN_FIELD_NUMBER = 4; private int subjectSpanBegin_; /** @@ -39582,7 +42903,6 @@ public int getSubjectSpanBegin() { return subjectSpanBegin_; } - // required int32 subjectSpanEnd = 5; public static final int SUBJECTSPANEND_FIELD_NUMBER = 5; private int subjectSpanEnd_; /** @@ -39598,7 +42918,6 @@ public int getSubjectSpanEnd() { return subjectSpanEnd_; } - // required int32 objectSpanBegin = 6; public static final int OBJECTSPANBEGIN_FIELD_NUMBER = 6; private int objectSpanBegin_; /** @@ -39614,7 +42933,6 @@ public int getObjectSpanBegin() { return objectSpanBegin_; } - // required int32 objectSpanEnd = 7; public static final int OBJECTSPANEND_FIELD_NUMBER = 7; private int objectSpanEnd_; /** @@ -39630,19 +42948,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasName()) { memoizedIsInitialized = 0; @@ -39678,9 +42988,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, quantifierSpanBegin_); @@ -39700,18 +43009,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, objectSpanEnd_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream @@ -39737,16 +43044,100 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, objectSpanEnd_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Operator)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Operator other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Operator) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasQuantifierSpanBegin() == other.hasQuantifierSpanBegin()); + if (hasQuantifierSpanBegin()) { + result = result && (getQuantifierSpanBegin() + == other.getQuantifierSpanBegin()); + } + result = result && (hasQuantifierSpanEnd() == other.hasQuantifierSpanEnd()); + if (hasQuantifierSpanEnd()) { + result = result && (getQuantifierSpanEnd() + == other.getQuantifierSpanEnd()); + } + result = result && (hasSubjectSpanBegin() == other.hasSubjectSpanBegin()); + if (hasSubjectSpanBegin()) { + result = result && (getSubjectSpanBegin() + == other.getSubjectSpanBegin()); + } + result = result && (hasSubjectSpanEnd() == other.hasSubjectSpanEnd()); + if (hasSubjectSpanEnd()) { + result = result && (getSubjectSpanEnd() + == other.getSubjectSpanEnd()); + } + result = result && (hasObjectSpanBegin() == other.hasObjectSpanBegin()); + if (hasObjectSpanBegin()) { + result = result && (getObjectSpanBegin() + == other.getObjectSpanBegin()); + } + result = result && (hasObjectSpanEnd() == other.hasObjectSpanEnd()); + if (hasObjectSpanEnd()) { + result = result && (getObjectSpanEnd() + == other.getObjectSpanEnd()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasQuantifierSpanBegin()) { + hash = (37 * hash) + QUANTIFIERSPANBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getQuantifierSpanBegin(); + } + if (hasQuantifierSpanEnd()) { + hash = (37 * hash) + QUANTIFIERSPANEND_FIELD_NUMBER; + hash = (53 * hash) + getQuantifierSpanEnd(); + } + if (hasSubjectSpanBegin()) { + hash = (37 * hash) + SUBJECTSPANBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getSubjectSpanBegin(); + } + if (hasSubjectSpanEnd()) { + hash = (37 * hash) + SUBJECTSPANEND_FIELD_NUMBER; + hash = (53 * hash) + getSubjectSpanEnd(); + } + if (hasObjectSpanBegin()) { + hash = (37 * hash) + OBJECTSPANBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getObjectSpanBegin(); + } + if (hasObjectSpanEnd()) { + hash = (37 * hash) + OBJECTSPANEND_FIELD_NUMBER; + hash = (53 * hash) + getObjectSpanEnd(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator parseFrom( @@ -39772,66 +43163,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Operator} - * *
-     *
      * A Natural Logic operator
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Operator} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.OperatorOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Operator_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -39844,18 +43246,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); name_ = ""; @@ -39875,10 +43274,6 @@ public Builder 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_Operator_descriptor; @@ -39933,6 +43328,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -39967,37 +43388,31 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Operator other) if (other.hasObjectSpanEnd()) { setObjectSpanEnd(other.getObjectSpanEnd()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); 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; @@ -40012,7 +43427,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Operator) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -40022,7 +43437,6 @@ public Builder mergeFrom( } private int bitField0_; - // required string name = 1; private java.lang.Object name_ = ""; /** * required string name = 1; @@ -40036,9 +43450,12 @@ public boolean hasName() { public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; + 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; @@ -40096,7 +43513,6 @@ public Builder setNameBytes( return this; } - // required int32 quantifierSpanBegin = 2; private int quantifierSpanBegin_ ; /** * required int32 quantifierSpanBegin = 2; @@ -40129,7 +43545,6 @@ public Builder clearQuantifierSpanBegin() { return this; } - // required int32 quantifierSpanEnd = 3; private int quantifierSpanEnd_ ; /** * required int32 quantifierSpanEnd = 3; @@ -40162,7 +43577,6 @@ public Builder clearQuantifierSpanEnd() { return this; } - // required int32 subjectSpanBegin = 4; private int subjectSpanBegin_ ; /** * required int32 subjectSpanBegin = 4; @@ -40195,7 +43609,6 @@ public Builder clearSubjectSpanBegin() { return this; } - // required int32 subjectSpanEnd = 5; private int subjectSpanEnd_ ; /** * required int32 subjectSpanEnd = 5; @@ -40228,7 +43641,6 @@ public Builder clearSubjectSpanEnd() { return this; } - // required int32 objectSpanBegin = 6; private int objectSpanBegin_ ; /** * required int32 objectSpanBegin = 6; @@ -40261,7 +43673,6 @@ public Builder clearObjectSpanBegin() { return this; } - // required int32 objectSpanEnd = 7; private int objectSpanEnd_ ; /** * required int32 objectSpanEnd = 7; @@ -40293,22 +43704,59 @@ public Builder clearObjectSpanEnd() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Operator) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Operator) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Operator DEFAULT_INSTANCE; static { - defaultInstance = new Operator(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Operator(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Operator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Operator) } - public interface PolarityOrBuilder - extends com.google.protobuf.MessageOrBuilder { + 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; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ @@ -40318,7 +43766,6 @@ public interface PolarityOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectEquivalence(); - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ @@ -40328,7 +43775,6 @@ public interface PolarityOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectForwardEntailment(); - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ @@ -40338,7 +43784,6 @@ public interface PolarityOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectReverseEntailment(); - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ @@ -40348,7 +43793,6 @@ public interface PolarityOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectNegation(); - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ @@ -40358,7 +43802,6 @@ public interface PolarityOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectAlternation(); - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ @@ -40368,7 +43811,6 @@ public interface PolarityOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectCover(); - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ @@ -40379,43 +43821,40 @@ public interface PolarityOrBuilder edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectIndependence(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.Polarity} - * *
-   *
    * The polarity of a word, according to Natural Logic
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Polarity} */ - public static final class Polarity extends - com.google.protobuf.GeneratedMessage - implements PolarityOrBuilder { + public static final class Polarity extends + com.google.protobuf.GeneratedMessageV3 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) { + private Polarity(com.google.protobuf.GeneratedMessageV3.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 Polarity() { + projectEquivalence_ = 0; + projectForwardEntailment_ = 0; + projectReverseEntailment_ = 0; + projectNegation_ = 0; + projectAlternation_ = 0; + projectCover_ = 0; + projectIndependence_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private Polarity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -40441,7 +43880,7 @@ private Polarity( unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; - projectEquivalence_ = value; + projectEquivalence_ = rawValue; } break; } @@ -40452,7 +43891,7 @@ private Polarity( unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; - projectForwardEntailment_ = value; + projectForwardEntailment_ = rawValue; } break; } @@ -40463,7 +43902,7 @@ private Polarity( unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; - projectReverseEntailment_ = value; + projectReverseEntailment_ = rawValue; } break; } @@ -40474,7 +43913,7 @@ private Polarity( unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; - projectNegation_ = value; + projectNegation_ = rawValue; } break; } @@ -40485,7 +43924,7 @@ private Polarity( unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000010; - projectAlternation_ = value; + projectAlternation_ = rawValue; } break; } @@ -40496,7 +43935,7 @@ private Polarity( unknownFields.mergeVarintField(6, rawValue); } else { bitField0_ |= 0x00000020; - projectCover_ = value; + projectCover_ = rawValue; } break; } @@ -40507,7 +43946,7 @@ private Polarity( unknownFields.mergeVarintField(7, rawValue); } else { bitField0_ |= 0x00000040; - projectIndependence_ = value; + projectIndependence_ = rawValue; } break; } @@ -40517,7 +43956,7 @@ private Polarity( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -40528,32 +43967,16 @@ private Polarity( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Polarity_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; public static final int PROJECTEQUIVALENCE_FIELD_NUMBER = 1; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectEquivalence_; + private int projectEquivalence_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ @@ -40564,12 +43987,12 @@ public boolean hasProjectEquivalence() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectEquivalence() { - return projectEquivalence_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectEquivalence_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; public static final int PROJECTFORWARDENTAILMENT_FIELD_NUMBER = 2; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectForwardEntailment_; + private int projectForwardEntailment_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ @@ -40580,12 +44003,12 @@ public boolean hasProjectForwardEntailment() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectForwardEntailment() { - return projectForwardEntailment_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectForwardEntailment_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; public static final int PROJECTREVERSEENTAILMENT_FIELD_NUMBER = 3; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectReverseEntailment_; + private int projectReverseEntailment_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ @@ -40596,12 +44019,12 @@ public boolean hasProjectReverseEntailment() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectReverseEntailment() { - return projectReverseEntailment_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectReverseEntailment_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; public static final int PROJECTNEGATION_FIELD_NUMBER = 4; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectNegation_; + private int projectNegation_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ @@ -40612,12 +44035,12 @@ public boolean hasProjectNegation() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectNegation() { - return projectNegation_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectNegation_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; public static final int PROJECTALTERNATION_FIELD_NUMBER = 5; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectAlternation_; + private int projectAlternation_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ @@ -40628,12 +44051,12 @@ public boolean hasProjectAlternation() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectAlternation() { - return projectAlternation_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectAlternation_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; public static final int PROJECTCOVER_FIELD_NUMBER = 6; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectCover_; + private int projectCover_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ @@ -40644,12 +44067,12 @@ public boolean hasProjectCover() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectCover() { - return projectCover_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectCover_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; public static final int PROJECTINDEPENDENCE_FIELD_NUMBER = 7; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectIndependence_; + private int projectIndependence_; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ @@ -40660,22 +44083,15 @@ public boolean hasProjectIndependence() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectIndependence() { - return projectIndependence_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectIndependence_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasProjectEquivalence()) { memoizedIsInitialized = 0; @@ -40711,75 +44127,150 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, projectEquivalence_.getNumber()); + output.writeEnum(1, projectEquivalence_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, projectForwardEntailment_.getNumber()); + output.writeEnum(2, projectForwardEntailment_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, projectReverseEntailment_.getNumber()); + output.writeEnum(3, projectReverseEntailment_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, projectNegation_.getNumber()); + output.writeEnum(4, projectNegation_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, projectAlternation_.getNumber()); + output.writeEnum(5, projectAlternation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, projectCover_.getNumber()); + output.writeEnum(6, projectCover_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, projectIndependence_.getNumber()); + output.writeEnum(7, projectIndependence_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, projectEquivalence_.getNumber()); + .computeEnumSize(1, projectEquivalence_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, projectForwardEntailment_.getNumber()); + .computeEnumSize(2, projectForwardEntailment_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, projectReverseEntailment_.getNumber()); + .computeEnumSize(3, projectReverseEntailment_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, projectNegation_.getNumber()); + .computeEnumSize(4, projectNegation_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, projectAlternation_.getNumber()); + .computeEnumSize(5, projectAlternation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, projectCover_.getNumber()); + .computeEnumSize(6, projectCover_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, projectIndependence_.getNumber()); + .computeEnumSize(7, projectIndependence_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity) obj; + + boolean result = true; + result = result && (hasProjectEquivalence() == other.hasProjectEquivalence()); + if (hasProjectEquivalence()) { + result = result && projectEquivalence_ == other.projectEquivalence_; + } + result = result && (hasProjectForwardEntailment() == other.hasProjectForwardEntailment()); + if (hasProjectForwardEntailment()) { + result = result && projectForwardEntailment_ == other.projectForwardEntailment_; + } + result = result && (hasProjectReverseEntailment() == other.hasProjectReverseEntailment()); + if (hasProjectReverseEntailment()) { + result = result && projectReverseEntailment_ == other.projectReverseEntailment_; + } + result = result && (hasProjectNegation() == other.hasProjectNegation()); + if (hasProjectNegation()) { + result = result && projectNegation_ == other.projectNegation_; + } + result = result && (hasProjectAlternation() == other.hasProjectAlternation()); + if (hasProjectAlternation()) { + result = result && projectAlternation_ == other.projectAlternation_; + } + result = result && (hasProjectCover() == other.hasProjectCover()); + if (hasProjectCover()) { + result = result && projectCover_ == other.projectCover_; + } + result = result && (hasProjectIndependence() == other.hasProjectIndependence()); + if (hasProjectIndependence()) { + result = result && projectIndependence_ == other.projectIndependence_; + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasProjectEquivalence()) { + hash = (37 * hash) + PROJECTEQUIVALENCE_FIELD_NUMBER; + hash = (53 * hash) + projectEquivalence_; + } + if (hasProjectForwardEntailment()) { + hash = (37 * hash) + PROJECTFORWARDENTAILMENT_FIELD_NUMBER; + hash = (53 * hash) + projectForwardEntailment_; + } + if (hasProjectReverseEntailment()) { + hash = (37 * hash) + PROJECTREVERSEENTAILMENT_FIELD_NUMBER; + hash = (53 * hash) + projectReverseEntailment_; + } + if (hasProjectNegation()) { + hash = (37 * hash) + PROJECTNEGATION_FIELD_NUMBER; + hash = (53 * hash) + projectNegation_; + } + if (hasProjectAlternation()) { + hash = (37 * hash) + PROJECTALTERNATION_FIELD_NUMBER; + hash = (53 * hash) + projectAlternation_; + } + if (hasProjectCover()) { + hash = (37 * hash) + PROJECTCOVER_FIELD_NUMBER; + hash = (53 * hash) + projectCover_; + } + if (hasProjectIndependence()) { + hash = (37 * hash) + PROJECTINDEPENDENCE_FIELD_NUMBER; + hash = (53 * hash) + projectIndependence_; + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity parseFrom( @@ -40805,66 +44296,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.Polarity} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.PolarityOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Polarity_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -40877,41 +44379,34 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); - projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectEquivalence_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectForwardEntailment_ = 0; bitField0_ = (bitField0_ & ~0x00000002); - projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectReverseEntailment_ = 0; bitField0_ = (bitField0_ & ~0x00000004); - projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectNegation_ = 0; bitField0_ = (bitField0_ & ~0x00000008); - projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectAlternation_ = 0; bitField0_ = (bitField0_ & ~0x00000010); - projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectCover_ = 0; bitField0_ = (bitField0_ & ~0x00000020); - projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectIndependence_ = 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_Polarity_descriptor; @@ -40966,6 +44461,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -40998,37 +44519,31 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity other) if (other.hasProjectIndependence()) { setProjectIndependence(other.getProjectIndependence()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); 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; @@ -41043,7 +44558,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -41053,8 +44568,7 @@ public Builder mergeFrom( } private int bitField0_; - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectEquivalence_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ @@ -41065,7 +44579,8 @@ public boolean hasProjectEquivalence() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectEquivalence() { - return projectEquivalence_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectEquivalence_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectEquivalence = 1; @@ -41075,7 +44590,7 @@ public Builder setProjectEquivalence(edu.stanford.nlp.pipeline.CoreNLPProtos.Nat throw new NullPointerException(); } bitField0_ |= 0x00000001; - projectEquivalence_ = value; + projectEquivalence_ = value.getNumber(); onChanged(); return this; } @@ -41084,13 +44599,12 @@ public Builder setProjectEquivalence(edu.stanford.nlp.pipeline.CoreNLPProtos.Nat */ public Builder clearProjectEquivalence() { bitField0_ = (bitField0_ & ~0x00000001); - projectEquivalence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectEquivalence_ = 0; onChanged(); return this; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectForwardEntailment_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ @@ -41101,7 +44615,8 @@ public boolean hasProjectForwardEntailment() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectForwardEntailment() { - return projectForwardEntailment_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectForwardEntailment_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectForwardEntailment = 2; @@ -41111,7 +44626,7 @@ public Builder setProjectForwardEntailment(edu.stanford.nlp.pipeline.CoreNLPProt throw new NullPointerException(); } bitField0_ |= 0x00000002; - projectForwardEntailment_ = value; + projectForwardEntailment_ = value.getNumber(); onChanged(); return this; } @@ -41120,13 +44635,12 @@ public Builder setProjectForwardEntailment(edu.stanford.nlp.pipeline.CoreNLPProt */ public Builder clearProjectForwardEntailment() { bitField0_ = (bitField0_ & ~0x00000002); - projectForwardEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectForwardEntailment_ = 0; onChanged(); return this; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectReverseEntailment_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ @@ -41137,7 +44651,8 @@ public boolean hasProjectReverseEntailment() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectReverseEntailment() { - return projectReverseEntailment_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectReverseEntailment_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectReverseEntailment = 3; @@ -41147,7 +44662,7 @@ public Builder setProjectReverseEntailment(edu.stanford.nlp.pipeline.CoreNLPProt throw new NullPointerException(); } bitField0_ |= 0x00000004; - projectReverseEntailment_ = value; + projectReverseEntailment_ = value.getNumber(); onChanged(); return this; } @@ -41156,13 +44671,12 @@ public Builder setProjectReverseEntailment(edu.stanford.nlp.pipeline.CoreNLPProt */ public Builder clearProjectReverseEntailment() { bitField0_ = (bitField0_ & ~0x00000004); - projectReverseEntailment_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectReverseEntailment_ = 0; onChanged(); return this; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectNegation_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ @@ -41173,7 +44687,8 @@ public boolean hasProjectNegation() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectNegation() { - return projectNegation_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectNegation_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectNegation = 4; @@ -41183,7 +44698,7 @@ public Builder setProjectNegation(edu.stanford.nlp.pipeline.CoreNLPProtos.Natura throw new NullPointerException(); } bitField0_ |= 0x00000008; - projectNegation_ = value; + projectNegation_ = value.getNumber(); onChanged(); return this; } @@ -41192,13 +44707,12 @@ public Builder setProjectNegation(edu.stanford.nlp.pipeline.CoreNLPProtos.Natura */ public Builder clearProjectNegation() { bitField0_ = (bitField0_ & ~0x00000008); - projectNegation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectNegation_ = 0; onChanged(); return this; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectAlternation_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ @@ -41209,7 +44723,8 @@ public boolean hasProjectAlternation() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectAlternation() { - return projectAlternation_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectAlternation_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectAlternation = 5; @@ -41219,7 +44734,7 @@ public Builder setProjectAlternation(edu.stanford.nlp.pipeline.CoreNLPProtos.Nat throw new NullPointerException(); } bitField0_ |= 0x00000010; - projectAlternation_ = value; + projectAlternation_ = value.getNumber(); onChanged(); return this; } @@ -41228,13 +44743,12 @@ public Builder setProjectAlternation(edu.stanford.nlp.pipeline.CoreNLPProtos.Nat */ public Builder clearProjectAlternation() { bitField0_ = (bitField0_ & ~0x00000010); - projectAlternation_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectAlternation_ = 0; onChanged(); return this; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectCover_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ @@ -41245,7 +44759,8 @@ public boolean hasProjectCover() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectCover() { - return projectCover_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectCover_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectCover = 6; @@ -41255,7 +44770,7 @@ public Builder setProjectCover(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLo throw new NullPointerException(); } bitField0_ |= 0x00000020; - projectCover_ = value; + projectCover_ = value.getNumber(); onChanged(); return this; } @@ -41264,13 +44779,12 @@ public Builder setProjectCover(edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLo */ public Builder clearProjectCover() { bitField0_ = (bitField0_ & ~0x00000020); - projectCover_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectCover_ = 0; onChanged(); return this; } - // required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; - private edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + private int projectIndependence_ = 0; /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ @@ -41281,7 +44795,8 @@ public boolean hasProjectIndependence() { * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation getProjectIndependence() { - return projectIndependence_; + edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation result = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.valueOf(projectIndependence_); + return result == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE : result; } /** * required .edu.stanford.nlp.pipeline.NaturalLogicRelation projectIndependence = 7; @@ -41291,7 +44806,7 @@ public Builder setProjectIndependence(edu.stanford.nlp.pipeline.CoreNLPProtos.Na throw new NullPointerException(); } bitField0_ |= 0x00000040; - projectIndependence_ = value; + projectIndependence_ = value.getNumber(); onChanged(); return this; } @@ -41300,26 +44815,63 @@ public Builder setProjectIndependence(edu.stanford.nlp.pipeline.CoreNLPProtos.Na */ public Builder clearProjectIndependence() { bitField0_ = (bitField0_ & ~0x00000040); - projectIndependence_ = edu.stanford.nlp.pipeline.CoreNLPProtos.NaturalLogicRelation.EQUIVALENCE; + projectIndependence_ = 0; onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Polarity) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Polarity) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity DEFAULT_INSTANCE; static { - defaultInstance = new Polarity(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Polarity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Polarity) } - public interface NERMentionOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface NERMentionOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.NERMention) + com.google.protobuf.MessageOrBuilder { - // optional uint32 sentenceIndex = 1; /** * optional uint32 sentenceIndex = 1; */ @@ -41329,7 +44881,6 @@ public interface NERMentionOrBuilder */ int getSentenceIndex(); - // required uint32 tokenStartInSentenceInclusive = 2; /** * required uint32 tokenStartInSentenceInclusive = 2; */ @@ -41339,7 +44890,6 @@ public interface NERMentionOrBuilder */ int getTokenStartInSentenceInclusive(); - // required uint32 tokenEndInSentenceExclusive = 3; /** * required uint32 tokenEndInSentenceExclusive = 3; */ @@ -41349,7 +44899,6 @@ public interface NERMentionOrBuilder */ int getTokenEndInSentenceExclusive(); - // required string ner = 4; /** * required string ner = 4; */ @@ -41364,7 +44913,6 @@ public interface NERMentionOrBuilder com.google.protobuf.ByteString getNerBytes(); - // optional string normalizedNER = 5; /** * optional string normalizedNER = 5; */ @@ -41379,7 +44927,6 @@ public interface NERMentionOrBuilder com.google.protobuf.ByteString getNormalizedNERBytes(); - // optional string entityType = 6; /** * optional string entityType = 6; */ @@ -41394,7 +44941,6 @@ public interface NERMentionOrBuilder com.google.protobuf.ByteString getEntityTypeBytes(); - // optional .edu.stanford.nlp.pipeline.Timex timex = 7; /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ @@ -41408,7 +44954,6 @@ public interface NERMentionOrBuilder */ edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder(); - // optional string wikipediaEntity = 8; /** * optional string wikipediaEntity = 8; */ @@ -41424,43 +44969,40 @@ public interface NERMentionOrBuilder getWikipediaEntityBytes(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.NERMention} - * *
-   *
    * An NER mention in the text
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.NERMention} */ - public static final class NERMention extends - com.google.protobuf.GeneratedMessage - implements NERMentionOrBuilder { + public static final class NERMention extends + com.google.protobuf.GeneratedMessageV3 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) { + private NERMention(com.google.protobuf.GeneratedMessageV3.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 NERMention() { + sentenceIndex_ = 0; + tokenStartInSentenceInclusive_ = 0; + tokenEndInSentenceExclusive_ = 0; + ner_ = ""; + normalizedNER_ = ""; + entityType_ = ""; + wikipediaEntity_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private NERMention( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -41495,18 +45037,21 @@ private NERMention( break; } case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; - ner_ = input.readBytes(); + ner_ = bs; break; } case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; - normalizedNER_ = input.readBytes(); + normalizedNER_ = bs; break; } case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; - entityType_ = input.readBytes(); + entityType_ = bs; break; } case 58: { @@ -41523,8 +45068,9 @@ private NERMention( break; } case 66: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; - wikipediaEntity_ = input.readBytes(); + wikipediaEntity_ = bs; break; } } @@ -41533,7 +45079,7 @@ private NERMention( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -41544,30 +45090,14 @@ private NERMention( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_NERMention_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional uint32 sentenceIndex = 1; public static final int SENTENCEINDEX_FIELD_NUMBER = 1; private int sentenceIndex_; /** @@ -41583,7 +45113,6 @@ public int getSentenceIndex() { return sentenceIndex_; } - // required uint32 tokenStartInSentenceInclusive = 2; public static final int TOKENSTARTINSENTENCEINCLUSIVE_FIELD_NUMBER = 2; private int tokenStartInSentenceInclusive_; /** @@ -41599,7 +45128,6 @@ public int getTokenStartInSentenceInclusive() { return tokenStartInSentenceInclusive_; } - // required uint32 tokenEndInSentenceExclusive = 3; public static final int TOKENENDINSENTENCEEXCLUSIVE_FIELD_NUMBER = 3; private int tokenEndInSentenceExclusive_; /** @@ -41615,9 +45143,8 @@ public int getTokenEndInSentenceExclusive() { return tokenEndInSentenceExclusive_; } - // required string ner = 4; public static final int NER_FIELD_NUMBER = 4; - private java.lang.Object ner_; + private volatile java.lang.Object ner_; /** * required string ner = 4; */ @@ -41658,9 +45185,8 @@ public java.lang.String getNer() { } } - // optional string normalizedNER = 5; public static final int NORMALIZEDNER_FIELD_NUMBER = 5; - private java.lang.Object normalizedNER_; + private volatile java.lang.Object normalizedNER_; /** * optional string normalizedNER = 5; */ @@ -41701,9 +45227,8 @@ public java.lang.String getNormalizedNER() { } } - // optional string entityType = 6; public static final int ENTITYTYPE_FIELD_NUMBER = 6; - private java.lang.Object entityType_; + private volatile java.lang.Object entityType_; /** * optional string entityType = 6; */ @@ -41744,7 +45269,6 @@ public java.lang.String getEntityType() { } } - // optional .edu.stanford.nlp.pipeline.Timex timex = 7; public static final int TIMEX_FIELD_NUMBER = 7; private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timex_; /** @@ -41757,18 +45281,17 @@ public boolean hasTimex() { * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimex() { - return timex_; + return timex_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timex_; } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder() { - return timex_; + return timex_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timex_; } - // optional string wikipediaEntity = 8; public static final int WIKIPEDIAENTITY_FIELD_NUMBER = 8; - private java.lang.Object wikipediaEntity_; + private volatile java.lang.Object wikipediaEntity_; /** * optional string wikipediaEntity = 8; */ @@ -41809,20 +45332,11 @@ public java.lang.String getWikipediaEntity() { } } - 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (!hasTokenStartInSentenceInclusive()) { memoizedIsInitialized = 0; @@ -41842,7 +45356,6 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, sentenceIndex_); } @@ -41853,26 +45366,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeUInt32(3, tokenEndInSentenceExclusive_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getNerBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ner_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getNormalizedNERBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, normalizedNER_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getEntityTypeBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, entityType_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, timex_); + output.writeMessage(7, getTimex()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getWikipediaEntityBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, wikipediaEntity_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -41889,35 +45401,124 @@ public int getSerializedSize() { .computeUInt32Size(3, tokenEndInSentenceExclusive_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getNerBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ner_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getNormalizedNERBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, normalizedNER_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getEntityTypeBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, entityType_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, timex_); + .computeMessageSize(7, getTimex()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getWikipediaEntityBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, wikipediaEntity_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention other = (edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention) obj; + + boolean result = true; + result = result && (hasSentenceIndex() == other.hasSentenceIndex()); + if (hasSentenceIndex()) { + result = result && (getSentenceIndex() + == other.getSentenceIndex()); + } + result = result && (hasTokenStartInSentenceInclusive() == other.hasTokenStartInSentenceInclusive()); + if (hasTokenStartInSentenceInclusive()) { + result = result && (getTokenStartInSentenceInclusive() + == other.getTokenStartInSentenceInclusive()); + } + result = result && (hasTokenEndInSentenceExclusive() == other.hasTokenEndInSentenceExclusive()); + if (hasTokenEndInSentenceExclusive()) { + result = result && (getTokenEndInSentenceExclusive() + == other.getTokenEndInSentenceExclusive()); + } + result = result && (hasNer() == other.hasNer()); + if (hasNer()) { + result = result && getNer() + .equals(other.getNer()); + } + result = result && (hasNormalizedNER() == other.hasNormalizedNER()); + if (hasNormalizedNER()) { + result = result && getNormalizedNER() + .equals(other.getNormalizedNER()); + } + result = result && (hasEntityType() == other.hasEntityType()); + if (hasEntityType()) { + result = result && getEntityType() + .equals(other.getEntityType()); + } + result = result && (hasTimex() == other.hasTimex()); + if (hasTimex()) { + result = result && getTimex() + .equals(other.getTimex()); + } + result = result && (hasWikipediaEntity() == other.hasWikipediaEntity()); + if (hasWikipediaEntity()) { + result = result && getWikipediaEntity() + .equals(other.getWikipediaEntity()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSentenceIndex()) { + hash = (37 * hash) + SENTENCEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getSentenceIndex(); + } + if (hasTokenStartInSentenceInclusive()) { + hash = (37 * hash) + TOKENSTARTINSENTENCEINCLUSIVE_FIELD_NUMBER; + hash = (53 * hash) + getTokenStartInSentenceInclusive(); + } + if (hasTokenEndInSentenceExclusive()) { + hash = (37 * hash) + TOKENENDINSENTENCEEXCLUSIVE_FIELD_NUMBER; + hash = (53 * hash) + getTokenEndInSentenceExclusive(); + } + if (hasNer()) { + hash = (37 * hash) + NER_FIELD_NUMBER; + hash = (53 * hash) + getNer().hashCode(); + } + if (hasNormalizedNER()) { + hash = (37 * hash) + NORMALIZEDNER_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedNER().hashCode(); + } + if (hasEntityType()) { + hash = (37 * hash) + ENTITYTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + } + if (hasTimex()) { + hash = (37 * hash) + TIMEX_FIELD_NUMBER; + hash = (53 * hash) + getTimex().hashCode(); + } + if (hasWikipediaEntity()) { + hash = (37 * hash) + WIKIPEDIAENTITY_FIELD_NUMBER; + hash = (53 * hash) + getWikipediaEntity().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention parseFrom( @@ -41943,66 +45544,77 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.NERMention} - * *
-     *
      * An NER mention in the text
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.NERMention} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.NERMentionOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_NERMention_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -42015,19 +45627,16 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTimexFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); sentenceIndex_ = 0; @@ -42043,7 +45652,7 @@ public Builder clear() { entityType_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (timexBuilder_ == null) { - timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); + timex_ = null; } else { timexBuilder_.clear(); } @@ -42053,10 +45662,6 @@ public Builder 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_NERMention_descriptor; @@ -42119,6 +45724,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -42162,21 +45793,19 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention othe wikipediaEntity_ = other.wikipediaEntity_; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (!hasTokenStartInSentenceInclusive()) { - return false; } if (!hasTokenEndInSentenceExclusive()) { - return false; } if (!hasNer()) { - return false; } return true; @@ -42191,7 +45820,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -42201,7 +45830,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional uint32 sentenceIndex = 1; private int sentenceIndex_ ; /** * optional uint32 sentenceIndex = 1; @@ -42234,7 +45862,6 @@ public Builder clearSentenceIndex() { return this; } - // required uint32 tokenStartInSentenceInclusive = 2; private int tokenStartInSentenceInclusive_ ; /** * required uint32 tokenStartInSentenceInclusive = 2; @@ -42267,7 +45894,6 @@ public Builder clearTokenStartInSentenceInclusive() { return this; } - // required uint32 tokenEndInSentenceExclusive = 3; private int tokenEndInSentenceExclusive_ ; /** * required uint32 tokenEndInSentenceExclusive = 3; @@ -42300,7 +45926,6 @@ public Builder clearTokenEndInSentenceExclusive() { return this; } - // required string ner = 4; private java.lang.Object ner_ = ""; /** * required string ner = 4; @@ -42314,9 +45939,12 @@ public boolean hasNer() { public java.lang.String getNer() { java.lang.Object ref = ner_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - ner_ = s; + 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; @@ -42374,7 +46002,6 @@ public Builder setNerBytes( return this; } - // optional string normalizedNER = 5; private java.lang.Object normalizedNER_ = ""; /** * optional string normalizedNER = 5; @@ -42388,9 +46015,12 @@ public boolean hasNormalizedNER() { public java.lang.String getNormalizedNER() { java.lang.Object ref = normalizedNER_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - normalizedNER_ = s; + 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; @@ -42448,7 +46078,6 @@ public Builder setNormalizedNERBytes( return this; } - // optional string entityType = 6; private java.lang.Object entityType_ = ""; /** * optional string entityType = 6; @@ -42462,9 +46091,12 @@ public boolean hasEntityType() { public java.lang.String getEntityType() { java.lang.Object ref = entityType_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - entityType_ = s; + 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; @@ -42522,9 +46154,8 @@ public Builder setEntityTypeBytes( return this; } - // optional .edu.stanford.nlp.pipeline.Timex timex = 7; - private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.Timex timex_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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; @@ -42537,7 +46168,7 @@ public boolean hasTimex() { */ public edu.stanford.nlp.pipeline.CoreNLPProtos.Timex getTimex() { if (timexBuilder_ == null) { - return timex_; + return timex_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timex_; } else { return timexBuilder_.getMessage(); } @@ -42578,6 +46209,7 @@ public Builder setTimex( public Builder mergeTimex(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) { if (timexBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && + timex_ != null && timex_ != edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance()) { timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.newBuilder(timex_).mergeFrom(value).buildPartial(); @@ -42596,7 +46228,7 @@ public Builder mergeTimex(edu.stanford.nlp.pipeline.CoreNLPProtos.Timex value) { */ public Builder clearTimex() { if (timexBuilder_ == null) { - timex_ = edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance(); + timex_ = null; onChanged(); } else { timexBuilder_.clear(); @@ -42619,19 +46251,20 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder( if (timexBuilder_ != null) { return timexBuilder_.getMessageOrBuilder(); } else { - return timex_; + return timex_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.getDefaultInstance() : timex_; } } /** * optional .edu.stanford.nlp.pipeline.Timex timex = 7; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + timexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.Timex, edu.stanford.nlp.pipeline.CoreNLPProtos.Timex.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder>( - timex_, + getTimex(), getParentForChildren(), isClean()); timex_ = null; @@ -42639,7 +46272,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TimexOrBuilder getTimexOrBuilder( return timexBuilder_; } - // optional string wikipediaEntity = 8; private java.lang.Object wikipediaEntity_ = ""; /** * optional string wikipediaEntity = 8; @@ -42653,9 +46285,12 @@ public boolean hasWikipediaEntity() { public java.lang.String getWikipediaEntity() { java.lang.Object ref = wikipediaEntity_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - wikipediaEntity_ = s; + 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; @@ -42712,22 +46347,59 @@ public Builder setWikipediaEntityBytes( onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.NERMention) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.NERMention) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention DEFAULT_INSTANCE; static { - defaultInstance = new NERMention(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.NERMention getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.NERMention) } - public interface SentenceFragmentOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface SentenceFragmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.SentenceFragment) + com.google.protobuf.MessageOrBuilder { - // repeated uint32 tokenIndex = 1; /** * repeated uint32 tokenIndex = 1; */ @@ -42741,7 +46413,6 @@ public interface SentenceFragmentOrBuilder */ int getTokenIndex(int index); - // optional uint32 root = 2; /** * optional uint32 root = 2; */ @@ -42751,7 +46422,6 @@ public interface SentenceFragmentOrBuilder */ int getRoot(); - // optional bool assumedTruth = 3; /** * optional bool assumedTruth = 3; */ @@ -42761,7 +46431,6 @@ public interface SentenceFragmentOrBuilder */ boolean getAssumedTruth(); - // optional double score = 4; /** * optional double score = 4; */ @@ -42772,44 +46441,38 @@ public interface SentenceFragmentOrBuilder double getScore(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.SentenceFragment} - * *
-   *
    * An entailed sentence fragment.
    * Created by the openie annotator.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.SentenceFragment} */ - public static final class SentenceFragment extends - com.google.protobuf.GeneratedMessage - implements SentenceFragmentOrBuilder { + public static final class SentenceFragment extends + com.google.protobuf.GeneratedMessageV3 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) { + private SentenceFragment(com.google.protobuf.GeneratedMessageV3.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 SentenceFragment() { + tokenIndex_ = java.util.Collections.emptyList(); + root_ = 0; + assumedTruth_ = false; + score_ = 0D; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private SentenceFragment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -42870,7 +46533,7 @@ private SentenceFragment( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tokenIndex_ = java.util.Collections.unmodifiableList(tokenIndex_); @@ -42884,30 +46547,14 @@ private SentenceFragment( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SentenceFragment_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // repeated uint32 tokenIndex = 1; public static final int TOKENINDEX_FIELD_NUMBER = 1; private java.util.List tokenIndex_; /** @@ -42930,7 +46577,6 @@ public int getTokenIndex(int index) { return tokenIndex_.get(index); } - // optional uint32 root = 2; public static final int ROOT_FIELD_NUMBER = 2; private int root_; /** @@ -42946,7 +46592,6 @@ public int getRoot() { return root_; } - // optional bool assumedTruth = 3; public static final int ASSUMEDTRUTH_FIELD_NUMBER = 3; private boolean assumedTruth_; /** @@ -42962,7 +46607,6 @@ public boolean getAssumedTruth() { return assumedTruth_; } - // optional double score = 4; public static final int SCORE_FIELD_NUMBER = 4; private double score_; /** @@ -42978,16 +46622,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -42995,7 +46634,6 @@ public final boolean isInitialized() { 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)); } @@ -43008,12 +46646,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeDouble(4, score_); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -43038,16 +46675,74 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, score_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment other = (edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment) obj; + + boolean result = true; + result = result && getTokenIndexList() + .equals(other.getTokenIndexList()); + result = result && (hasRoot() == other.hasRoot()); + if (hasRoot()) { + result = result && (getRoot() + == other.getRoot()); + } + result = result && (hasAssumedTruth() == other.hasAssumedTruth()); + if (hasAssumedTruth()) { + result = result && (getAssumedTruth() + == other.getAssumedTruth()); + } + result = result && (hasScore() == other.hasScore()); + if (hasScore()) { + result = result && ( + java.lang.Double.doubleToLongBits(getScore()) + == java.lang.Double.doubleToLongBits( + other.getScore())); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getTokenIndexCount() > 0) { + hash = (37 * hash) + TOKENINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTokenIndexList().hashCode(); + } + if (hasRoot()) { + hash = (37 * hash) + ROOT_FIELD_NUMBER; + hash = (53 * hash) + getRoot(); + } + if (hasAssumedTruth()) { + hash = (37 * hash) + ASSUMEDTRUTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAssumedTruth()); + } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment parseFrom( @@ -43073,67 +46768,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment parseFrom } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.SentenceFragment} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmentOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_SentenceFragment_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -43146,18 +46852,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); tokenIndex_ = java.util.Collections.emptyList(); @@ -43171,10 +46874,6 @@ public Builder 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_SentenceFragment_descriptor; @@ -43218,6 +46917,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -43248,7 +46973,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragmen if (other.hasScore()) { setScore(other.getScore()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -43265,7 +46991,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -43275,7 +47001,6 @@ public Builder mergeFrom( } private int bitField0_; - // repeated uint32 tokenIndex = 1; private java.util.List tokenIndex_ = java.util.Collections.emptyList(); private void ensureTokenIndexIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { @@ -43327,7 +47052,8 @@ public Builder addTokenIndex(int value) { public Builder addAllTokenIndex( java.lang.Iterable values) { ensureTokenIndexIsMutable(); - super.addAll(values, tokenIndex_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tokenIndex_); onChanged(); return this; } @@ -43341,7 +47067,6 @@ public Builder clearTokenIndex() { return this; } - // optional uint32 root = 2; private int root_ ; /** * optional uint32 root = 2; @@ -43374,7 +47099,6 @@ public Builder clearRoot() { return this; } - // optional bool assumedTruth = 3; private boolean assumedTruth_ ; /** * optional bool assumedTruth = 3; @@ -43407,7 +47131,6 @@ public Builder clearAssumedTruth() { return this; } - // optional double score = 4; private double score_ ; /** * optional double score = 4; @@ -43439,22 +47162,59 @@ public Builder clearScore() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.SentenceFragment) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.SentenceFragment) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment DEFAULT_INSTANCE; static { - defaultInstance = new SentenceFragment(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceFragment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.SentenceFragment) } - public interface TokenLocationOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface TokenLocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.TokenLocation) + com.google.protobuf.MessageOrBuilder { - // optional uint32 sentenceIndex = 1; /** * optional uint32 sentenceIndex = 1; */ @@ -43464,7 +47224,6 @@ public interface TokenLocationOrBuilder */ int getSentenceIndex(); - // optional uint32 tokenIndex = 2; /** * optional uint32 tokenIndex = 2; */ @@ -43475,44 +47234,36 @@ public interface TokenLocationOrBuilder 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.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.TokenLocation} */ - public static final class TokenLocation extends - com.google.protobuf.GeneratedMessage - implements TokenLocationOrBuilder { + public static final class TokenLocation extends + com.google.protobuf.GeneratedMessageV3 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) { + private TokenLocation(com.google.protobuf.GeneratedMessageV3.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 TokenLocation() { + sentenceIndex_ = 0; + tokenIndex_ = 0; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private TokenLocation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -43547,7 +47298,7 @@ private TokenLocation( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -43558,30 +47309,14 @@ private TokenLocation( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_TokenLocation_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional uint32 sentenceIndex = 1; public static final int SENTENCEINDEX_FIELD_NUMBER = 1; private int sentenceIndex_; /** @@ -43597,7 +47332,6 @@ public int getSentenceIndex() { return sentenceIndex_; } - // optional uint32 tokenIndex = 2; public static final int TOKENINDEX_FIELD_NUMBER = 2; private int tokenIndex_; /** @@ -43613,14 +47347,11 @@ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -43628,19 +47359,17 @@ public final boolean isInitialized() { 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); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -43652,16 +47381,55 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, tokenIndex_); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation other = (edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation) obj; + + boolean result = true; + result = result && (hasSentenceIndex() == other.hasSentenceIndex()); + if (hasSentenceIndex()) { + result = result && (getSentenceIndex() + == other.getSentenceIndex()); + } + result = result && (hasTokenIndex() == other.hasTokenIndex()); + if (hasTokenIndex()) { + result = result && (getTokenIndex() + == other.getTokenIndex()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSentenceIndex()) { + hash = (37 * hash) + SENTENCEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getSentenceIndex(); + } + if (hasTokenIndex()) { + hash = (37 * hash) + TOKENINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTokenIndex(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation parseFrom( @@ -43687,67 +47455,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.TokenLocation} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_TokenLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -43760,18 +47539,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); sentenceIndex_ = 0; @@ -43781,10 +47557,6 @@ public Builder 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_TokenLocation_descriptor; @@ -43819,6 +47591,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -43836,7 +47634,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation o if (other.hasTokenIndex()) { setTokenIndex(other.getTokenIndex()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -43853,7 +47652,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -43863,7 +47662,6 @@ public Builder mergeFrom( } private int bitField0_; - // optional uint32 sentenceIndex = 1; private int sentenceIndex_ ; /** * optional uint32 sentenceIndex = 1; @@ -43896,7 +47694,6 @@ public Builder clearSentenceIndex() { return this; } - // optional uint32 tokenIndex = 2; private int tokenIndex_ ; /** * optional uint32 tokenIndex = 2; @@ -43928,392 +47725,419 @@ public Builder clearTokenIndex() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.TokenLocation) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.TokenLocation) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation DEFAULT_INSTANCE; static { - defaultInstance = new TokenLocation(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.TokenLocation) } - public interface RelationTripleOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface RelationTripleOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.RelationTriple) + com.google.protobuf.MessageOrBuilder { - // optional string subject = 1; /** - * optional string subject = 1; - * *
      * The surface form of the subject
      * 
+ * + * optional string subject = 1; */ boolean hasSubject(); /** - * optional string subject = 1; - * *
      * The surface form of the subject
      * 
+ * + * optional string subject = 1; */ java.lang.String getSubject(); /** - * optional string subject = 1; - * *
      * The surface form of the subject
      * 
+ * + * optional string subject = 1; */ com.google.protobuf.ByteString getSubjectBytes(); - // optional string relation = 2; /** - * optional string relation = 2; - * *
      * The surface form of the relation (required)
      * 
+ * + * optional string relation = 2; */ boolean hasRelation(); /** - * optional string relation = 2; - * *
      * The surface form of the relation (required)
      * 
+ * + * optional string relation = 2; */ java.lang.String getRelation(); /** - * optional string relation = 2; - * *
      * The surface form of the relation (required)
      * 
+ * + * optional string relation = 2; */ com.google.protobuf.ByteString getRelationBytes(); - // optional string object = 3; /** - * optional string object = 3; - * *
      * The surface form of the object
      * 
+ * + * optional string object = 3; */ boolean hasObject(); /** - * optional string object = 3; - * *
      * The surface form of the object
      * 
+ * + * optional string object = 3; */ java.lang.String getObject(); /** - * optional string object = 3; - * *
      * The surface form of the object
      * 
+ * + * optional string object = 3; */ com.google.protobuf.ByteString getObjectBytes(); - // optional double confidence = 4; /** - * optional double confidence = 4; - * *
      * The [optional] confidence of the extraction
      * 
+ * + * optional double confidence = 4; */ boolean hasConfidence(); /** - * optional double confidence = 4; - * *
      * The [optional] confidence of the extraction
      * 
+ * + * optional double confidence = 4; */ double getConfidence(); - // repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ java.util.List getSubjectTokensList(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ int getSubjectTokensCount(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ java.util.List getSubjectTokensOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ java.util.List getRelationTokensList(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ int getRelationTokensCount(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ java.util.List getRelationTokensOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder( int index); - // repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ java.util.List getObjectTokensList(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ int getObjectTokensCount(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ java.util.List getObjectTokensOrBuilderList(); /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder( int index); - // optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
      * The dependency graph fragment for this triple
      * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ boolean hasTree(); /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
      * The dependency graph fragment for this triple
      * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getTree(); /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
      * The dependency graph fragment for this triple
      * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder(); - // optional bool istmod = 9; /** - * optional bool istmod = 9; - * *
      * If true, this expresses an implicit tmod relation
      * 
+ * + * optional bool istmod = 9; */ boolean hasIstmod(); /** - * optional bool istmod = 9; - * *
      * If true, this expresses an implicit tmod relation
      * 
+ * + * optional bool istmod = 9; */ boolean getIstmod(); - // optional bool prefixBe = 10; /** - * optional bool prefixBe = 10; - * *
      * If true, this relation string is missing a 'be' prefix
      * 
+ * + * optional bool prefixBe = 10; */ boolean hasPrefixBe(); /** - * optional bool prefixBe = 10; - * *
      * If true, this relation string is missing a 'be' prefix
      * 
+ * + * optional bool prefixBe = 10; */ boolean getPrefixBe(); - // optional bool suffixBe = 11; /** - * optional bool suffixBe = 11; - * *
      * If true, this relation string is missing a 'be' suffix
      * 
+ * + * optional bool suffixBe = 11; */ boolean hasSuffixBe(); /** - * optional bool suffixBe = 11; - * *
      * If true, this relation string is missing a 'be' suffix
      * 
+ * + * optional bool suffixBe = 11; */ boolean getSuffixBe(); - // optional bool suffixOf = 12; /** - * optional bool suffixOf = 12; - * *
      * If true, this relation string is missing a 'of' prefix
      * 
+ * + * optional bool suffixOf = 12; */ boolean hasSuffixOf(); /** - * optional bool suffixOf = 12; - * *
      * If true, this relation string is missing a 'of' prefix
      * 
+ * + * optional bool suffixOf = 12; */ boolean getSuffixOf(); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.RelationTriple} - * *
-   *
    * An OpenIE relation triple.
    * Created by the openie annotator.
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.RelationTriple} */ - public static final class RelationTriple extends - com.google.protobuf.GeneratedMessage - implements RelationTripleOrBuilder { + public static final class RelationTriple extends + com.google.protobuf.GeneratedMessageV3 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) { + private RelationTriple(com.google.protobuf.GeneratedMessageV3.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 RelationTriple() { + subject_ = ""; + relation_ = ""; + object_ = ""; + confidence_ = 0D; + subjectTokens_ = java.util.Collections.emptyList(); + relationTokens_ = java.util.Collections.emptyList(); + objectTokens_ = java.util.Collections.emptyList(); + istmod_ = false; + prefixBe_ = false; + suffixBe_ = false; + suffixOf_ = false; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private RelationTriple( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44333,18 +48157,21 @@ private RelationTriple( break; } case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - subject_ = input.readBytes(); + subject_ = bs; break; } case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - relation_ = input.readBytes(); + relation_ = bs; break; } case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - object_ = input.readBytes(); + object_ = bs; break; } case 33: { @@ -44390,7 +48217,8 @@ private RelationTriple( subjectTokens_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } - subjectTokens_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); + subjectTokens_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); break; } case 114: { @@ -44398,7 +48226,8 @@ private RelationTriple( relationTokens_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } - relationTokens_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); + relationTokens_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); break; } case 122: { @@ -44406,7 +48235,8 @@ private RelationTriple( objectTokens_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } - objectTokens_.add(input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); + objectTokens_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.PARSER, extensionRegistry)); break; } } @@ -44415,7 +48245,7 @@ private RelationTriple( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { subjectTokens_ = java.util.Collections.unmodifiableList(subjectTokens_); @@ -44435,48 +48265,32 @@ private RelationTriple( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_RelationTriple_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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_; - // optional string subject = 1; public static final int SUBJECT_FIELD_NUMBER = 1; - private java.lang.Object subject_; + private volatile java.lang.Object subject_; /** - * optional string subject = 1; - * *
      * The surface form of the subject
      * 
+ * + * optional string subject = 1; */ public boolean hasSubject() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string subject = 1; - * *
      * The surface form of the subject
      * 
+ * + * optional string subject = 1; */ public java.lang.String getSubject() { java.lang.Object ref = subject_; @@ -44493,11 +48307,11 @@ public java.lang.String getSubject() { } } /** - * optional string subject = 1; - * *
      * The surface form of the subject
      * 
+ * + * optional string subject = 1; */ public com.google.protobuf.ByteString getSubjectBytes() { @@ -44513,25 +48327,24 @@ public java.lang.String getSubject() { } } - // optional string relation = 2; public static final int RELATION_FIELD_NUMBER = 2; - private java.lang.Object relation_; + private volatile java.lang.Object relation_; /** - * optional string relation = 2; - * *
      * The surface form of the relation (required)
      * 
+ * + * optional string relation = 2; */ public boolean hasRelation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string relation = 2; - * *
      * The surface form of the relation (required)
      * 
+ * + * optional string relation = 2; */ public java.lang.String getRelation() { java.lang.Object ref = relation_; @@ -44548,11 +48361,11 @@ public java.lang.String getRelation() { } } /** - * optional string relation = 2; - * *
      * The surface form of the relation (required)
      * 
+ * + * optional string relation = 2; */ public com.google.protobuf.ByteString getRelationBytes() { @@ -44568,25 +48381,24 @@ public java.lang.String getRelation() { } } - // optional string object = 3; public static final int OBJECT_FIELD_NUMBER = 3; - private java.lang.Object object_; + private volatile java.lang.Object object_; /** - * optional string object = 3; - * *
      * The surface form of the object
      * 
+ * + * optional string object = 3; */ public boolean hasObject() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string object = 3; - * *
      * The surface form of the object
      * 
+ * + * optional string object = 3; */ public java.lang.String getObject() { java.lang.Object ref = object_; @@ -44603,11 +48415,11 @@ public java.lang.String getObject() { } } /** - * optional string object = 3; - * *
      * The surface form of the object
      * 
+ * + * optional string object = 3; */ public com.google.protobuf.ByteString getObjectBytes() { @@ -44623,346 +48435,324 @@ public java.lang.String getObject() { } } - // optional double confidence = 4; public static final int CONFIDENCE_FIELD_NUMBER = 4; private double confidence_; /** - * optional double confidence = 4; - * *
      * The [optional] confidence of the extraction
      * 
+ * + * optional double confidence = 4; */ public boolean hasConfidence() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional double confidence = 4; - * *
      * The [optional] confidence of the extraction
      * 
+ * + * optional double confidence = 4; */ public double getConfidence() { return confidence_; } - // repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public java.util.List getSubjectTokensList() { return subjectTokens_; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public java.util.List getSubjectTokensOrBuilderList() { return subjectTokens_; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public int getSubjectTokensCount() { return subjectTokens_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
      * The tokens comprising the subject of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder( int index) { return subjectTokens_.get(index); } - // repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public java.util.List getRelationTokensList() { return relationTokens_; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public java.util.List getRelationTokensOrBuilderList() { return relationTokens_; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public int getRelationTokensCount() { return relationTokens_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
      * The tokens comprising the relation of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder( int index) { return relationTokens_.get(index); } - // repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public java.util.List getObjectTokensList() { return objectTokens_; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public java.util.List getObjectTokensOrBuilderList() { return objectTokens_; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public int getObjectTokensCount() { return objectTokens_.size(); } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
      * The tokens comprising the object of the triple
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ 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
      * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder( int index) { return objectTokens_.get(index); } - // optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; 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
      * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public boolean hasTree() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
      * The dependency graph fragment for this triple
      * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getTree() { - return tree_; + return tree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : tree_; } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
      * The dependency graph fragment for this triple
      * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder() { - return tree_; + return tree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : tree_; } - // optional bool istmod = 9; public static final int ISTMOD_FIELD_NUMBER = 9; private boolean istmod_; /** - * optional bool istmod = 9; - * *
      * If true, this expresses an implicit tmod relation
      * 
+ * + * optional bool istmod = 9; */ public boolean hasIstmod() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** - * optional bool istmod = 9; - * *
      * If true, this expresses an implicit tmod relation
      * 
+ * + * optional bool istmod = 9; */ public boolean getIstmod() { return istmod_; } - // optional bool prefixBe = 10; 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
      * 
+ * + * optional bool prefixBe = 10; */ public boolean hasPrefixBe() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** - * optional bool prefixBe = 10; - * *
      * If true, this relation string is missing a 'be' prefix
      * 
+ * + * optional bool prefixBe = 10; */ public boolean getPrefixBe() { return prefixBe_; } - // optional bool suffixBe = 11; 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
      * 
+ * + * optional bool suffixBe = 11; */ public boolean hasSuffixBe() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional bool suffixBe = 11; - * *
      * If true, this relation string is missing a 'be' suffix
      * 
+ * + * optional bool suffixBe = 11; */ public boolean getSuffixBe() { return suffixBe_; } - // optional bool suffixOf = 12; 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
      * 
+ * + * optional bool suffixOf = 12; */ public boolean hasSuffixOf() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** - * optional bool suffixOf = 12; - * *
      * If true, this relation string is missing a 'of' prefix
      * 
+ * + * optional bool suffixOf = 12; */ 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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; if (hasTree()) { if (!getTree().isInitialized()) { @@ -44976,21 +48766,20 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getSubjectBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRelationBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, relation_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getObjectBytes()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, object_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeDouble(4, confidence_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(8, tree_); + output.writeMessage(8, getTree()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(9, istmod_); @@ -45013,26 +48802,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < objectTokens_.size(); i++) { output.writeMessage(15, objectTokens_.get(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getSubjectBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRelationBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, relation_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getObjectBytes()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, object_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream @@ -45040,7 +48825,7 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, tree_); + .computeMessageSize(8, getTree()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream @@ -45070,16 +48855,143 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, objectTokens_.get(i)); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple other = (edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple) obj; + + boolean result = true; + result = result && (hasSubject() == other.hasSubject()); + if (hasSubject()) { + result = result && getSubject() + .equals(other.getSubject()); + } + result = result && (hasRelation() == other.hasRelation()); + if (hasRelation()) { + result = result && getRelation() + .equals(other.getRelation()); + } + result = result && (hasObject() == other.hasObject()); + if (hasObject()) { + result = result && getObject() + .equals(other.getObject()); + } + result = result && (hasConfidence() == other.hasConfidence()); + if (hasConfidence()) { + result = result && ( + java.lang.Double.doubleToLongBits(getConfidence()) + == java.lang.Double.doubleToLongBits( + other.getConfidence())); + } + result = result && getSubjectTokensList() + .equals(other.getSubjectTokensList()); + result = result && getRelationTokensList() + .equals(other.getRelationTokensList()); + result = result && getObjectTokensList() + .equals(other.getObjectTokensList()); + result = result && (hasTree() == other.hasTree()); + if (hasTree()) { + result = result && getTree() + .equals(other.getTree()); + } + result = result && (hasIstmod() == other.hasIstmod()); + if (hasIstmod()) { + result = result && (getIstmod() + == other.getIstmod()); + } + result = result && (hasPrefixBe() == other.hasPrefixBe()); + if (hasPrefixBe()) { + result = result && (getPrefixBe() + == other.getPrefixBe()); + } + result = result && (hasSuffixBe() == other.hasSuffixBe()); + if (hasSuffixBe()) { + result = result && (getSuffixBe() + == other.getSuffixBe()); + } + result = result && (hasSuffixOf() == other.hasSuffixOf()); + if (hasSuffixOf()) { + result = result && (getSuffixOf() + == other.getSuffixOf()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasSubject()) { + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + } + if (hasRelation()) { + hash = (37 * hash) + RELATION_FIELD_NUMBER; + hash = (53 * hash) + getRelation().hashCode(); + } + if (hasObject()) { + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + } + if (hasConfidence()) { + hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getConfidence())); + } + if (getSubjectTokensCount() > 0) { + hash = (37 * hash) + SUBJECTTOKENS_FIELD_NUMBER; + hash = (53 * hash) + getSubjectTokensList().hashCode(); + } + if (getRelationTokensCount() > 0) { + hash = (37 * hash) + RELATIONTOKENS_FIELD_NUMBER; + hash = (53 * hash) + getRelationTokensList().hashCode(); + } + if (getObjectTokensCount() > 0) { + hash = (37 * hash) + OBJECTTOKENS_FIELD_NUMBER; + hash = (53 * hash) + getObjectTokensList().hashCode(); + } + if (hasTree()) { + hash = (37 * hash) + TREE_FIELD_NUMBER; + hash = (53 * hash) + getTree().hashCode(); + } + if (hasIstmod()) { + hash = (37 * hash) + ISTMOD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIstmod()); + } + if (hasPrefixBe()) { + hash = (37 * hash) + PREFIXBE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrefixBe()); + } + if (hasSuffixBe()) { + hash = (37 * hash) + SUFFIXBE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuffixBe()); + } + if (hasSuffixOf()) { + hash = (37 * hash) + SUFFIXOF_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuffixOf()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple parseFrom( @@ -45105,67 +49017,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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.
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.RelationTriple} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTripleOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_RelationTriple_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -45178,22 +49101,19 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSubjectTokensFieldBuilder(); getRelationTokensFieldBuilder(); getObjectTokensFieldBuilder(); getTreeFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); subject_ = ""; @@ -45223,7 +49143,7 @@ public Builder clear() { objectTokensBuilder_.clear(); } if (treeBuilder_ == null) { - tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + tree_ = null; } else { treeBuilder_.clear(); } @@ -45239,10 +49159,6 @@ public Builder 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_RelationTriple_descriptor; @@ -45336,6 +49252,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -45384,7 +49326,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple subjectTokens_ = other.subjectTokens_; bitField0_ = (bitField0_ & ~0x00000010); subjectTokensBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSubjectTokensFieldBuilder() : null; } else { subjectTokensBuilder_.addAllMessages(other.subjectTokens_); @@ -45410,7 +49352,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple relationTokens_ = other.relationTokens_; bitField0_ = (bitField0_ & ~0x00000020); relationTokensBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRelationTokensFieldBuilder() : null; } else { relationTokensBuilder_.addAllMessages(other.relationTokens_); @@ -45436,7 +49378,7 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple objectTokens_ = other.objectTokens_; bitField0_ = (bitField0_ & ~0x00000040); objectTokensBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectTokensFieldBuilder() : null; } else { objectTokensBuilder_.addAllMessages(other.objectTokens_); @@ -45458,14 +49400,14 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple if (other.hasSuffixOf()) { setSuffixOf(other.getSuffixOf()); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } public final boolean isInitialized() { if (hasTree()) { if (!getTree().isInitialized()) { - return false; } } @@ -45481,7 +49423,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -45491,42 +49433,44 @@ public Builder mergeFrom( } private int bitField0_; - // optional string subject = 1; private java.lang.Object subject_ = ""; /** - * optional string subject = 1; - * *
        * The surface form of the subject
        * 
+ * + * optional string subject = 1; */ public boolean hasSubject() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional string subject = 1; - * *
        * The surface form of the subject
        * 
+ * + * optional string subject = 1; */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - subject_ = s; + 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
        * 
+ * + * optional string subject = 1; */ public com.google.protobuf.ByteString getSubjectBytes() { @@ -45542,11 +49486,11 @@ public java.lang.String getSubject() { } } /** - * optional string subject = 1; - * *
        * The surface form of the subject
        * 
+ * + * optional string subject = 1; */ public Builder setSubject( java.lang.String value) { @@ -45559,11 +49503,11 @@ public Builder setSubject( return this; } /** - * optional string subject = 1; - * *
        * The surface form of the subject
        * 
+ * + * optional string subject = 1; */ public Builder clearSubject() { bitField0_ = (bitField0_ & ~0x00000001); @@ -45572,11 +49516,11 @@ public Builder clearSubject() { return this; } /** - * optional string subject = 1; - * *
        * The surface form of the subject
        * 
+ * + * optional string subject = 1; */ public Builder setSubjectBytes( com.google.protobuf.ByteString value) { @@ -45589,42 +49533,44 @@ public Builder setSubjectBytes( return this; } - // optional string relation = 2; private java.lang.Object relation_ = ""; /** - * optional string relation = 2; - * *
        * The surface form of the relation (required)
        * 
+ * + * optional string relation = 2; */ public boolean hasRelation() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional string relation = 2; - * *
        * The surface form of the relation (required)
        * 
+ * + * optional string relation = 2; */ public java.lang.String getRelation() { java.lang.Object ref = relation_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - relation_ = s; + 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)
        * 
+ * + * optional string relation = 2; */ public com.google.protobuf.ByteString getRelationBytes() { @@ -45640,11 +49586,11 @@ public java.lang.String getRelation() { } } /** - * optional string relation = 2; - * *
        * The surface form of the relation (required)
        * 
+ * + * optional string relation = 2; */ public Builder setRelation( java.lang.String value) { @@ -45657,11 +49603,11 @@ public Builder setRelation( return this; } /** - * optional string relation = 2; - * *
        * The surface form of the relation (required)
        * 
+ * + * optional string relation = 2; */ public Builder clearRelation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -45670,11 +49616,11 @@ public Builder clearRelation() { return this; } /** - * optional string relation = 2; - * *
        * The surface form of the relation (required)
        * 
+ * + * optional string relation = 2; */ public Builder setRelationBytes( com.google.protobuf.ByteString value) { @@ -45687,42 +49633,44 @@ public Builder setRelationBytes( return this; } - // optional string object = 3; private java.lang.Object object_ = ""; /** - * optional string object = 3; - * *
        * The surface form of the object
        * 
+ * + * optional string object = 3; */ public boolean hasObject() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional string object = 3; - * *
        * The surface form of the object
        * 
+ * + * optional string object = 3; */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - object_ = s; + 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
        * 
+ * + * optional string object = 3; */ public com.google.protobuf.ByteString getObjectBytes() { @@ -45738,11 +49686,11 @@ public java.lang.String getObject() { } } /** - * optional string object = 3; - * *
        * The surface form of the object
        * 
+ * + * optional string object = 3; */ public Builder setObject( java.lang.String value) { @@ -45755,11 +49703,11 @@ public Builder setObject( return this; } /** - * optional string object = 3; - * *
        * The surface form of the object
        * 
+ * + * optional string object = 3; */ public Builder clearObject() { bitField0_ = (bitField0_ & ~0x00000004); @@ -45768,11 +49716,11 @@ public Builder clearObject() { return this; } /** - * optional string object = 3; - * *
        * The surface form of the object
        * 
+ * + * optional string object = 3; */ public Builder setObjectBytes( com.google.protobuf.ByteString value) { @@ -45785,34 +49733,33 @@ public Builder setObjectBytes( return this; } - // optional double confidence = 4; private double confidence_ ; /** - * optional double confidence = 4; - * *
        * The [optional] confidence of the extraction
        * 
+ * + * optional double confidence = 4; */ public boolean hasConfidence() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** - * optional double confidence = 4; - * *
        * The [optional] confidence of the extraction
        * 
+ * + * optional double confidence = 4; */ public double getConfidence() { return confidence_; } /** - * optional double confidence = 4; - * *
        * The [optional] confidence of the extraction
        * 
+ * + * optional double confidence = 4; */ public Builder setConfidence(double value) { bitField0_ |= 0x00000008; @@ -45821,11 +49768,11 @@ public Builder setConfidence(double value) { return this; } /** - * optional double confidence = 4; - * *
        * The [optional] confidence of the extraction
        * 
+ * + * optional double confidence = 4; */ public Builder clearConfidence() { bitField0_ = (bitField0_ & ~0x00000008); @@ -45834,7 +49781,6 @@ public Builder clearConfidence() { return this; } - // repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; private java.util.List subjectTokens_ = java.util.Collections.emptyList(); private void ensureSubjectTokensIsMutable() { @@ -45844,15 +49790,15 @@ private void ensureSubjectTokensIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public java.util.List getSubjectTokensList() { if (subjectTokensBuilder_ == null) { @@ -45862,11 +49808,11 @@ public java.util.List get } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public int getSubjectTokensCount() { if (subjectTokensBuilder_ == null) { @@ -45876,11 +49822,11 @@ public int getSubjectTokensCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getSubjectTokens(int index) { if (subjectTokensBuilder_ == null) { @@ -45890,11 +49836,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getSubjectTokens(in } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder setSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { @@ -45911,11 +49857,11 @@ public Builder setSubjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder setSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -45929,11 +49875,11 @@ public Builder setSubjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder addSubjectTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (subjectTokensBuilder_ == null) { @@ -45949,11 +49895,11 @@ public Builder addSubjectTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLoc return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder addSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { @@ -45970,11 +49916,11 @@ public Builder addSubjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder addSubjectTokens( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -45988,11 +49934,11 @@ public Builder addSubjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder addSubjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46006,17 +49952,18 @@ public Builder addSubjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder addAllSubjectTokens( java.lang.Iterable values) { if (subjectTokensBuilder_ == null) { ensureSubjectTokensIsMutable(); - super.addAll(values, subjectTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subjectTokens_); onChanged(); } else { subjectTokensBuilder_.addAllMessages(values); @@ -46024,11 +49971,11 @@ public Builder addAllSubjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder clearSubjectTokens() { if (subjectTokensBuilder_ == null) { @@ -46041,11 +49988,11 @@ public Builder clearSubjectTokens() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public Builder removeSubjectTokens(int index) { if (subjectTokensBuilder_ == null) { @@ -46058,22 +50005,22 @@ public Builder removeSubjectTokens(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubjectTokensOrBuilder( int index) { @@ -46083,11 +50030,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubject } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public java.util.List getSubjectTokensOrBuilderList() { @@ -46098,22 +50045,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getSubject } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addSubjectTokensBuilder( int index) { @@ -46121,21 +50068,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addSubjectT index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; - * *
        * The tokens comprising the subject of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation subjectTokens = 13; */ public java.util.List getSubjectTokensBuilderList() { return getSubjectTokensFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + subjectTokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder>( subjectTokens_, ((bitField0_ & 0x00000010) == 0x00000010), @@ -46146,7 +50093,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addSubjectT return subjectTokensBuilder_; } - // repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; private java.util.List relationTokens_ = java.util.Collections.emptyList(); private void ensureRelationTokensIsMutable() { @@ -46156,15 +50102,15 @@ private void ensureRelationTokensIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public java.util.List getRelationTokensList() { if (relationTokensBuilder_ == null) { @@ -46174,11 +50120,11 @@ public java.util.List get } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public int getRelationTokensCount() { if (relationTokensBuilder_ == null) { @@ -46188,11 +50134,11 @@ public int getRelationTokensCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getRelationTokens(int index) { if (relationTokensBuilder_ == null) { @@ -46202,11 +50148,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getRelationTokens(i } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder setRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { @@ -46223,11 +50169,11 @@ public Builder setRelationTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder setRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46241,11 +50187,11 @@ public Builder setRelationTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder addRelationTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (relationTokensBuilder_ == null) { @@ -46261,11 +50207,11 @@ public Builder addRelationTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLo return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder addRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { @@ -46282,11 +50228,11 @@ public Builder addRelationTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder addRelationTokens( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46300,11 +50246,11 @@ public Builder addRelationTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder addRelationTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46318,17 +50264,18 @@ public Builder addRelationTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder addAllRelationTokens( java.lang.Iterable values) { if (relationTokensBuilder_ == null) { ensureRelationTokensIsMutable(); - super.addAll(values, relationTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, relationTokens_); onChanged(); } else { relationTokensBuilder_.addAllMessages(values); @@ -46336,11 +50283,11 @@ public Builder addAllRelationTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder clearRelationTokens() { if (relationTokensBuilder_ == null) { @@ -46353,11 +50300,11 @@ public Builder clearRelationTokens() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public Builder removeRelationTokens(int index) { if (relationTokensBuilder_ == null) { @@ -46370,22 +50317,22 @@ public Builder removeRelationTokens(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelationTokensOrBuilder( int index) { @@ -46395,11 +50342,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelatio } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public java.util.List getRelationTokensOrBuilderList() { @@ -46410,22 +50357,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getRelatio } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addRelationTokensBuilder( int index) { @@ -46433,21 +50380,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addRelation index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; - * *
        * The tokens comprising the relation of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation relationTokens = 14; */ public java.util.List getRelationTokensBuilderList() { return getRelationTokensFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + relationTokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder>( relationTokens_, ((bitField0_ & 0x00000020) == 0x00000020), @@ -46458,7 +50405,6 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addRelation return relationTokensBuilder_; } - // repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; private java.util.List objectTokens_ = java.util.Collections.emptyList(); private void ensureObjectTokensIsMutable() { @@ -46468,15 +50414,15 @@ private void ensureObjectTokensIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public java.util.List getObjectTokensList() { if (objectTokensBuilder_ == null) { @@ -46486,11 +50432,11 @@ public java.util.List get } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public int getObjectTokensCount() { if (objectTokensBuilder_ == null) { @@ -46500,11 +50446,11 @@ public int getObjectTokensCount() { } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getObjectTokens(int index) { if (objectTokensBuilder_ == null) { @@ -46514,11 +50460,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation getObjectTokens(int } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder setObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { @@ -46535,11 +50481,11 @@ public Builder setObjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder setObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46553,11 +50499,11 @@ public Builder setObjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder addObjectTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { if (objectTokensBuilder_ == null) { @@ -46573,11 +50519,11 @@ public Builder addObjectTokens(edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLoca return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder addObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation value) { @@ -46594,11 +50540,11 @@ public Builder addObjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder addObjectTokens( edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46612,11 +50558,11 @@ public Builder addObjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder addObjectTokens( int index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder builderForValue) { @@ -46630,17 +50576,18 @@ public Builder addObjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder addAllObjectTokens( java.lang.Iterable values) { if (objectTokensBuilder_ == null) { ensureObjectTokensIsMutable(); - super.addAll(values, objectTokens_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectTokens_); onChanged(); } else { objectTokensBuilder_.addAllMessages(values); @@ -46648,11 +50595,11 @@ public Builder addAllObjectTokens( return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder clearObjectTokens() { if (objectTokensBuilder_ == null) { @@ -46665,11 +50612,11 @@ public Builder clearObjectTokens() { return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public Builder removeObjectTokens(int index) { if (objectTokensBuilder_ == null) { @@ -46682,22 +50629,22 @@ public Builder removeObjectTokens(int index) { return this; } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectTokensOrBuilder( int index) { @@ -46707,11 +50654,11 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectT } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public java.util.List getObjectTokensOrBuilderList() { @@ -46722,22 +50669,22 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder getObjectT } } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ 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
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addObjectTokensBuilder( int index) { @@ -46745,21 +50692,21 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addObjectTo index, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.getDefaultInstance()); } /** - * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; - * *
        * The tokens comprising the object of the triple
        * 
+ * + * repeated .edu.stanford.nlp.pipeline.TokenLocation objectTokens = 15; */ public java.util.List getObjectTokensBuilderList() { return getObjectTokensFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.RepeatedFieldBuilderV3< 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< + objectTokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocationOrBuilder>( objectTokens_, ((bitField0_ & 0x00000040) == 0x00000040), @@ -46770,40 +50717,39 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.TokenLocation.Builder addObjectTo return objectTokensBuilder_; } - // optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< + private edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph tree_ = null; + private com.google.protobuf.SingleFieldBuilderV3< 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
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public boolean hasTree() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph getTree() { if (treeBuilder_ == null) { - return tree_; + return tree_ == null ? edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : tree_; } else { return treeBuilder_.getMessage(); } } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public Builder setTree(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (treeBuilder_ == null) { @@ -46819,11 +50765,11 @@ public Builder setTree(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph v return this; } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public Builder setTree( edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder builderForValue) { @@ -46837,15 +50783,16 @@ public Builder setTree( return this; } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public Builder mergeTree(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph value) { if (treeBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && + tree_ != null && tree_ != edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance()) { tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.newBuilder(tree_).mergeFrom(value).buildPartial(); @@ -46860,15 +50807,15 @@ public Builder mergeTree(edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph return this; } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public Builder clearTree() { if (treeBuilder_ == null) { - tree_ = edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance(); + tree_ = null; onChanged(); } else { treeBuilder_.clear(); @@ -46877,11 +50824,11 @@ public Builder clearTree() { return this; } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getTreeBuilder() { bitField0_ |= 0x00000080; @@ -46889,33 +50836,34 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder getTreeBu return getTreeFieldBuilder().getBuilder(); } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeOrBuilder() { if (treeBuilder_ != null) { return treeBuilder_.getMessageOrBuilder(); } else { - return tree_; + return tree_ == null ? + edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.getDefaultInstance() : tree_; } } /** - * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; - * *
        * The dependency graph fragment for this triple
        * 
+ * + * optional .edu.stanford.nlp.pipeline.DependencyGraph tree = 8; */ - private com.google.protobuf.SingleFieldBuilder< + private com.google.protobuf.SingleFieldBuilderV3< 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< + treeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraph.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder>( - tree_, + getTree(), getParentForChildren(), isClean()); tree_ = null; @@ -46923,34 +50871,33 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.DependencyGraphOrBuilder getTreeO return treeBuilder_; } - // optional bool istmod = 9; private boolean istmod_ ; /** - * optional bool istmod = 9; - * *
        * If true, this expresses an implicit tmod relation
        * 
+ * + * optional bool istmod = 9; */ public boolean hasIstmod() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** - * optional bool istmod = 9; - * *
        * If true, this expresses an implicit tmod relation
        * 
+ * + * optional bool istmod = 9; */ public boolean getIstmod() { return istmod_; } /** - * optional bool istmod = 9; - * *
        * If true, this expresses an implicit tmod relation
        * 
+ * + * optional bool istmod = 9; */ public Builder setIstmod(boolean value) { bitField0_ |= 0x00000100; @@ -46959,11 +50906,11 @@ public Builder setIstmod(boolean value) { return this; } /** - * optional bool istmod = 9; - * *
        * If true, this expresses an implicit tmod relation
        * 
+ * + * optional bool istmod = 9; */ public Builder clearIstmod() { bitField0_ = (bitField0_ & ~0x00000100); @@ -46972,34 +50919,33 @@ public Builder clearIstmod() { return this; } - // optional bool prefixBe = 10; private boolean prefixBe_ ; /** - * optional bool prefixBe = 10; - * *
        * If true, this relation string is missing a 'be' prefix
        * 
+ * + * optional bool prefixBe = 10; */ public boolean hasPrefixBe() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** - * optional bool prefixBe = 10; - * *
        * If true, this relation string is missing a 'be' prefix
        * 
+ * + * optional bool prefixBe = 10; */ public boolean getPrefixBe() { return prefixBe_; } /** - * optional bool prefixBe = 10; - * *
        * If true, this relation string is missing a 'be' prefix
        * 
+ * + * optional bool prefixBe = 10; */ public Builder setPrefixBe(boolean value) { bitField0_ |= 0x00000200; @@ -47008,11 +50954,11 @@ public Builder setPrefixBe(boolean value) { return this; } /** - * optional bool prefixBe = 10; - * *
        * If true, this relation string is missing a 'be' prefix
        * 
+ * + * optional bool prefixBe = 10; */ public Builder clearPrefixBe() { bitField0_ = (bitField0_ & ~0x00000200); @@ -47021,34 +50967,33 @@ public Builder clearPrefixBe() { return this; } - // optional bool suffixBe = 11; private boolean suffixBe_ ; /** - * optional bool suffixBe = 11; - * *
        * If true, this relation string is missing a 'be' suffix
        * 
+ * + * optional bool suffixBe = 11; */ public boolean hasSuffixBe() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** - * optional bool suffixBe = 11; - * *
        * If true, this relation string is missing a 'be' suffix
        * 
+ * + * optional bool suffixBe = 11; */ public boolean getSuffixBe() { return suffixBe_; } /** - * optional bool suffixBe = 11; - * *
        * If true, this relation string is missing a 'be' suffix
        * 
+ * + * optional bool suffixBe = 11; */ public Builder setSuffixBe(boolean value) { bitField0_ |= 0x00000400; @@ -47057,11 +51002,11 @@ public Builder setSuffixBe(boolean value) { return this; } /** - * optional bool suffixBe = 11; - * *
        * If true, this relation string is missing a 'be' suffix
        * 
+ * + * optional bool suffixBe = 11; */ public Builder clearSuffixBe() { bitField0_ = (bitField0_ & ~0x00000400); @@ -47070,34 +51015,33 @@ public Builder clearSuffixBe() { return this; } - // optional bool suffixOf = 12; private boolean suffixOf_ ; /** - * optional bool suffixOf = 12; - * *
        * If true, this relation string is missing a 'of' prefix
        * 
+ * + * optional bool suffixOf = 12; */ public boolean hasSuffixOf() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** - * optional bool suffixOf = 12; - * *
        * If true, this relation string is missing a 'of' prefix
        * 
+ * + * optional bool suffixOf = 12; */ public boolean getSuffixOf() { return suffixOf_; } /** - * optional bool suffixOf = 12; - * *
        * If true, this relation string is missing a 'of' prefix
        * 
+ * + * optional bool suffixOf = 12; */ public Builder setSuffixOf(boolean value) { bitField0_ |= 0x00000800; @@ -47106,11 +51050,11 @@ public Builder setSuffixOf(boolean value) { return this; } /** - * optional bool suffixOf = 12; - * *
        * If true, this relation string is missing a 'of' prefix
        * 
+ * + * optional bool suffixOf = 12; */ public Builder clearSuffixOf() { bitField0_ = (bitField0_ & ~0x00000800); @@ -47118,27 +51062,64 @@ public Builder clearSuffixOf() { onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.RelationTriple) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.RelationTriple) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple DEFAULT_INSTANCE; static { - defaultInstance = new RelationTriple(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.RelationTriple getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.RelationTriple) } - public interface MapStringStringOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface MapStringStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.MapStringString) + com.google.protobuf.MessageOrBuilder { - // repeated string key = 1; /** * repeated string key = 1; */ java.util.List - getKeyList(); + getKeyList(); /** * repeated string key = 1; */ @@ -47153,12 +51134,11 @@ public interface MapStringStringOrBuilder com.google.protobuf.ByteString getKeyBytes(int index); - // repeated string value = 2; /** * repeated string value = 2; */ java.util.List - getValueList(); + getValueList(); /** * repeated string value = 2; */ @@ -47174,44 +51154,36 @@ public interface MapStringStringOrBuilder getValueBytes(int index); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.MapStringString} - * *
-   *
    * A map from strings to strings.
    * Used, minimally, in the CoNLLU featurizer
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.MapStringString} */ - public static final class MapStringString extends - com.google.protobuf.GeneratedMessage - implements MapStringStringOrBuilder { + public static final class MapStringString extends + com.google.protobuf.GeneratedMessageV3 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) { + private MapStringString(com.google.protobuf.GeneratedMessageV3.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 MapStringString() { + key_ = com.google.protobuf.LazyStringArrayList.EMPTY; + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private MapStringString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47231,19 +51203,21 @@ private MapStringString( 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(input.readBytes()); + 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(input.readBytes()); + value_.add(bs); break; } } @@ -47252,13 +51226,13 @@ private MapStringString( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - key_ = new com.google.protobuf.UnmodifiableLazyStringList(key_); + key_ = key_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - value_ = new com.google.protobuf.UnmodifiableLazyStringList(value_); + value_ = value_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -47269,35 +51243,19 @@ private MapStringString( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapStringString_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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; - } - - // repeated string key = 1; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList key_; /** * repeated string key = 1; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getKeyList() { return key_; } @@ -47321,13 +51279,12 @@ public java.lang.String getKey(int index) { return key_.getByteString(index); } - // repeated string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList value_; /** * repeated string value = 2; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getValueList() { return value_; } @@ -47351,14 +51308,11 @@ public java.lang.String getValue(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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -47366,27 +51320,24 @@ public final boolean isInitialized() { 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)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_.getRaw(i)); } for (int i = 0; i < value_.size(); i++) { - output.writeBytes(2, value_.getByteString(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_.getRaw(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; 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)); + dataSize += computeStringSizeNoTag(key_.getRaw(i)); } size += dataSize; size += 1 * getKeyList().size(); @@ -47394,22 +51345,54 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(value_.getByteString(i)); + dataSize += computeStringSizeNoTag(value_.getRaw(i)); } size += dataSize; size += 1 * getValueList().size(); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString other = (edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString) obj; + + boolean result = true; + result = result && getKeyList() + .equals(other.getKeyList()); + result = result && getValueList() + .equals(other.getValueList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getKeyCount() > 0) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKeyList().hashCode(); + } + if (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString parseFrom( @@ -47435,67 +51418,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.MapStringString} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringStringOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapStringString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -47508,18 +51502,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -47529,10 +51520,6 @@ public Builder 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_MapStringString_descriptor; @@ -47554,14 +51541,12 @@ 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_ = new com.google.protobuf.UnmodifiableLazyStringList( - key_); + key_ = key_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { - value_ = new com.google.protobuf.UnmodifiableLazyStringList( - value_); + value_ = value_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; @@ -47569,6 +51554,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -47600,7 +51611,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString } onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -47617,7 +51629,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -47627,7 +51639,6 @@ public Builder mergeFrom( } private int bitField0_; - // repeated string key = 1; private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { @@ -47638,9 +51649,9 @@ private void ensureKeyIsMutable() { /** * repeated string key = 1; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getKeyList() { - return java.util.Collections.unmodifiableList(key_); + return key_.getUnmodifiableView(); } /** * repeated string key = 1; @@ -47693,7 +51704,8 @@ public Builder addKey( public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); - super.addAll(values, key_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, key_); onChanged(); return this; } @@ -47720,7 +51732,6 @@ public Builder addKeyBytes( return this; } - // repeated string value = 2; private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { @@ -47731,9 +51742,9 @@ private void ensureValueIsMutable() { /** * repeated string value = 2; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getValueList() { - return java.util.Collections.unmodifiableList(value_); + return value_.getUnmodifiableView(); } /** * repeated string value = 2; @@ -47786,7 +51797,8 @@ public Builder addValue( public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); - super.addAll(values, value_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); onChanged(); return this; } @@ -47812,22 +51824,59 @@ public Builder addValueBytes( onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.MapStringString) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.MapStringString) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString DEFAULT_INSTANCE; static { - defaultInstance = new MapStringString(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.MapStringString getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.MapStringString) } - public interface MapIntStringOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface MapIntStringOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.MapIntString) + com.google.protobuf.MessageOrBuilder { - // repeated uint32 key = 1; /** * repeated uint32 key = 1; */ @@ -47841,12 +51890,11 @@ public interface MapIntStringOrBuilder */ int getKey(int index); - // repeated string value = 2; /** * repeated string value = 2; */ java.util.List - getValueList(); + getValueList(); /** * repeated string value = 2; */ @@ -47862,44 +51910,36 @@ public interface MapIntStringOrBuilder getValueBytes(int index); } /** - * Protobuf type {@code edu.stanford.nlp.pipeline.MapIntString} - * *
-   *
    * A map from integers to strings.
    * Used, minimally, in the CoNLLU featurizer
    * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.MapIntString} */ - public static final class MapIntString extends - com.google.protobuf.GeneratedMessage - implements MapIntStringOrBuilder { + public static final class MapIntString extends + com.google.protobuf.GeneratedMessageV3 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) { + private MapIntString(com.google.protobuf.GeneratedMessageV3.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 MapIntString() { + key_ = java.util.Collections.emptyList(); + value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private MapIntString( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47940,11 +51980,12 @@ private MapIntString( 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(input.readBytes()); + value_.add(bs); break; } } @@ -47953,13 +51994,13 @@ private MapIntString( throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { key_ = java.util.Collections.unmodifiableList(key_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - value_ = new com.google.protobuf.UnmodifiableLazyStringList(value_); + value_ = value_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -47970,29 +52011,13 @@ private MapIntString( return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor; } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + protected com.google.protobuf.GeneratedMessageV3.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; - } - - // repeated uint32 key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.util.List key_; /** @@ -48015,13 +52040,12 @@ public int getKey(int index) { return key_.get(index); } - // repeated string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList value_; /** * repeated string value = 2; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getValueList() { return value_; } @@ -48045,14 +52069,11 @@ public java.lang.String getValue(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 isInitialized == 1; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; @@ -48060,19 +52081,17 @@ public final boolean isInitialized() { 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)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_.getRaw(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -48088,22 +52107,54 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(value_.getByteString(i)); + dataSize += computeStringSizeNoTag(value_.getRaw(i)); } size += dataSize; size += 1 * getValueList().size(); } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; + size += unknownFields.getSerializedSize(); + memoizedSize = 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString other = (edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString) obj; + + boolean result = true; + result = result && getKeyList() + .equals(other.getKeyList()); + result = result && getValueList() + .equals(other.getValueList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (getKeyCount() > 0) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKeyList().hashCode(); + } + if (getValueCount() > 0) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValueList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString parseFrom( @@ -48129,67 +52180,78 @@ public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString parseFrom( } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, 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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.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
      * 
+ * + * Protobuf type {@code edu.stanford.nlp.pipeline.MapIntString} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntStringOrBuilder { + com.google.protobuf.GeneratedMessageV3.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 + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_MapIntString_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -48202,18 +52264,15 @@ private Builder() { } private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); key_ = java.util.Collections.emptyList(); @@ -48223,10 +52282,6 @@ public Builder 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_MapIntString_descriptor; @@ -48253,8 +52308,7 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString buildPartial() { } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { - value_ = new com.google.protobuf.UnmodifiableLazyStringList( - value_); + value_ = value_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; @@ -48262,6 +52316,32 @@ public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString buildPartial() { return result; } + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } 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); @@ -48293,7 +52373,8 @@ public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString ot } onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -48310,7 +52391,7 @@ public Builder mergeFrom( parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString) e.getUnfinishedMessage(); - throw e; + throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); @@ -48320,7 +52401,6 @@ public Builder mergeFrom( } private int bitField0_; - // repeated uint32 key = 1; private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { @@ -48372,7 +52452,8 @@ public Builder addKey(int value) { public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); - super.addAll(values, key_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, key_); onChanged(); return this; } @@ -48386,7 +52467,6 @@ public Builder clearKey() { return this; } - // repeated string value = 2; private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { @@ -48397,9 +52477,9 @@ private void ensureValueIsMutable() { /** * repeated string value = 2; */ - public java.util.List + public com.google.protobuf.ProtocolStringList getValueList() { - return java.util.Collections.unmodifiableList(value_); + return value_.getUnmodifiableView(); } /** * repeated string value = 2; @@ -48452,7 +52532,8 @@ public Builder addValue( public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); - super.addAll(values, value_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); onChanged(); return this; } @@ -48478,154 +52559,1471 @@ public Builder addValueBytes( onChanged(); return this; } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.MapIntString) } + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.MapIntString) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString DEFAULT_INSTANCE; static { - defaultInstance = new MapIntString(true); - defaultInstance.initFields(); + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString(); } - // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.MapIntString) + public static edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.MapIntString getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:edu.stanford.nlp.pipeline.Section) + com.google.protobuf.MessageOrBuilder { + + /** + * required uint32 charBegin = 1; + */ + boolean hasCharBegin(); + /** + * required uint32 charBegin = 1; + */ + int getCharBegin(); + + /** + * required uint32 charEnd = 2; + */ + boolean hasCharEnd(); + /** + * required uint32 charEnd = 2; + */ + int getCharEnd(); + + /** + * optional string author = 3; + */ + boolean hasAuthor(); + /** + * optional string author = 3; + */ + java.lang.String getAuthor(); + /** + * optional string author = 3; + */ + com.google.protobuf.ByteString + getAuthorBytes(); + + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + java.util.List + getSentencesList(); + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getSentences(int index); + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + int getSentencesCount(); + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + java.util.List + getSentencesOrBuilderList(); + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentencesOrBuilder( + int index); + + /** + * optional string datetime = 5; + */ + boolean hasDatetime(); + /** + * optional string datetime = 5; + */ + java.lang.String getDatetime(); + /** + * optional string datetime = 5; + */ + com.google.protobuf.ByteString + getDatetimeBytes(); + } + /** + * Protobuf type {@code edu.stanford.nlp.pipeline.Section} + */ + public static final class Section extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:edu.stanford.nlp.pipeline.Section) + SectionOrBuilder { + // Use Section.newBuilder() to construct. + private Section(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Section() { + charBegin_ = 0; + charEnd_ = 0; + author_ = ""; + sentences_ = java.util.Collections.emptyList(); + datetime_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Section( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + charBegin_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + charEnd_ = input.readUInt32(); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + author_ = bs; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + sentences_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + sentences_.add( + input.readMessage(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.PARSER, extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + datetime_ = bs; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + sentences_ = java.util.Collections.unmodifiableList(sentences_); + } + 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_Section_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Section_fieldAccessorTable + .ensureFieldAccessorsInitialized( + edu.stanford.nlp.pipeline.CoreNLPProtos.Section.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder.class); + } + + private int bitField0_; + public static final int CHARBEGIN_FIELD_NUMBER = 1; + private int charBegin_; + /** + * required uint32 charBegin = 1; + */ + public boolean hasCharBegin() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required uint32 charBegin = 1; + */ + public int getCharBegin() { + return charBegin_; + } + + public static final int CHAREND_FIELD_NUMBER = 2; + private int charEnd_; + /** + * required uint32 charEnd = 2; + */ + public boolean hasCharEnd() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required uint32 charEnd = 2; + */ + public int getCharEnd() { + return charEnd_; + } + + public static final int AUTHOR_FIELD_NUMBER = 3; + private volatile java.lang.Object author_; + /** + * optional string author = 3; + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string author = 3; + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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()) { + author_ = s; + } + return s; + } + } + /** + * optional string author = 3; + */ + public com.google.protobuf.ByteString + getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SENTENCES_FIELD_NUMBER = 4; + private java.util.List sentences_; + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public java.util.List getSentencesList() { + return sentences_; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public java.util.List + getSentencesOrBuilderList() { + return sentences_; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public int getSentencesCount() { + return sentences_.size(); + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getSentences(int index) { + return sentences_.get(index); + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentencesOrBuilder( + int index) { + return sentences_.get(index); + } + + public static final int DATETIME_FIELD_NUMBER = 5; + private volatile java.lang.Object datetime_; + /** + * optional string datetime = 5; + */ + public boolean hasDatetime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string datetime = 5; + */ + public java.lang.String getDatetime() { + java.lang.Object ref = datetime_; + 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()) { + datetime_ = s; + } + return s; + } + } + /** + * optional string datetime = 5; + */ + public com.google.protobuf.ByteString + getDatetimeBytes() { + java.lang.Object ref = datetime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datetime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasCharBegin()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasCharEnd()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getSentencesCount(); i++) { + if (!getSentences(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, charBegin_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, charEnd_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, author_); + } + for (int i = 0; i < sentences_.size(); i++) { + output.writeMessage(4, sentences_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, datetime_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, charBegin_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, charEnd_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, author_); + } + for (int i = 0; i < sentences_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sentences_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, datetime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Section)) { + return super.equals(obj); + } + edu.stanford.nlp.pipeline.CoreNLPProtos.Section other = (edu.stanford.nlp.pipeline.CoreNLPProtos.Section) obj; + + boolean result = true; + result = result && (hasCharBegin() == other.hasCharBegin()); + if (hasCharBegin()) { + result = result && (getCharBegin() + == other.getCharBegin()); + } + result = result && (hasCharEnd() == other.hasCharEnd()); + if (hasCharEnd()) { + result = result && (getCharEnd() + == other.getCharEnd()); + } + result = result && (hasAuthor() == other.hasAuthor()); + if (hasAuthor()) { + result = result && getAuthor() + .equals(other.getAuthor()); + } + result = result && getSentencesList() + .equals(other.getSentencesList()); + result = result && (hasDatetime() == other.hasDatetime()); + if (hasDatetime()) { + result = result && getDatetime() + .equals(other.getDatetime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasCharBegin()) { + hash = (37 * hash) + CHARBEGIN_FIELD_NUMBER; + hash = (53 * hash) + getCharBegin(); + } + if (hasCharEnd()) { + hash = (37 * hash) + CHAREND_FIELD_NUMBER; + hash = (53 * hash) + getCharEnd(); + } + if (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (getSentencesCount() > 0) { + hash = (37 * hash) + SENTENCES_FIELD_NUMBER; + hash = (53 * hash) + getSentencesList().hashCode(); + } + if (hasDatetime()) { + hash = (37 * hash) + DATETIME_FIELD_NUMBER; + hash = (53 * hash) + getDatetime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section 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.Section parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section 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.Section parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(edu.stanford.nlp.pipeline.CoreNLPProtos.Section prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code edu.stanford.nlp.pipeline.Section} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:edu.stanford.nlp.pipeline.Section) + edu.stanford.nlp.pipeline.CoreNLPProtos.SectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Section_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Section_fieldAccessorTable + .ensureFieldAccessorsInitialized( + edu.stanford.nlp.pipeline.CoreNLPProtos.Section.class, edu.stanford.nlp.pipeline.CoreNLPProtos.Section.Builder.class); + } + + // Construct using edu.stanford.nlp.pipeline.CoreNLPProtos.Section.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSentencesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + charBegin_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + charEnd_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + author_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (sentencesBuilder_ == null) { + sentences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + sentencesBuilder_.clear(); + } + datetime_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return edu.stanford.nlp.pipeline.CoreNLPProtos.internal_static_edu_stanford_nlp_pipeline_Section_descriptor; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section getDefaultInstanceForType() { + return edu.stanford.nlp.pipeline.CoreNLPProtos.Section.getDefaultInstance(); + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section build() { + edu.stanford.nlp.pipeline.CoreNLPProtos.Section result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section buildPartial() { + edu.stanford.nlp.pipeline.CoreNLPProtos.Section result = new edu.stanford.nlp.pipeline.CoreNLPProtos.Section(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.charBegin_ = charBegin_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.charEnd_ = charEnd_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.author_ = author_; + if (sentencesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + sentences_ = java.util.Collections.unmodifiableList(sentences_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.sentences_ = sentences_; + } else { + result.sentences_ = sentencesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.datetime_ = datetime_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof edu.stanford.nlp.pipeline.CoreNLPProtos.Section) { + return mergeFrom((edu.stanford.nlp.pipeline.CoreNLPProtos.Section)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.Section other) { + if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.Section.getDefaultInstance()) return this; + if (other.hasCharBegin()) { + setCharBegin(other.getCharBegin()); + } + if (other.hasCharEnd()) { + setCharEnd(other.getCharEnd()); + } + if (other.hasAuthor()) { + bitField0_ |= 0x00000004; + author_ = other.author_; + onChanged(); + } + if (sentencesBuilder_ == null) { + if (!other.sentences_.isEmpty()) { + if (sentences_.isEmpty()) { + sentences_ = other.sentences_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSentencesIsMutable(); + sentences_.addAll(other.sentences_); + } + onChanged(); + } + } else { + if (!other.sentences_.isEmpty()) { + if (sentencesBuilder_.isEmpty()) { + sentencesBuilder_.dispose(); + sentencesBuilder_ = null; + sentences_ = other.sentences_; + bitField0_ = (bitField0_ & ~0x00000008); + sentencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSentencesFieldBuilder() : null; + } else { + sentencesBuilder_.addAllMessages(other.sentences_); + } + } + } + if (other.hasDatetime()) { + bitField0_ |= 0x00000010; + datetime_ = other.datetime_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + if (!hasCharBegin()) { + return false; + } + if (!hasCharEnd()) { + return false; + } + for (int i = 0; i < getSentencesCount(); i++) { + if (!getSentences(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.Section parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (edu.stanford.nlp.pipeline.CoreNLPProtos.Section) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int charBegin_ ; + /** + * required uint32 charBegin = 1; + */ + public boolean hasCharBegin() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required uint32 charBegin = 1; + */ + public int getCharBegin() { + return charBegin_; + } + /** + * required uint32 charBegin = 1; + */ + public Builder setCharBegin(int value) { + bitField0_ |= 0x00000001; + charBegin_ = value; + onChanged(); + return this; + } + /** + * required uint32 charBegin = 1; + */ + public Builder clearCharBegin() { + bitField0_ = (bitField0_ & ~0x00000001); + charBegin_ = 0; + onChanged(); + return this; + } + + private int charEnd_ ; + /** + * required uint32 charEnd = 2; + */ + public boolean hasCharEnd() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required uint32 charEnd = 2; + */ + public int getCharEnd() { + return charEnd_; + } + /** + * required uint32 charEnd = 2; + */ + public Builder setCharEnd(int value) { + bitField0_ |= 0x00000002; + charEnd_ = value; + onChanged(); + return this; + } + /** + * required uint32 charEnd = 2; + */ + public Builder clearCharEnd() { + bitField0_ = (bitField0_ & ~0x00000002); + charEnd_ = 0; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + /** + * optional string author = 3; + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string author = 3; + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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()) { + author_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string author = 3; + */ + public com.google.protobuf.ByteString + getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string author = 3; + */ + public Builder setAuthor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000004; + author_ = value; + onChanged(); + return this; + } + /** + * optional string author = 3; + */ + public Builder clearAuthor() { + bitField0_ = (bitField0_ & ~0x00000004); + author_ = getDefaultInstance().getAuthor(); + onChanged(); + return this; + } + /** + * optional string author = 3; + */ + public Builder setAuthorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + author_ = value; + onChanged(); + return this; + } + + private java.util.List sentences_ = + java.util.Collections.emptyList(); + private void ensureSentencesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + sentences_ = new java.util.ArrayList(sentences_); + bitField0_ |= 0x00000008; + } + } - private static com.google.protobuf.Descriptors.Descriptor + private com.google.protobuf.RepeatedFieldBuilderV3< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder> sentencesBuilder_; + + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public java.util.List getSentencesList() { + if (sentencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sentences_); + } else { + return sentencesBuilder_.getMessageList(); + } + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public int getSentencesCount() { + if (sentencesBuilder_ == null) { + return sentences_.size(); + } else { + return sentencesBuilder_.getCount(); + } + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence getSentences(int index) { + if (sentencesBuilder_ == null) { + return sentences_.get(index); + } else { + return sentencesBuilder_.getMessage(index); + } + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder setSentences( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence value) { + if (sentencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSentencesIsMutable(); + sentences_.set(index, value); + onChanged(); + } else { + sentencesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder setSentences( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder builderForValue) { + if (sentencesBuilder_ == null) { + ensureSentencesIsMutable(); + sentences_.set(index, builderForValue.build()); + onChanged(); + } else { + sentencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder addSentences(edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence value) { + if (sentencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSentencesIsMutable(); + sentences_.add(value); + onChanged(); + } else { + sentencesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder addSentences( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence value) { + if (sentencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSentencesIsMutable(); + sentences_.add(index, value); + onChanged(); + } else { + sentencesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder addSentences( + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder builderForValue) { + if (sentencesBuilder_ == null) { + ensureSentencesIsMutable(); + sentences_.add(builderForValue.build()); + onChanged(); + } else { + sentencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder addSentences( + int index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder builderForValue) { + if (sentencesBuilder_ == null) { + ensureSentencesIsMutable(); + sentences_.add(index, builderForValue.build()); + onChanged(); + } else { + sentencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder addAllSentences( + java.lang.Iterable values) { + if (sentencesBuilder_ == null) { + ensureSentencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sentences_); + onChanged(); + } else { + sentencesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder clearSentences() { + if (sentencesBuilder_ == null) { + sentences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + sentencesBuilder_.clear(); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public Builder removeSentences(int index) { + if (sentencesBuilder_ == null) { + ensureSentencesIsMutable(); + sentences_.remove(index); + onChanged(); + } else { + sentencesBuilder_.remove(index); + } + return this; + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder getSentencesBuilder( + int index) { + return getSentencesFieldBuilder().getBuilder(index); + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder getSentencesOrBuilder( + int index) { + if (sentencesBuilder_ == null) { + return sentences_.get(index); } else { + return sentencesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public java.util.List + getSentencesOrBuilderList() { + if (sentencesBuilder_ != null) { + return sentencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sentences_); + } + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder addSentencesBuilder() { + return getSentencesFieldBuilder().addBuilder( + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.getDefaultInstance()); + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder addSentencesBuilder( + int index) { + return getSentencesFieldBuilder().addBuilder( + index, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.getDefaultInstance()); + } + /** + * repeated .edu.stanford.nlp.pipeline.Sentence sentences = 4; + */ + public java.util.List + getSentencesBuilderList() { + return getSentencesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder> + getSentencesFieldBuilder() { + if (sentencesBuilder_ == null) { + sentencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence, edu.stanford.nlp.pipeline.CoreNLPProtos.Sentence.Builder, edu.stanford.nlp.pipeline.CoreNLPProtos.SentenceOrBuilder>( + sentences_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + sentences_ = null; + } + return sentencesBuilder_; + } + + private java.lang.Object datetime_ = ""; + /** + * optional string datetime = 5; + */ + public boolean hasDatetime() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string datetime = 5; + */ + public java.lang.String getDatetime() { + java.lang.Object ref = datetime_; + 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()) { + datetime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string datetime = 5; + */ + public com.google.protobuf.ByteString + getDatetimeBytes() { + java.lang.Object ref = datetime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + datetime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string datetime = 5; + */ + public Builder setDatetime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + datetime_ = value; + onChanged(); + return this; + } + /** + * optional string datetime = 5; + */ + public Builder clearDatetime() { + bitField0_ = (bitField0_ & ~0x00000010); + datetime_ = getDefaultInstance().getDatetime(); + onChanged(); + return this; + } + /** + * optional string datetime = 5; + */ + public Builder setDatetimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + datetime_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:edu.stanford.nlp.pipeline.Section) + } + + // @@protoc_insertion_point(class_scope:edu.stanford.nlp.pipeline.Section) + private static final edu.stanford.nlp.pipeline.CoreNLPProtos.Section DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new edu.stanford.nlp.pipeline.CoreNLPProtos.Section(); + } + + public static edu.stanford.nlp.pipeline.CoreNLPProtos.Section getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + public Section parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Section(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser
parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser
getParserForType() { + return PARSER; + } + + public edu.stanford.nlp.pipeline.CoreNLPProtos.Section getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Document_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Document_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Token_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Quote_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Quote_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_ParseTree_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_ParseTree_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_DependencyGraph_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_DependencyGraph_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Node_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_DependencyGraph_Edge_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_CorefChain_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_CorefChain_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_CorefChain_CorefMention_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Mention_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Mention_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_IndexedWord_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_IndexedWord_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_SpeakerInfo_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Span_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Span_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Timex_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Timex_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Entity_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Entity_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Relation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Relation_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Operator_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Operator_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_Polarity_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_Polarity_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_NERMention_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_NERMention_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_SentenceFragment_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_SentenceFragment_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_TokenLocation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_TokenLocation_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_RelationTriple_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_RelationTriple_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_MapStringString_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_MapStringString_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor + private static final com.google.protobuf.Descriptors.Descriptor internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_edu_stanford_nlp_pipeline_MapIntString_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_edu_stanford_nlp_pipeline_Section_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_edu_stanford_nlp_pipeline_Section_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor + 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" + + "ne\"\325\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" + @@ -48635,364 +54033,376 @@ public Builder addValueBytes( "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\"\345\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\022C\n\016entai" + - "ledClause\030# \003(\0132+.edu.stanford.nlp.pipel" + - "ine.SentenceFragment\022H\n\024enhancedDependen" + - "cies\030\021 \001(\0132*.edu.stanford.nlp.pipeline.D" + - "ependencyGraph\022P\n\034enhancedPlusPlusDepend", - "encies\030\022 \001(\0132*.edu.stanford.nlp.pipeline" + - ".DependencyGraph\0223\n\tcharacter\030\023 \003(\0132 .ed" + - "u.stanford.nlp.pipeline.Token\022\021\n\tparagra" + - "ph\030\013 \001(\r\022\014\n\004text\030\014 \001(\t\022\036\n\026hasRelationAnn" + - "otations\0303 \001(\010\0221\n\006entity\0304 \003(\0132!.edu.sta" + - "nford.nlp.pipeline.Entity\0225\n\010relation\0305 " + - "\003(\0132#.edu.stanford.nlp.pipeline.Relation" + - "\022$\n\034hasNumerizedTokensAnnotation\0306 \001(\010\0227" + - "\n\010mentions\0307 \003(\0132%.edu.stanford.nlp.pipe" + - "line.NERMention\022<\n\020mentionsForCoref\0308 \003(", - "\0132\".edu.stanford.nlp.pipeline.Mention\022\"\n" + - "\032hasCorefMentionsAnnotation\0309 \001(\010\022\022\n\nsen" + - "tenceID\030: \001(\t*\005\010d\020\200\002\"\235\010\n\005Token\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\010cate" + - "gory\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\003ner\030\010 \001(\t\022\025\n\r" + - "normalizedNER\030\t \001(\t\022\r\n\005lemma\030\n \001(\t\022\021\n\tbe" + - "ginChar\030\013 \001(\r\022\017\n\007endChar\030\014 \001(\r\022\021\n\tuttera" + - "nce\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\017tokenBeginIn", - "dex\030\021 \001(\r\022\025\n\rtokenEndIndex\030\022 \001(\r\0224\n\ntime" + - "xValue\030\023 \001(\0132 .edu.stanford.nlp.pipeline" + - ".Timex\022\025\n\rhasXmlContext\030\025 \001(\010\022\022\n\nxmlCont" + - "ext\030\026 \003(\t\022\026\n\016corefClusterID\030\027 \001(\r\022\016\n\006ans" + - "wer\030\030 \001(\t\022\025\n\rheadWordIndex\030\032 \001(\r\0225\n\010oper" + - "ator\030\033 \001(\0132#.edu.stanford.nlp.pipeline.O" + - "perator\0225\n\010polarity\030\034 \001(\0132#.edu.stanford" + - ".nlp.pipeline.Polarity\022-\n\004span\030\035 \001(\0132\037.e" + - "du.stanford.nlp.pipeline.Span\022\021\n\tsentime" + - "nt\030\036 \001(\t\022\026\n\016quotationIndex\030\037 \001(\005\022B\n\016conl", - "lUFeatures\030 \001(\0132*.edu.stanford.nlp.pipe" + - "line.MapStringString\022\021\n\tcoarseTag\030! \001(\t\022" + - "8\n\017conllUTokenSpan\030\" \001(\0132\037.edu.stanford." + - "nlp.pipeline.Span\022\022\n\nconllUMisc\030# \001(\t\022D\n" + - "\023conllUSecondaryDeps\030$ \001(\0132\'.edu.stanfor" + - "d.nlp.pipeline.MapIntString\022\027\n\017wikipedia" + - "Entity\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\013chineseC" + - "har\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\003e", - "nd\030\003 \001(\r\022\025\n\rsentenceBegin\030\005 \001(\r\022\023\n\013sente" + - "nceEnd\030\006 \001(\r\022\022\n\ntokenBegin\030\007 \001(\r\022\020\n\010toke" + - "nEnd\030\010 \001(\r\022\r\n\005docid\030\t \001(\t\022\r\n\005index\030\n \001(\r" + - "\"\307\001\n\tParseTree\0223\n\005child\030\001 \003(\0132$.edu.stan" + - "ford.nlp.pipeline.ParseTree\022\r\n\005value\030\002 \001" + - "(\t\022\027\n\017yieldBeginIndex\030\003 \001(\r\022\025\n\ryieldEndI" + - "ndex\030\004 \001(\r\022\r\n\005score\030\005 \001(\001\0227\n\tsentiment\030\006" + - " \001(\0162$.edu.stanford.nlp.pipeline.Sentime" + - "nt\"\226\003\n\017DependencyGraph\022=\n\004node\030\001 \003(\0132/.e" + - "du.stanford.nlp.pipeline.DependencyGraph", - ".Node\022=\n\004edge\030\002 \003(\0132/.edu.stanford.nlp.p" + - "ipeline.DependencyGraph.Edge\022\020\n\004root\030\003 \003" + - "(\rB\002\020\001\032D\n\004Node\022\025\n\rsentenceIndex\030\001 \002(\r\022\r\n" + - "\005index\030\002 \002(\r\022\026\n\016copyAnnotation\030\003 \001(\r\032\254\001\n" + - "\004Edge\022\016\n\006source\030\001 \002(\r\022\016\n\006target\030\002 \002(\r\022\013\n" + - "\003dep\030\003 \001(\t\022\017\n\007isExtra\030\004 \001(\010\022\022\n\nsourceCop" + - "y\030\005 \001(\r\022\022\n\ntargetCopy\030\006 \001(\r\022>\n\010language\030" + - "\007 \001(\0162#.edu.stanford.nlp.pipeline.Langua" + - "ge:\007Unknown\"\306\002\n\nCorefChain\022\017\n\007chainID\030\001 " + - "\002(\005\022C\n\007mention\030\002 \003(\01322.edu.stanford.nlp.", - "pipeline.CorefChain.CorefMention\022\026\n\016repr" + - "esentative\030\003 \002(\r\032\311\001\n\014CorefMention\022\021\n\tmen" + - "tionID\030\001 \001(\005\022\023\n\013mentionType\030\002 \001(\t\022\016\n\006num" + - "ber\030\003 \001(\t\022\016\n\006gender\030\004 \001(\t\022\017\n\007animacy\030\005 \001" + - "(\t\022\022\n\nbeginIndex\030\006 \001(\r\022\020\n\010endIndex\030\007 \001(\r" + - "\022\021\n\theadIndex\030\t \001(\r\022\025\n\rsentenceIndex\030\n \001" + - "(\r\022\020\n\010position\030\013 \001(\r\"\357\010\n\007Mention\022\021\n\tment" + - "ionID\030\001 \001(\005\022\023\n\013mentionType\030\002 \001(\t\022\016\n\006numb" + - "er\030\003 \001(\t\022\016\n\006gender\030\004 \001(\t\022\017\n\007animacy\030\005 \001(" + - "\t\022\016\n\006person\030\006 \001(\t\022\022\n\nstartIndex\030\007 \001(\r\022\020\n", - "\010endIndex\030\t \001(\r\022\021\n\theadIndex\030\n \001(\r\022\022\n\nhe" + - "adString\030\013 \001(\t\022\021\n\tnerString\030\014 \001(\t\022\023\n\013ori" + - "ginalRef\030\r \001(\r\022\032\n\022goldCorefClusterID\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\005utter\030\022 \001(\r\022\021" + - "\n\tparagraph\030\023 \001(\r\022\021\n\tisSubject\030\024 \001(\010\022\026\n\016" + - "isDirectObject\030\025 \001(\010\022\030\n\020isIndirectObject" + - "\030\026 \001(\010\022\033\n\023isPrepositionObject\030\027 \001(\010\022\017\n\007h" + - "asTwin\030\030 \001(\010\022\017\n\007generic\030\031 \001(\010\022\023\n\013isSingl" + - "eton\030\032 \001(\010\022\032\n\022hasBasicDependency\030\033 \001(\010\022\035", - "\n\025hasEnhancedDepenedncy\030\034 \001(\010\022\033\n\023hasCont" + - "extParseTree\030\035 \001(\010\022?\n\017headIndexedWord\030\036 " + + "ne.NERMention\0224\n\010sections\030\013 \003(\0132\".edu.st" + + "anford.nlp.pipeline.Section*\005\010d\020\200\002\"\220\r\n\010S" + + "entence\022/\n\005token\030\001 \003(\0132 .edu.stanford.nl" + + "p.pipeline.Token\022\030\n\020tokenOffsetBegin\030\002 \002" + + "(\r\022\026\n\016tokenOffsetEnd\030\003 \002(\r\022\025\n\rsentenceIn" + + "dex\030\004 \001(\r\022\034\n\024characterOffsetBegin\030\005 \001(\r\022" + + "\032\n\022characterOffsetEnd\030\006 \001(\r\0227\n\tparseTree" + + "\030\007 \001(\0132$.edu.stanford.nlp.pipeline.Parse" + + "Tree\022@\n\022binarizedParseTree\030\037 \001(\0132$.edu.s", + "tanford.nlp.pipeline.ParseTree\022@\n\022annota" + + "tedParseTree\030 \001(\0132$.edu.stanford.nlp.pi" + + "peline.ParseTree\022\021\n\tsentiment\030! \001(\t\022=\n\017k" + + "BestParseTrees\030\" \003(\0132$.edu.stanford.nlp." + + "pipeline.ParseTree\022E\n\021basicDependencies\030" + + "\010 \001(\0132*.edu.stanford.nlp.pipeline.Depend" + + "encyGraph\022I\n\025collapsedDependencies\030\t \001(\013" + + "2*.edu.stanford.nlp.pipeline.DependencyG" + + "raph\022T\n collapsedCCProcessedDependencies" + + "\030\n \001(\0132*.edu.stanford.nlp.pipeline.Depen", + "dencyGraph\022K\n\027alternativeDependencies\030\r " + + "\001(\0132*.edu.stanford.nlp.pipeline.Dependen" + + "cyGraph\022?\n\014openieTriple\030\016 \003(\0132).edu.stan" + + "ford.nlp.pipeline.RelationTriple\022<\n\tkbpT" + + "riple\030\020 \003(\0132).edu.stanford.nlp.pipeline." + + "RelationTriple\022E\n\020entailedSentence\030\017 \003(\013" + + "2+.edu.stanford.nlp.pipeline.SentenceFra" + + "gment\022C\n\016entailedClause\030# \003(\0132+.edu.stan" + + "ford.nlp.pipeline.SentenceFragment\022H\n\024en" + + "hancedDependencies\030\021 \001(\0132*.edu.stanford.", + "nlp.pipeline.DependencyGraph\022P\n\034enhanced" + + "PlusPlusDependencies\030\022 \001(\0132*.edu.stanfor" + + "d.nlp.pipeline.DependencyGraph\0223\n\tcharac" + + "ter\030\023 \003(\0132 .edu.stanford.nlp.pipeline.To" + + "ken\022\021\n\tparagraph\030\013 \001(\r\022\014\n\004text\030\014 \001(\t\022\036\n\026" + + "hasRelationAnnotations\0303 \001(\010\0221\n\006entity\0304" + + " \003(\0132!.edu.stanford.nlp.pipeline.Entity\022" + + "5\n\010relation\0305 \003(\0132#.edu.stanford.nlp.pip" + + "eline.Relation\022$\n\034hasNumerizedTokensAnno" + + "tation\0306 \001(\010\0227\n\010mentions\0307 \003(\0132%.edu.sta", + "nford.nlp.pipeline.NERMention\022<\n\020mention" + + "sForCoref\0308 \003(\0132\".edu.stanford.nlp.pipel" + + "ine.Mention\022\"\n\032hasCorefMentionsAnnotatio" + + "n\0309 \001(\010\022\022\n\nsentenceID\030: \001(\t\022\023\n\013sectionDa" + + "te\030; \001(\t\022\024\n\014sectionIndex\030< \001(\r*\005\010d\020\200\002\"\235\010" + + "\n\005Token\022\014\n\004word\030\001 \001(\t\022\013\n\003pos\030\002 \001(\t\022\r\n\005va" + + "lue\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\003ner\030\010 \001(\t\022\025\n\rnormalizedNER\030\t \001(\t\022\r\n\005" + + "lemma\030\n \001(\t\022\021\n\tbeginChar\030\013 \001(\r\022\017\n\007endCha", + "r\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\017tokenBeginIndex\030\021 \001(\r\022\025\n\rtokenEndIn" + + "dex\030\022 \001(\r\0224\n\ntimexValue\030\023 \001(\0132 .edu.stan" + + "ford.nlp.pipeline.Timex\022\025\n\rhasXmlContext" + + "\030\025 \001(\010\022\022\n\nxmlContext\030\026 \003(\t\022\026\n\016corefClust" + + "erID\030\027 \001(\r\022\016\n\006answer\030\030 \001(\t\022\025\n\rheadWordIn" + + "dex\030\032 \001(\r\0225\n\010operator\030\033 \001(\0132#.edu.stanfo" + + "rd.nlp.pipeline.Operator\0225\n\010polarity\030\034 \001" + + "(\0132#.edu.stanford.nlp.pipeline.Polarity\022", + "-\n\004span\030\035 \001(\0132\037.edu.stanford.nlp.pipelin" + + "e.Span\022\021\n\tsentiment\030\036 \001(\t\022\026\n\016quotationIn" + + "dex\030\037 \001(\005\022B\n\016conllUFeatures\030 \001(\0132*.edu." + + "stanford.nlp.pipeline.MapStringString\022\021\n" + + "\tcoarseTag\030! \001(\t\0228\n\017conllUTokenSpan\030\" \001(" + + "\0132\037.edu.stanford.nlp.pipeline.Span\022\022\n\nco" + + "nllUMisc\030# \001(\t\022D\n\023conllUSecondaryDeps\030$ " + + "\001(\0132\'.edu.stanford.nlp.pipeline.MapIntSt" + + "ring\022\027\n\017wikipediaEntity\030% \001(\t\022\016\n\006gender\030" + + "3 \001(\t\022\020\n\010trueCase\0304 \001(\t\022\024\n\014trueCaseText\030", + "5 \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\rsentenceBeg" + + "in\030\005 \001(\r\022\023\n\013sentenceEnd\030\006 \001(\r\022\022\n\ntokenBe" + + "gin\030\007 \001(\r\022\020\n\010tokenEnd\030\010 \001(\r\022\r\n\005docid\030\t \001" + + "(\t\022\r\n\005index\030\n \001(\r\"\307\001\n\tParseTree\0223\n\005child" + + "\030\001 \003(\0132$.edu.stanford.nlp.pipeline.Parse" + + "Tree\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\tsentiment\030\006 \001(\0162$.edu.stanford.nlp", + ".pipeline.Sentiment\"\226\003\n\017DependencyGraph\022" + + "=\n\004node\030\001 \003(\0132/.edu.stanford.nlp.pipelin" + + "e.DependencyGraph.Node\022=\n\004edge\030\002 \003(\0132/.e" + + "du.stanford.nlp.pipeline.DependencyGraph" + + ".Edge\022\020\n\004root\030\003 \003(\rB\002\020\001\032D\n\004Node\022\025\n\rsente" + + "nceIndex\030\001 \002(\r\022\r\n\005index\030\002 \002(\r\022\026\n\016copyAnn" + + "otation\030\003 \001(\r\032\254\001\n\004Edge\022\016\n\006source\030\001 \002(\r\022\016" + + "\n\006target\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.nl", + "p.pipeline.Language:\007Unknown\"\306\002\n\nCorefCh" + + "ain\022\017\n\007chainID\030\001 \002(\005\022C\n\007mention\030\002 \003(\01322." + + "edu.stanford.nlp.pipeline.CorefChain.Cor" + + "efMention\022\026\n\016representative\030\003 \002(\r\032\311\001\n\014Co" + + "refMention\022\021\n\tmentionID\030\001 \001(\005\022\023\n\013mention" + + "Type\030\002 \001(\t\022\016\n\006number\030\003 \001(\t\022\016\n\006gender\030\004 \001" + + "(\t\022\017\n\007animacy\030\005 \001(\t\022\022\n\nbeginIndex\030\006 \001(\r\022" + + "\020\n\010endIndex\030\007 \001(\r\022\021\n\theadIndex\030\t \001(\r\022\025\n\r" + + "sentenceIndex\030\n \001(\r\022\020\n\010position\030\013 \001(\r\"\357\010" + + "\n\007Mention\022\021\n\tmentionID\030\001 \001(\005\022\023\n\013mentionT", + "ype\030\002 \001(\t\022\016\n\006number\030\003 \001(\t\022\016\n\006gender\030\004 \001(" + + "\t\022\017\n\007animacy\030\005 \001(\t\022\016\n\006person\030\006 \001(\t\022\022\n\nst" + + "artIndex\030\007 \001(\r\022\020\n\010endIndex\030\t \001(\r\022\021\n\thead" + + "Index\030\n \001(\r\022\022\n\nheadString\030\013 \001(\t\022\021\n\tnerSt" + + "ring\030\014 \001(\t\022\023\n\013originalRef\030\r \001(\r\022\032\n\022goldC" + + "orefClusterID\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\005utter\030\022 \001(\r\022\021\n\tparagraph\030\023 \001(\r\022\021\n\tis" + + "Subject\030\024 \001(\010\022\026\n\016isDirectObject\030\025 \001(\010\022\030\n" + + "\020isIndirectObject\030\026 \001(\010\022\033\n\023isPreposition", + "Object\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\022hasBasicD" + + "ependency\030\033 \001(\010\022\035\n\025hasEnhancedDepenedncy" + + "\030\034 \001(\010\022\033\n\023hasContextParseTree\030\035 \001(\010\022?\n\017h" + + "eadIndexedWord\030\036 \001(\0132&.edu.stanford.nlp." + + "pipeline.IndexedWord\022=\n\rdependingVerb\030\037 " + "\001(\0132&.edu.stanford.nlp.pipeline.IndexedW" + - "ord\022=\n\rdependingVerb\030\037 \001(\0132&.edu.stanfor" + - "d.nlp.pipeline.IndexedWord\0228\n\010headWord\030 " + - " \001(\0132&.edu.stanford.nlp.pipeline.Indexed" + - "Word\022;\n\013speakerInfo\030! \001(\0132&.edu.stanford" + - ".nlp.pipeline.SpeakerInfo\022=\n\rsentenceWor" + - "ds\0302 \003(\0132&.edu.stanford.nlp.pipeline.Ind" + - "exedWord\022<\n\014originalSpan\0303 \003(\0132&.edu.sta", - "nford.nlp.pipeline.IndexedWord\022\022\n\ndepend" + - "ents\0304 \003(\t\022\031\n\021preprocessedTerms\0305 \003(\t\022\023\n" + - "\013appositions\0306 \003(\005\022\034\n\024predicateNominativ" + - "es\0307 \003(\005\022\030\n\020relativePronouns\0308 \003(\005\022\023\n\013li" + - "stMembers\0309 \003(\005\022\025\n\rbelongToLists\030: \003(\005\"X" + - "\n\013IndexedWord\022\023\n\013sentenceNum\030\001 \001(\r\022\022\n\nto" + - "kenIndex\030\002 \001(\r\022\r\n\005docID\030\003 \001(\r\022\021\n\tcopyCou" + - "nt\030\004 \001(\r\"4\n\013SpeakerInfo\022\023\n\013speakerName\030\001" + - " \001(\t\022\020\n\010mentions\030\002 \003(\005\"\"\n\004Span\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\004ty" + - "pe\030\004 \001(\t\022\013\n\003tid\030\005 \001(\t\022\022\n\nbeginPoint\030\006 \001(" + - "\r\022\020\n\010endPoint\030\007 \001(\r\"\333\001\n\006Entity\022\021\n\theadSt" + - "art\030\006 \001(\r\022\017\n\007headEnd\030\007 \001(\r\022\023\n\013mentionTyp" + - "e\030\010 \001(\t\022\026\n\016normalizedName\030\t \001(\t\022\026\n\016headT" + - "okenIndex\030\n \001(\r\022\017\n\007corefID\030\013 \001(\t\022\020\n\010obje" + - "ctID\030\001 \001(\t\022\023\n\013extentStart\030\002 \001(\r\022\021\n\texten" + - "tEnd\030\003 \001(\r\022\014\n\004type\030\004 \001(\t\022\017\n\007subtype\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.pipeline.Entity\022", - "\021\n\tsignature\030\010 \001(\t\022\020\n\010objectID\030\001 \001(\t\022\023\n\013" + - "extentStart\030\002 \001(\r\022\021\n\textentEnd\030\003 \001(\r\022\014\n\004" + - "type\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\023quantifierSpanBegin\030\002 " + - "\002(\005\022\031\n\021quantifierSpanEnd\030\003 \002(\005\022\030\n\020subjec" + - "tSpanBegin\030\004 \002(\005\022\026\n\016subjectSpanEnd\030\005 \002(\005" + - "\022\027\n\017objectSpanBegin\030\006 \002(\005\022\025\n\robjectSpanE" + - "nd\030\007 \002(\005\"\251\004\n\010Polarity\022K\n\022projectEquivale" + - "nce\030\001 \002(\0162/.edu.stanford.nlp.pipeline.Na" + - "turalLogicRelation\022Q\n\030projectForwardEnta", - "ilment\030\002 \002(\0162/.edu.stanford.nlp.pipeline" + - ".NaturalLogicRelation\022Q\n\030projectReverseE" + - "ntailment\030\003 \002(\0162/.edu.stanford.nlp.pipel" + - "ine.NaturalLogicRelation\022H\n\017projectNegat" + - "ion\030\004 \002(\0162/.edu.stanford.nlp.pipeline.Na" + - "turalLogicRelation\022K\n\022projectAlternation" + - "\030\005 \002(\0162/.edu.stanford.nlp.pipeline.Natur" + - "alLogicRelation\022E\n\014projectCover\030\006 \002(\0162/." + - "edu.stanford.nlp.pipeline.NaturalLogicRe" + - "lation\022L\n\023projectIndependence\030\007 \002(\0162/.ed", - "u.stanford.nlp.pipeline.NaturalLogicRela" + - "tion\"\361\001\n\nNERMention\022\025\n\rsentenceIndex\030\001 \001" + - "(\r\022%\n\035tokenStartInSentenceInclusive\030\002 \002(" + - "\r\022#\n\033tokenEndInSentenceExclusive\030\003 \002(\r\022\013" + - "\n\003ner\030\004 \002(\t\022\025\n\rnormalizedNER\030\005 \001(\t\022\022\n\nen" + - "tityType\030\006 \001(\t\022/\n\005timex\030\007 \001(\0132 .edu.stan" + - "ford.nlp.pipeline.Timex\022\027\n\017wikipediaEnti" + - "ty\030\010 \001(\t\"Y\n\020SentenceFragment\022\022\n\ntokenInd" + - "ex\030\001 \003(\r\022\014\n\004root\030\002 \001(\r\022\024\n\014assumedTruth\030\003" + - " \001(\010\022\r\n\005score\030\004 \001(\001\":\n\rTokenLocation\022\025\n\r", - "sentenceIndex\030\001 \001(\r\022\022\n\ntokenIndex\030\002 \001(\r\"" + - "\232\003\n\016RelationTriple\022\017\n\007subject\030\001 \001(\t\022\020\n\010r" + - "elation\030\002 \001(\t\022\016\n\006object\030\003 \001(\t\022\022\n\nconfide" + - "nce\030\004 \001(\001\022?\n\rsubjectTokens\030\r \003(\0132(.edu.s" + - "tanford.nlp.pipeline.TokenLocation\022@\n\016re" + - "lationTokens\030\016 \003(\0132(.edu.stanford.nlp.pi" + - "peline.TokenLocation\022>\n\014objectTokens\030\017 \003" + - "(\0132(.edu.stanford.nlp.pipeline.TokenLoca" + - "tion\0228\n\004tree\030\010 \001(\0132*.edu.stanford.nlp.pi" + - "peline.DependencyGraph\022\016\n\006istmod\030\t \001(\010\022\020", - "\n\010prefixBe\030\n \001(\010\022\020\n\010suffixBe\030\013 \001(\010\022\020\n\010su" + - "ffixOf\030\014 \001(\010\"-\n\017MapStringString\022\013\n\003key\030\001" + - " \003(\t\022\r\n\005value\030\002 \003(\t\"*\n\014MapIntString\022\013\n\003k" + - "ey\030\001 \003(\r\022\r\n\005value\030\002 \003(\t*\243\001\n\010Language\022\013\n\007" + - "Unknown\020\000\022\007\n\003Any\020\001\022\n\n\006Arabic\020\002\022\013\n\007Chines" + - "e\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\020UniversalEn" + - "glish\020\t\022\024\n\020UniversalChinese\020\n*h\n\tSentime" + - "nt\022\023\n\017STRONG_NEGATIVE\020\000\022\021\n\rWEAK_NEGATIVE" + - "\020\001\022\013\n\007NEUTRAL\020\002\022\021\n\rWEAK_POSITIVE\020\003\022\023\n\017ST", - "RONG_POSITIVE\020\004*\223\001\n\024NaturalLogicRelation" + - "\022\017\n\013EQUIVALENCE\020\000\022\026\n\022FORWARD_ENTAILMENT\020" + - "\001\022\026\n\022REVERSE_ENTAILMENT\020\002\022\014\n\010NEGATION\020\003\022" + - "\017\n\013ALTERNATION\020\004\022\t\n\005COVER\020\005\022\020\n\014INDEPENDE" + - "NCE\020\006B*\n\031edu.stanford.nlp.pipelineB\rCore" + - "NLPProtos" + "ord\0228\n\010headWord\030 \001(\0132&.edu.stanford.nlp" + + ".pipeline.IndexedWord\022;\n\013speakerInfo\030! \001" + + "(\0132&.edu.stanford.nlp.pipeline.SpeakerIn", + "fo\022=\n\rsentenceWords\0302 \003(\0132&.edu.stanford" + + ".nlp.pipeline.IndexedWord\022<\n\014originalSpa" + + "n\0303 \003(\0132&.edu.stanford.nlp.pipeline.Inde" + + "xedWord\022\022\n\ndependents\0304 \003(\t\022\031\n\021preproces" + + "sedTerms\0305 \003(\t\022\023\n\013appositions\0306 \003(\005\022\034\n\024p" + + "redicateNominatives\0307 \003(\005\022\030\n\020relativePro" + + "nouns\0308 \003(\005\022\023\n\013listMembers\0309 \003(\005\022\025\n\rbelo" + + "ngToLists\030: \003(\005\"X\n\013IndexedWord\022\023\n\013senten" + + "ceNum\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\013speakerName\030\001 \001(\t\022\020\n\010mentions\030\002 \003(\005\"" + + "\"\n\004Span\022\r\n\005begin\030\001 \002(\r\022\013\n\003end\030\002 \002(\r\"w\n\005T" + + "imex\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\nbeginPoint\030\006 \001(\r\022\020\n\010endPoint\030\007 \001(\r\"\333\001\n" + + "\006Entity\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\016normalizedNa" + + "me\030\t \001(\t\022\026\n\016headTokenIndex\030\n \001(\r\022\017\n\007core" + + "fID\030\013 \001(\t\022\020\n\010objectID\030\001 \001(\t\022\023\n\013extentSta" + + "rt\030\002 \001(\r\022\021\n\textentEnd\030\003 \001(\r\022\014\n\004type\030\004 \001(", + "\t\022\017\n\007subtype\030\005 \001(\t\"\267\001\n\010Relation\022\017\n\007argNa" + + "me\030\006 \003(\t\022.\n\003arg\030\007 \003(\0132!.edu.stanford.nlp" + + ".pipeline.Entity\022\021\n\tsignature\030\010 \001(\t\022\020\n\010o" + + "bjectID\030\001 \001(\t\022\023\n\013extentStart\030\002 \001(\r\022\021\n\tex" + + "tentEnd\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\023quant" + + "ifierSpanBegin\030\002 \002(\005\022\031\n\021quantifierSpanEn" + + "d\030\003 \002(\005\022\030\n\020subjectSpanBegin\030\004 \002(\005\022\026\n\016sub" + + "jectSpanEnd\030\005 \002(\005\022\027\n\017objectSpanBegin\030\006 \002" + + "(\005\022\025\n\robjectSpanEnd\030\007 \002(\005\"\251\004\n\010Polarity\022K", + "\n\022projectEquivalence\030\001 \002(\0162/.edu.stanfor" + + "d.nlp.pipeline.NaturalLogicRelation\022Q\n\030p" + + "rojectForwardEntailment\030\002 \002(\0162/.edu.stan" + + "ford.nlp.pipeline.NaturalLogicRelation\022Q" + + "\n\030projectReverseEntailment\030\003 \002(\0162/.edu.s" + + "tanford.nlp.pipeline.NaturalLogicRelatio" + + "n\022H\n\017projectNegation\030\004 \002(\0162/.edu.stanfor" + + "d.nlp.pipeline.NaturalLogicRelation\022K\n\022p" + + "rojectAlternation\030\005 \002(\0162/.edu.stanford.n" + + "lp.pipeline.NaturalLogicRelation\022E\n\014proj", + "ectCover\030\006 \002(\0162/.edu.stanford.nlp.pipeli" + + "ne.NaturalLogicRelation\022L\n\023projectIndepe" + + "ndence\030\007 \002(\0162/.edu.stanford.nlp.pipeline" + + ".NaturalLogicRelation\"\361\001\n\nNERMention\022\025\n\r" + + "sentenceIndex\030\001 \001(\r\022%\n\035tokenStartInSente" + + "nceInclusive\030\002 \002(\r\022#\n\033tokenEndInSentence" + + "Exclusive\030\003 \002(\r\022\013\n\003ner\030\004 \002(\t\022\025\n\rnormaliz" + + "edNER\030\005 \001(\t\022\022\n\nentityType\030\006 \001(\t\022/\n\005timex" + + "\030\007 \001(\0132 .edu.stanford.nlp.pipeline.Timex" + + "\022\027\n\017wikipediaEntity\030\010 \001(\t\"Y\n\020SentenceFra", + "gment\022\022\n\ntokenIndex\030\001 \003(\r\022\014\n\004root\030\002 \001(\r\022" + + "\024\n\014assumedTruth\030\003 \001(\010\022\r\n\005score\030\004 \001(\001\":\n\r" + + "TokenLocation\022\025\n\rsentenceIndex\030\001 \001(\r\022\022\n\n" + + "tokenIndex\030\002 \001(\r\"\232\003\n\016RelationTriple\022\017\n\007s" + + "ubject\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\rsubjectTok" + + "ens\030\r \003(\0132(.edu.stanford.nlp.pipeline.To" + + "kenLocation\022@\n\016relationTokens\030\016 \003(\0132(.ed" + + "u.stanford.nlp.pipeline.TokenLocation\022>\n" + + "\014objectTokens\030\017 \003(\0132(.edu.stanford.nlp.p", + "ipeline.TokenLocation\0228\n\004tree\030\010 \001(\0132*.ed" + + "u.stanford.nlp.pipeline.DependencyGraph\022" + + "\016\n\006istmod\030\t \001(\010\022\020\n\010prefixBe\030\n \001(\010\022\020\n\010suf" + + "fixBe\030\013 \001(\010\022\020\n\010suffixOf\030\014 \001(\010\"-\n\017MapStri" + + "ngString\022\013\n\003key\030\001 \003(\t\022\r\n\005value\030\002 \003(\t\"*\n\014" + + "MapIntString\022\013\n\003key\030\001 \003(\r\022\r\n\005value\030\002 \003(\t" + + "\"\207\001\n\007Section\022\021\n\tcharBegin\030\001 \002(\r\022\017\n\007charE" + + "nd\030\002 \002(\r\022\016\n\006author\030\003 \001(\t\0226\n\tsentences\030\004 " + + "\003(\0132#.edu.stanford.nlp.pipeline.Sentence" + + "\022\020\n\010datetime\030\005 \001(\t*\243\001\n\010Language\022\013\n\007Unkno", + "wn\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\006H" + + "ebrew\020\007\022\013\n\007Spanish\020\010\022\024\n\020UniversalEnglish" + + "\020\t\022\024\n\020UniversalChinese\020\n*h\n\tSentiment\022\023\n" + + "\017STRONG_NEGATIVE\020\000\022\021\n\rWEAK_NEGATIVE\020\001\022\013\n" + + "\007NEUTRAL\020\002\022\021\n\rWEAK_POSITIVE\020\003\022\023\n\017STRONG_" + + "POSITIVE\020\004*\223\001\n\024NaturalLogicRelation\022\017\n\013E" + + "QUIVALENCE\020\000\022\026\n\022FORWARD_ENTAILMENT\020\001\022\026\n\022" + + "REVERSE_ENTAILMENT\020\002\022\014\n\010NEGATION\020\003\022\017\n\013AL" + + "TERNATION\020\004\022\t\n\005COVER\020\005\022\020\n\014INDEPENDENCE\020\006", + "B*\n\031edu.stanford.nlp.pipelineB\rCoreNLPPr" + + "otos" }; 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; - 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", "EntailedClause", "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", }); - return null; - } - }; + 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.GeneratedMessageV3.FieldAccessorTable( + internal_static_edu_stanford_nlp_pipeline_Document_descriptor, + new java.lang.String[] { "Text", "Sentence", "CorefChain", "DocID", "DocDate", "Calendar", "SentencelessToken", "Character", "Quote", "Mentions", "Sections", }); + internal_static_edu_stanford_nlp_pipeline_Sentence_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_edu_stanford_nlp_pipeline_Sentence_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.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", "EntailedClause", "EnhancedDependencies", "EnhancedPlusPlusDependencies", "Character", "Paragraph", "Text", "HasRelationAnnotations", "Entity", "Relation", "HasNumerizedTokensAnnotation", "Mentions", "MentionsForCoref", "HasCorefMentionsAnnotation", "SentenceID", "SectionDate", "SectionIndex", }); + internal_static_edu_stanford_nlp_pipeline_Token_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_edu_stanford_nlp_pipeline_Token_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable( + internal_static_edu_stanford_nlp_pipeline_MapIntString_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_edu_stanford_nlp_pipeline_Section_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_edu_stanford_nlp_pipeline_Section_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_edu_stanford_nlp_pipeline_Section_descriptor, + new java.lang.String[] { "CharBegin", "CharEnd", "Author", "Sentences", "Datetime", }); } // @@protoc_insertion_point(outer_class_scope)