Class MLServerProto.Rule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.languagetool.rules.ml.MLServerProto.Rule
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, MLServerProto.RuleOrBuilder
Enclosing class:
MLServerProto

public static final class MLServerProto.Rule extends com.google.protobuf.GeneratedMessageV3 implements MLServerProto.RuleOrBuilder
Protobuf type lt_ml_server.Rule
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • SOURCEFILE_FIELD_NUMBER

      public static final int SOURCEFILE_FIELD_NUMBER
      See Also:
    • sourceFile_

      private volatile Object sourceFile_
    • ISSUETYPE_FIELD_NUMBER

      public static final int ISSUETYPE_FIELD_NUMBER
      See Also:
    • issueType_

      private volatile Object 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_

      private MLServerProto.RuleCategory 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_

      private List<Integer> tags_
    • tags_converter_

      private static final com.google.protobuf.Internal.ListAdapter.Converter<Integer,MLServerProto.Rule.Tag> tags_converter_
    • tagsMemoizedSerializedSize

      private int tagsMemoizedSerializedSize
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final MLServerProto.Rule DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<MLServerProto.Rule> PARSER
  • Constructor Details

    • Rule

      private Rule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
    • Rule

      private Rule()
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getSourceFile

      public String getSourceFile()
       id, subId, description, url already in Match
       
      string sourceFile = 1;
      Specified by:
      getSourceFile in interface MLServerProto.RuleOrBuilder
      Returns:
      The sourceFile.
    • getSourceFileBytes

      public com.google.protobuf.ByteString getSourceFileBytes()
       id, subId, description, url already in Match
       
      string sourceFile = 1;
      Specified by:
      getSourceFileBytes in interface MLServerProto.RuleOrBuilder
      Returns:
      The bytes for sourceFile.
    • getIssueType

      public String getIssueType()
       see http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#lqissue-typevalues
       
      string issueType = 2;
      Specified by:
      getIssueType in interface MLServerProto.RuleOrBuilder
      Returns:
      The issueType.
    • getIssueTypeBytes

      public com.google.protobuf.ByteString getIssueTypeBytes()
       see http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#lqissue-typevalues
       
      string issueType = 2;
      Specified by:
      getIssueTypeBytes in interface MLServerProto.RuleOrBuilder
      Returns:
      The bytes for issueType.
    • getTempOff

      public boolean getTempOff()
      bool tempOff = 3;
      Specified by:
      getTempOff in interface MLServerProto.RuleOrBuilder
      Returns:
      The tempOff.
    • hasCategory

      public boolean hasCategory()
      .lt_ml_server.RuleCategory category = 4;
      Specified by:
      hasCategory in interface MLServerProto.RuleOrBuilder
      Returns:
      Whether the category field is set.
    • getCategory

      public MLServerProto.RuleCategory getCategory()
      .lt_ml_server.RuleCategory category = 4;
      Specified by:
      getCategory in interface MLServerProto.RuleOrBuilder
      Returns:
      The category.
    • getCategoryOrBuilder

      public MLServerProto.RuleCategoryOrBuilder getCategoryOrBuilder()
      .lt_ml_server.RuleCategory category = 4;
      Specified by:
      getCategoryOrBuilder in interface MLServerProto.RuleOrBuilder
    • getIsPremium

      public boolean getIsPremium()
      bool isPremium = 5;
      Specified by:
      getIsPremium in interface MLServerProto.RuleOrBuilder
      Returns:
      The isPremium.
    • getTagsList

      public List<MLServerProto.Rule.Tag> getTagsList()
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Specified by:
      getTagsList in interface MLServerProto.RuleOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Specified by:
      getTagsCount in interface MLServerProto.RuleOrBuilder
      Returns:
      The count of tags.
    • getTags

      public MLServerProto.Rule.Tag getTags(int index)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Specified by:
      getTags in interface MLServerProto.RuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsValueList

      public List<Integer> getTagsValueList()
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Specified by:
      getTagsValueList in interface MLServerProto.RuleOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for tags.
    • getTagsValue

      public int getTagsValue(int index)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Specified by:
      getTagsValue in interface MLServerProto.RuleOrBuilder
      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:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MLServerProto.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Rule 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.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MLServerProto.Rule parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MLServerProto.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MLServerProto.Rule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MLServerProto.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MLServerProto.Rule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MLServerProto.Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MLServerProto.Rule.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MLServerProto.Rule.Builder newBuilder()
    • newBuilder

      public static MLServerProto.Rule.Builder newBuilder(MLServerProto.Rule prototype)
    • toBuilder

      public MLServerProto.Rule.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MLServerProto.Rule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MLServerProto.Rule getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MLServerProto.Rule> parser()
    • getParserForType

      public com.google.protobuf.Parser<MLServerProto.Rule> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public MLServerProto.Rule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder