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

package com.caliverse.admin.domain.RabbitMq.message;

/**
 * Protobuf type {@code UgqBoardItem}
 */
public final class UgqBoardItem extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:UgqBoardItem)
    UgqBoardItemOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UgqBoardItem.newBuilder() to construct.
  private UgqBoardItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private UgqBoardItem() {
    title_ = "";
    titleImagePath_ = "";
    author_ = "";
    gradeType_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqBoardItem_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqBoardItem_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.class, com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.Builder.class);
  }

  private int bitField0_;
  public static final int COMPOSEDQUESTID_FIELD_NUMBER = 1;
  private long composedQuestId_ = 0L;
  /**
   * <pre>
   *UgqQuestId ugqQuestId = 1;
   * </pre>
   *
   * <code>int64 composedQuestId = 1;</code>
   * @return The composedQuestId.
   */
  @java.lang.Override
  public long getComposedQuestId() {
    return composedQuestId_;
  }

  public static final int TITLE_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object title_ = "";
  /**
   * <code>optional string title = 2;</code>
   * @return Whether the title field is set.
   */
  @java.lang.Override
  public boolean hasTitle() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>optional string title = 2;</code>
   * @return The title.
   */
  @java.lang.Override
  public java.lang.String getTitle() {
    java.lang.Object ref = title_;
    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();
      title_ = s;
      return s;
    }
  }
  /**
   * <code>optional string title = 2;</code>
   * @return The bytes for title.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTitleBytes() {
    java.lang.Object ref = title_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      title_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TITLEIMAGEPATH_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object titleImagePath_ = "";
  /**
   * <code>optional string titleImagePath = 3;</code>
   * @return Whether the titleImagePath field is set.
   */
  @java.lang.Override
  public boolean hasTitleImagePath() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * <code>optional string titleImagePath = 3;</code>
   * @return The titleImagePath.
   */
  @java.lang.Override
  public java.lang.String getTitleImagePath() {
    java.lang.Object ref = titleImagePath_;
    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();
      titleImagePath_ = s;
      return s;
    }
  }
  /**
   * <code>optional string titleImagePath = 3;</code>
   * @return The bytes for titleImagePath.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTitleImagePathBytes() {
    java.lang.Object ref = titleImagePath_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      titleImagePath_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LIKECOUNT_FIELD_NUMBER = 4;
  private int likeCount_ = 0;
  /**
   * <code>int32 likeCount = 4;</code>
   * @return The likeCount.
   */
  @java.lang.Override
  public int getLikeCount() {
    return likeCount_;
  }

  public static final int BOOKMARKCOUNT_FIELD_NUMBER = 5;
  private int bookmarkCount_ = 0;
  /**
   * <code>int32 bookmarkCount = 5;</code>
   * @return The bookmarkCount.
   */
  @java.lang.Override
  public int getBookmarkCount() {
    return bookmarkCount_;
  }

  public static final int AUTHOR_FIELD_NUMBER = 6;
  @SuppressWarnings("serial")
  private volatile java.lang.Object author_ = "";
  /**
   * <code>optional string author = 6;</code>
   * @return Whether the author field is set.
   */
  @java.lang.Override
  public boolean hasAuthor() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * <code>optional string author = 6;</code>
   * @return The author.
   */
  @java.lang.Override
  public java.lang.String getAuthor() {
    java.lang.Object ref = author_;
    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();
      author_ = s;
      return s;
    }
  }
  /**
   * <code>optional string author = 6;</code>
   * @return The bytes for author.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAuthorBytes() {
    java.lang.Object ref = author_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      author_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GRADETYPE_FIELD_NUMBER = 7;
  private int gradeType_ = 0;
  /**
   * <code>.UgqGradeType gradeType = 7;</code>
   * @return The enum numeric value on the wire for gradeType.
   */
  @java.lang.Override public int getGradeTypeValue() {
    return gradeType_;
  }
  /**
   * <code>.UgqGradeType gradeType = 7;</code>
   * @return The gradeType.
   */
  @java.lang.Override public com.caliverse.admin.domain.RabbitMq.message.UgqGradeType getGradeType() {
    com.caliverse.admin.domain.RabbitMq.message.UgqGradeType result = com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.forNumber(gradeType_);
    return result == null ? com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.UNRECOGNIZED : result;
  }

  public static final int COST_FIELD_NUMBER = 8;
  private int cost_ = 0;
  /**
   * <code>int32 cost = 8;</code>
   * @return The cost.
   */
  @java.lang.Override
  public int getCost() {
    return cost_;
  }

  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 (composedQuestId_ != 0L) {
      output.writeInt64(1, composedQuestId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, titleImagePath_);
    }
    if (likeCount_ != 0) {
      output.writeInt32(4, likeCount_);
    }
    if (bookmarkCount_ != 0) {
      output.writeInt32(5, bookmarkCount_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, author_);
    }
    if (gradeType_ != com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.UgqGradeType_None.getNumber()) {
      output.writeEnum(7, gradeType_);
    }
    if (cost_ != 0) {
      output.writeInt32(8, cost_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (composedQuestId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(1, composedQuestId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, titleImagePath_);
    }
    if (likeCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, likeCount_);
    }
    if (bookmarkCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, bookmarkCount_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, author_);
    }
    if (gradeType_ != com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.UgqGradeType_None.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(7, gradeType_);
    }
    if (cost_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, cost_);
    }
    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.caliverse.admin.domain.RabbitMq.message.UgqBoardItem)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem other = (com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem) obj;

    if (getComposedQuestId()
        != other.getComposedQuestId()) return false;
    if (hasTitle() != other.hasTitle()) return false;
    if (hasTitle()) {
      if (!getTitle()
          .equals(other.getTitle())) return false;
    }
    if (hasTitleImagePath() != other.hasTitleImagePath()) return false;
    if (hasTitleImagePath()) {
      if (!getTitleImagePath()
          .equals(other.getTitleImagePath())) return false;
    }
    if (getLikeCount()
        != other.getLikeCount()) return false;
    if (getBookmarkCount()
        != other.getBookmarkCount()) return false;
    if (hasAuthor() != other.hasAuthor()) return false;
    if (hasAuthor()) {
      if (!getAuthor()
          .equals(other.getAuthor())) return false;
    }
    if (gradeType_ != other.gradeType_) return false;
    if (getCost()
        != other.getCost()) 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) + COMPOSEDQUESTID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getComposedQuestId());
    if (hasTitle()) {
      hash = (37 * hash) + TITLE_FIELD_NUMBER;
      hash = (53 * hash) + getTitle().hashCode();
    }
    if (hasTitleImagePath()) {
      hash = (37 * hash) + TITLEIMAGEPATH_FIELD_NUMBER;
      hash = (53 * hash) + getTitleImagePath().hashCode();
    }
    hash = (37 * hash) + LIKECOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getLikeCount();
    hash = (37 * hash) + BOOKMARKCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getBookmarkCount();
    if (hasAuthor()) {
      hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
      hash = (53 * hash) + getAuthor().hashCode();
    }
    hash = (37 * hash) + GRADETYPE_FIELD_NUMBER;
    hash = (53 * hash) + gradeType_;
    hash = (37 * hash) + COST_FIELD_NUMBER;
    hash = (53 * hash) + getCost();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem 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.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem 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.caliverse.admin.domain.RabbitMq.message.UgqBoardItem parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem 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.caliverse.admin.domain.RabbitMq.message.UgqBoardItem 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 UgqBoardItem}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:UgqBoardItem)
      com.caliverse.admin.domain.RabbitMq.message.UgqBoardItemOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqBoardItem_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqBoardItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.class, com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.Builder.class);
    }

    // Construct using com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      composedQuestId_ = 0L;
      title_ = "";
      titleImagePath_ = "";
      likeCount_ = 0;
      bookmarkCount_ = 0;
      author_ = "";
      gradeType_ = 0;
      cost_ = 0;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqBoardItem_descriptor;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem getDefaultInstanceForType() {
      return com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.getDefaultInstance();
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem build() {
      com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem buildPartial() {
      com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem result = new com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.composedQuestId_ = composedQuestId_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.title_ = title_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.titleImagePath_ = titleImagePath_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.likeCount_ = likeCount_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.bookmarkCount_ = bookmarkCount_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.author_ = author_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.gradeType_ = gradeType_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.cost_ = cost_;
      }
      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.caliverse.admin.domain.RabbitMq.message.UgqBoardItem) {
        return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem.getDefaultInstance()) return this;
      if (other.getComposedQuestId() != 0L) {
        setComposedQuestId(other.getComposedQuestId());
      }
      if (other.hasTitle()) {
        title_ = other.title_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.hasTitleImagePath()) {
        titleImagePath_ = other.titleImagePath_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (other.getLikeCount() != 0) {
        setLikeCount(other.getLikeCount());
      }
      if (other.getBookmarkCount() != 0) {
        setBookmarkCount(other.getBookmarkCount());
      }
      if (other.hasAuthor()) {
        author_ = other.author_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.gradeType_ != 0) {
        setGradeTypeValue(other.getGradeTypeValue());
      }
      if (other.getCost() != 0) {
        setCost(other.getCost());
      }
      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: {
              composedQuestId_ = input.readInt64();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 18: {
              title_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              titleImagePath_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 32: {
              likeCount_ = input.readInt32();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 40: {
              bookmarkCount_ = input.readInt32();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 50: {
              author_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            case 56: {
              gradeType_ = input.readEnum();
              bitField0_ |= 0x00000040;
              break;
            } // case 56
            case 64: {
              cost_ = input.readInt32();
              bitField0_ |= 0x00000080;
              break;
            } // case 64
            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 long composedQuestId_ ;
    /**
     * <pre>
     *UgqQuestId ugqQuestId = 1;
     * </pre>
     *
     * <code>int64 composedQuestId = 1;</code>
     * @return The composedQuestId.
     */
    @java.lang.Override
    public long getComposedQuestId() {
      return composedQuestId_;
    }
    /**
     * <pre>
     *UgqQuestId ugqQuestId = 1;
     * </pre>
     *
     * <code>int64 composedQuestId = 1;</code>
     * @param value The composedQuestId to set.
     * @return This builder for chaining.
     */
    public Builder setComposedQuestId(long value) {
      
      composedQuestId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *UgqQuestId ugqQuestId = 1;
     * </pre>
     *
     * <code>int64 composedQuestId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearComposedQuestId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      composedQuestId_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object title_ = "";
    /**
     * <code>optional string title = 2;</code>
     * @return Whether the title field is set.
     */
    public boolean hasTitle() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>optional string title = 2;</code>
     * @return The title.
     */
    public java.lang.String getTitle() {
      java.lang.Object ref = title_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        title_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string title = 2;</code>
     * @return The bytes for title.
     */
    public com.google.protobuf.ByteString
        getTitleBytes() {
      java.lang.Object ref = title_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        title_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string title = 2;</code>
     * @param value The title to set.
     * @return This builder for chaining.
     */
    public Builder setTitle(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      title_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>optional string title = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearTitle() {
      title_ = getDefaultInstance().getTitle();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * <code>optional string title = 2;</code>
     * @param value The bytes for title to set.
     * @return This builder for chaining.
     */
    public Builder setTitleBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      title_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object titleImagePath_ = "";
    /**
     * <code>optional string titleImagePath = 3;</code>
     * @return Whether the titleImagePath field is set.
     */
    public boolean hasTitleImagePath() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>optional string titleImagePath = 3;</code>
     * @return The titleImagePath.
     */
    public java.lang.String getTitleImagePath() {
      java.lang.Object ref = titleImagePath_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        titleImagePath_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string titleImagePath = 3;</code>
     * @return The bytes for titleImagePath.
     */
    public com.google.protobuf.ByteString
        getTitleImagePathBytes() {
      java.lang.Object ref = titleImagePath_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        titleImagePath_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string titleImagePath = 3;</code>
     * @param value The titleImagePath to set.
     * @return This builder for chaining.
     */
    public Builder setTitleImagePath(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      titleImagePath_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>optional string titleImagePath = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearTitleImagePath() {
      titleImagePath_ = getDefaultInstance().getTitleImagePath();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>optional string titleImagePath = 3;</code>
     * @param value The bytes for titleImagePath to set.
     * @return This builder for chaining.
     */
    public Builder setTitleImagePathBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      titleImagePath_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private int likeCount_ ;
    /**
     * <code>int32 likeCount = 4;</code>
     * @return The likeCount.
     */
    @java.lang.Override
    public int getLikeCount() {
      return likeCount_;
    }
    /**
     * <code>int32 likeCount = 4;</code>
     * @param value The likeCount to set.
     * @return This builder for chaining.
     */
    public Builder setLikeCount(int value) {
      
      likeCount_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>int32 likeCount = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearLikeCount() {
      bitField0_ = (bitField0_ & ~0x00000008);
      likeCount_ = 0;
      onChanged();
      return this;
    }

    private int bookmarkCount_ ;
    /**
     * <code>int32 bookmarkCount = 5;</code>
     * @return The bookmarkCount.
     */
    @java.lang.Override
    public int getBookmarkCount() {
      return bookmarkCount_;
    }
    /**
     * <code>int32 bookmarkCount = 5;</code>
     * @param value The bookmarkCount to set.
     * @return This builder for chaining.
     */
    public Builder setBookmarkCount(int value) {
      
      bookmarkCount_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>int32 bookmarkCount = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearBookmarkCount() {
      bitField0_ = (bitField0_ & ~0x00000010);
      bookmarkCount_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object author_ = "";
    /**
     * <code>optional string author = 6;</code>
     * @return Whether the author field is set.
     */
    public boolean hasAuthor() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * <code>optional string author = 6;</code>
     * @return The author.
     */
    public java.lang.String getAuthor() {
      java.lang.Object ref = author_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        author_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string author = 6;</code>
     * @return The bytes for author.
     */
    public com.google.protobuf.ByteString
        getAuthorBytes() {
      java.lang.Object ref = author_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        author_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string author = 6;</code>
     * @param value The author to set.
     * @return This builder for chaining.
     */
    public Builder setAuthor(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      author_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>optional string author = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearAuthor() {
      author_ = getDefaultInstance().getAuthor();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     * <code>optional string author = 6;</code>
     * @param value The bytes for author to set.
     * @return This builder for chaining.
     */
    public Builder setAuthorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      author_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private int gradeType_ = 0;
    /**
     * <code>.UgqGradeType gradeType = 7;</code>
     * @return The enum numeric value on the wire for gradeType.
     */
    @java.lang.Override public int getGradeTypeValue() {
      return gradeType_;
    }
    /**
     * <code>.UgqGradeType gradeType = 7;</code>
     * @param value The enum numeric value on the wire for gradeType to set.
     * @return This builder for chaining.
     */
    public Builder setGradeTypeValue(int value) {
      gradeType_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGradeType gradeType = 7;</code>
     * @return The gradeType.
     */
    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqGradeType getGradeType() {
      com.caliverse.admin.domain.RabbitMq.message.UgqGradeType result = com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.forNumber(gradeType_);
      return result == null ? com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.UNRECOGNIZED : result;
    }
    /**
     * <code>.UgqGradeType gradeType = 7;</code>
     * @param value The gradeType to set.
     * @return This builder for chaining.
     */
    public Builder setGradeType(com.caliverse.admin.domain.RabbitMq.message.UgqGradeType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000040;
      gradeType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGradeType gradeType = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearGradeType() {
      bitField0_ = (bitField0_ & ~0x00000040);
      gradeType_ = 0;
      onChanged();
      return this;
    }

    private int cost_ ;
    /**
     * <code>int32 cost = 8;</code>
     * @return The cost.
     */
    @java.lang.Override
    public int getCost() {
      return cost_;
    }
    /**
     * <code>int32 cost = 8;</code>
     * @param value The cost to set.
     * @return This builder for chaining.
     */
    public Builder setCost(int value) {
      
      cost_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>int32 cost = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearCost() {
      bitField0_ = (bitField0_ & ~0x00000080);
      cost_ = 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:UgqBoardItem)
  }

  // @@protoc_insertion_point(class_scope:UgqBoardItem)
  private static final com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem();
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<UgqBoardItem>
      PARSER = new com.google.protobuf.AbstractParser<UgqBoardItem>() {
    @java.lang.Override
    public UgqBoardItem 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<UgqBoardItem> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqBoardItem getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

