Class MLServerProto.Match

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.languagetool.rules.ml.MLServerProto.Match
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, MLServerProto.MatchOrBuilder
Enclosing class:
MLServerProto

public static final class MLServerProto.Match extends com.google.protobuf.GeneratedMessageV3 implements MLServerProto.MatchOrBuilder
Protobuf type lt_ml_server.Match
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • OFFSET_FIELD_NUMBER

      public static final int OFFSET_FIELD_NUMBER
      See Also:
    • offset_

      private int offset_
    • LENGTH_FIELD_NUMBER

      public static final int LENGTH_FIELD_NUMBER
      See Also:
    • length_

      private int length_
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • id_

      private volatile Object id_
    • SUB_ID_FIELD_NUMBER

      public static final int SUB_ID_FIELD_NUMBER
      See Also:
    • subId_

      private volatile Object subId_
    • SUGGESTIONS_FIELD_NUMBER

      public static final int SUGGESTIONS_FIELD_NUMBER
      See Also:
    • suggestions_

      private com.google.protobuf.LazyStringArrayList suggestions_
    • RULEDESCRIPTION_FIELD_NUMBER

      public static final int RULEDESCRIPTION_FIELD_NUMBER
      See Also:
    • ruleDescription_

      private volatile Object ruleDescription_
    • MATCHDESCRIPTION_FIELD_NUMBER

      public static final int MATCHDESCRIPTION_FIELD_NUMBER
      See Also:
    • matchDescription_

      private volatile Object matchDescription_
    • MATCHSHORTDESCRIPTION_FIELD_NUMBER

      public static final int MATCHSHORTDESCRIPTION_FIELD_NUMBER
      See Also:
    • matchShortDescription_

      private volatile Object matchShortDescription_
    • URL_FIELD_NUMBER

      public static final int URL_FIELD_NUMBER
      See Also:
    • url_

      private volatile Object url_
    • SUGGESTEDREPLACEMENTS_FIELD_NUMBER

      public static final int SUGGESTEDREPLACEMENTS_FIELD_NUMBER
      See Also:
    • suggestedReplacements_

      private List<MLServerProto.SuggestedReplacement> suggestedReplacements_
    • AUTOCORRECT_FIELD_NUMBER

      public static final int AUTOCORRECT_FIELD_NUMBER
      See Also:
    • autoCorrect_

      private boolean autoCorrect_
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • type_

      private int type_
    • CONTEXTFORSUREMATCH_FIELD_NUMBER

      public static final int CONTEXTFORSUREMATCH_FIELD_NUMBER
      See Also:
    • contextForSureMatch_

      private int contextForSureMatch_
    • RULE_FIELD_NUMBER

      public static final int RULE_FIELD_NUMBER
      See Also:
    • rule_

      private MLServerProto.Rule rule_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final MLServerProto.Match DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<MLServerProto.Match> PARSER
  • Constructor Details

    • Match

      private Match(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
    • Match

      private Match()
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getOffset

      public int getOffset()
       start position in the sentence (i.e. not relative to whole text)
       
      uint32 offset = 1;
      Specified by:
      getOffset in interface MLServerProto.MatchOrBuilder
      Returns:
      The offset.
    • getLength

      public int getLength()
       length of matched area; >0
       
      uint32 length = 2;
      Specified by:
      getLength in interface MLServerProto.MatchOrBuilder
      Returns:
      The length.
    • getId

      public String getId()
       prefix for rule ids; should use a common value for one model/server
       
      string id = 3;
      Specified by:
      getId in interface MLServerProto.MatchOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       prefix for rule ids; should use a common value for one model/server
       
      string id = 3;
      Specified by:
      getIdBytes in interface MLServerProto.MatchOrBuilder
      Returns:
      The bytes for id.
    • getSubId

      public String getSubId()
       more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       
      string sub_id = 4;
      Specified by:
      getSubId in interface MLServerProto.MatchOrBuilder
      Returns:
      The subId.
    • getSubIdBytes

      public com.google.protobuf.ByteString getSubIdBytes()
       more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       
      string sub_id = 4;
      Specified by:
      getSubIdBytes in interface MLServerProto.MatchOrBuilder
      Returns:
      The bytes for subId.
    • getSuggestionsList

      public com.google.protobuf.ProtocolStringList getSuggestionsList()
       legacy; use suggestedReplacements
       
      repeated string suggestions = 5;
      Specified by:
      getSuggestionsList in interface MLServerProto.MatchOrBuilder
      Returns:
      A list containing the suggestions.
    • getSuggestionsCount

      public int getSuggestionsCount()
       legacy; use suggestedReplacements
       
      repeated string suggestions = 5;
      Specified by:
      getSuggestionsCount in interface MLServerProto.MatchOrBuilder
      Returns:
      The count of suggestions.
    • getSuggestions

      public String getSuggestions(int index)
       legacy; use suggestedReplacements
       
      repeated string suggestions = 5;
      Specified by:
      getSuggestions in interface MLServerProto.MatchOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The suggestions at the given index.
    • getSuggestionsBytes

      public com.google.protobuf.ByteString getSuggestionsBytes(int index)
       legacy; use suggestedReplacements
       
      repeated string suggestions = 5;
      Specified by:
      getSuggestionsBytes in interface MLServerProto.MatchOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the suggestions at the given index.
    • getRuleDescription

      public String getRuleDescription()
       added later, optional (can be substituted by Java)
       
      string ruleDescription = 6;
      Specified by:
      getRuleDescription in interface MLServerProto.MatchOrBuilder
      Returns:
      The ruleDescription.
    • getRuleDescriptionBytes

      public com.google.protobuf.ByteString getRuleDescriptionBytes()
       added later, optional (can be substituted by Java)
       
      string ruleDescription = 6;
      Specified by:
      getRuleDescriptionBytes in interface MLServerProto.MatchOrBuilder
      Returns:
      The bytes for ruleDescription.
    • getMatchDescription

      public String getMatchDescription()
       description of the match; displayed in e.g. the add-on pop-up
       
      string matchDescription = 7;
      Specified by:
      getMatchDescription in interface MLServerProto.MatchOrBuilder
      Returns:
      The matchDescription.
    • getMatchDescriptionBytes

      public com.google.protobuf.ByteString getMatchDescriptionBytes()
       description of the match; displayed in e.g. the add-on pop-up
       
      string matchDescription = 7;
      Specified by:
      getMatchDescriptionBytes in interface MLServerProto.MatchOrBuilder
      Returns:
      The bytes for matchDescription.
    • getMatchShortDescription

      public String getMatchShortDescription()
       shortened description of the match; displayed in e.g. LibreOffice context menu
       
      string matchShortDescription = 8;
      Specified by:
      getMatchShortDescription in interface MLServerProto.MatchOrBuilder
      Returns:
      The matchShortDescription.
    • getMatchShortDescriptionBytes

      public com.google.protobuf.ByteString getMatchShortDescriptionBytes()
       shortened description of the match; displayed in e.g. LibreOffice context menu
       
      string matchShortDescription = 8;
      Specified by:
      getMatchShortDescriptionBytes in interface MLServerProto.MatchOrBuilder
      Returns:
      The bytes for matchShortDescription.
    • getUrl

      public String getUrl()
       to show a link, e.g. with further explanations for this error
       
      string url = 9;
      Specified by:
      getUrl in interface MLServerProto.MatchOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       to show a link, e.g. with further explanations for this error
       
      string url = 9;
      Specified by:
      getUrlBytes in interface MLServerProto.MatchOrBuilder
      Returns:
      The bytes for url.
    • getSuggestedReplacementsList

      public List<MLServerProto.SuggestedReplacement> getSuggestedReplacementsList()
       new and extended suggestions; overwrite any values set in suggestions
       
      repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;
      Specified by:
      getSuggestedReplacementsList in interface MLServerProto.MatchOrBuilder
    • getSuggestedReplacementsOrBuilderList

      public List<? extends MLServerProto.SuggestedReplacementOrBuilder> getSuggestedReplacementsOrBuilderList()
       new and extended suggestions; overwrite any values set in suggestions
       
      repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;
      Specified by:
      getSuggestedReplacementsOrBuilderList in interface MLServerProto.MatchOrBuilder
    • getSuggestedReplacementsCount

      public int getSuggestedReplacementsCount()
       new and extended suggestions; overwrite any values set in suggestions
       
      repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;
      Specified by:
      getSuggestedReplacementsCount in interface MLServerProto.MatchOrBuilder
    • getSuggestedReplacements

      public MLServerProto.SuggestedReplacement getSuggestedReplacements(int index)
       new and extended suggestions; overwrite any values set in suggestions
       
      repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;
      Specified by:
      getSuggestedReplacements in interface MLServerProto.MatchOrBuilder
    • getSuggestedReplacementsOrBuilder

      public MLServerProto.SuggestedReplacementOrBuilder getSuggestedReplacementsOrBuilder(int index)
       new and extended suggestions; overwrite any values set in suggestions
       
      repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;
      Specified by:
      getSuggestedReplacementsOrBuilder in interface MLServerProto.MatchOrBuilder
    • getAutoCorrect

      public boolean getAutoCorrect()
       is this correction eligible for auto-correction?
       
      bool autoCorrect = 11;
      Specified by:
      getAutoCorrect in interface MLServerProto.MatchOrBuilder
      Returns:
      The autoCorrect.
    • getTypeValue

      public int getTypeValue()
      .lt_ml_server.Match.MatchType type = 12;
      Specified by:
      getTypeValue in interface MLServerProto.MatchOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      .lt_ml_server.Match.MatchType type = 12;
      Specified by:
      getType in interface MLServerProto.MatchOrBuilder
      Returns:
      The type.
    • getContextForSureMatch

      public int getContextForSureMatch()
      sint32 contextForSureMatch = 13;
      Specified by:
      getContextForSureMatch in interface MLServerProto.MatchOrBuilder
      Returns:
      The contextForSureMatch.
    • hasRule

      public boolean hasRule()
      .lt_ml_server.Rule rule = 14;
      Specified by:
      hasRule in interface MLServerProto.MatchOrBuilder
      Returns:
      Whether the rule field is set.
    • getRule

      public MLServerProto.Rule getRule()
      .lt_ml_server.Rule rule = 14;
      Specified by:
      getRule in interface MLServerProto.MatchOrBuilder
      Returns:
      The rule.
    • getRuleOrBuilder

      public MLServerProto.RuleOrBuilder getRuleOrBuilder()
      .lt_ml_server.Rule rule = 14;
      Specified by:
      getRuleOrBuilder in interface MLServerProto.MatchOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MLServerProto.Match parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Match parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Match parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Match parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Match parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Match parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Match parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MLServerProto.Match parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MLServerProto.Match parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MLServerProto.Match parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MLServerProto.Match parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MLServerProto.Match parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MLServerProto.Match.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MLServerProto.Match.Builder newBuilder()
    • newBuilder

      public static MLServerProto.Match.Builder newBuilder(MLServerProto.Match prototype)
    • toBuilder

      public MLServerProto.Match.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MLServerProto.Match.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MLServerProto.Match getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MLServerProto.Match> parser()
    • getParserForType

      public com.google.protobuf.Parser<MLServerProto.Match> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public MLServerProto.Match getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder