// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ml_server.proto

package org.languagetool.rules.ml;

public final class MLServerProto {
  private MLServerProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface MatchRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:lt_ml_server.MatchRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @return A list containing the sentences.
     */
    java.util.List<java.lang.String>
        getSentencesList();
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @return The count of sentences.
     */
    int getSentencesCount();
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @param index The index of the element to return.
     * @return The sentences at the given index.
     */
    java.lang.String getSentences(int index);
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @param index The index of the value to return.
     * @return The bytes of the sentences at the given index.
     */
    com.google.protobuf.ByteString
        getSentencesBytes(int index);

    /**
     * <pre>
     * allow logging of input on error
     * </pre>
     *
     * <code>bool inputLogging = 2;</code>
     * @return The inputLogging.
     */
    boolean getInputLogging();
  }
  /**
   * Protobuf type {@code lt_ml_server.MatchRequest}
   */
  public  static final class MatchRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:lt_ml_server.MatchRequest)
      MatchRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MatchRequest.newBuilder() to construct.
    private MatchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MatchRequest() {
      sentences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new MatchRequest();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MatchRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                sentences_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              sentences_.add(s);
              break;
            }
            case 16: {

              inputLogging_ = input.readBool();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          sentences_ = sentences_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.rules.ml.MLServerProto.MatchRequest.class, org.languagetool.rules.ml.MLServerProto.MatchRequest.Builder.class);
    }

    public static final int SENTENCES_FIELD_NUMBER = 1;
    private com.google.protobuf.LazyStringList sentences_;
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @return A list containing the sentences.
     */
    public com.google.protobuf.ProtocolStringList
        getSentencesList() {
      return sentences_;
    }
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @return The count of sentences.
     */
    public int getSentencesCount() {
      return sentences_.size();
    }
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @param index The index of the element to return.
     * @return The sentences at the given index.
     */
    public java.lang.String getSentences(int index) {
      return sentences_.get(index);
    }
    /**
     * <pre>
     * input text to be analyzed
     * </pre>
     *
     * <code>repeated string sentences = 1;</code>
     * @param index The index of the value to return.
     * @return The bytes of the sentences at the given index.
     */
    public com.google.protobuf.ByteString
        getSentencesBytes(int index) {
      return sentences_.getByteString(index);
    }

    public static final int INPUTLOGGING_FIELD_NUMBER = 2;
    private boolean inputLogging_;
    /**
     * <pre>
     * allow logging of input on error
     * </pre>
     *
     * <code>bool inputLogging = 2;</code>
     * @return The inputLogging.
     */
    public boolean getInputLogging() {
      return inputLogging_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < sentences_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentences_.getRaw(i));
      }
      if (inputLogging_ != false) {
        output.writeBool(2, inputLogging_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < sentences_.size(); i++) {
          dataSize += computeStringSizeNoTag(sentences_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getSentencesList().size();
      }
      if (inputLogging_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(2, inputLogging_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.languagetool.rules.ml.MLServerProto.MatchRequest)) {
        return super.equals(obj);
      }
      org.languagetool.rules.ml.MLServerProto.MatchRequest other = (org.languagetool.rules.ml.MLServerProto.MatchRequest) obj;

      if (!getSentencesList()
          .equals(other.getSentencesList())) return false;
      if (getInputLogging()
          != other.getInputLogging()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getSentencesCount() > 0) {
        hash = (37 * hash) + SENTENCES_FIELD_NUMBER;
        hash = (53 * hash) + getSentencesList().hashCode();
      }
      hash = (37 * hash) + INPUTLOGGING_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getInputLogging());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.languagetool.rules.ml.MLServerProto.MatchRequest prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code lt_ml_server.MatchRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:lt_ml_server.MatchRequest)
        org.languagetool.rules.ml.MLServerProto.MatchRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.rules.ml.MLServerProto.MatchRequest.class, org.languagetool.rules.ml.MLServerProto.MatchRequest.Builder.class);
      }

      // Construct using org.languagetool.rules.ml.MLServerProto.MatchRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        sentences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        inputLogging_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchRequest_descriptor;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchRequest getDefaultInstanceForType() {
        return org.languagetool.rules.ml.MLServerProto.MatchRequest.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchRequest build() {
        org.languagetool.rules.ml.MLServerProto.MatchRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchRequest buildPartial() {
        org.languagetool.rules.ml.MLServerProto.MatchRequest result = new org.languagetool.rules.ml.MLServerProto.MatchRequest(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          sentences_ = sentences_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.sentences_ = sentences_;
        result.inputLogging_ = inputLogging_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.languagetool.rules.ml.MLServerProto.MatchRequest) {
          return mergeFrom((org.languagetool.rules.ml.MLServerProto.MatchRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.rules.ml.MLServerProto.MatchRequest other) {
        if (other == org.languagetool.rules.ml.MLServerProto.MatchRequest.getDefaultInstance()) return this;
        if (!other.sentences_.isEmpty()) {
          if (sentences_.isEmpty()) {
            sentences_ = other.sentences_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSentencesIsMutable();
            sentences_.addAll(other.sentences_);
          }
          onChanged();
        }
        if (other.getInputLogging() != false) {
          setInputLogging(other.getInputLogging());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.languagetool.rules.ml.MLServerProto.MatchRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.rules.ml.MLServerProto.MatchRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.LazyStringList sentences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureSentencesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          sentences_ = new com.google.protobuf.LazyStringArrayList(sentences_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @return A list containing the sentences.
       */
      public com.google.protobuf.ProtocolStringList
          getSentencesList() {
        return sentences_.getUnmodifiableView();
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @return The count of sentences.
       */
      public int getSentencesCount() {
        return sentences_.size();
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @param index The index of the element to return.
       * @return The sentences at the given index.
       */
      public java.lang.String getSentences(int index) {
        return sentences_.get(index);
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @param index The index of the value to return.
       * @return The bytes of the sentences at the given index.
       */
      public com.google.protobuf.ByteString
          getSentencesBytes(int index) {
        return sentences_.getByteString(index);
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @param index The index to set the value at.
       * @param value The sentences to set.
       * @return This builder for chaining.
       */
      public Builder setSentences(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureSentencesIsMutable();
        sentences_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @param value The sentences to add.
       * @return This builder for chaining.
       */
      public Builder addSentences(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureSentencesIsMutable();
        sentences_.add(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @param values The sentences to add.
       * @return This builder for chaining.
       */
      public Builder addAllSentences(
          java.lang.Iterable<java.lang.String> values) {
        ensureSentencesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, sentences_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearSentences() {
        sentences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * input text to be analyzed
       * </pre>
       *
       * <code>repeated string sentences = 1;</code>
       * @param value The bytes of the sentences to add.
       * @return This builder for chaining.
       */
      public Builder addSentencesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureSentencesIsMutable();
        sentences_.add(value);
        onChanged();
        return this;
      }

      private boolean inputLogging_ ;
      /**
       * <pre>
       * allow logging of input on error
       * </pre>
       *
       * <code>bool inputLogging = 2;</code>
       * @return The inputLogging.
       */
      public boolean getInputLogging() {
        return inputLogging_;
      }
      /**
       * <pre>
       * allow logging of input on error
       * </pre>
       *
       * <code>bool inputLogging = 2;</code>
       * @param value The inputLogging to set.
       * @return This builder for chaining.
       */
      public Builder setInputLogging(boolean value) {
        
        inputLogging_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * allow logging of input on error
       * </pre>
       *
       * <code>bool inputLogging = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearInputLogging() {
        
        inputLogging_ = false;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:lt_ml_server.MatchRequest)
    }

    // @@protoc_insertion_point(class_scope:lt_ml_server.MatchRequest)
    private static final org.languagetool.rules.ml.MLServerProto.MatchRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.rules.ml.MLServerProto.MatchRequest();
    }

    public static org.languagetool.rules.ml.MLServerProto.MatchRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MatchRequest>
        PARSER = new com.google.protobuf.AbstractParser<MatchRequest>() {
      @java.lang.Override
      public MatchRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MatchRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<MatchRequest> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<MatchRequest> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.languagetool.rules.ml.MLServerProto.MatchRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MatchResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:lt_ml_server.MatchResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    java.util.List<org.languagetool.rules.ml.MLServerProto.MatchList> 
        getSentenceMatchesList();
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    org.languagetool.rules.ml.MLServerProto.MatchList getSentenceMatches(int index);
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    int getSentenceMatchesCount();
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    java.util.List<? extends org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder> 
        getSentenceMatchesOrBuilderList();
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder getSentenceMatchesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code lt_ml_server.MatchResponse}
   */
  public  static final class MatchResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:lt_ml_server.MatchResponse)
      MatchResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MatchResponse.newBuilder() to construct.
    private MatchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MatchResponse() {
      sentenceMatches_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new MatchResponse();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MatchResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                sentenceMatches_ = new java.util.ArrayList<org.languagetool.rules.ml.MLServerProto.MatchList>();
                mutable_bitField0_ |= 0x00000001;
              }
              sentenceMatches_.add(
                  input.readMessage(org.languagetool.rules.ml.MLServerProto.MatchList.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          sentenceMatches_ = java.util.Collections.unmodifiableList(sentenceMatches_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.rules.ml.MLServerProto.MatchResponse.class, org.languagetool.rules.ml.MLServerProto.MatchResponse.Builder.class);
    }

    public static final int SENTENCEMATCHES_FIELD_NUMBER = 1;
    private java.util.List<org.languagetool.rules.ml.MLServerProto.MatchList> sentenceMatches_;
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    public java.util.List<org.languagetool.rules.ml.MLServerProto.MatchList> getSentenceMatchesList() {
      return sentenceMatches_;
    }
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    public java.util.List<? extends org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder> 
        getSentenceMatchesOrBuilderList() {
      return sentenceMatches_;
    }
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    public int getSentenceMatchesCount() {
      return sentenceMatches_.size();
    }
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    public org.languagetool.rules.ml.MLServerProto.MatchList getSentenceMatches(int index) {
      return sentenceMatches_.get(index);
    }
    /**
     * <pre>
     * results for each corresponding sentence in MatchRequest (aligned)
     * </pre>
     *
     * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
     */
    public org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder getSentenceMatchesOrBuilder(
        int index) {
      return sentenceMatches_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < sentenceMatches_.size(); i++) {
        output.writeMessage(1, sentenceMatches_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < sentenceMatches_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, sentenceMatches_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.languagetool.rules.ml.MLServerProto.MatchResponse)) {
        return super.equals(obj);
      }
      org.languagetool.rules.ml.MLServerProto.MatchResponse other = (org.languagetool.rules.ml.MLServerProto.MatchResponse) obj;

      if (!getSentenceMatchesList()
          .equals(other.getSentenceMatchesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getSentenceMatchesCount() > 0) {
        hash = (37 * hash) + SENTENCEMATCHES_FIELD_NUMBER;
        hash = (53 * hash) + getSentenceMatchesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.languagetool.rules.ml.MLServerProto.MatchResponse prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code lt_ml_server.MatchResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:lt_ml_server.MatchResponse)
        org.languagetool.rules.ml.MLServerProto.MatchResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.rules.ml.MLServerProto.MatchResponse.class, org.languagetool.rules.ml.MLServerProto.MatchResponse.Builder.class);
      }

      // Construct using org.languagetool.rules.ml.MLServerProto.MatchResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getSentenceMatchesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (sentenceMatchesBuilder_ == null) {
          sentenceMatches_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          sentenceMatchesBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchResponse_descriptor;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchResponse getDefaultInstanceForType() {
        return org.languagetool.rules.ml.MLServerProto.MatchResponse.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchResponse build() {
        org.languagetool.rules.ml.MLServerProto.MatchResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchResponse buildPartial() {
        org.languagetool.rules.ml.MLServerProto.MatchResponse result = new org.languagetool.rules.ml.MLServerProto.MatchResponse(this);
        int from_bitField0_ = bitField0_;
        if (sentenceMatchesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            sentenceMatches_ = java.util.Collections.unmodifiableList(sentenceMatches_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.sentenceMatches_ = sentenceMatches_;
        } else {
          result.sentenceMatches_ = sentenceMatchesBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.languagetool.rules.ml.MLServerProto.MatchResponse) {
          return mergeFrom((org.languagetool.rules.ml.MLServerProto.MatchResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.rules.ml.MLServerProto.MatchResponse other) {
        if (other == org.languagetool.rules.ml.MLServerProto.MatchResponse.getDefaultInstance()) return this;
        if (sentenceMatchesBuilder_ == null) {
          if (!other.sentenceMatches_.isEmpty()) {
            if (sentenceMatches_.isEmpty()) {
              sentenceMatches_ = other.sentenceMatches_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureSentenceMatchesIsMutable();
              sentenceMatches_.addAll(other.sentenceMatches_);
            }
            onChanged();
          }
        } else {
          if (!other.sentenceMatches_.isEmpty()) {
            if (sentenceMatchesBuilder_.isEmpty()) {
              sentenceMatchesBuilder_.dispose();
              sentenceMatchesBuilder_ = null;
              sentenceMatches_ = other.sentenceMatches_;
              bitField0_ = (bitField0_ & ~0x00000001);
              sentenceMatchesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSentenceMatchesFieldBuilder() : null;
            } else {
              sentenceMatchesBuilder_.addAllMessages(other.sentenceMatches_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.languagetool.rules.ml.MLServerProto.MatchResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.rules.ml.MLServerProto.MatchResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<org.languagetool.rules.ml.MLServerProto.MatchList> sentenceMatches_ =
        java.util.Collections.emptyList();
      private void ensureSentenceMatchesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          sentenceMatches_ = new java.util.ArrayList<org.languagetool.rules.ml.MLServerProto.MatchList>(sentenceMatches_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.rules.ml.MLServerProto.MatchList, org.languagetool.rules.ml.MLServerProto.MatchList.Builder, org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder> sentenceMatchesBuilder_;

      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public java.util.List<org.languagetool.rules.ml.MLServerProto.MatchList> getSentenceMatchesList() {
        if (sentenceMatchesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(sentenceMatches_);
        } else {
          return sentenceMatchesBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public int getSentenceMatchesCount() {
        if (sentenceMatchesBuilder_ == null) {
          return sentenceMatches_.size();
        } else {
          return sentenceMatchesBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.MatchList getSentenceMatches(int index) {
        if (sentenceMatchesBuilder_ == null) {
          return sentenceMatches_.get(index);
        } else {
          return sentenceMatchesBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder setSentenceMatches(
          int index, org.languagetool.rules.ml.MLServerProto.MatchList value) {
        if (sentenceMatchesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.set(index, value);
          onChanged();
        } else {
          sentenceMatchesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder setSentenceMatches(
          int index, org.languagetool.rules.ml.MLServerProto.MatchList.Builder builderForValue) {
        if (sentenceMatchesBuilder_ == null) {
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.set(index, builderForValue.build());
          onChanged();
        } else {
          sentenceMatchesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder addSentenceMatches(org.languagetool.rules.ml.MLServerProto.MatchList value) {
        if (sentenceMatchesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.add(value);
          onChanged();
        } else {
          sentenceMatchesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder addSentenceMatches(
          int index, org.languagetool.rules.ml.MLServerProto.MatchList value) {
        if (sentenceMatchesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.add(index, value);
          onChanged();
        } else {
          sentenceMatchesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder addSentenceMatches(
          org.languagetool.rules.ml.MLServerProto.MatchList.Builder builderForValue) {
        if (sentenceMatchesBuilder_ == null) {
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.add(builderForValue.build());
          onChanged();
        } else {
          sentenceMatchesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder addSentenceMatches(
          int index, org.languagetool.rules.ml.MLServerProto.MatchList.Builder builderForValue) {
        if (sentenceMatchesBuilder_ == null) {
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.add(index, builderForValue.build());
          onChanged();
        } else {
          sentenceMatchesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder addAllSentenceMatches(
          java.lang.Iterable<? extends org.languagetool.rules.ml.MLServerProto.MatchList> values) {
        if (sentenceMatchesBuilder_ == null) {
          ensureSentenceMatchesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, sentenceMatches_);
          onChanged();
        } else {
          sentenceMatchesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder clearSentenceMatches() {
        if (sentenceMatchesBuilder_ == null) {
          sentenceMatches_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          sentenceMatchesBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public Builder removeSentenceMatches(int index) {
        if (sentenceMatchesBuilder_ == null) {
          ensureSentenceMatchesIsMutable();
          sentenceMatches_.remove(index);
          onChanged();
        } else {
          sentenceMatchesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.MatchList.Builder getSentenceMatchesBuilder(
          int index) {
        return getSentenceMatchesFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder getSentenceMatchesOrBuilder(
          int index) {
        if (sentenceMatchesBuilder_ == null) {
          return sentenceMatches_.get(index);  } else {
          return sentenceMatchesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public java.util.List<? extends org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder> 
           getSentenceMatchesOrBuilderList() {
        if (sentenceMatchesBuilder_ != null) {
          return sentenceMatchesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(sentenceMatches_);
        }
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.MatchList.Builder addSentenceMatchesBuilder() {
        return getSentenceMatchesFieldBuilder().addBuilder(
            org.languagetool.rules.ml.MLServerProto.MatchList.getDefaultInstance());
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.MatchList.Builder addSentenceMatchesBuilder(
          int index) {
        return getSentenceMatchesFieldBuilder().addBuilder(
            index, org.languagetool.rules.ml.MLServerProto.MatchList.getDefaultInstance());
      }
      /**
       * <pre>
       * results for each corresponding sentence in MatchRequest (aligned)
       * </pre>
       *
       * <code>repeated .lt_ml_server.MatchList sentenceMatches = 1;</code>
       */
      public java.util.List<org.languagetool.rules.ml.MLServerProto.MatchList.Builder> 
           getSentenceMatchesBuilderList() {
        return getSentenceMatchesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.rules.ml.MLServerProto.MatchList, org.languagetool.rules.ml.MLServerProto.MatchList.Builder, org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder> 
          getSentenceMatchesFieldBuilder() {
        if (sentenceMatchesBuilder_ == null) {
          sentenceMatchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.languagetool.rules.ml.MLServerProto.MatchList, org.languagetool.rules.ml.MLServerProto.MatchList.Builder, org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder>(
                  sentenceMatches_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          sentenceMatches_ = null;
        }
        return sentenceMatchesBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:lt_ml_server.MatchResponse)
    }

    // @@protoc_insertion_point(class_scope:lt_ml_server.MatchResponse)
    private static final org.languagetool.rules.ml.MLServerProto.MatchResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.rules.ml.MLServerProto.MatchResponse();
    }

    public static org.languagetool.rules.ml.MLServerProto.MatchResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MatchResponse>
        PARSER = new com.google.protobuf.AbstractParser<MatchResponse>() {
      @java.lang.Override
      public MatchResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MatchResponse(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<MatchResponse> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<MatchResponse> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.languagetool.rules.ml.MLServerProto.MatchResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MatchListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:lt_ml_server.MatchList)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    java.util.List<org.languagetool.rules.ml.MLServerProto.Match> 
        getMatchesList();
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    org.languagetool.rules.ml.MLServerProto.Match getMatches(int index);
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    int getMatchesCount();
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    java.util.List<? extends org.languagetool.rules.ml.MLServerProto.MatchOrBuilder> 
        getMatchesOrBuilderList();
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    org.languagetool.rules.ml.MLServerProto.MatchOrBuilder getMatchesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code lt_ml_server.MatchList}
   */
  public  static final class MatchList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:lt_ml_server.MatchList)
      MatchListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MatchList.newBuilder() to construct.
    private MatchList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MatchList() {
      matches_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new MatchList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MatchList(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                matches_ = new java.util.ArrayList<org.languagetool.rules.ml.MLServerProto.Match>();
                mutable_bitField0_ |= 0x00000001;
              }
              matches_.add(
                  input.readMessage(org.languagetool.rules.ml.MLServerProto.Match.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          matches_ = java.util.Collections.unmodifiableList(matches_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.rules.ml.MLServerProto.MatchList.class, org.languagetool.rules.ml.MLServerProto.MatchList.Builder.class);
    }

    public static final int MATCHES_FIELD_NUMBER = 1;
    private java.util.List<org.languagetool.rules.ml.MLServerProto.Match> matches_;
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    public java.util.List<org.languagetool.rules.ml.MLServerProto.Match> getMatchesList() {
      return matches_;
    }
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    public java.util.List<? extends org.languagetool.rules.ml.MLServerProto.MatchOrBuilder> 
        getMatchesOrBuilderList() {
      return matches_;
    }
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    public int getMatchesCount() {
      return matches_.size();
    }
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    public org.languagetool.rules.ml.MLServerProto.Match getMatches(int index) {
      return matches_.get(index);
    }
    /**
     * <pre>
     * list of matches
     * </pre>
     *
     * <code>repeated .lt_ml_server.Match matches = 1;</code>
     */
    public org.languagetool.rules.ml.MLServerProto.MatchOrBuilder getMatchesOrBuilder(
        int index) {
      return matches_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < matches_.size(); i++) {
        output.writeMessage(1, matches_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < matches_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, matches_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.languagetool.rules.ml.MLServerProto.MatchList)) {
        return super.equals(obj);
      }
      org.languagetool.rules.ml.MLServerProto.MatchList other = (org.languagetool.rules.ml.MLServerProto.MatchList) obj;

      if (!getMatchesList()
          .equals(other.getMatchesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getMatchesCount() > 0) {
        hash = (37 * hash) + MATCHES_FIELD_NUMBER;
        hash = (53 * hash) + getMatchesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.MatchList parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.languagetool.rules.ml.MLServerProto.MatchList prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code lt_ml_server.MatchList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:lt_ml_server.MatchList)
        org.languagetool.rules.ml.MLServerProto.MatchListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.rules.ml.MLServerProto.MatchList.class, org.languagetool.rules.ml.MLServerProto.MatchList.Builder.class);
      }

      // Construct using org.languagetool.rules.ml.MLServerProto.MatchList.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getMatchesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (matchesBuilder_ == null) {
          matches_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          matchesBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_MatchList_descriptor;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchList getDefaultInstanceForType() {
        return org.languagetool.rules.ml.MLServerProto.MatchList.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchList build() {
        org.languagetool.rules.ml.MLServerProto.MatchList result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.MatchList buildPartial() {
        org.languagetool.rules.ml.MLServerProto.MatchList result = new org.languagetool.rules.ml.MLServerProto.MatchList(this);
        int from_bitField0_ = bitField0_;
        if (matchesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            matches_ = java.util.Collections.unmodifiableList(matches_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.matches_ = matches_;
        } else {
          result.matches_ = matchesBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.languagetool.rules.ml.MLServerProto.MatchList) {
          return mergeFrom((org.languagetool.rules.ml.MLServerProto.MatchList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.rules.ml.MLServerProto.MatchList other) {
        if (other == org.languagetool.rules.ml.MLServerProto.MatchList.getDefaultInstance()) return this;
        if (matchesBuilder_ == null) {
          if (!other.matches_.isEmpty()) {
            if (matches_.isEmpty()) {
              matches_ = other.matches_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureMatchesIsMutable();
              matches_.addAll(other.matches_);
            }
            onChanged();
          }
        } else {
          if (!other.matches_.isEmpty()) {
            if (matchesBuilder_.isEmpty()) {
              matchesBuilder_.dispose();
              matchesBuilder_ = null;
              matches_ = other.matches_;
              bitField0_ = (bitField0_ & ~0x00000001);
              matchesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getMatchesFieldBuilder() : null;
            } else {
              matchesBuilder_.addAllMessages(other.matches_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.languagetool.rules.ml.MLServerProto.MatchList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.rules.ml.MLServerProto.MatchList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<org.languagetool.rules.ml.MLServerProto.Match> matches_ =
        java.util.Collections.emptyList();
      private void ensureMatchesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          matches_ = new java.util.ArrayList<org.languagetool.rules.ml.MLServerProto.Match>(matches_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.rules.ml.MLServerProto.Match, org.languagetool.rules.ml.MLServerProto.Match.Builder, org.languagetool.rules.ml.MLServerProto.MatchOrBuilder> matchesBuilder_;

      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public java.util.List<org.languagetool.rules.ml.MLServerProto.Match> getMatchesList() {
        if (matchesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(matches_);
        } else {
          return matchesBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public int getMatchesCount() {
        if (matchesBuilder_ == null) {
          return matches_.size();
        } else {
          return matchesBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.Match getMatches(int index) {
        if (matchesBuilder_ == null) {
          return matches_.get(index);
        } else {
          return matchesBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder setMatches(
          int index, org.languagetool.rules.ml.MLServerProto.Match value) {
        if (matchesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMatchesIsMutable();
          matches_.set(index, value);
          onChanged();
        } else {
          matchesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder setMatches(
          int index, org.languagetool.rules.ml.MLServerProto.Match.Builder builderForValue) {
        if (matchesBuilder_ == null) {
          ensureMatchesIsMutable();
          matches_.set(index, builderForValue.build());
          onChanged();
        } else {
          matchesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder addMatches(org.languagetool.rules.ml.MLServerProto.Match value) {
        if (matchesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMatchesIsMutable();
          matches_.add(value);
          onChanged();
        } else {
          matchesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder addMatches(
          int index, org.languagetool.rules.ml.MLServerProto.Match value) {
        if (matchesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMatchesIsMutable();
          matches_.add(index, value);
          onChanged();
        } else {
          matchesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder addMatches(
          org.languagetool.rules.ml.MLServerProto.Match.Builder builderForValue) {
        if (matchesBuilder_ == null) {
          ensureMatchesIsMutable();
          matches_.add(builderForValue.build());
          onChanged();
        } else {
          matchesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder addMatches(
          int index, org.languagetool.rules.ml.MLServerProto.Match.Builder builderForValue) {
        if (matchesBuilder_ == null) {
          ensureMatchesIsMutable();
          matches_.add(index, builderForValue.build());
          onChanged();
        } else {
          matchesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder addAllMatches(
          java.lang.Iterable<? extends org.languagetool.rules.ml.MLServerProto.Match> values) {
        if (matchesBuilder_ == null) {
          ensureMatchesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, matches_);
          onChanged();
        } else {
          matchesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder clearMatches() {
        if (matchesBuilder_ == null) {
          matches_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          matchesBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public Builder removeMatches(int index) {
        if (matchesBuilder_ == null) {
          ensureMatchesIsMutable();
          matches_.remove(index);
          onChanged();
        } else {
          matchesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.Match.Builder getMatchesBuilder(
          int index) {
        return getMatchesFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.MatchOrBuilder getMatchesOrBuilder(
          int index) {
        if (matchesBuilder_ == null) {
          return matches_.get(index);  } else {
          return matchesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public java.util.List<? extends org.languagetool.rules.ml.MLServerProto.MatchOrBuilder> 
           getMatchesOrBuilderList() {
        if (matchesBuilder_ != null) {
          return matchesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(matches_);
        }
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.Match.Builder addMatchesBuilder() {
        return getMatchesFieldBuilder().addBuilder(
            org.languagetool.rules.ml.MLServerProto.Match.getDefaultInstance());
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public org.languagetool.rules.ml.MLServerProto.Match.Builder addMatchesBuilder(
          int index) {
        return getMatchesFieldBuilder().addBuilder(
            index, org.languagetool.rules.ml.MLServerProto.Match.getDefaultInstance());
      }
      /**
       * <pre>
       * list of matches
       * </pre>
       *
       * <code>repeated .lt_ml_server.Match matches = 1;</code>
       */
      public java.util.List<org.languagetool.rules.ml.MLServerProto.Match.Builder> 
           getMatchesBuilderList() {
        return getMatchesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.rules.ml.MLServerProto.Match, org.languagetool.rules.ml.MLServerProto.Match.Builder, org.languagetool.rules.ml.MLServerProto.MatchOrBuilder> 
          getMatchesFieldBuilder() {
        if (matchesBuilder_ == null) {
          matchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.languagetool.rules.ml.MLServerProto.Match, org.languagetool.rules.ml.MLServerProto.Match.Builder, org.languagetool.rules.ml.MLServerProto.MatchOrBuilder>(
                  matches_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          matches_ = null;
        }
        return matchesBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:lt_ml_server.MatchList)
    }

    // @@protoc_insertion_point(class_scope:lt_ml_server.MatchList)
    private static final org.languagetool.rules.ml.MLServerProto.MatchList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.rules.ml.MLServerProto.MatchList();
    }

    public static org.languagetool.rules.ml.MLServerProto.MatchList getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MatchList>
        PARSER = new com.google.protobuf.AbstractParser<MatchList>() {
      @java.lang.Override
      public MatchList parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MatchList(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<MatchList> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<MatchList> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.languagetool.rules.ml.MLServerProto.MatchList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MatchOrBuilder extends
      // @@protoc_insertion_point(interface_extends:lt_ml_server.Match)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * start position in the sentence (i.e. not relative to whole text)
     * </pre>
     *
     * <code>uint32 offset = 1;</code>
     * @return The offset.
     */
    int getOffset();

    /**
     * <pre>
     * length of matched area; &gt;0
     * </pre>
     *
     * <code>uint32 length = 2;</code>
     * @return The length.
     */
    int getLength();

    /**
     * <pre>
     * prefix for rule ids; should use a common value for one model/server
     * </pre>
     *
     * <code>string id = 3;</code>
     * @return The id.
     */
    java.lang.String getId();
    /**
     * <pre>
     * prefix for rule ids; should use a common value for one model/server
     * </pre>
     *
     * <code>string id = 3;</code>
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * <pre>
     * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
     * </pre>
     *
     * <code>string sub_id = 4;</code>
     * @return The subId.
     */
    java.lang.String getSubId();
    /**
     * <pre>
     * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
     * </pre>
     *
     * <code>string sub_id = 4;</code>
     * @return The bytes for subId.
     */
    com.google.protobuf.ByteString
        getSubIdBytes();

    /**
     * <code>repeated string suggestions = 5;</code>
     * @return A list containing the suggestions.
     */
    java.util.List<java.lang.String>
        getSuggestionsList();
    /**
     * <code>repeated string suggestions = 5;</code>
     * @return The count of suggestions.
     */
    int getSuggestionsCount();
    /**
     * <code>repeated string suggestions = 5;</code>
     * @param index The index of the element to return.
     * @return The suggestions at the given index.
     */
    java.lang.String getSuggestions(int index);
    /**
     * <code>repeated string suggestions = 5;</code>
     * @param index The index of the value to return.
     * @return The bytes of the suggestions at the given index.
     */
    com.google.protobuf.ByteString
        getSuggestionsBytes(int index);

    /**
     * <pre>
     * added later, optional (can be substituted by Java)
     * </pre>
     *
     * <code>string ruleDescription = 6;</code>
     * @return The ruleDescription.
     */
    java.lang.String getRuleDescription();
    /**
     * <pre>
     * added later, optional (can be substituted by Java)
     * </pre>
     *
     * <code>string ruleDescription = 6;</code>
     * @return The bytes for ruleDescription.
     */
    com.google.protobuf.ByteString
        getRuleDescriptionBytes();

    /**
     * <pre>
     * description of the match; displayed in e.g. the add-on pop-up
     * </pre>
     *
     * <code>string matchDescription = 7;</code>
     * @return The matchDescription.
     */
    java.lang.String getMatchDescription();
    /**
     * <pre>
     * description of the match; displayed in e.g. the add-on pop-up
     * </pre>
     *
     * <code>string matchDescription = 7;</code>
     * @return The bytes for matchDescription.
     */
    com.google.protobuf.ByteString
        getMatchDescriptionBytes();

    /**
     * <pre>
     * shortened description of the match; displayed in e.g. LibreOffice context menu
     * </pre>
     *
     * <code>string matchShortDescription = 8;</code>
     * @return The matchShortDescription.
     */
    java.lang.String getMatchShortDescription();
    /**
     * <pre>
     * shortened description of the match; displayed in e.g. LibreOffice context menu
     * </pre>
     *
     * <code>string matchShortDescription = 8;</code>
     * @return The bytes for matchShortDescription.
     */
    com.google.protobuf.ByteString
        getMatchShortDescriptionBytes();
  }
  /**
   * Protobuf type {@code lt_ml_server.Match}
   */
  public  static final class Match extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:lt_ml_server.Match)
      MatchOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Match.newBuilder() to construct.
    private Match(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Match() {
      id_ = "";
      subId_ = "";
      suggestions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      ruleDescription_ = "";
      matchDescription_ = "";
      matchShortDescription_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Match();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Match(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              offset_ = input.readUInt32();
              break;
            }
            case 16: {

              length_ = input.readUInt32();
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              id_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              subId_ = s;
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                suggestions_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              suggestions_.add(s);
              break;
            }
            case 50: {
              java.lang.String s = input.readStringRequireUtf8();

              ruleDescription_ = s;
              break;
            }
            case 58: {
              java.lang.String s = input.readStringRequireUtf8();

              matchDescription_ = s;
              break;
            }
            case 66: {
              java.lang.String s = input.readStringRequireUtf8();

              matchShortDescription_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          suggestions_ = suggestions_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_Match_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_Match_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.rules.ml.MLServerProto.Match.class, org.languagetool.rules.ml.MLServerProto.Match.Builder.class);
    }

    public static final int OFFSET_FIELD_NUMBER = 1;
    private int offset_;
    /**
     * <pre>
     * start position in the sentence (i.e. not relative to whole text)
     * </pre>
     *
     * <code>uint32 offset = 1;</code>
     * @return The offset.
     */
    public int getOffset() {
      return offset_;
    }

    public static final int LENGTH_FIELD_NUMBER = 2;
    private int length_;
    /**
     * <pre>
     * length of matched area; &gt;0
     * </pre>
     *
     * <code>uint32 length = 2;</code>
     * @return The length.
     */
    public int getLength() {
      return length_;
    }

    public static final int ID_FIELD_NUMBER = 3;
    private volatile java.lang.Object id_;
    /**
     * <pre>
     * prefix for rule ids; should use a common value for one model/server
     * </pre>
     *
     * <code>string id = 3;</code>
     * @return The id.
     */
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        id_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * prefix for rule ids; should use a common value for one model/server
     * </pre>
     *
     * <code>string id = 3;</code>
     * @return The bytes for id.
     */
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SUB_ID_FIELD_NUMBER = 4;
    private volatile java.lang.Object subId_;
    /**
     * <pre>
     * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
     * </pre>
     *
     * <code>string sub_id = 4;</code>
     * @return The subId.
     */
    public java.lang.String getSubId() {
      java.lang.Object ref = subId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        subId_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
     * </pre>
     *
     * <code>string sub_id = 4;</code>
     * @return The bytes for subId.
     */
    public com.google.protobuf.ByteString
        getSubIdBytes() {
      java.lang.Object ref = subId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        subId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SUGGESTIONS_FIELD_NUMBER = 5;
    private com.google.protobuf.LazyStringList suggestions_;
    /**
     * <code>repeated string suggestions = 5;</code>
     * @return A list containing the suggestions.
     */
    public com.google.protobuf.ProtocolStringList
        getSuggestionsList() {
      return suggestions_;
    }
    /**
     * <code>repeated string suggestions = 5;</code>
     * @return The count of suggestions.
     */
    public int getSuggestionsCount() {
      return suggestions_.size();
    }
    /**
     * <code>repeated string suggestions = 5;</code>
     * @param index The index of the element to return.
     * @return The suggestions at the given index.
     */
    public java.lang.String getSuggestions(int index) {
      return suggestions_.get(index);
    }
    /**
     * <code>repeated string suggestions = 5;</code>
     * @param index The index of the value to return.
     * @return The bytes of the suggestions at the given index.
     */
    public com.google.protobuf.ByteString
        getSuggestionsBytes(int index) {
      return suggestions_.getByteString(index);
    }

    public static final int RULEDESCRIPTION_FIELD_NUMBER = 6;
    private volatile java.lang.Object ruleDescription_;
    /**
     * <pre>
     * added later, optional (can be substituted by Java)
     * </pre>
     *
     * <code>string ruleDescription = 6;</code>
     * @return The ruleDescription.
     */
    public java.lang.String getRuleDescription() {
      java.lang.Object ref = ruleDescription_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        ruleDescription_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * added later, optional (can be substituted by Java)
     * </pre>
     *
     * <code>string ruleDescription = 6;</code>
     * @return The bytes for ruleDescription.
     */
    public com.google.protobuf.ByteString
        getRuleDescriptionBytes() {
      java.lang.Object ref = ruleDescription_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ruleDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MATCHDESCRIPTION_FIELD_NUMBER = 7;
    private volatile java.lang.Object matchDescription_;
    /**
     * <pre>
     * description of the match; displayed in e.g. the add-on pop-up
     * </pre>
     *
     * <code>string matchDescription = 7;</code>
     * @return The matchDescription.
     */
    public java.lang.String getMatchDescription() {
      java.lang.Object ref = matchDescription_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        matchDescription_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * description of the match; displayed in e.g. the add-on pop-up
     * </pre>
     *
     * <code>string matchDescription = 7;</code>
     * @return The bytes for matchDescription.
     */
    public com.google.protobuf.ByteString
        getMatchDescriptionBytes() {
      java.lang.Object ref = matchDescription_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        matchDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MATCHSHORTDESCRIPTION_FIELD_NUMBER = 8;
    private volatile java.lang.Object matchShortDescription_;
    /**
     * <pre>
     * shortened description of the match; displayed in e.g. LibreOffice context menu
     * </pre>
     *
     * <code>string matchShortDescription = 8;</code>
     * @return The matchShortDescription.
     */
    public java.lang.String getMatchShortDescription() {
      java.lang.Object ref = matchShortDescription_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        matchShortDescription_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * shortened description of the match; displayed in e.g. LibreOffice context menu
     * </pre>
     *
     * <code>string matchShortDescription = 8;</code>
     * @return The bytes for matchShortDescription.
     */
    public com.google.protobuf.ByteString
        getMatchShortDescriptionBytes() {
      java.lang.Object ref = matchShortDescription_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        matchShortDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (offset_ != 0) {
        output.writeUInt32(1, offset_);
      }
      if (length_ != 0) {
        output.writeUInt32(2, length_);
      }
      if (!getIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_);
      }
      if (!getSubIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subId_);
      }
      for (int i = 0; i < suggestions_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, suggestions_.getRaw(i));
      }
      if (!getRuleDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, ruleDescription_);
      }
      if (!getMatchDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, matchDescription_);
      }
      if (!getMatchShortDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 8, matchShortDescription_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (offset_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, offset_);
      }
      if (length_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, length_);
      }
      if (!getIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_);
      }
      if (!getSubIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subId_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < suggestions_.size(); i++) {
          dataSize += computeStringSizeNoTag(suggestions_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getSuggestionsList().size();
      }
      if (!getRuleDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, ruleDescription_);
      }
      if (!getMatchDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, matchDescription_);
      }
      if (!getMatchShortDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, matchShortDescription_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.languagetool.rules.ml.MLServerProto.Match)) {
        return super.equals(obj);
      }
      org.languagetool.rules.ml.MLServerProto.Match other = (org.languagetool.rules.ml.MLServerProto.Match) obj;

      if (getOffset()
          != other.getOffset()) return false;
      if (getLength()
          != other.getLength()) return false;
      if (!getId()
          .equals(other.getId())) return false;
      if (!getSubId()
          .equals(other.getSubId())) return false;
      if (!getSuggestionsList()
          .equals(other.getSuggestionsList())) return false;
      if (!getRuleDescription()
          .equals(other.getRuleDescription())) return false;
      if (!getMatchDescription()
          .equals(other.getMatchDescription())) return false;
      if (!getMatchShortDescription()
          .equals(other.getMatchShortDescription())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + getOffset();
      hash = (37 * hash) + LENGTH_FIELD_NUMBER;
      hash = (53 * hash) + getLength();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      hash = (37 * hash) + SUB_ID_FIELD_NUMBER;
      hash = (53 * hash) + getSubId().hashCode();
      if (getSuggestionsCount() > 0) {
        hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER;
        hash = (53 * hash) + getSuggestionsList().hashCode();
      }
      hash = (37 * hash) + RULEDESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getRuleDescription().hashCode();
      hash = (37 * hash) + MATCHDESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getMatchDescription().hashCode();
      hash = (37 * hash) + MATCHSHORTDESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getMatchShortDescription().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.rules.ml.MLServerProto.Match parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.languagetool.rules.ml.MLServerProto.Match prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code lt_ml_server.Match}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:lt_ml_server.Match)
        org.languagetool.rules.ml.MLServerProto.MatchOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_Match_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_Match_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.rules.ml.MLServerProto.Match.class, org.languagetool.rules.ml.MLServerProto.Match.Builder.class);
      }

      // Construct using org.languagetool.rules.ml.MLServerProto.Match.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        offset_ = 0;

        length_ = 0;

        id_ = "";

        subId_ = "";

        suggestions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        ruleDescription_ = "";

        matchDescription_ = "";

        matchShortDescription_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.rules.ml.MLServerProto.internal_static_lt_ml_server_Match_descriptor;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.Match getDefaultInstanceForType() {
        return org.languagetool.rules.ml.MLServerProto.Match.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.Match build() {
        org.languagetool.rules.ml.MLServerProto.Match result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.rules.ml.MLServerProto.Match buildPartial() {
        org.languagetool.rules.ml.MLServerProto.Match result = new org.languagetool.rules.ml.MLServerProto.Match(this);
        int from_bitField0_ = bitField0_;
        result.offset_ = offset_;
        result.length_ = length_;
        result.id_ = id_;
        result.subId_ = subId_;
        if (((bitField0_ & 0x00000001) != 0)) {
          suggestions_ = suggestions_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.suggestions_ = suggestions_;
        result.ruleDescription_ = ruleDescription_;
        result.matchDescription_ = matchDescription_;
        result.matchShortDescription_ = matchShortDescription_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.languagetool.rules.ml.MLServerProto.Match) {
          return mergeFrom((org.languagetool.rules.ml.MLServerProto.Match)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.rules.ml.MLServerProto.Match other) {
        if (other == org.languagetool.rules.ml.MLServerProto.Match.getDefaultInstance()) return this;
        if (other.getOffset() != 0) {
          setOffset(other.getOffset());
        }
        if (other.getLength() != 0) {
          setLength(other.getLength());
        }
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          onChanged();
        }
        if (!other.getSubId().isEmpty()) {
          subId_ = other.subId_;
          onChanged();
        }
        if (!other.suggestions_.isEmpty()) {
          if (suggestions_.isEmpty()) {
            suggestions_ = other.suggestions_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSuggestionsIsMutable();
            suggestions_.addAll(other.suggestions_);
          }
          onChanged();
        }
        if (!other.getRuleDescription().isEmpty()) {
          ruleDescription_ = other.ruleDescription_;
          onChanged();
        }
        if (!other.getMatchDescription().isEmpty()) {
          matchDescription_ = other.matchDescription_;
          onChanged();
        }
        if (!other.getMatchShortDescription().isEmpty()) {
          matchShortDescription_ = other.matchShortDescription_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.languagetool.rules.ml.MLServerProto.Match parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.rules.ml.MLServerProto.Match) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int offset_ ;
      /**
       * <pre>
       * start position in the sentence (i.e. not relative to whole text)
       * </pre>
       *
       * <code>uint32 offset = 1;</code>
       * @return The offset.
       */
      public int getOffset() {
        return offset_;
      }
      /**
       * <pre>
       * start position in the sentence (i.e. not relative to whole text)
       * </pre>
       *
       * <code>uint32 offset = 1;</code>
       * @param value The offset to set.
       * @return This builder for chaining.
       */
      public Builder setOffset(int value) {
        
        offset_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * start position in the sentence (i.e. not relative to whole text)
       * </pre>
       *
       * <code>uint32 offset = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearOffset() {
        
        offset_ = 0;
        onChanged();
        return this;
      }

      private int length_ ;
      /**
       * <pre>
       * length of matched area; &gt;0
       * </pre>
       *
       * <code>uint32 length = 2;</code>
       * @return The length.
       */
      public int getLength() {
        return length_;
      }
      /**
       * <pre>
       * length of matched area; &gt;0
       * </pre>
       *
       * <code>uint32 length = 2;</code>
       * @param value The length to set.
       * @return This builder for chaining.
       */
      public Builder setLength(int value) {
        
        length_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * length of matched area; &gt;0
       * </pre>
       *
       * <code>uint32 length = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearLength() {
        
        length_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object id_ = "";
      /**
       * <pre>
       * prefix for rule ids; should use a common value for one model/server
       * </pre>
       *
       * <code>string id = 3;</code>
       * @return The id.
       */
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          id_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * prefix for rule ids; should use a common value for one model/server
       * </pre>
       *
       * <code>string id = 3;</code>
       * @return The bytes for id.
       */
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * prefix for rule ids; should use a common value for one model/server
       * </pre>
       *
       * <code>string id = 3;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * prefix for rule ids; should use a common value for one model/server
       * </pre>
       *
       * <code>string id = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * prefix for rule ids; should use a common value for one model/server
       * </pre>
       *
       * <code>string id = 3;</code>
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        id_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object subId_ = "";
      /**
       * <pre>
       * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       * </pre>
       *
       * <code>string sub_id = 4;</code>
       * @return The subId.
       */
      public java.lang.String getSubId() {
        java.lang.Object ref = subId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          subId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       * </pre>
       *
       * <code>string sub_id = 4;</code>
       * @return The bytes for subId.
       */
      public com.google.protobuf.ByteString
          getSubIdBytes() {
        java.lang.Object ref = subId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          subId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       * </pre>
       *
       * <code>string sub_id = 4;</code>
       * @param value The subId to set.
       * @return This builder for chaining.
       */
      public Builder setSubId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        subId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       * </pre>
       *
       * <code>string sub_id = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearSubId() {
        
        subId_ = getDefaultInstance().getSubId();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * more specific suffix for rule ids; i.e. one model/server can return multiple values to distinguish between mach types
       * </pre>
       *
       * <code>string sub_id = 4;</code>
       * @param value The bytes for subId to set.
       * @return This builder for chaining.
       */
      public Builder setSubIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        subId_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList suggestions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureSuggestionsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          suggestions_ = new com.google.protobuf.LazyStringArrayList(suggestions_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @return A list containing the suggestions.
       */
      public com.google.protobuf.ProtocolStringList
          getSuggestionsList() {
        return suggestions_.getUnmodifiableView();
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @return The count of suggestions.
       */
      public int getSuggestionsCount() {
        return suggestions_.size();
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @param index The index of the element to return.
       * @return The suggestions at the given index.
       */
      public java.lang.String getSuggestions(int index) {
        return suggestions_.get(index);
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @param index The index of the value to return.
       * @return The bytes of the suggestions at the given index.
       */
      public com.google.protobuf.ByteString
          getSuggestionsBytes(int index) {
        return suggestions_.getByteString(index);
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @param index The index to set the value at.
       * @param value The suggestions to set.
       * @return This builder for chaining.
       */
      public Builder setSuggestions(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureSuggestionsIsMutable();
        suggestions_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @param value The suggestions to add.
       * @return This builder for chaining.
       */
      public Builder addSuggestions(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureSuggestionsIsMutable();
        suggestions_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @param values The suggestions to add.
       * @return This builder for chaining.
       */
      public Builder addAllSuggestions(
          java.lang.Iterable<java.lang.String> values) {
        ensureSuggestionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, suggestions_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearSuggestions() {
        suggestions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string suggestions = 5;</code>
       * @param value The bytes of the suggestions to add.
       * @return This builder for chaining.
       */
      public Builder addSuggestionsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureSuggestionsIsMutable();
        suggestions_.add(value);
        onChanged();
        return this;
      }

      private java.lang.Object ruleDescription_ = "";
      /**
       * <pre>
       * added later, optional (can be substituted by Java)
       * </pre>
       *
       * <code>string ruleDescription = 6;</code>
       * @return The ruleDescription.
       */
      public java.lang.String getRuleDescription() {
        java.lang.Object ref = ruleDescription_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          ruleDescription_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * added later, optional (can be substituted by Java)
       * </pre>
       *
       * <code>string ruleDescription = 6;</code>
       * @return The bytes for ruleDescription.
       */
      public com.google.protobuf.ByteString
          getRuleDescriptionBytes() {
        java.lang.Object ref = ruleDescription_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          ruleDescription_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * added later, optional (can be substituted by Java)
       * </pre>
       *
       * <code>string ruleDescription = 6;</code>
       * @param value The ruleDescription to set.
       * @return This builder for chaining.
       */
      public Builder setRuleDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        ruleDescription_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * added later, optional (can be substituted by Java)
       * </pre>
       *
       * <code>string ruleDescription = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearRuleDescription() {
        
        ruleDescription_ = getDefaultInstance().getRuleDescription();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * added later, optional (can be substituted by Java)
       * </pre>
       *
       * <code>string ruleDescription = 6;</code>
       * @param value The bytes for ruleDescription to set.
       * @return This builder for chaining.
       */
      public Builder setRuleDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        ruleDescription_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object matchDescription_ = "";
      /**
       * <pre>
       * description of the match; displayed in e.g. the add-on pop-up
       * </pre>
       *
       * <code>string matchDescription = 7;</code>
       * @return The matchDescription.
       */
      public java.lang.String getMatchDescription() {
        java.lang.Object ref = matchDescription_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          matchDescription_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * description of the match; displayed in e.g. the add-on pop-up
       * </pre>
       *
       * <code>string matchDescription = 7;</code>
       * @return The bytes for matchDescription.
       */
      public com.google.protobuf.ByteString
          getMatchDescriptionBytes() {
        java.lang.Object ref = matchDescription_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          matchDescription_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * description of the match; displayed in e.g. the add-on pop-up
       * </pre>
       *
       * <code>string matchDescription = 7;</code>
       * @param value The matchDescription to set.
       * @return This builder for chaining.
       */
      public Builder setMatchDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        matchDescription_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * description of the match; displayed in e.g. the add-on pop-up
       * </pre>
       *
       * <code>string matchDescription = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearMatchDescription() {
        
        matchDescription_ = getDefaultInstance().getMatchDescription();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * description of the match; displayed in e.g. the add-on pop-up
       * </pre>
       *
       * <code>string matchDescription = 7;</code>
       * @param value The bytes for matchDescription to set.
       * @return This builder for chaining.
       */
      public Builder setMatchDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        matchDescription_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object matchShortDescription_ = "";
      /**
       * <pre>
       * shortened description of the match; displayed in e.g. LibreOffice context menu
       * </pre>
       *
       * <code>string matchShortDescription = 8;</code>
       * @return The matchShortDescription.
       */
      public java.lang.String getMatchShortDescription() {
        java.lang.Object ref = matchShortDescription_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          matchShortDescription_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * shortened description of the match; displayed in e.g. LibreOffice context menu
       * </pre>
       *
       * <code>string matchShortDescription = 8;</code>
       * @return The bytes for matchShortDescription.
       */
      public com.google.protobuf.ByteString
          getMatchShortDescriptionBytes() {
        java.lang.Object ref = matchShortDescription_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          matchShortDescription_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * shortened description of the match; displayed in e.g. LibreOffice context menu
       * </pre>
       *
       * <code>string matchShortDescription = 8;</code>
       * @param value The matchShortDescription to set.
       * @return This builder for chaining.
       */
      public Builder setMatchShortDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        matchShortDescription_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * shortened description of the match; displayed in e.g. LibreOffice context menu
       * </pre>
       *
       * <code>string matchShortDescription = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearMatchShortDescription() {
        
        matchShortDescription_ = getDefaultInstance().getMatchShortDescription();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * shortened description of the match; displayed in e.g. LibreOffice context menu
       * </pre>
       *
       * <code>string matchShortDescription = 8;</code>
       * @param value The bytes for matchShortDescription to set.
       * @return This builder for chaining.
       */
      public Builder setMatchShortDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        matchShortDescription_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:lt_ml_server.Match)
    }

    // @@protoc_insertion_point(class_scope:lt_ml_server.Match)
    private static final org.languagetool.rules.ml.MLServerProto.Match DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.rules.ml.MLServerProto.Match();
    }

    public static org.languagetool.rules.ml.MLServerProto.Match getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Match>
        PARSER = new com.google.protobuf.AbstractParser<Match>() {
      @java.lang.Override
      public Match parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Match(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<Match> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<Match> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public org.languagetool.rules.ml.MLServerProto.Match getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_lt_ml_server_MatchRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_lt_ml_server_MatchRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_lt_ml_server_MatchResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_lt_ml_server_MatchResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_lt_ml_server_MatchList_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_lt_ml_server_MatchList_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_lt_ml_server_Match_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_lt_ml_server_Match_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\017ml_server.proto\022\014lt_ml_server\"7\n\014Match" +
      "Request\022\021\n\tsentences\030\001 \003(\t\022\024\n\014inputLoggi" +
      "ng\030\002 \001(\010\"A\n\rMatchResponse\0220\n\017sentenceMat" +
      "ches\030\001 \003(\0132\027.lt_ml_server.MatchList\"1\n\tM" +
      "atchList\022$\n\007matches\030\001 \003(\0132\023.lt_ml_server" +
      ".Match\"\252\001\n\005Match\022\016\n\006offset\030\001 \001(\r\022\016\n\006leng" +
      "th\030\002 \001(\r\022\n\n\002id\030\003 \001(\t\022\016\n\006sub_id\030\004 \001(\t\022\023\n\013" +
      "suggestions\030\005 \003(\t\022\027\n\017ruleDescription\030\006 \001" +
      "(\t\022\030\n\020matchDescription\030\007 \001(\t\022\035\n\025matchSho" +
      "rtDescription\030\010 \001(\t2N\n\010MLServer\022B\n\005Match" +
      "\022\032.lt_ml_server.MatchRequest\032\033.lt_ml_ser" +
      "ver.MatchResponse\"\000B*\n\031org.languagetool." +
      "rules.mlB\rMLServerProtob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_lt_ml_server_MatchRequest_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_lt_ml_server_MatchRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_lt_ml_server_MatchRequest_descriptor,
        new java.lang.String[] { "Sentences", "InputLogging", });
    internal_static_lt_ml_server_MatchResponse_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_lt_ml_server_MatchResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_lt_ml_server_MatchResponse_descriptor,
        new java.lang.String[] { "SentenceMatches", });
    internal_static_lt_ml_server_MatchList_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_lt_ml_server_MatchList_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_lt_ml_server_MatchList_descriptor,
        new java.lang.String[] { "Matches", });
    internal_static_lt_ml_server_Match_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_lt_ml_server_Match_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_lt_ml_server_Match_descriptor,
        new java.lang.String[] { "Offset", "Length", "Id", "SubId", "Suggestions", "RuleDescription", "MatchDescription", "MatchShortDescription", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
