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

package com.github.iapt_platform.mint.plugins.tulip.v1;

/**
 * Protobuf type {@code mint.tulip.v1.SearchResponse}
 */
public final class SearchResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:mint.tulip.v1.SearchResponse)
    SearchResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SearchResponse.newBuilder() to construct.
  private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SearchResponse() {
    items_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.class, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Builder.class);
  }

  public interface ItemOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mint.tulip.v1.SearchResponse.Item)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 rank = 1;</code>
     * @return The rank.
     */
    int getRank();

    /**
     * <code>string highlight = 2;</code>
     * @return The highlight.
     */
    java.lang.String getHighlight();
    /**
     * <code>string highlight = 2;</code>
     * @return The bytes for highlight.
     */
    com.google.protobuf.ByteString
        getHighlightBytes();

    /**
     * <code>int32 book = 3;</code>
     * @return The book.
     */
    int getBook();

    /**
     * <code>int32 paragraph = 4;</code>
     * @return The paragraph.
     */
    int getParagraph();

    /**
     * <code>string content = 5;</code>
     * @return The content.
     */
    java.lang.String getContent();
    /**
     * <code>string content = 5;</code>
     * @return The bytes for content.
     */
    com.google.protobuf.ByteString
        getContentBytes();
  }
  /**
   * Protobuf type {@code mint.tulip.v1.SearchResponse.Item}
   */
  public static final class Item extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:mint.tulip.v1.SearchResponse.Item)
      ItemOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Item.newBuilder() to construct.
    private Item(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Item() {
      highlight_ = "";
      content_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_Item_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_Item_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.class, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder.class);
    }

    public static final int RANK_FIELD_NUMBER = 1;
    private int rank_ = 0;
    /**
     * <code>int32 rank = 1;</code>
     * @return The rank.
     */
    @java.lang.Override
    public int getRank() {
      return rank_;
    }

    public static final int HIGHLIGHT_FIELD_NUMBER = 2;
    @SuppressWarnings("serial")
    private volatile java.lang.Object highlight_ = "";
    /**
     * <code>string highlight = 2;</code>
     * @return The highlight.
     */
    @java.lang.Override
    public java.lang.String getHighlight() {
      java.lang.Object ref = highlight_;
      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();
        highlight_ = s;
        return s;
      }
    }
    /**
     * <code>string highlight = 2;</code>
     * @return The bytes for highlight.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getHighlightBytes() {
      java.lang.Object ref = highlight_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        highlight_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int BOOK_FIELD_NUMBER = 3;
    private int book_ = 0;
    /**
     * <code>int32 book = 3;</code>
     * @return The book.
     */
    @java.lang.Override
    public int getBook() {
      return book_;
    }

    public static final int PARAGRAPH_FIELD_NUMBER = 4;
    private int paragraph_ = 0;
    /**
     * <code>int32 paragraph = 4;</code>
     * @return The paragraph.
     */
    @java.lang.Override
    public int getParagraph() {
      return paragraph_;
    }

    public static final int CONTENT_FIELD_NUMBER = 5;
    @SuppressWarnings("serial")
    private volatile java.lang.Object content_ = "";
    /**
     * <code>string content = 5;</code>
     * @return The content.
     */
    @java.lang.Override
    public java.lang.String getContent() {
      java.lang.Object ref = content_;
      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();
        content_ = s;
        return s;
      }
    }
    /**
     * <code>string content = 5;</code>
     * @return The bytes for content.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getContentBytes() {
      java.lang.Object ref = content_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        content_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (rank_ != 0) {
        output.writeInt32(1, rank_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(highlight_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, highlight_);
      }
      if (book_ != 0) {
        output.writeInt32(3, book_);
      }
      if (paragraph_ != 0) {
        output.writeInt32(4, paragraph_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, content_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (rank_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, rank_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(highlight_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, highlight_);
      }
      if (book_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, book_);
      }
      if (paragraph_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, paragraph_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, content_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item)) {
        return super.equals(obj);
      }
      com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item other = (com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item) obj;

      if (getRank()
          != other.getRank()) return false;
      if (!getHighlight()
          .equals(other.getHighlight())) return false;
      if (getBook()
          != other.getBook()) return false;
      if (getParagraph()
          != other.getParagraph()) return false;
      if (!getContent()
          .equals(other.getContent())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) 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) + RANK_FIELD_NUMBER;
      hash = (53 * hash) + getRank();
      hash = (37 * hash) + HIGHLIGHT_FIELD_NUMBER;
      hash = (53 * hash) + getHighlight().hashCode();
      hash = (37 * hash) + BOOK_FIELD_NUMBER;
      hash = (53 * hash) + getBook();
      hash = (37 * hash) + PARAGRAPH_FIELD_NUMBER;
      hash = (53 * hash) + getParagraph();
      hash = (37 * hash) + CONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getContent().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item 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 com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item 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 com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item 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(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item 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 mint.tulip.v1.SearchResponse.Item}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:mint.tulip.v1.SearchResponse.Item)
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_Item_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_Item_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.class, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder.class);
      }

      // Construct using com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        rank_ = 0;
        highlight_ = "";
        book_ = 0;
        paragraph_ = 0;
        content_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_Item_descriptor;
      }

      @java.lang.Override
      public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item getDefaultInstanceForType() {
        return com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.getDefaultInstance();
      }

      @java.lang.Override
      public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item build() {
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item buildPartial() {
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item result = new com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.rank_ = rank_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.highlight_ = highlight_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.book_ = book_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.paragraph_ = paragraph_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.content_ = content_;
        }
      }

      @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 com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item) {
          return mergeFrom((com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item other) {
        if (other == com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.getDefaultInstance()) return this;
        if (other.getRank() != 0) {
          setRank(other.getRank());
        }
        if (!other.getHighlight().isEmpty()) {
          highlight_ = other.highlight_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (other.getBook() != 0) {
          setBook(other.getBook());
        }
        if (other.getParagraph() != 0) {
          setParagraph(other.getParagraph());
        }
        if (!other.getContent().isEmpty()) {
          content_ = other.content_;
          bitField0_ |= 0x00000010;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                rank_ = input.readInt32();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 18: {
                highlight_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              case 24: {
                book_ = input.readInt32();
                bitField0_ |= 0x00000004;
                break;
              } // case 24
              case 32: {
                paragraph_ = input.readInt32();
                bitField0_ |= 0x00000008;
                break;
              } // case 32
              case 42: {
                content_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private int rank_ ;
      /**
       * <code>int32 rank = 1;</code>
       * @return The rank.
       */
      @java.lang.Override
      public int getRank() {
        return rank_;
      }
      /**
       * <code>int32 rank = 1;</code>
       * @param value The rank to set.
       * @return This builder for chaining.
       */
      public Builder setRank(int value) {

        rank_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * <code>int32 rank = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearRank() {
        bitField0_ = (bitField0_ & ~0x00000001);
        rank_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object highlight_ = "";
      /**
       * <code>string highlight = 2;</code>
       * @return The highlight.
       */
      public java.lang.String getHighlight() {
        java.lang.Object ref = highlight_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          highlight_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string highlight = 2;</code>
       * @return The bytes for highlight.
       */
      public com.google.protobuf.ByteString
          getHighlightBytes() {
        java.lang.Object ref = highlight_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          highlight_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string highlight = 2;</code>
       * @param value The highlight to set.
       * @return This builder for chaining.
       */
      public Builder setHighlight(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        highlight_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * <code>string highlight = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearHighlight() {
        highlight_ = getDefaultInstance().getHighlight();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * <code>string highlight = 2;</code>
       * @param value The bytes for highlight to set.
       * @return This builder for chaining.
       */
      public Builder setHighlightBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        highlight_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private int book_ ;
      /**
       * <code>int32 book = 3;</code>
       * @return The book.
       */
      @java.lang.Override
      public int getBook() {
        return book_;
      }
      /**
       * <code>int32 book = 3;</code>
       * @param value The book to set.
       * @return This builder for chaining.
       */
      public Builder setBook(int value) {

        book_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * <code>int32 book = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearBook() {
        bitField0_ = (bitField0_ & ~0x00000004);
        book_ = 0;
        onChanged();
        return this;
      }

      private int paragraph_ ;
      /**
       * <code>int32 paragraph = 4;</code>
       * @return The paragraph.
       */
      @java.lang.Override
      public int getParagraph() {
        return paragraph_;
      }
      /**
       * <code>int32 paragraph = 4;</code>
       * @param value The paragraph to set.
       * @return This builder for chaining.
       */
      public Builder setParagraph(int value) {

        paragraph_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * <code>int32 paragraph = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearParagraph() {
        bitField0_ = (bitField0_ & ~0x00000008);
        paragraph_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object content_ = "";
      /**
       * <code>string content = 5;</code>
       * @return The content.
       */
      public java.lang.String getContent() {
        java.lang.Object ref = content_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          content_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string content = 5;</code>
       * @return The bytes for content.
       */
      public com.google.protobuf.ByteString
          getContentBytes() {
        java.lang.Object ref = content_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          content_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string content = 5;</code>
       * @param value The content to set.
       * @return This builder for chaining.
       */
      public Builder setContent(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        content_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * <code>string content = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearContent() {
        content_ = getDefaultInstance().getContent();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       * <code>string content = 5;</code>
       * @param value The bytes for content to set.
       * @return This builder for chaining.
       */
      public Builder setContentBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        content_ = value;
        bitField0_ |= 0x00000010;
        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:mint.tulip.v1.SearchResponse.Item)
    }

    // @@protoc_insertion_point(class_scope:mint.tulip.v1.SearchResponse.Item)
    private static final com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item();
    }

    public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Item>
        PARSER = new com.google.protobuf.AbstractParser<Item>() {
      @java.lang.Override
      public Item parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int bitField0_;
  public static final int ITEMS_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List<com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item> items_;
  /**
   * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item> getItemsList() {
    return items_;
  }
  /**
   * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder> 
      getItemsOrBuilderList() {
    return items_;
  }
  /**
   * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
   */
  @java.lang.Override
  public int getItemsCount() {
    return items_.size();
  }
  /**
   * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
   */
  @java.lang.Override
  public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item getItems(int index) {
    return items_.get(index);
  }
  /**
   * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
   */
  @java.lang.Override
  public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder getItemsOrBuilder(
      int index) {
    return items_.get(index);
  }

  public static final int PAGE_FIELD_NUMBER = 98;
  private com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page page_;
  /**
   * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
   * @return Whether the page field is set.
   */
  @java.lang.Override
  public boolean hasPage() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
   * @return The page.
   */
  @java.lang.Override
  public com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page getPage() {
    return page_ == null ? com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.getDefaultInstance() : page_;
  }
  /**
   * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
   */
  @java.lang.Override
  public com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.PageOrBuilder getPageOrBuilder() {
    return page_ == null ? com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.getDefaultInstance() : page_;
  }

  public static final int TOTAL_FIELD_NUMBER = 99;
  private int total_ = 0;
  /**
   * <code>int32 total = 99;</code>
   * @return The total.
   */
  @java.lang.Override
  public int getTotal() {
    return total_;
  }

  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 < items_.size(); i++) {
      output.writeMessage(1, items_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(98, getPage());
    }
    if (total_ != 0) {
      output.writeInt32(99, total_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < items_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, items_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(98, getPage());
    }
    if (total_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(99, total_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse)) {
      return super.equals(obj);
    }
    com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse other = (com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse) obj;

    if (!getItemsList()
        .equals(other.getItemsList())) return false;
    if (hasPage() != other.hasPage()) return false;
    if (hasPage()) {
      if (!getPage()
          .equals(other.getPage())) return false;
    }
    if (getTotal()
        != other.getTotal()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getItemsCount() > 0) {
      hash = (37 * hash) + ITEMS_FIELD_NUMBER;
      hash = (53 * hash) + getItemsList().hashCode();
    }
    if (hasPage()) {
      hash = (37 * hash) + PAGE_FIELD_NUMBER;
      hash = (53 * hash) + getPage().hashCode();
    }
    hash = (37 * hash) + TOTAL_FIELD_NUMBER;
    hash = (53 * hash) + getTotal();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse 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 com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse 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 com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse 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(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse 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 mint.tulip.v1.SearchResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:mint.tulip.v1.SearchResponse)
      com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.class, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Builder.class);
    }

    // Construct using com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getItemsFieldBuilder();
        getPageFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (itemsBuilder_ == null) {
        items_ = java.util.Collections.emptyList();
      } else {
        items_ = null;
        itemsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      page_ = null;
      if (pageBuilder_ != null) {
        pageBuilder_.dispose();
        pageBuilder_ = null;
      }
      total_ = 0;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.github.iapt_platform.mint.plugins.tulip.v1.Tulip.internal_static_mint_tulip_v1_SearchResponse_descriptor;
    }

    @java.lang.Override
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse getDefaultInstanceForType() {
      return com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse build() {
      com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse buildPartial() {
      com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse result = new com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse result) {
      if (itemsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          items_ = java.util.Collections.unmodifiableList(items_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.items_ = items_;
      } else {
        result.items_ = itemsBuilder_.build();
      }
    }

    private void buildPartial0(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.page_ = pageBuilder_ == null
            ? page_
            : pageBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.total_ = total_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @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 com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse) {
        return mergeFrom((com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse other) {
      if (other == com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.getDefaultInstance()) return this;
      if (itemsBuilder_ == null) {
        if (!other.items_.isEmpty()) {
          if (items_.isEmpty()) {
            items_ = other.items_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureItemsIsMutable();
            items_.addAll(other.items_);
          }
          onChanged();
        }
      } else {
        if (!other.items_.isEmpty()) {
          if (itemsBuilder_.isEmpty()) {
            itemsBuilder_.dispose();
            itemsBuilder_ = null;
            items_ = other.items_;
            bitField0_ = (bitField0_ & ~0x00000001);
            itemsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getItemsFieldBuilder() : null;
          } else {
            itemsBuilder_.addAllMessages(other.items_);
          }
        }
      }
      if (other.hasPage()) {
        mergePage(other.getPage());
      }
      if (other.getTotal() != 0) {
        setTotal(other.getTotal());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item m =
                  input.readMessage(
                      com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.parser(),
                      extensionRegistry);
              if (itemsBuilder_ == null) {
                ensureItemsIsMutable();
                items_.add(m);
              } else {
                itemsBuilder_.addMessage(m);
              }
              break;
            } // case 10
            case 786: {
              input.readMessage(
                  getPageFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 786
            case 792: {
              total_ = input.readInt32();
              bitField0_ |= 0x00000004;
              break;
            } // case 792
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.util.List<com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item> items_ =
      java.util.Collections.emptyList();
    private void ensureItemsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        items_ = new java.util.ArrayList<com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item>(items_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder> itemsBuilder_;

    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public java.util.List<com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item> getItemsList() {
      if (itemsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(items_);
      } else {
        return itemsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public int getItemsCount() {
      if (itemsBuilder_ == null) {
        return items_.size();
      } else {
        return itemsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item getItems(int index) {
      if (itemsBuilder_ == null) {
        return items_.get(index);
      } else {
        return itemsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder setItems(
        int index, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item value) {
      if (itemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemsIsMutable();
        items_.set(index, value);
        onChanged();
      } else {
        itemsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder setItems(
        int index, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder builderForValue) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.set(index, builderForValue.build());
        onChanged();
      } else {
        itemsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder addItems(com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item value) {
      if (itemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemsIsMutable();
        items_.add(value);
        onChanged();
      } else {
        itemsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder addItems(
        int index, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item value) {
      if (itemsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureItemsIsMutable();
        items_.add(index, value);
        onChanged();
      } else {
        itemsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder addItems(
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder builderForValue) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.add(builderForValue.build());
        onChanged();
      } else {
        itemsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder addItems(
        int index, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder builderForValue) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.add(index, builderForValue.build());
        onChanged();
      } else {
        itemsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder addAllItems(
        java.lang.Iterable<? extends com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item> values) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, items_);
        onChanged();
      } else {
        itemsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder clearItems() {
      if (itemsBuilder_ == null) {
        items_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        itemsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public Builder removeItems(int index) {
      if (itemsBuilder_ == null) {
        ensureItemsIsMutable();
        items_.remove(index);
        onChanged();
      } else {
        itemsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder getItemsBuilder(
        int index) {
      return getItemsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder getItemsOrBuilder(
        int index) {
      if (itemsBuilder_ == null) {
        return items_.get(index);  } else {
        return itemsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public java.util.List<? extends com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder> 
         getItemsOrBuilderList() {
      if (itemsBuilder_ != null) {
        return itemsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(items_);
      }
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder addItemsBuilder() {
      return getItemsFieldBuilder().addBuilder(
          com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.getDefaultInstance());
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder addItemsBuilder(
        int index) {
      return getItemsFieldBuilder().addBuilder(
          index, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.getDefaultInstance());
    }
    /**
     * <code>repeated .mint.tulip.v1.SearchResponse.Item items = 1;</code>
     */
    public java.util.List<com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder> 
         getItemsBuilderList() {
      return getItemsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder> 
        getItemsFieldBuilder() {
      if (itemsBuilder_ == null) {
        itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.Item.Builder, com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse.ItemOrBuilder>(
                items_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        items_ = null;
      }
      return itemsBuilder_;
    }

    private com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page page_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page, com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.Builder, com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.PageOrBuilder> pageBuilder_;
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     * @return Whether the page field is set.
     */
    public boolean hasPage() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     * @return The page.
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page getPage() {
      if (pageBuilder_ == null) {
        return page_ == null ? com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.getDefaultInstance() : page_;
      } else {
        return pageBuilder_.getMessage();
      }
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    public Builder setPage(com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page value) {
      if (pageBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        page_ = value;
      } else {
        pageBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    public Builder setPage(
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.Builder builderForValue) {
      if (pageBuilder_ == null) {
        page_ = builderForValue.build();
      } else {
        pageBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    public Builder mergePage(com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page value) {
      if (pageBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          page_ != null &&
          page_ != com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.getDefaultInstance()) {
          getPageBuilder().mergeFrom(value);
        } else {
          page_ = value;
        }
      } else {
        pageBuilder_.mergeFrom(value);
      }
      if (page_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    public Builder clearPage() {
      bitField0_ = (bitField0_ & ~0x00000002);
      page_ = null;
      if (pageBuilder_ != null) {
        pageBuilder_.dispose();
        pageBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.Builder getPageBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getPageFieldBuilder().getBuilder();
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    public com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.PageOrBuilder getPageOrBuilder() {
      if (pageBuilder_ != null) {
        return pageBuilder_.getMessageOrBuilder();
      } else {
        return page_ == null ?
            com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.getDefaultInstance() : page_;
      }
    }
    /**
     * <code>.mint.tulip.v1.SearchRequest.Page page = 98;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page, com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.Builder, com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.PageOrBuilder> 
        getPageFieldBuilder() {
      if (pageBuilder_ == null) {
        pageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page, com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.Page.Builder, com.github.iapt_platform.mint.plugins.tulip.v1.SearchRequest.PageOrBuilder>(
                getPage(),
                getParentForChildren(),
                isClean());
        page_ = null;
      }
      return pageBuilder_;
    }

    private int total_ ;
    /**
     * <code>int32 total = 99;</code>
     * @return The total.
     */
    @java.lang.Override
    public int getTotal() {
      return total_;
    }
    /**
     * <code>int32 total = 99;</code>
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(int value) {

      total_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total = 99;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      bitField0_ = (bitField0_ & ~0x00000004);
      total_ = 0;
      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:mint.tulip.v1.SearchResponse)
  }

  // @@protoc_insertion_point(class_scope:mint.tulip.v1.SearchResponse)
  private static final com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse();
  }

  public static com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<SearchResponse>
      PARSER = new com.google.protobuf.AbstractParser<SearchResponse>() {
    @java.lang.Override
    public SearchResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.github.iapt_platform.mint.plugins.tulip.v1.SearchResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

