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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public int getOffset()
start position in the sentence (i.e. not relative to whole text)
uint32 offset = 1;
getOffset
in interface MLServerProto.MatchOrBuilder
public int getLength()
length of matched area; >0
uint32 length = 2;
getLength
in interface MLServerProto.MatchOrBuilder
public String getId()
prefix for rule ids; should use a common value for one model/server
string id = 3;
getId
in interface MLServerProto.MatchOrBuilder
public 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.MatchOrBuilder
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;
getSubId
in interface MLServerProto.MatchOrBuilder
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;
getSubIdBytes
in interface MLServerProto.MatchOrBuilder
public com.google.protobuf.ProtocolStringList getSuggestionsList()
legacy; use suggestedReplacements
repeated string suggestions = 5;
getSuggestionsList
in interface MLServerProto.MatchOrBuilder
public int getSuggestionsCount()
legacy; use suggestedReplacements
repeated string suggestions = 5;
getSuggestionsCount
in interface MLServerProto.MatchOrBuilder
public String getSuggestions(int index)
legacy; use suggestedReplacements
repeated string suggestions = 5;
getSuggestions
in interface MLServerProto.MatchOrBuilder
index
- 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.MatchOrBuilder
index
- 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.MatchOrBuilder
public com.google.protobuf.ByteString getRuleDescriptionBytes()
added later, optional (can be substituted by Java)
string ruleDescription = 6;
getRuleDescriptionBytes
in interface MLServerProto.MatchOrBuilder
public String getMatchDescription()
description of the match; displayed in e.g. the add-on pop-up
string matchDescription = 7;
getMatchDescription
in interface MLServerProto.MatchOrBuilder
public 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.MatchOrBuilder
public String getMatchShortDescription()
shortened description of the match; displayed in e.g. LibreOffice context menu
string matchShortDescription = 8;
getMatchShortDescription
in interface MLServerProto.MatchOrBuilder
public com.google.protobuf.ByteString getMatchShortDescriptionBytes()
shortened description of the match; displayed in e.g. LibreOffice context menu
string matchShortDescription = 8;
getMatchShortDescriptionBytes
in interface MLServerProto.MatchOrBuilder
public String getUrl()
to show a link, e.g. with further explanations for this error
string url = 9;
getUrl
in interface MLServerProto.MatchOrBuilder
public com.google.protobuf.ByteString getUrlBytes()
to show a link, e.g. with further explanations for this error
string url = 9;
getUrlBytes
in interface MLServerProto.MatchOrBuilder
public 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.MatchOrBuilder
public 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.MatchOrBuilder
public int getSuggestedReplacementsCount()
new and extended suggestions; overwrite any values set in suggestions
repeated .lt_ml_server.SuggestedReplacement suggestedReplacements = 10;
getSuggestedReplacementsCount
in interface MLServerProto.MatchOrBuilder
public 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.MatchOrBuilder
public 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.MatchOrBuilder
public boolean getAutoCorrect()
is this correction eligible for auto-correction?
bool autoCorrect = 11;
getAutoCorrect
in interface MLServerProto.MatchOrBuilder
public int getTypeValue()
.lt_ml_server.Match.MatchType type = 12;
getTypeValue
in interface MLServerProto.MatchOrBuilder
public MLServerProto.Match.MatchType getType()
.lt_ml_server.Match.MatchType type = 12;
getType
in interface MLServerProto.MatchOrBuilder
public int getContextForSureMatch()
sint32 contextForSureMatch = 13;
getContextForSureMatch
in interface MLServerProto.MatchOrBuilder
public boolean hasRule()
.lt_ml_server.Rule rule = 14;
hasRule
in interface MLServerProto.MatchOrBuilder
public MLServerProto.Rule getRule()
.lt_ml_server.Rule rule = 14;
getRule
in interface MLServerProto.MatchOrBuilder
public MLServerProto.RuleOrBuilder getRuleOrBuilder()
.lt_ml_server.Rule rule = 14;
getRuleOrBuilder
in interface MLServerProto.MatchOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static MLServerProto.Match parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MLServerProto.Match parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MLServerProto.Match parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MLServerProto.Match parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MLServerProto.Match parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MLServerProto.Match parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static MLServerProto.Match parseFrom(InputStream input) throws IOException
IOException
public static MLServerProto.Match parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static MLServerProto.Match parseDelimitedFrom(InputStream input) throws IOException
IOException
public static MLServerProto.Match parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static MLServerProto.Match parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static MLServerProto.Match parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public MLServerProto.Match.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected MLServerProto.Match.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public MLServerProto.Match getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder