Package org.languagetool.rules.ml
Interface MLServerProto.SuggestedReplacementOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MLServerProto.SuggestedReplacement,MLServerProto.SuggestedReplacement.Builder
- Enclosing class:
MLServerProto
public static interface MLServerProto.SuggestedReplacementOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatfrom 0 (lowest) to 1 (highest)string description = 2;com.google.protobuf.ByteStringstring description = 2;string replacement = 1;com.google.protobuf.ByteStringstring replacement = 1;Value shown in the UI after the replacement (but not part of it).com.google.protobuf.ByteStringValue shown in the UI after the replacement (but not part of it).getType().lt_ml_server.SuggestedReplacement.SuggestionType type = 5;int.lt_ml_server.SuggestedReplacement.SuggestionType type = 5;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getReplacement
String getReplacement()string replacement = 1;- Returns:
- The replacement.
-
getReplacementBytes
com.google.protobuf.ByteString getReplacementBytes()string replacement = 1;- Returns:
- The bytes for replacement.
-
getDescription
String getDescription()string description = 2;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()string description = 2;- Returns:
- The bytes for description.
-
getSuffix
String getSuffix()Value shown in the UI after the replacement (but not part of it).
string suffix = 3;- Returns:
- The suffix.
-
getSuffixBytes
com.google.protobuf.ByteString getSuffixBytes()Value shown in the UI after the replacement (but not part of it).
string suffix = 3;- Returns:
- The bytes for suffix.
-
getConfidence
float getConfidence()from 0 (lowest) to 1 (highest)
float confidence = 4;- Returns:
- The confidence.
-
getTypeValue
int getTypeValue().lt_ml_server.SuggestedReplacement.SuggestionType type = 5;- Returns:
- The enum numeric value on the wire for type.
-
getType
.lt_ml_server.SuggestedReplacement.SuggestionType type = 5;- Returns:
- The type.
-