// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: bert-lm.proto

package org.languagetool.languagemodel.bert.grpc;

public final class BertLmProto {
  private BertLmProto() {}
  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 MaskOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bert.Mask)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>uint32 start = 1;</code>
     * @return The start.
     */
    int getStart();

    /**
     * <code>uint32 end = 2;</code>
     * @return The end.
     */
    int getEnd();

    /**
     * <code>repeated string candidates = 3;</code>
     * @return A list containing the candidates.
     */
    java.util.List<java.lang.String>
        getCandidatesList();
    /**
     * <code>repeated string candidates = 3;</code>
     * @return The count of candidates.
     */
    int getCandidatesCount();
    /**
     * <code>repeated string candidates = 3;</code>
     * @param index The index of the element to return.
     * @return The candidates at the given index.
     */
    java.lang.String getCandidates(int index);
    /**
     * <code>repeated string candidates = 3;</code>
     * @param index The index of the value to return.
     * @return The bytes of the candidates at the given index.
     */
    com.google.protobuf.ByteString
        getCandidatesBytes(int index);
  }
  /**
   * Protobuf type {@code bert.Mask}
   */
  public static final class Mask extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:bert.Mask)
      MaskOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Mask.newBuilder() to construct.
    private Mask(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Mask() {
      candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Mask(
        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: {

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

              end_ = input.readUInt32();
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                candidates_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              candidates_.add(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)) {
          candidates_ = candidates_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Mask_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Mask_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder.class);
    }

    public static final int START_FIELD_NUMBER = 1;
    private int start_;
    /**
     * <code>uint32 start = 1;</code>
     * @return The start.
     */
    @java.lang.Override
    public int getStart() {
      return start_;
    }

    public static final int END_FIELD_NUMBER = 2;
    private int end_;
    /**
     * <code>uint32 end = 2;</code>
     * @return The end.
     */
    @java.lang.Override
    public int getEnd() {
      return end_;
    }

    public static final int CANDIDATES_FIELD_NUMBER = 3;
    private com.google.protobuf.LazyStringList candidates_;
    /**
     * <code>repeated string candidates = 3;</code>
     * @return A list containing the candidates.
     */
    public com.google.protobuf.ProtocolStringList
        getCandidatesList() {
      return candidates_;
    }
    /**
     * <code>repeated string candidates = 3;</code>
     * @return The count of candidates.
     */
    public int getCandidatesCount() {
      return candidates_.size();
    }
    /**
     * <code>repeated string candidates = 3;</code>
     * @param index The index of the element to return.
     * @return The candidates at the given index.
     */
    public java.lang.String getCandidates(int index) {
      return candidates_.get(index);
    }
    /**
     * <code>repeated string candidates = 3;</code>
     * @param index The index of the value to return.
     * @return The bytes of the candidates at the given index.
     */
    public com.google.protobuf.ByteString
        getCandidatesBytes(int index) {
      return candidates_.getByteString(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 {
      if (start_ != 0) {
        output.writeUInt32(1, start_);
      }
      if (end_ != 0) {
        output.writeUInt32(2, end_);
      }
      for (int i = 0; i < candidates_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, candidates_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (start_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, start_);
      }
      if (end_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, end_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < candidates_.size(); i++) {
          dataSize += computeStringSizeNoTag(candidates_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getCandidatesList().size();
      }
      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.languagemodel.bert.grpc.BertLmProto.Mask)) {
        return super.equals(obj);
      }
      org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask other = (org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask) obj;

      if (getStart()
          != other.getStart()) return false;
      if (getEnd()
          != other.getEnd()) return false;
      if (!getCandidatesList()
          .equals(other.getCandidatesList())) 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) + START_FIELD_NUMBER;
      hash = (53 * hash) + getStart();
      hash = (37 * hash) + END_FIELD_NUMBER;
      hash = (53 * hash) + getEnd();
      if (getCandidatesCount() > 0) {
        hash = (37 * hash) + CANDIDATES_FIELD_NUMBER;
        hash = (53 * hash) + getCandidatesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask 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.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask 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.languagemodel.bert.grpc.BertLmProto.Mask parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask 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.languagemodel.bert.grpc.BertLmProto.Mask parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask 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.languagemodel.bert.grpc.BertLmProto.Mask 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 bert.Mask}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:bert.Mask)
        org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Mask_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Mask_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder.class);
      }

      // Construct using org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.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();
        start_ = 0;

        end_ = 0;

        candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Mask_descriptor;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask getDefaultInstanceForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask build() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask buildPartial() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask result = new org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask(this);
        int from_bitField0_ = bitField0_;
        result.start_ = start_;
        result.end_ = end_;
        if (((bitField0_ & 0x00000001) != 0)) {
          candidates_ = candidates_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.candidates_ = candidates_;
        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.languagemodel.bert.grpc.BertLmProto.Mask) {
          return mergeFrom((org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask other) {
        if (other == org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.getDefaultInstance()) return this;
        if (other.getStart() != 0) {
          setStart(other.getStart());
        }
        if (other.getEnd() != 0) {
          setEnd(other.getEnd());
        }
        if (!other.candidates_.isEmpty()) {
          if (candidates_.isEmpty()) {
            candidates_ = other.candidates_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureCandidatesIsMutable();
            candidates_.addAll(other.candidates_);
          }
          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.languagemodel.bert.grpc.BertLmProto.Mask parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int start_ ;
      /**
       * <code>uint32 start = 1;</code>
       * @return The start.
       */
      @java.lang.Override
      public int getStart() {
        return start_;
      }
      /**
       * <code>uint32 start = 1;</code>
       * @param value The start to set.
       * @return This builder for chaining.
       */
      public Builder setStart(int value) {
        
        start_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 start = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearStart() {
        
        start_ = 0;
        onChanged();
        return this;
      }

      private int end_ ;
      /**
       * <code>uint32 end = 2;</code>
       * @return The end.
       */
      @java.lang.Override
      public int getEnd() {
        return end_;
      }
      /**
       * <code>uint32 end = 2;</code>
       * @param value The end to set.
       * @return This builder for chaining.
       */
      public Builder setEnd(int value) {
        
        end_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 end = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearEnd() {
        
        end_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureCandidatesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          candidates_ = new com.google.protobuf.LazyStringArrayList(candidates_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @return A list containing the candidates.
       */
      public com.google.protobuf.ProtocolStringList
          getCandidatesList() {
        return candidates_.getUnmodifiableView();
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @return The count of candidates.
       */
      public int getCandidatesCount() {
        return candidates_.size();
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @param index The index of the element to return.
       * @return The candidates at the given index.
       */
      public java.lang.String getCandidates(int index) {
        return candidates_.get(index);
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @param index The index of the value to return.
       * @return The bytes of the candidates at the given index.
       */
      public com.google.protobuf.ByteString
          getCandidatesBytes(int index) {
        return candidates_.getByteString(index);
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @param index The index to set the value at.
       * @param value The candidates to set.
       * @return This builder for chaining.
       */
      public Builder setCandidates(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureCandidatesIsMutable();
        candidates_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @param value The candidates to add.
       * @return This builder for chaining.
       */
      public Builder addCandidates(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureCandidatesIsMutable();
        candidates_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @param values The candidates to add.
       * @return This builder for chaining.
       */
      public Builder addAllCandidates(
          java.lang.Iterable<java.lang.String> values) {
        ensureCandidatesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, candidates_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearCandidates() {
        candidates_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string candidates = 3;</code>
       * @param value The bytes of the candidates to add.
       * @return This builder for chaining.
       */
      public Builder addCandidatesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureCandidatesIsMutable();
        candidates_.add(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:bert.Mask)
    }

    // @@protoc_insertion_point(class_scope:bert.Mask)
    private static final org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask();
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ScoreRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bert.ScoreRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string text = 1;</code>
     * @return The text.
     */
    java.lang.String getText();
    /**
     * <code>string text = 1;</code>
     * @return The bytes for text.
     */
    com.google.protobuf.ByteString
        getTextBytes();

    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask> 
        getMaskList();
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask getMask(int index);
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    int getMaskCount();
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder> 
        getMaskOrBuilderList();
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder getMaskOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code bert.ScoreRequest}
   */
  public static final class ScoreRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:bert.ScoreRequest)
      ScoreRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ScoreRequest.newBuilder() to construct.
    private ScoreRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ScoreRequest() {
      text_ = "";
      mask_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ScoreRequest(
        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();

              text_ = s;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                mask_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask>();
                mutable_bitField0_ |= 0x00000001;
              }
              mask_.add(
                  input.readMessage(org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.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)) {
          mask_ = java.util.Collections.unmodifiableList(mask_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_ScoreRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_ScoreRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder.class);
    }

    public static final int TEXT_FIELD_NUMBER = 1;
    private volatile java.lang.Object text_;
    /**
     * <code>string text = 1;</code>
     * @return The text.
     */
    @java.lang.Override
    public java.lang.String getText() {
      java.lang.Object ref = text_;
      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();
        text_ = s;
        return s;
      }
    }
    /**
     * <code>string text = 1;</code>
     * @return The bytes for text.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTextBytes() {
      java.lang.Object ref = text_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        text_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int MASK_FIELD_NUMBER = 2;
    private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask> mask_;
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    @java.lang.Override
    public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask> getMaskList() {
      return mask_;
    }
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder> 
        getMaskOrBuilderList() {
      return mask_;
    }
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    @java.lang.Override
    public int getMaskCount() {
      return mask_.size();
    }
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask getMask(int index) {
      return mask_.get(index);
    }
    /**
     * <code>repeated .bert.Mask mask = 2;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder getMaskOrBuilder(
        int index) {
      return mask_.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 {
      if (!getTextBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
      }
      for (int i = 0; i < mask_.size(); i++) {
        output.writeMessage(2, mask_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getTextBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
      }
      for (int i = 0; i < mask_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, mask_.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.languagemodel.bert.grpc.BertLmProto.ScoreRequest)) {
        return super.equals(obj);
      }
      org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest other = (org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest) obj;

      if (!getText()
          .equals(other.getText())) return false;
      if (!getMaskList()
          .equals(other.getMaskList())) 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) + TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getText().hashCode();
      if (getMaskCount() > 0) {
        hash = (37 * hash) + MASK_FIELD_NUMBER;
        hash = (53 * hash) + getMaskList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest 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.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest 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.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest 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.languagemodel.bert.grpc.BertLmProto.ScoreRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest 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.languagemodel.bert.grpc.BertLmProto.ScoreRequest 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 bert.ScoreRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:bert.ScoreRequest)
        org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_ScoreRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_ScoreRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder.class);
      }

      // Construct using org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        if (maskBuilder_ == null) {
          mask_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          maskBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_ScoreRequest_descriptor;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest getDefaultInstanceForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest build() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest buildPartial() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest result = new org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest(this);
        int from_bitField0_ = bitField0_;
        result.text_ = text_;
        if (maskBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            mask_ = java.util.Collections.unmodifiableList(mask_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.mask_ = mask_;
        } else {
          result.mask_ = maskBuilder_.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.languagemodel.bert.grpc.BertLmProto.ScoreRequest) {
          return mergeFrom((org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest other) {
        if (other == org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.getDefaultInstance()) return this;
        if (!other.getText().isEmpty()) {
          text_ = other.text_;
          onChanged();
        }
        if (maskBuilder_ == null) {
          if (!other.mask_.isEmpty()) {
            if (mask_.isEmpty()) {
              mask_ = other.mask_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureMaskIsMutable();
              mask_.addAll(other.mask_);
            }
            onChanged();
          }
        } else {
          if (!other.mask_.isEmpty()) {
            if (maskBuilder_.isEmpty()) {
              maskBuilder_.dispose();
              maskBuilder_ = null;
              mask_ = other.mask_;
              bitField0_ = (bitField0_ & ~0x00000001);
              maskBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getMaskFieldBuilder() : null;
            } else {
              maskBuilder_.addAllMessages(other.mask_);
            }
          }
        }
        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.languagemodel.bert.grpc.BertLmProto.ScoreRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object text_ = "";
      /**
       * <code>string text = 1;</code>
       * @return The text.
       */
      public java.lang.String getText() {
        java.lang.Object ref = text_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          text_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string text = 1;</code>
       * @return The bytes for text.
       */
      public com.google.protobuf.ByteString
          getTextBytes() {
        java.lang.Object ref = text_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          text_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string text = 1;</code>
       * @param value The text to set.
       * @return This builder for chaining.
       */
      public Builder setText(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        text_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string text = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearText() {
        
        text_ = getDefaultInstance().getText();
        onChanged();
        return this;
      }
      /**
       * <code>string text = 1;</code>
       * @param value The bytes for text to set.
       * @return This builder for chaining.
       */
      public Builder setTextBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        text_ = value;
        onChanged();
        return this;
      }

      private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask> mask_ =
        java.util.Collections.emptyList();
      private void ensureMaskIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          mask_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask>(mask_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder> maskBuilder_;

      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask> getMaskList() {
        if (maskBuilder_ == null) {
          return java.util.Collections.unmodifiableList(mask_);
        } else {
          return maskBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public int getMaskCount() {
        if (maskBuilder_ == null) {
          return mask_.size();
        } else {
          return maskBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask getMask(int index) {
        if (maskBuilder_ == null) {
          return mask_.get(index);
        } else {
          return maskBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder setMask(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask value) {
        if (maskBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMaskIsMutable();
          mask_.set(index, value);
          onChanged();
        } else {
          maskBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder setMask(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder builderForValue) {
        if (maskBuilder_ == null) {
          ensureMaskIsMutable();
          mask_.set(index, builderForValue.build());
          onChanged();
        } else {
          maskBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder addMask(org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask value) {
        if (maskBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMaskIsMutable();
          mask_.add(value);
          onChanged();
        } else {
          maskBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder addMask(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask value) {
        if (maskBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMaskIsMutable();
          mask_.add(index, value);
          onChanged();
        } else {
          maskBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder addMask(
          org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder builderForValue) {
        if (maskBuilder_ == null) {
          ensureMaskIsMutable();
          mask_.add(builderForValue.build());
          onChanged();
        } else {
          maskBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder addMask(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder builderForValue) {
        if (maskBuilder_ == null) {
          ensureMaskIsMutable();
          mask_.add(index, builderForValue.build());
          onChanged();
        } else {
          maskBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder addAllMask(
          java.lang.Iterable<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask> values) {
        if (maskBuilder_ == null) {
          ensureMaskIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, mask_);
          onChanged();
        } else {
          maskBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder clearMask() {
        if (maskBuilder_ == null) {
          mask_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          maskBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public Builder removeMask(int index) {
        if (maskBuilder_ == null) {
          ensureMaskIsMutable();
          mask_.remove(index);
          onChanged();
        } else {
          maskBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder getMaskBuilder(
          int index) {
        return getMaskFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder getMaskOrBuilder(
          int index) {
        if (maskBuilder_ == null) {
          return mask_.get(index);  } else {
          return maskBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder> 
           getMaskOrBuilderList() {
        if (maskBuilder_ != null) {
          return maskBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(mask_);
        }
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder addMaskBuilder() {
        return getMaskFieldBuilder().addBuilder(
            org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder addMaskBuilder(
          int index) {
        return getMaskFieldBuilder().addBuilder(
            index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.Mask mask = 2;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder> 
           getMaskBuilderList() {
        return getMaskFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder> 
          getMaskFieldBuilder() {
        if (maskBuilder_ == null) {
          maskBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask, org.languagetool.languagemodel.bert.grpc.BertLmProto.Mask.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.MaskOrBuilder>(
                  mask_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          mask_ = null;
        }
        return maskBuilder_;
      }
      @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:bert.ScoreRequest)
    }

    // @@protoc_insertion_point(class_scope:bert.ScoreRequest)
    private static final org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest();
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PredictionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bert.Prediction)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated double score = 1;</code>
     * @return A list containing the score.
     */
    java.util.List<java.lang.Double> getScoreList();
    /**
     * <code>repeated double score = 1;</code>
     * @return The count of score.
     */
    int getScoreCount();
    /**
     * <code>repeated double score = 1;</code>
     * @param index The index of the element to return.
     * @return The score at the given index.
     */
    double getScore(int index);
  }
  /**
   * Protobuf type {@code bert.Prediction}
   */
  public static final class Prediction extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:bert.Prediction)
      PredictionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Prediction.newBuilder() to construct.
    private Prediction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Prediction() {
      score_ = emptyDoubleList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Prediction(
        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 9: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                score_ = newDoubleList();
                mutable_bitField0_ |= 0x00000001;
              }
              score_.addDouble(input.readDouble());
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                score_ = newDoubleList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                score_.addDouble(input.readDouble());
              }
              input.popLimit(limit);
              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)) {
          score_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Prediction_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Prediction_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder.class);
    }

    public static final int SCORE_FIELD_NUMBER = 1;
    private com.google.protobuf.Internal.DoubleList score_;
    /**
     * <code>repeated double score = 1;</code>
     * @return A list containing the score.
     */
    @java.lang.Override
    public java.util.List<java.lang.Double>
        getScoreList() {
      return score_;
    }
    /**
     * <code>repeated double score = 1;</code>
     * @return The count of score.
     */
    public int getScoreCount() {
      return score_.size();
    }
    /**
     * <code>repeated double score = 1;</code>
     * @param index The index of the element to return.
     * @return The score at the given index.
     */
    public double getScore(int index) {
      return score_.getDouble(index);
    }
    private int scoreMemoizedSerializedSize = -1;

    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 {
      getSerializedSize();
      if (getScoreList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(scoreMemoizedSerializedSize);
      }
      for (int i = 0; i < score_.size(); i++) {
        output.writeDoubleNoTag(score_.getDouble(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        dataSize = 8 * getScoreList().size();
        size += dataSize;
        if (!getScoreList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        scoreMemoizedSerializedSize = dataSize;
      }
      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.languagemodel.bert.grpc.BertLmProto.Prediction)) {
        return super.equals(obj);
      }
      org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction other = (org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction) obj;

      if (!getScoreList()
          .equals(other.getScoreList())) 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 (getScoreCount() > 0) {
        hash = (37 * hash) + SCORE_FIELD_NUMBER;
        hash = (53 * hash) + getScoreList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction 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.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction 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.languagemodel.bert.grpc.BertLmProto.Prediction parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction 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.languagemodel.bert.grpc.BertLmProto.Prediction parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction 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.languagemodel.bert.grpc.BertLmProto.Prediction 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 bert.Prediction}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:bert.Prediction)
        org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Prediction_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Prediction_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder.class);
      }

      // Construct using org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.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();
        score_ = emptyDoubleList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_Prediction_descriptor;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction getDefaultInstanceForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction build() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction buildPartial() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction result = new org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          score_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.score_ = score_;
        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.languagemodel.bert.grpc.BertLmProto.Prediction) {
          return mergeFrom((org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction other) {
        if (other == org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.getDefaultInstance()) return this;
        if (!other.score_.isEmpty()) {
          if (score_.isEmpty()) {
            score_ = other.score_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureScoreIsMutable();
            score_.addAll(other.score_);
          }
          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.languagemodel.bert.grpc.BertLmProto.Prediction parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.DoubleList score_ = emptyDoubleList();
      private void ensureScoreIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          score_ = mutableCopy(score_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated double score = 1;</code>
       * @return A list containing the score.
       */
      public java.util.List<java.lang.Double>
          getScoreList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(score_) : score_;
      }
      /**
       * <code>repeated double score = 1;</code>
       * @return The count of score.
       */
      public int getScoreCount() {
        return score_.size();
      }
      /**
       * <code>repeated double score = 1;</code>
       * @param index The index of the element to return.
       * @return The score at the given index.
       */
      public double getScore(int index) {
        return score_.getDouble(index);
      }
      /**
       * <code>repeated double score = 1;</code>
       * @param index The index to set the value at.
       * @param value The score to set.
       * @return This builder for chaining.
       */
      public Builder setScore(
          int index, double value) {
        ensureScoreIsMutable();
        score_.setDouble(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated double score = 1;</code>
       * @param value The score to add.
       * @return This builder for chaining.
       */
      public Builder addScore(double value) {
        ensureScoreIsMutable();
        score_.addDouble(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated double score = 1;</code>
       * @param values The score to add.
       * @return This builder for chaining.
       */
      public Builder addAllScore(
          java.lang.Iterable<? extends java.lang.Double> values) {
        ensureScoreIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, score_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated double score = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearScore() {
        score_ = emptyDoubleList();
        bitField0_ = (bitField0_ & ~0x00000001);
        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:bert.Prediction)
    }

    // @@protoc_insertion_point(class_scope:bert.Prediction)
    private static final org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction();
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BertLmResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bert.BertLmResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction> 
        getScoresList();
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction getScores(int index);
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    int getScoresCount();
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder> 
        getScoresOrBuilderList();
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder getScoresOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code bert.BertLmResponse}
   */
  public static final class BertLmResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:bert.BertLmResponse)
      BertLmResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BertLmResponse.newBuilder() to construct.
    private BertLmResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BertLmResponse() {
      scores_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BertLmResponse(
        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)) {
                scores_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction>();
                mutable_bitField0_ |= 0x00000001;
              }
              scores_.add(
                  input.readMessage(org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.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)) {
          scores_ = java.util.Collections.unmodifiableList(scores_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BertLmResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BertLmResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder.class);
    }

    public static final int SCORES_FIELD_NUMBER = 1;
    private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction> scores_;
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    @java.lang.Override
    public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction> getScoresList() {
      return scores_;
    }
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder> 
        getScoresOrBuilderList() {
      return scores_;
    }
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    @java.lang.Override
    public int getScoresCount() {
      return scores_.size();
    }
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction getScores(int index) {
      return scores_.get(index);
    }
    /**
     * <code>repeated .bert.Prediction scores = 1;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder getScoresOrBuilder(
        int index) {
      return scores_.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 < scores_.size(); i++) {
        output.writeMessage(1, scores_.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 < scores_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, scores_.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.languagemodel.bert.grpc.BertLmProto.BertLmResponse)) {
        return super.equals(obj);
      }
      org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse other = (org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse) obj;

      if (!getScoresList()
          .equals(other.getScoresList())) 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 (getScoresCount() > 0) {
        hash = (37 * hash) + SCORES_FIELD_NUMBER;
        hash = (53 * hash) + getScoresList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BertLmResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BertLmResponse 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 bert.BertLmResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:bert.BertLmResponse)
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BertLmResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BertLmResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder.class);
      }

      // Construct using org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BertLmResponse_descriptor;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse getDefaultInstanceForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse build() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse buildPartial() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse result = new org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse(this);
        int from_bitField0_ = bitField0_;
        if (scoresBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            scores_ = java.util.Collections.unmodifiableList(scores_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.scores_ = scores_;
        } else {
          result.scores_ = scoresBuilder_.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.languagemodel.bert.grpc.BertLmProto.BertLmResponse) {
          return mergeFrom((org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse other) {
        if (other == org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.getDefaultInstance()) return this;
        if (scoresBuilder_ == null) {
          if (!other.scores_.isEmpty()) {
            if (scores_.isEmpty()) {
              scores_ = other.scores_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureScoresIsMutable();
              scores_.addAll(other.scores_);
            }
            onChanged();
          }
        } else {
          if (!other.scores_.isEmpty()) {
            if (scoresBuilder_.isEmpty()) {
              scoresBuilder_.dispose();
              scoresBuilder_ = null;
              scores_ = other.scores_;
              bitField0_ = (bitField0_ & ~0x00000001);
              scoresBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getScoresFieldBuilder() : null;
            } else {
              scoresBuilder_.addAllMessages(other.scores_);
            }
          }
        }
        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.languagemodel.bert.grpc.BertLmProto.BertLmResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction> scores_ =
        java.util.Collections.emptyList();
      private void ensureScoresIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          scores_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction>(scores_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder> scoresBuilder_;

      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction> getScoresList() {
        if (scoresBuilder_ == null) {
          return java.util.Collections.unmodifiableList(scores_);
        } else {
          return scoresBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public int getScoresCount() {
        if (scoresBuilder_ == null) {
          return scores_.size();
        } else {
          return scoresBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction getScores(int index) {
        if (scoresBuilder_ == null) {
          return scores_.get(index);
        } else {
          return scoresBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder setScores(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction value) {
        if (scoresBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureScoresIsMutable();
          scores_.set(index, value);
          onChanged();
        } else {
          scoresBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder setScores(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder builderForValue) {
        if (scoresBuilder_ == null) {
          ensureScoresIsMutable();
          scores_.set(index, builderForValue.build());
          onChanged();
        } else {
          scoresBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder addScores(org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction value) {
        if (scoresBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureScoresIsMutable();
          scores_.add(value);
          onChanged();
        } else {
          scoresBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder addScores(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction value) {
        if (scoresBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureScoresIsMutable();
          scores_.add(index, value);
          onChanged();
        } else {
          scoresBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder addScores(
          org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder builderForValue) {
        if (scoresBuilder_ == null) {
          ensureScoresIsMutable();
          scores_.add(builderForValue.build());
          onChanged();
        } else {
          scoresBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder addScores(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder builderForValue) {
        if (scoresBuilder_ == null) {
          ensureScoresIsMutable();
          scores_.add(index, builderForValue.build());
          onChanged();
        } else {
          scoresBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder addAllScores(
          java.lang.Iterable<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction> values) {
        if (scoresBuilder_ == null) {
          ensureScoresIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, scores_);
          onChanged();
        } else {
          scoresBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder clearScores() {
        if (scoresBuilder_ == null) {
          scores_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          scoresBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public Builder removeScores(int index) {
        if (scoresBuilder_ == null) {
          ensureScoresIsMutable();
          scores_.remove(index);
          onChanged();
        } else {
          scoresBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder getScoresBuilder(
          int index) {
        return getScoresFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder getScoresOrBuilder(
          int index) {
        if (scoresBuilder_ == null) {
          return scores_.get(index);  } else {
          return scoresBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder> 
           getScoresOrBuilderList() {
        if (scoresBuilder_ != null) {
          return scoresBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(scores_);
        }
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder addScoresBuilder() {
        return getScoresFieldBuilder().addBuilder(
            org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder addScoresBuilder(
          int index) {
        return getScoresFieldBuilder().addBuilder(
            index, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.Prediction scores = 1;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder> 
           getScoresBuilderList() {
        return getScoresFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder> 
          getScoresFieldBuilder() {
        if (scoresBuilder_ == null) {
          scoresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction, org.languagetool.languagemodel.bert.grpc.BertLmProto.Prediction.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.PredictionOrBuilder>(
                  scores_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          scores_ = null;
        }
        return scoresBuilder_;
      }
      @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:bert.BertLmResponse)
    }

    // @@protoc_insertion_point(class_scope:bert.BertLmResponse)
    private static final org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse();
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BatchScoreRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bert.BatchScoreRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest> 
        getRequestsList();
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest getRequests(int index);
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    int getRequestsCount();
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder> 
        getRequestsOrBuilderList();
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder getRequestsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code bert.BatchScoreRequest}
   */
  public static final class BatchScoreRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:bert.BatchScoreRequest)
      BatchScoreRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BatchScoreRequest.newBuilder() to construct.
    private BatchScoreRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BatchScoreRequest() {
      requests_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BatchScoreRequest(
        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)) {
                requests_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest>();
                mutable_bitField0_ |= 0x00000001;
              }
              requests_.add(
                  input.readMessage(org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.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)) {
          requests_ = java.util.Collections.unmodifiableList(requests_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchScoreRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchScoreRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.Builder.class);
    }

    public static final int REQUESTS_FIELD_NUMBER = 1;
    private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest> requests_;
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    @java.lang.Override
    public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest> getRequestsList() {
      return requests_;
    }
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder> 
        getRequestsOrBuilderList() {
      return requests_;
    }
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    @java.lang.Override
    public int getRequestsCount() {
      return requests_.size();
    }
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest getRequests(int index) {
      return requests_.get(index);
    }
    /**
     * <code>repeated .bert.ScoreRequest requests = 1;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder getRequestsOrBuilder(
        int index) {
      return requests_.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 < requests_.size(); i++) {
        output.writeMessage(1, requests_.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 < requests_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, requests_.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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest)) {
        return super.equals(obj);
      }
      org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest other = (org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest) obj;

      if (!getRequestsList()
          .equals(other.getRequestsList())) 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 (getRequestsCount() > 0) {
        hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
        hash = (53 * hash) + getRequestsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest 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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest 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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest 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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest 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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest 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 bert.BatchScoreRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:bert.BatchScoreRequest)
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchScoreRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchScoreRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.Builder.class);
      }

      // Construct using org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchScoreRequest_descriptor;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest getDefaultInstanceForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest build() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest buildPartial() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest result = new org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest(this);
        int from_bitField0_ = bitField0_;
        if (requestsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            requests_ = java.util.Collections.unmodifiableList(requests_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.requests_ = requests_;
        } else {
          result.requests_ = requestsBuilder_.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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest) {
          return mergeFrom((org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest other) {
        if (other == org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest.getDefaultInstance()) return this;
        if (requestsBuilder_ == null) {
          if (!other.requests_.isEmpty()) {
            if (requests_.isEmpty()) {
              requests_ = other.requests_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRequestsIsMutable();
              requests_.addAll(other.requests_);
            }
            onChanged();
          }
        } else {
          if (!other.requests_.isEmpty()) {
            if (requestsBuilder_.isEmpty()) {
              requestsBuilder_.dispose();
              requestsBuilder_ = null;
              requests_ = other.requests_;
              bitField0_ = (bitField0_ & ~0x00000001);
              requestsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getRequestsFieldBuilder() : null;
            } else {
              requestsBuilder_.addAllMessages(other.requests_);
            }
          }
        }
        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.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest> requests_ =
        java.util.Collections.emptyList();
      private void ensureRequestsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          requests_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest>(requests_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder> requestsBuilder_;

      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest> getRequestsList() {
        if (requestsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(requests_);
        } else {
          return requestsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public int getRequestsCount() {
        if (requestsBuilder_ == null) {
          return requests_.size();
        } else {
          return requestsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest getRequests(int index) {
        if (requestsBuilder_ == null) {
          return requests_.get(index);
        } else {
          return requestsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder setRequests(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest value) {
        if (requestsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRequestsIsMutable();
          requests_.set(index, value);
          onChanged();
        } else {
          requestsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder setRequests(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder builderForValue) {
        if (requestsBuilder_ == null) {
          ensureRequestsIsMutable();
          requests_.set(index, builderForValue.build());
          onChanged();
        } else {
          requestsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder addRequests(org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest value) {
        if (requestsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRequestsIsMutable();
          requests_.add(value);
          onChanged();
        } else {
          requestsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder addRequests(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest value) {
        if (requestsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRequestsIsMutable();
          requests_.add(index, value);
          onChanged();
        } else {
          requestsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder addRequests(
          org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder builderForValue) {
        if (requestsBuilder_ == null) {
          ensureRequestsIsMutable();
          requests_.add(builderForValue.build());
          onChanged();
        } else {
          requestsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder addRequests(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder builderForValue) {
        if (requestsBuilder_ == null) {
          ensureRequestsIsMutable();
          requests_.add(index, builderForValue.build());
          onChanged();
        } else {
          requestsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder addAllRequests(
          java.lang.Iterable<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest> values) {
        if (requestsBuilder_ == null) {
          ensureRequestsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, requests_);
          onChanged();
        } else {
          requestsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder clearRequests() {
        if (requestsBuilder_ == null) {
          requests_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          requestsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public Builder removeRequests(int index) {
        if (requestsBuilder_ == null) {
          ensureRequestsIsMutable();
          requests_.remove(index);
          onChanged();
        } else {
          requestsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder getRequestsBuilder(
          int index) {
        return getRequestsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder getRequestsOrBuilder(
          int index) {
        if (requestsBuilder_ == null) {
          return requests_.get(index);  } else {
          return requestsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder> 
           getRequestsOrBuilderList() {
        if (requestsBuilder_ != null) {
          return requestsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(requests_);
        }
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder addRequestsBuilder() {
        return getRequestsFieldBuilder().addBuilder(
            org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder addRequestsBuilder(
          int index) {
        return getRequestsFieldBuilder().addBuilder(
            index, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.ScoreRequest requests = 1;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder> 
           getRequestsBuilderList() {
        return getRequestsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder> 
          getRequestsFieldBuilder() {
        if (requestsBuilder_ == null) {
          requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequest.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.ScoreRequestOrBuilder>(
                  requests_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          requests_ = null;
        }
        return requestsBuilder_;
      }
      @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:bert.BatchScoreRequest)
    }

    // @@protoc_insertion_point(class_scope:bert.BatchScoreRequest)
    private static final org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest();
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchScoreRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BatchBertLmResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:bert.BatchBertLmResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse> 
        getResponsesList();
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse getResponses(int index);
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    int getResponsesCount();
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder> 
        getResponsesOrBuilderList();
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder getResponsesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code bert.BatchBertLmResponse}
   */
  public static final class BatchBertLmResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:bert.BatchBertLmResponse)
      BatchBertLmResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BatchBertLmResponse.newBuilder() to construct.
    private BatchBertLmResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BatchBertLmResponse() {
      responses_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BatchBertLmResponse(
        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)) {
                responses_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse>();
                mutable_bitField0_ |= 0x00000001;
              }
              responses_.add(
                  input.readMessage(org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.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)) {
          responses_ = java.util.Collections.unmodifiableList(responses_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchBertLmResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchBertLmResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.Builder.class);
    }

    public static final int RESPONSES_FIELD_NUMBER = 1;
    private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse> responses_;
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    @java.lang.Override
    public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse> getResponsesList() {
      return responses_;
    }
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder> 
        getResponsesOrBuilderList() {
      return responses_;
    }
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    @java.lang.Override
    public int getResponsesCount() {
      return responses_.size();
    }
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse getResponses(int index) {
      return responses_.get(index);
    }
    /**
     * <code>repeated .bert.BertLmResponse responses = 1;</code>
     */
    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder getResponsesOrBuilder(
        int index) {
      return responses_.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 < responses_.size(); i++) {
        output.writeMessage(1, responses_.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 < responses_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, responses_.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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse)) {
        return super.equals(obj);
      }
      org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse other = (org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse) obj;

      if (!getResponsesList()
          .equals(other.getResponsesList())) 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 (getResponsesCount() > 0) {
        hash = (37 * hash) + RESPONSES_FIELD_NUMBER;
        hash = (53 * hash) + getResponsesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse 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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse 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 bert.BatchBertLmResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:bert.BatchBertLmResponse)
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchBertLmResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchBertLmResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.class, org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.Builder.class);
      }

      // Construct using org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.internal_static_bert_BatchBertLmResponse_descriptor;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse getDefaultInstanceForType() {
        return org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.getDefaultInstance();
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse build() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse buildPartial() {
        org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse result = new org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse(this);
        int from_bitField0_ = bitField0_;
        if (responsesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            responses_ = java.util.Collections.unmodifiableList(responses_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.responses_ = responses_;
        } else {
          result.responses_ = responsesBuilder_.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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse) {
          return mergeFrom((org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse other) {
        if (other == org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse.getDefaultInstance()) return this;
        if (responsesBuilder_ == null) {
          if (!other.responses_.isEmpty()) {
            if (responses_.isEmpty()) {
              responses_ = other.responses_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureResponsesIsMutable();
              responses_.addAll(other.responses_);
            }
            onChanged();
          }
        } else {
          if (!other.responses_.isEmpty()) {
            if (responsesBuilder_.isEmpty()) {
              responsesBuilder_.dispose();
              responsesBuilder_ = null;
              responses_ = other.responses_;
              bitField0_ = (bitField0_ & ~0x00000001);
              responsesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getResponsesFieldBuilder() : null;
            } else {
              responsesBuilder_.addAllMessages(other.responses_);
            }
          }
        }
        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.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse> responses_ =
        java.util.Collections.emptyList();
      private void ensureResponsesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          responses_ = new java.util.ArrayList<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse>(responses_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder> responsesBuilder_;

      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse> getResponsesList() {
        if (responsesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(responses_);
        } else {
          return responsesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public int getResponsesCount() {
        if (responsesBuilder_ == null) {
          return responses_.size();
        } else {
          return responsesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse getResponses(int index) {
        if (responsesBuilder_ == null) {
          return responses_.get(index);
        } else {
          return responsesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder setResponses(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse value) {
        if (responsesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResponsesIsMutable();
          responses_.set(index, value);
          onChanged();
        } else {
          responsesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder setResponses(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder builderForValue) {
        if (responsesBuilder_ == null) {
          ensureResponsesIsMutable();
          responses_.set(index, builderForValue.build());
          onChanged();
        } else {
          responsesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder addResponses(org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse value) {
        if (responsesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResponsesIsMutable();
          responses_.add(value);
          onChanged();
        } else {
          responsesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder addResponses(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse value) {
        if (responsesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResponsesIsMutable();
          responses_.add(index, value);
          onChanged();
        } else {
          responsesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder addResponses(
          org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder builderForValue) {
        if (responsesBuilder_ == null) {
          ensureResponsesIsMutable();
          responses_.add(builderForValue.build());
          onChanged();
        } else {
          responsesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder addResponses(
          int index, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder builderForValue) {
        if (responsesBuilder_ == null) {
          ensureResponsesIsMutable();
          responses_.add(index, builderForValue.build());
          onChanged();
        } else {
          responsesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder addAllResponses(
          java.lang.Iterable<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse> values) {
        if (responsesBuilder_ == null) {
          ensureResponsesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, responses_);
          onChanged();
        } else {
          responsesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder clearResponses() {
        if (responsesBuilder_ == null) {
          responses_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          responsesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public Builder removeResponses(int index) {
        if (responsesBuilder_ == null) {
          ensureResponsesIsMutable();
          responses_.remove(index);
          onChanged();
        } else {
          responsesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder getResponsesBuilder(
          int index) {
        return getResponsesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder getResponsesOrBuilder(
          int index) {
        if (responsesBuilder_ == null) {
          return responses_.get(index);  } else {
          return responsesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public java.util.List<? extends org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder> 
           getResponsesOrBuilderList() {
        if (responsesBuilder_ != null) {
          return responsesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(responses_);
        }
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder addResponsesBuilder() {
        return getResponsesFieldBuilder().addBuilder(
            org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder addResponsesBuilder(
          int index) {
        return getResponsesFieldBuilder().addBuilder(
            index, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.getDefaultInstance());
      }
      /**
       * <code>repeated .bert.BertLmResponse responses = 1;</code>
       */
      public java.util.List<org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder> 
           getResponsesBuilderList() {
        return getResponsesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder> 
          getResponsesFieldBuilder() {
        if (responsesBuilder_ == null) {
          responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponse.Builder, org.languagetool.languagemodel.bert.grpc.BertLmProto.BertLmResponseOrBuilder>(
                  responses_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          responses_ = null;
        }
        return responsesBuilder_;
      }
      @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:bert.BatchBertLmResponse)
    }

    // @@protoc_insertion_point(class_scope:bert.BatchBertLmResponse)
    private static final org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse();
    }

    public static org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public org.languagetool.languagemodel.bert.grpc.BertLmProto.BatchBertLmResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_bert_Mask_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_bert_Mask_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_bert_ScoreRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_bert_ScoreRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_bert_Prediction_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_bert_Prediction_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_bert_BertLmResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_bert_BertLmResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_bert_BatchScoreRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_bert_BatchScoreRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_bert_BatchBertLmResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_bert_BatchBertLmResponse_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\rbert-lm.proto\022\004bert\"6\n\004Mask\022\r\n\005start\030\001" +
      " \001(\r\022\013\n\003end\030\002 \001(\r\022\022\n\ncandidates\030\003 \003(\t\"6\n" +
      "\014ScoreRequest\022\014\n\004text\030\001 \001(\t\022\030\n\004mask\030\002 \003(" +
      "\0132\n.bert.Mask\"\033\n\nPrediction\022\r\n\005score\030\001 \003" +
      "(\001\"2\n\016BertLmResponse\022 \n\006scores\030\001 \003(\0132\020.b" +
      "ert.Prediction\"9\n\021BatchScoreRequest\022$\n\010r" +
      "equests\030\001 \003(\0132\022.bert.ScoreRequest\">\n\023Bat" +
      "chBertLmResponse\022\'\n\tresponses\030\001 \003(\0132\024.be" +
      "rt.BertLmResponse2}\n\006BertLm\0221\n\005Score\022\022.b" +
      "ert.ScoreRequest\032\024.bert.BertLmResponse\022@" +
      "\n\nBatchScore\022\027.bert.BatchScoreRequest\032\031." +
      "bert.BatchBertLmResponseB7\n(org.language" +
      "tool.languagemodel.bert.grpcB\013BertLmProt" +
      "ob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_bert_Mask_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_bert_Mask_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_bert_Mask_descriptor,
        new java.lang.String[] { "Start", "End", "Candidates", });
    internal_static_bert_ScoreRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_bert_ScoreRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_bert_ScoreRequest_descriptor,
        new java.lang.String[] { "Text", "Mask", });
    internal_static_bert_Prediction_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_bert_Prediction_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_bert_Prediction_descriptor,
        new java.lang.String[] { "Score", });
    internal_static_bert_BertLmResponse_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_bert_BertLmResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_bert_BertLmResponse_descriptor,
        new java.lang.String[] { "Scores", });
    internal_static_bert_BatchScoreRequest_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_bert_BatchScoreRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_bert_BatchScoreRequest_descriptor,
        new java.lang.String[] { "Requests", });
    internal_static_bert_BatchBertLmResponse_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_bert_BatchBertLmResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_bert_BatchBertLmResponse_descriptor,
        new java.lang.String[] { "Responses", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
