Package org.languagetool.rules.ml
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typelt_ml_server.Matchstatic enumProtobuf enumlt_ml_server.Match.MatchTypeNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanstatic final intprivate intprivate intstatic final intprivate static final MLServerProto.Matchprivate Objectstatic final intprivate intstatic final intprivate Objectstatic final intprivate Objectstatic final intprivate byteprivate intstatic final intprivate static final com.google.protobuf.Parser<MLServerProto.Match> private MLServerProto.Rulestatic final intprivate Objectstatic final intprivate static final longstatic final intprivate Objectprivate List<MLServerProto.SuggestedReplacement> static final intprivate com.google.protobuf.LazyStringArrayListstatic final intprivate intstatic final intprivate Objectstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanis this correction eligible for auto-correction?intsint32 contextForSureMatch = 13;static MLServerProto.Matchstatic final com.google.protobuf.Descriptors.DescriptorgetId()prefix for rule ids; should use a common value for one model/servercom.google.protobuf.ByteStringprefix for rule ids; should use a common value for one model/serverintlength of matched area; >0description of the match; displayed in e.g.com.google.protobuf.ByteStringdescription of the match; displayed in e.g.shortened description of the match; displayed in e.g.com.google.protobuf.ByteStringshortened description of the match; displayed in e.g.intstart position in the sentence (i.e.com.google.protobuf.Parser<MLServerProto.Match> getRule().lt_ml_server.Rule rule = 14;added later, optional (can be substituted by Java)com.google.protobuf.ByteStringadded later, optional (can be substituted by Java).lt_ml_server.Rule rule = 14;intgetSubId()more specific suffix for rule ids; i.e.com.google.protobuf.ByteStringmore specific suffix for rule ids; i.e.getSuggestedReplacements(int index) new and extended suggestions; overwrite any values set in suggestionsintnew and extended suggestions; overwrite any values set in suggestionsnew and extended suggestions; overwrite any values set in suggestionsgetSuggestedReplacementsOrBuilder(int index) new and extended suggestions; overwrite any values set in suggestionsList<? extends MLServerProto.SuggestedReplacementOrBuilder> new and extended suggestions; overwrite any values set in suggestionsgetSuggestions(int index) legacy; use suggestedReplacementscom.google.protobuf.ByteStringgetSuggestionsBytes(int index) legacy; use suggestedReplacementsintlegacy; use suggestedReplacementscom.google.protobuf.ProtocolStringListlegacy; use suggestedReplacementsgetType().lt_ml_server.Match.MatchType type = 12;int.lt_ml_server.Match.MatchType type = 12;getUrl()to show a link, e.g.com.google.protobuf.ByteStringto show a link, e.g.inthashCode()booleanhasRule().lt_ml_server.Rule rule = 14;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic MLServerProto.Match.Builderstatic MLServerProto.Match.BuildernewBuilder(MLServerProto.Match prototype) protected MLServerProto.Match.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MLServerProto.MatchparseDelimitedFrom(InputStream input) static MLServerProto.MatchparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MLServerProto.MatchparseFrom(byte[] data) static MLServerProto.MatchparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MLServerProto.MatchparseFrom(com.google.protobuf.ByteString data) static MLServerProto.MatchparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MLServerProto.MatchparseFrom(com.google.protobuf.CodedInputStream input) static MLServerProto.MatchparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MLServerProto.MatchparseFrom(InputStream input) static MLServerProto.MatchparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MLServerProto.MatchparseFrom(ByteBuffer data) static MLServerProto.MatchparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MLServerProto.Match> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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_
-
SUB_ID_FIELD_NUMBER
public static final int SUB_ID_FIELD_NUMBER- See Also:
-
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_
-
MATCHDESCRIPTION_FIELD_NUMBER
public static final int MATCHDESCRIPTION_FIELD_NUMBER- See Also:
-
matchDescription_
-
MATCHSHORTDESCRIPTION_FIELD_NUMBER
public static final int MATCHSHORTDESCRIPTION_FIELD_NUMBER- See Also:
-
matchShortDescription_
-
URL_FIELD_NUMBER
public static final int URL_FIELD_NUMBER- See Also:
-
url_
-
SUGGESTEDREPLACEMENTS_FIELD_NUMBER
public static final int SUGGESTEDREPLACEMENTS_FIELD_NUMBER- See Also:
-
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_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
Match
private Match(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) -
Match
private Match()
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getOffset
public int getOffset()start position in the sentence (i.e. not relative to whole text)
uint32 offset = 1;- Specified by:
getOffsetin interfaceMLServerProto.MatchOrBuilder- Returns:
- The offset.
-
getLength
public int getLength()length of matched area; >0
uint32 length = 2;- Specified by:
getLengthin interfaceMLServerProto.MatchOrBuilder- Returns:
- The length.
-
getId
prefix for rule ids; should use a common value for one model/server
string id = 3;- Specified by:
getIdin interfaceMLServerProto.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:
getIdBytesin interfaceMLServerProto.MatchOrBuilder- Returns:
- The bytes for id.
-
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:
getSubIdin interfaceMLServerProto.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:
getSubIdBytesin interfaceMLServerProto.MatchOrBuilder- Returns:
- The bytes for subId.
-
getSuggestionsList
public com.google.protobuf.ProtocolStringList getSuggestionsList()legacy; use suggestedReplacements
repeated string suggestions = 5;- Specified by:
getSuggestionsListin interfaceMLServerProto.MatchOrBuilder- Returns:
- A list containing the suggestions.
-
getSuggestionsCount
public int getSuggestionsCount()legacy; use suggestedReplacements
repeated string suggestions = 5;- Specified by:
getSuggestionsCountin interfaceMLServerProto.MatchOrBuilder- Returns:
- The count of suggestions.
-
getSuggestions
legacy; use suggestedReplacements
repeated string suggestions = 5;- Specified by:
getSuggestionsin interfaceMLServerProto.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:
getSuggestionsBytesin interfaceMLServerProto.MatchOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the suggestions at the given index.
-
getRuleDescription
added later, optional (can be substituted by Java)
string ruleDescription = 6;- Specified by:
getRuleDescriptionin interfaceMLServerProto.MatchOrBuilder- Returns:
- The ruleDescription.
-
getRuleDescriptionBytes
public com.google.protobuf.ByteString getRuleDescriptionBytes()added later, optional (can be substituted by Java)
string ruleDescription = 6;- Specified by:
getRuleDescriptionBytesin interfaceMLServerProto.MatchOrBuilder- Returns:
- The bytes for ruleDescription.
-
getMatchDescription
description of the match; displayed in e.g. the add-on pop-up
string matchDescription = 7;- Specified by:
getMatchDescriptionin interfaceMLServerProto.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:
getMatchDescriptionBytesin interfaceMLServerProto.MatchOrBuilder- Returns:
- The bytes for matchDescription.
-
getMatchShortDescription
shortened description of the match; displayed in e.g. LibreOffice context menu
string matchShortDescription = 8;- Specified by:
getMatchShortDescriptionin interfaceMLServerProto.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:
getMatchShortDescriptionBytesin interfaceMLServerProto.MatchOrBuilder- Returns:
- The bytes for matchShortDescription.
-
getUrl
to show a link, e.g. with further explanations for this error
string url = 9;- Specified by:
getUrlin interfaceMLServerProto.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:
getUrlBytesin interfaceMLServerProto.MatchOrBuilder- Returns:
- The bytes for url.
-
getSuggestedReplacementsList
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;- Specified by:
getSuggestedReplacementsListin interfaceMLServerProto.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:
getSuggestedReplacementsOrBuilderListin interfaceMLServerProto.MatchOrBuilder
-
getSuggestedReplacementsCount
public int getSuggestedReplacementsCount()new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;- Specified by:
getSuggestedReplacementsCountin interfaceMLServerProto.MatchOrBuilder
-
getSuggestedReplacements
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;- Specified by:
getSuggestedReplacementsin interfaceMLServerProto.MatchOrBuilder
-
getSuggestedReplacementsOrBuilder
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;- Specified by:
getSuggestedReplacementsOrBuilderin interfaceMLServerProto.MatchOrBuilder
-
getAutoCorrect
public boolean getAutoCorrect()is this correction eligible for auto-correction?
bool autoCorrect = 11;- Specified by:
getAutoCorrectin interfaceMLServerProto.MatchOrBuilder- Returns:
- The autoCorrect.
-
getTypeValue
public int getTypeValue().lt_ml_server.Match.MatchType type = 12;- Specified by:
getTypeValuein interfaceMLServerProto.MatchOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
.lt_ml_server.Match.MatchType type = 12;- Specified by:
getTypein interfaceMLServerProto.MatchOrBuilder- Returns:
- The type.
-
getContextForSureMatch
public int getContextForSureMatch()sint32 contextForSureMatch = 13;- Specified by:
getContextForSureMatchin interfaceMLServerProto.MatchOrBuilder- Returns:
- The contextForSureMatch.
-
hasRule
public boolean hasRule().lt_ml_server.Rule rule = 14;- Specified by:
hasRulein interfaceMLServerProto.MatchOrBuilder- Returns:
- Whether the rule field is set.
-
getRule
.lt_ml_server.Rule rule = 14;- Specified by:
getRulein interfaceMLServerProto.MatchOrBuilder- Returns:
- The rule.
-
getRuleOrBuilder
.lt_ml_server.Rule rule = 14;- Specified by:
getRuleOrBuilderin interfaceMLServerProto.MatchOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static MLServerProto.Match parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MLServerProto.Match.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-