Package org.languagetool.tools.Cache
Class ProtoResultCache.CachedRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.languagetool.tools.Cache.ProtoResultCache.CachedRule
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,ProtoResultCache.CachedRuleOrBuilder
- Enclosing class:
ProtoResultCache
public static final class ProtoResultCache.CachedRule
extends com.google.protobuf.GeneratedMessageV3
implements ProtoResultCache.CachedRuleOrBuilder
Protobuf type
lt_ml_server.CachedRule- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typelt_ml_server.CachedRulestatic enumProtobuf enumlt_ml_server.CachedRule.TagNested 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 intprivate MLServerProto.RuleCategorystatic final intprivate static final ProtoResultCache.CachedRuleprivate Objectstatic final intprivate intstatic final intprivate Objectstatic final intprivate booleanstatic final intprivate Objectstatic final intprivate byteprivate static final com.google.protobuf.Parser<ProtoResultCache.CachedRule> private static final longprivate Objectstatic final intprivate Objectstatic final intprivate static final com.google.protobuf.Internal.ListAdapter.Converter<Integer, ProtoResultCache.CachedRule.Tag> static final intprivate intprivate booleanstatic 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
ConstructorsModifierConstructorDescriptionprivateprivateCachedRule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean.lt_ml_server.RuleCategory category = 8;.lt_ml_server.RuleCategory category = 8;static ProtoResultCache.CachedRulestring description = 3;com.google.protobuf.ByteStringstring description = 3;static final com.google.protobuf.Descriptors.Descriptorintuint32 estimateContextForSureMatch = 4;getId()string id = 1;com.google.protobuf.ByteStringstring id = 1;booleanbool isPremium = 9;string issueType = 6;com.google.protobuf.ByteStringstring issueType = 6;com.google.protobuf.Parser<ProtoResultCache.CachedRule> intstring sourceFile = 5;com.google.protobuf.ByteStringstring sourceFile = 5;getSubId()string subId = 2;com.google.protobuf.ByteStringstring subId = 2;getTags(int index) repeated .lt_ml_server.CachedRule.Tag tags = 10;intrepeated .lt_ml_server.CachedRule.Tag tags = 10;repeated .lt_ml_server.CachedRule.Tag tags = 10;intgetTagsValue(int index) repeated .lt_ml_server.CachedRule.Tag tags = 10;repeated .lt_ml_server.CachedRule.Tag tags = 10;booleanbool tempOff = 7;boolean.lt_ml_server.RuleCategory category = 8;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(ProtoResultCache.CachedRule prototype) protected ProtoResultCache.CachedRule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ProtoResultCache.CachedRuleparseDelimitedFrom(InputStream input) static ProtoResultCache.CachedRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtoResultCache.CachedRuleparseFrom(byte[] data) static ProtoResultCache.CachedRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtoResultCache.CachedRuleparseFrom(com.google.protobuf.ByteString data) static ProtoResultCache.CachedRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtoResultCache.CachedRuleparseFrom(com.google.protobuf.CodedInputStream input) static ProtoResultCache.CachedRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtoResultCache.CachedRuleparseFrom(InputStream input) static ProtoResultCache.CachedRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProtoResultCache.CachedRuleparseFrom(ByteBuffer data) static ProtoResultCache.CachedRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProtoResultCache.CachedRule> 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_ -
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
id_
-
SUBID_FIELD_NUMBER
public static final int SUBID_FIELD_NUMBER- See Also:
-
subId_
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
description_
-
ESTIMATECONTEXTFORSUREMATCH_FIELD_NUMBER
public static final int ESTIMATECONTEXTFORSUREMATCH_FIELD_NUMBER- See Also:
-
estimateContextForSureMatch_
private int estimateContextForSureMatch_ -
SOURCEFILE_FIELD_NUMBER
public static final int SOURCEFILE_FIELD_NUMBER- See Also:
-
sourceFile_
-
ISSUETYPE_FIELD_NUMBER
public static final int ISSUETYPE_FIELD_NUMBER- See Also:
-
issueType_
-
TEMPOFF_FIELD_NUMBER
public static final int TEMPOFF_FIELD_NUMBER- See Also:
-
tempOff_
private boolean tempOff_ -
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER- See Also:
-
category_
-
ISPREMIUM_FIELD_NUMBER
public static final int ISPREMIUM_FIELD_NUMBER- See Also:
-
isPremium_
private boolean isPremium_ -
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
tags_
-
tags_converter_
private static final com.google.protobuf.Internal.ListAdapter.Converter<Integer,ProtoResultCache.CachedRule.Tag> tags_converter_ -
tagsMemoizedSerializedSize
private int tagsMemoizedSerializedSize -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
CachedRule
private CachedRule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) -
CachedRule
private CachedRule()
-
-
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
-
getId
string id = 1;- Specified by:
getIdin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1;- Specified by:
getIdBytesin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The bytes for id.
-
getSubId
string subId = 2;- Specified by:
getSubIdin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The subId.
-
getSubIdBytes
public com.google.protobuf.ByteString getSubIdBytes()string subId = 2;- Specified by:
getSubIdBytesin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The bytes for subId.
-
getDescription
string description = 3;- Specified by:
getDescriptionin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()string description = 3;- Specified by:
getDescriptionBytesin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The bytes for description.
-
getEstimateContextForSureMatch
public int getEstimateContextForSureMatch()uint32 estimateContextForSureMatch = 4;- Specified by:
getEstimateContextForSureMatchin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The estimateContextForSureMatch.
-
getSourceFile
string sourceFile = 5;- Specified by:
getSourceFilein interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The sourceFile.
-
getSourceFileBytes
public com.google.protobuf.ByteString getSourceFileBytes()string sourceFile = 5;- Specified by:
getSourceFileBytesin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The bytes for sourceFile.
-
getIssueType
string issueType = 6;- Specified by:
getIssueTypein interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The issueType.
-
getIssueTypeBytes
public com.google.protobuf.ByteString getIssueTypeBytes()string issueType = 6;- Specified by:
getIssueTypeBytesin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The bytes for issueType.
-
getTempOff
public boolean getTempOff()bool tempOff = 7;- Specified by:
getTempOffin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The tempOff.
-
hasCategory
public boolean hasCategory().lt_ml_server.RuleCategory category = 8;- Specified by:
hasCategoryin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- Whether the category field is set.
-
getCategory
.lt_ml_server.RuleCategory category = 8;- Specified by:
getCategoryin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The category.
-
getCategoryOrBuilder
.lt_ml_server.RuleCategory category = 8;- Specified by:
getCategoryOrBuilderin interfaceProtoResultCache.CachedRuleOrBuilder
-
getIsPremium
public boolean getIsPremium()bool isPremium = 9;- Specified by:
getIsPremiumin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The isPremium.
-
getTagsList
repeated .lt_ml_server.CachedRule.Tag tags = 10;- Specified by:
getTagsListin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()repeated .lt_ml_server.CachedRule.Tag tags = 10;- Specified by:
getTagsCountin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- The count of tags.
-
getTags
repeated .lt_ml_server.CachedRule.Tag tags = 10;- Specified by:
getTagsin interfaceProtoResultCache.CachedRuleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsValueList
repeated .lt_ml_server.CachedRule.Tag tags = 10;- Specified by:
getTagsValueListin interfaceProtoResultCache.CachedRuleOrBuilder- Returns:
- A list containing the enum numeric values on the wire for tags.
-
getTagsValue
public int getTagsValue(int index) repeated .lt_ml_server.CachedRule.Tag tags = 10;- Specified by:
getTagsValuein interfaceProtoResultCache.CachedRuleOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of tags at the given index.
-
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 ProtoResultCache.CachedRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProtoResultCache.CachedRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProtoResultCache.CachedRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtoResultCache.CachedRule 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 ProtoResultCache.CachedRule.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
-