Class MLServerProto.Rule.Builder

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

public static final class MLServerProto.Rule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder> implements MLServerProto.RuleOrBuilder
Protobuf type lt_ml_server.Rule
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
  • Method Details

    • 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.Builder<MLServerProto.Rule.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • getDefaultInstanceForType

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

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

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

      private void buildPartialRepeatedFields(MLServerProto.Rule result)
    • buildPartial0

      private void buildPartial0(MLServerProto.Rule result)
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • setField

      public MLServerProto.Rule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • clearField

      public MLServerProto.Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • clearOneof

      public MLServerProto.Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • setRepeatedField

      public MLServerProto.Rule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • addRepeatedField

      public MLServerProto.Rule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • mergeFrom

      public MLServerProto.Rule.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MLServerProto.Rule.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • mergeFrom

      public MLServerProto.Rule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MLServerProto.Rule.Builder>
      Throws:
      IOException
    • 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.
    • setSourceFile

      public MLServerProto.Rule.Builder setSourceFile(String value)
       id, subId, description, url already in Match
       
      string sourceFile = 1;
      Parameters:
      value - The sourceFile to set.
      Returns:
      This builder for chaining.
    • clearSourceFile

      public MLServerProto.Rule.Builder clearSourceFile()
       id, subId, description, url already in Match
       
      string sourceFile = 1;
      Returns:
      This builder for chaining.
    • setSourceFileBytes

      public MLServerProto.Rule.Builder setSourceFileBytes(com.google.protobuf.ByteString value)
       id, subId, description, url already in Match
       
      string sourceFile = 1;
      Parameters:
      value - The bytes for sourceFile to set.
      Returns:
      This builder for chaining.
    • 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.
    • setIssueType

      public MLServerProto.Rule.Builder setIssueType(String value)
       see http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#lqissue-typevalues
       
      string issueType = 2;
      Parameters:
      value - The issueType to set.
      Returns:
      This builder for chaining.
    • clearIssueType

      public MLServerProto.Rule.Builder clearIssueType()
       see http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#lqissue-typevalues
       
      string issueType = 2;
      Returns:
      This builder for chaining.
    • setIssueTypeBytes

      public MLServerProto.Rule.Builder setIssueTypeBytes(com.google.protobuf.ByteString value)
       see http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#lqissue-typevalues
       
      string issueType = 2;
      Parameters:
      value - The bytes for issueType to set.
      Returns:
      This builder for chaining.
    • getTempOff

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

      public MLServerProto.Rule.Builder setTempOff(boolean value)
      bool tempOff = 3;
      Parameters:
      value - The tempOff to set.
      Returns:
      This builder for chaining.
    • clearTempOff

      public MLServerProto.Rule.Builder clearTempOff()
      bool tempOff = 3;
      Returns:
      This builder for chaining.
    • 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.
    • setCategory

      .lt_ml_server.RuleCategory category = 4;
    • setCategory

      public MLServerProto.Rule.Builder setCategory(MLServerProto.RuleCategory.Builder builderForValue)
      .lt_ml_server.RuleCategory category = 4;
    • mergeCategory

      .lt_ml_server.RuleCategory category = 4;
    • clearCategory

      public MLServerProto.Rule.Builder clearCategory()
      .lt_ml_server.RuleCategory category = 4;
    • getCategoryBuilder

      public MLServerProto.RuleCategory.Builder getCategoryBuilder()
      .lt_ml_server.RuleCategory category = 4;
    • getCategoryOrBuilder

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

      private com.google.protobuf.SingleFieldBuilderV3<MLServerProto.RuleCategory,MLServerProto.RuleCategory.Builder,MLServerProto.RuleCategoryOrBuilder> getCategoryFieldBuilder()
      .lt_ml_server.RuleCategory category = 4;
    • getIsPremium

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

      public MLServerProto.Rule.Builder setIsPremium(boolean value)
      bool isPremium = 5;
      Parameters:
      value - The isPremium to set.
      Returns:
      This builder for chaining.
    • clearIsPremium

      public MLServerProto.Rule.Builder clearIsPremium()
      bool isPremium = 5;
      Returns:
      This builder for chaining.
    • ensureTagsIsMutable

      private void ensureTagsIsMutable()
    • 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.
    • setTags

      public MLServerProto.Rule.Builder setTags(int index, MLServerProto.Rule.Tag value)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      repeated .lt_ml_server.Rule.Tag tags = 6;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public MLServerProto.Rule.Builder addAllTags(Iterable<? extends MLServerProto.Rule.Tag> values)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public MLServerProto.Rule.Builder clearTags()
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Returns:
      This builder for chaining.
    • 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.
    • setTagsValue

      public MLServerProto.Rule.Builder setTagsValue(int index, int value)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for tags to set.
      Returns:
      This builder for chaining.
    • addTagsValue

      public MLServerProto.Rule.Builder addTagsValue(int value)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Parameters:
      value - The enum numeric value on the wire for tags to add.
      Returns:
      This builder for chaining.
    • addAllTagsValue

      public MLServerProto.Rule.Builder addAllTagsValue(Iterable<Integer> values)
      repeated .lt_ml_server.Rule.Tag tags = 6;
      Parameters:
      values - The enum numeric values on the wire for tags to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final MLServerProto.Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>
    • mergeUnknownFields

      public final MLServerProto.Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MLServerProto.Rule.Builder>