public static final class MLServerProto.Match extends com.google.protobuf.GeneratedMessageV3 implements MLServerProto.MatchOrBuilder
lt_ml_server.Match| Modifier and Type | Class and Description |
|---|---|
static class |
MLServerProto.Match.Builder
Protobuf type
lt_ml_server.Match |
static class |
MLServerProto.Match.MatchType
Protobuf enum
lt_ml_server.Match.MatchType |
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| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOCORRECT_FIELD_NUMBER |
static int |
CONTEXTFORSUREMATCH_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LENGTH_FIELD_NUMBER |
static int |
MATCHDESCRIPTION_FIELD_NUMBER |
static int |
MATCHSHORTDESCRIPTION_FIELD_NUMBER |
static int |
OFFSET_FIELD_NUMBER |
static int |
RULE_FIELD_NUMBER |
static int |
RULEDESCRIPTION_FIELD_NUMBER |
static int |
SUB_ID_FIELD_NUMBER |
static int |
SUGGESTEDREPLACEMENTS_FIELD_NUMBER |
static int |
SUGGESTIONS_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
URL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAutoCorrect()
is this correction eligible for auto-correction?
|
int |
getContextForSureMatch()
sint32 contextForSureMatch = 13; |
static MLServerProto.Match |
getDefaultInstance() |
MLServerProto.Match |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getId()
prefix for rule ids; should use a common value for one model/server
string id = 3; |
com.google.protobuf.ByteString |
getIdBytes()
prefix for rule ids; should use a common value for one model/server
string id = 3; |
int |
getLength()
length of matched area; >0
uint32 length = 2; |
String |
getMatchDescription()
description of the match; displayed in e.g. the add-on pop-up
string matchDescription = 7; |
com.google.protobuf.ByteString |
getMatchDescriptionBytes()
description of the match; displayed in e.g. the add-on pop-up
string matchDescription = 7; |
String |
getMatchShortDescription()
shortened description of the match; displayed in e.g.
|
com.google.protobuf.ByteString |
getMatchShortDescriptionBytes()
shortened description of the match; displayed in e.g.
|
int |
getOffset()
start position in the sentence (i.e. not relative to whole text)
uint32 offset = 1; |
com.google.protobuf.Parser<MLServerProto.Match> |
getParserForType() |
MLServerProto.Rule |
getRule()
.lt_ml_server.Rule rule = 14; |
String |
getRuleDescription()
added later, optional (can be substituted by Java)
string ruleDescription = 6; |
com.google.protobuf.ByteString |
getRuleDescriptionBytes()
added later, optional (can be substituted by Java)
string ruleDescription = 6; |
MLServerProto.RuleOrBuilder |
getRuleOrBuilder()
.lt_ml_server.Rule rule = 14; |
int |
getSerializedSize() |
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; |
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; |
MLServerProto.SuggestedReplacement |
getSuggestedReplacements(int index)
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10; |
int |
getSuggestedReplacementsCount()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10; |
List<MLServerProto.SuggestedReplacement> |
getSuggestedReplacementsList()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10; |
MLServerProto.SuggestedReplacementOrBuilder |
getSuggestedReplacementsOrBuilder(int index)
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10; |
List<? extends MLServerProto.SuggestedReplacementOrBuilder> |
getSuggestedReplacementsOrBuilderList()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10; |
String |
getSuggestions(int index)
legacy; use suggestedReplacements
repeated string suggestions = 5; |
com.google.protobuf.ByteString |
getSuggestionsBytes(int index)
legacy; use suggestedReplacements
repeated string suggestions = 5; |
int |
getSuggestionsCount()
legacy; use suggestedReplacements
repeated string suggestions = 5; |
com.google.protobuf.ProtocolStringList |
getSuggestionsList()
legacy; use suggestedReplacements
repeated string suggestions = 5; |
MLServerProto.Match.MatchType |
getType()
.lt_ml_server.Match.MatchType type = 12; |
int |
getTypeValue()
.lt_ml_server.Match.MatchType type = 12; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUrl()
to show a link, e.g. with further explanations for this error
string url = 9; |
com.google.protobuf.ByteString |
getUrlBytes()
to show a link, e.g. with further explanations for this error
string url = 9; |
int |
hashCode() |
boolean |
hasRule()
.lt_ml_server.Rule rule = 14; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MLServerProto.Match.Builder |
newBuilder() |
static MLServerProto.Match.Builder |
newBuilder(MLServerProto.Match prototype) |
MLServerProto.Match.Builder |
newBuilderForType() |
protected MLServerProto.Match.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MLServerProto.Match |
parseDelimitedFrom(InputStream input) |
static MLServerProto.Match |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MLServerProto.Match |
parseFrom(byte[] data) |
static MLServerProto.Match |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MLServerProto.Match |
parseFrom(ByteBuffer data) |
static MLServerProto.Match |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MLServerProto.Match |
parseFrom(com.google.protobuf.ByteString data) |
static MLServerProto.Match |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MLServerProto.Match |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MLServerProto.Match |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MLServerProto.Match |
parseFrom(InputStream input) |
static MLServerProto.Match |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MLServerProto.Match> |
parser() |
MLServerProto.Match.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int OFFSET_FIELD_NUMBER
public static final int LENGTH_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int SUB_ID_FIELD_NUMBER
public static final int SUGGESTIONS_FIELD_NUMBER
public static final int RULEDESCRIPTION_FIELD_NUMBER
public static final int MATCHDESCRIPTION_FIELD_NUMBER
public static final int MATCHSHORTDESCRIPTION_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
public static final int SUGGESTEDREPLACEMENTS_FIELD_NUMBER
public static final int AUTOCORRECT_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int CONTEXTFORSUREMATCH_FIELD_NUMBER
public static final int RULE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getOffset()
start position in the sentence (i.e. not relative to whole text)
uint32 offset = 1;getOffset in interface MLServerProto.MatchOrBuilderpublic int getLength()
length of matched area; >0
uint32 length = 2;getLength in interface MLServerProto.MatchOrBuilderpublic String getId()
prefix for rule ids; should use a common value for one model/server
string id = 3;getId in interface MLServerProto.MatchOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
prefix for rule ids; should use a common value for one model/server
string id = 3;getIdBytes in interface MLServerProto.MatchOrBuilderpublic 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;getSubId in interface MLServerProto.MatchOrBuilderpublic 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;getSubIdBytes in interface MLServerProto.MatchOrBuilderpublic com.google.protobuf.ProtocolStringList getSuggestionsList()
legacy; use suggestedReplacements
repeated string suggestions = 5;getSuggestionsList in interface MLServerProto.MatchOrBuilderpublic int getSuggestionsCount()
legacy; use suggestedReplacements
repeated string suggestions = 5;getSuggestionsCount in interface MLServerProto.MatchOrBuilderpublic String getSuggestions(int index)
legacy; use suggestedReplacements
repeated string suggestions = 5;getSuggestions in interface MLServerProto.MatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getSuggestionsBytes(int index)
legacy; use suggestedReplacements
repeated string suggestions = 5;getSuggestionsBytes in interface MLServerProto.MatchOrBuilderindex - The index of the value to return.public String getRuleDescription()
added later, optional (can be substituted by Java)
string ruleDescription = 6;getRuleDescription in interface MLServerProto.MatchOrBuilderpublic com.google.protobuf.ByteString getRuleDescriptionBytes()
added later, optional (can be substituted by Java)
string ruleDescription = 6;getRuleDescriptionBytes in interface MLServerProto.MatchOrBuilderpublic String getMatchDescription()
description of the match; displayed in e.g. the add-on pop-up
string matchDescription = 7;getMatchDescription in interface MLServerProto.MatchOrBuilderpublic com.google.protobuf.ByteString getMatchDescriptionBytes()
description of the match; displayed in e.g. the add-on pop-up
string matchDescription = 7;getMatchDescriptionBytes in interface MLServerProto.MatchOrBuilderpublic String getMatchShortDescription()
shortened description of the match; displayed in e.g. LibreOffice context menu
string matchShortDescription = 8;getMatchShortDescription in interface MLServerProto.MatchOrBuilderpublic com.google.protobuf.ByteString getMatchShortDescriptionBytes()
shortened description of the match; displayed in e.g. LibreOffice context menu
string matchShortDescription = 8;getMatchShortDescriptionBytes in interface MLServerProto.MatchOrBuilderpublic String getUrl()
to show a link, e.g. with further explanations for this error
string url = 9;getUrl in interface MLServerProto.MatchOrBuilderpublic com.google.protobuf.ByteString getUrlBytes()
to show a link, e.g. with further explanations for this error
string url = 9;getUrlBytes in interface MLServerProto.MatchOrBuilderpublic List<MLServerProto.SuggestedReplacement> getSuggestedReplacementsList()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;getSuggestedReplacementsList in interface MLServerProto.MatchOrBuilderpublic List<? extends MLServerProto.SuggestedReplacementOrBuilder> getSuggestedReplacementsOrBuilderList()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;getSuggestedReplacementsOrBuilderList in interface MLServerProto.MatchOrBuilderpublic int getSuggestedReplacementsCount()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;getSuggestedReplacementsCount in interface MLServerProto.MatchOrBuilderpublic MLServerProto.SuggestedReplacement getSuggestedReplacements(int index)
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;getSuggestedReplacements in interface MLServerProto.MatchOrBuilderpublic MLServerProto.SuggestedReplacementOrBuilder getSuggestedReplacementsOrBuilder(int index)
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;getSuggestedReplacementsOrBuilder in interface MLServerProto.MatchOrBuilderpublic boolean getAutoCorrect()
is this correction eligible for auto-correction?
bool autoCorrect = 11;getAutoCorrect in interface MLServerProto.MatchOrBuilderpublic int getTypeValue()
.lt_ml_server.Match.MatchType type = 12;getTypeValue in interface MLServerProto.MatchOrBuilderpublic MLServerProto.Match.MatchType getType()
.lt_ml_server.Match.MatchType type = 12;getType in interface MLServerProto.MatchOrBuilderpublic int getContextForSureMatch()
sint32 contextForSureMatch = 13;getContextForSureMatch in interface MLServerProto.MatchOrBuilderpublic boolean hasRule()
.lt_ml_server.Rule rule = 14;hasRule in interface MLServerProto.MatchOrBuilderpublic MLServerProto.Rule getRule()
.lt_ml_server.Rule rule = 14;getRule in interface MLServerProto.MatchOrBuilderpublic MLServerProto.RuleOrBuilder getRuleOrBuilder()
.lt_ml_server.Rule rule = 14;getRuleOrBuilder in interface MLServerProto.MatchOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MLServerProto.Match parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MLServerProto.Match parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MLServerProto.Match parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MLServerProto.Match parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MLServerProto.Match parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MLServerProto.Match parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MLServerProto.Match parseFrom(InputStream input) throws IOException
IOExceptionpublic static MLServerProto.Match parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MLServerProto.Match parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MLServerProto.Match parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MLServerProto.Match parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MLServerProto.Match parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MLServerProto.Match.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MLServerProto.Match.Builder newBuilder()
public static MLServerProto.Match.Builder newBuilder(MLServerProto.Match prototype)
public MLServerProto.Match.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MLServerProto.Match.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MLServerProto.Match getDefaultInstance()
public static com.google.protobuf.Parser<MLServerProto.Match> parser()
public com.google.protobuf.Parser<MLServerProto.Match> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MLServerProto.Match getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder