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

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

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

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

  @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_UgqGameQuestDataSimple_descriptor;
  }

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

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

  public static final int REVISION_FIELD_NUMBER = 2;
  private int revision_ = 0;
  /**
   * <code>int32 revision = 2;</code>
   * @return The revision.
   */
  @java.lang.Override
  public int getRevision() {
    return revision_;
  }

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

  public static final int AUTHOR_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object author_ = "";
  /**
   * <code>string author = 4;</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>string author = 4;</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 = 5;
  private int gradeType_ = 0;
  /**
   * <code>.UgqGradeType gradeType = 5;</code>
   * @return The enum numeric value on the wire for gradeType.
   */
  @java.lang.Override public int getGradeTypeValue() {
    return gradeType_;
  }
  /**
   * <code>.UgqGradeType gradeType = 5;</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 STATE_FIELD_NUMBER = 6;
  @SuppressWarnings("serial")
  private volatile java.lang.Object state_ = "";
  /**
   * <code>string state = 6;</code>
   * @return The state.
   */
  @java.lang.Override
  public java.lang.String getState() {
    java.lang.Object ref = state_;
    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();
      state_ = s;
      return s;
    }
  }
  /**
   * <code>string state = 6;</code>
   * @return The bytes for state.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStateBytes() {
    java.lang.Object ref = state_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      state_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int SHUTDOWN_FIELD_NUMBER = 8;
  private int shutdown_ = 0;
  /**
   * <code>.BoolType shutdown = 8;</code>
   * @return The enum numeric value on the wire for shutdown.
   */
  @java.lang.Override public int getShutdownValue() {
    return shutdown_;
  }
  /**
   * <code>.BoolType shutdown = 8;</code>
   * @return The shutdown.
   */
  @java.lang.Override public com.caliverse.admin.domain.RabbitMq.message.BoolType getShutdown() {
    com.caliverse.admin.domain.RabbitMq.message.BoolType result = com.caliverse.admin.domain.RabbitMq.message.BoolType.forNumber(shutdown_);
    return result == null ? com.caliverse.admin.domain.RabbitMq.message.BoolType.UNRECOGNIZED : result;
  }

  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 (revision_ != 0) {
      output.writeInt32(2, revision_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userGuid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userGuid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(author_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, author_);
    }
    if (gradeType_ != com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.UgqGradeType_None.getNumber()) {
      output.writeEnum(5, gradeType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, state_);
    }
    if (cost_ != 0) {
      output.writeInt32(7, cost_);
    }
    if (shutdown_ != com.caliverse.admin.domain.RabbitMq.message.BoolType.BoolType_None.getNumber()) {
      output.writeEnum(8, shutdown_);
    }
    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 (revision_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, revision_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userGuid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userGuid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(author_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, author_);
    }
    if (gradeType_ != com.caliverse.admin.domain.RabbitMq.message.UgqGradeType.UgqGradeType_None.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(5, gradeType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, state_);
    }
    if (cost_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, cost_);
    }
    if (shutdown_ != com.caliverse.admin.domain.RabbitMq.message.BoolType.BoolType_None.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(8, shutdown_);
    }
    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.UgqGameQuestDataSimple)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple other = (com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple) obj;

    if (getComposedQuestId()
        != other.getComposedQuestId()) return false;
    if (getRevision()
        != other.getRevision()) return false;
    if (!getUserGuid()
        .equals(other.getUserGuid())) return false;
    if (!getAuthor()
        .equals(other.getAuthor())) return false;
    if (gradeType_ != other.gradeType_) return false;
    if (!getState()
        .equals(other.getState())) return false;
    if (getCost()
        != other.getCost()) return false;
    if (shutdown_ != other.shutdown_) 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());
    hash = (37 * hash) + REVISION_FIELD_NUMBER;
    hash = (53 * hash) + getRevision();
    hash = (37 * hash) + USERGUID_FIELD_NUMBER;
    hash = (53 * hash) + getUserGuid().hashCode();
    hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
    hash = (53 * hash) + getAuthor().hashCode();
    hash = (37 * hash) + GRADETYPE_FIELD_NUMBER;
    hash = (53 * hash) + gradeType_;
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + getState().hashCode();
    hash = (37 * hash) + COST_FIELD_NUMBER;
    hash = (53 * hash) + getCost();
    hash = (37 * hash) + SHUTDOWN_FIELD_NUMBER;
    hash = (53 * hash) + shutdown_;
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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.UgqGameQuestDataSimple 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 UgqGameQuestDataSimple}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:UgqGameQuestDataSimple)
      com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimpleOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqGameQuestDataSimple_descriptor;
    }

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

    // Construct using com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple.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;
      revision_ = 0;
      userGuid_ = "";
      author_ = "";
      gradeType_ = 0;
      state_ = "";
      cost_ = 0;
      shutdown_ = 0;
      return this;
    }

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

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

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

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

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.composedQuestId_ = composedQuestId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.revision_ = revision_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.userGuid_ = userGuid_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.author_ = author_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.gradeType_ = gradeType_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.cost_ = cost_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.shutdown_ = shutdown_;
      }
    }

    @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.UgqGameQuestDataSimple) {
        return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDataSimple.getDefaultInstance()) return this;
      if (other.getComposedQuestId() != 0L) {
        setComposedQuestId(other.getComposedQuestId());
      }
      if (other.getRevision() != 0) {
        setRevision(other.getRevision());
      }
      if (!other.getUserGuid().isEmpty()) {
        userGuid_ = other.userGuid_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getAuthor().isEmpty()) {
        author_ = other.author_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.gradeType_ != 0) {
        setGradeTypeValue(other.getGradeTypeValue());
      }
      if (!other.getState().isEmpty()) {
        state_ = other.state_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.getCost() != 0) {
        setCost(other.getCost());
      }
      if (other.shutdown_ != 0) {
        setShutdownValue(other.getShutdownValue());
      }
      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 16: {
              revision_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              userGuid_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              author_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 40: {
              gradeType_ = input.readEnum();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 50: {
              state_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            case 56: {
              cost_ = input.readInt32();
              bitField0_ |= 0x00000040;
              break;
            } // case 56
            case 64: {
              shutdown_ = input.readEnum();
              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_ ;
    /**
     * <code>int64 composedQuestId = 1;</code>
     * @return The composedQuestId.
     */
    @java.lang.Override
    public long getComposedQuestId() {
      return composedQuestId_;
    }
    /**
     * <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;
    }
    /**
     * <code>int64 composedQuestId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearComposedQuestId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      composedQuestId_ = 0L;
      onChanged();
      return this;
    }

    private int revision_ ;
    /**
     * <code>int32 revision = 2;</code>
     * @return The revision.
     */
    @java.lang.Override
    public int getRevision() {
      return revision_;
    }
    /**
     * <code>int32 revision = 2;</code>
     * @param value The revision to set.
     * @return This builder for chaining.
     */
    public Builder setRevision(int value) {
      
      revision_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>int32 revision = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearRevision() {
      bitField0_ = (bitField0_ & ~0x00000002);
      revision_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object userGuid_ = "";
    /**
     * <code>string userGuid = 3;</code>
     * @return The userGuid.
     */
    public java.lang.String getUserGuid() {
      java.lang.Object ref = userGuid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        userGuid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string userGuid = 3;</code>
     * @return The bytes for userGuid.
     */
    public com.google.protobuf.ByteString
        getUserGuidBytes() {
      java.lang.Object ref = userGuid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        userGuid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string userGuid = 3;</code>
     * @param value The userGuid to set.
     * @return This builder for chaining.
     */
    public Builder setUserGuid(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      userGuid_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>string userGuid = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearUserGuid() {
      userGuid_ = getDefaultInstance().getUserGuid();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>string userGuid = 3;</code>
     * @param value The bytes for userGuid to set.
     * @return This builder for chaining.
     */
    public Builder setUserGuidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      userGuid_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object author_ = "";
    /**
     * <code>string author = 4;</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>string author = 4;</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>string author = 4;</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_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>string author = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearAuthor() {
      author_ = getDefaultInstance().getAuthor();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <code>string author = 4;</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_ |= 0x00000008;
      onChanged();
      return this;
    }

    private int gradeType_ = 0;
    /**
     * <code>.UgqGradeType gradeType = 5;</code>
     * @return The enum numeric value on the wire for gradeType.
     */
    @java.lang.Override public int getGradeTypeValue() {
      return gradeType_;
    }
    /**
     * <code>.UgqGradeType gradeType = 5;</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_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGradeType gradeType = 5;</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 = 5;</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_ |= 0x00000010;
      gradeType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGradeType gradeType = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearGradeType() {
      bitField0_ = (bitField0_ & ~0x00000010);
      gradeType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object state_ = "";
    /**
     * <code>string state = 6;</code>
     * @return The state.
     */
    public java.lang.String getState() {
      java.lang.Object ref = state_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        state_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string state = 6;</code>
     * @return The bytes for state.
     */
    public com.google.protobuf.ByteString
        getStateBytes() {
      java.lang.Object ref = state_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        state_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string state = 6;</code>
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      state_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>string state = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearState() {
      state_ = getDefaultInstance().getState();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     * <code>string state = 6;</code>
     * @param value The bytes for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      state_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

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

    private int shutdown_ = 0;
    /**
     * <code>.BoolType shutdown = 8;</code>
     * @return The enum numeric value on the wire for shutdown.
     */
    @java.lang.Override public int getShutdownValue() {
      return shutdown_;
    }
    /**
     * <code>.BoolType shutdown = 8;</code>
     * @param value The enum numeric value on the wire for shutdown to set.
     * @return This builder for chaining.
     */
    public Builder setShutdownValue(int value) {
      shutdown_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>.BoolType shutdown = 8;</code>
     * @return The shutdown.
     */
    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.BoolType getShutdown() {
      com.caliverse.admin.domain.RabbitMq.message.BoolType result = com.caliverse.admin.domain.RabbitMq.message.BoolType.forNumber(shutdown_);
      return result == null ? com.caliverse.admin.domain.RabbitMq.message.BoolType.UNRECOGNIZED : result;
    }
    /**
     * <code>.BoolType shutdown = 8;</code>
     * @param value The shutdown to set.
     * @return This builder for chaining.
     */
    public Builder setShutdown(com.caliverse.admin.domain.RabbitMq.message.BoolType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      shutdown_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.BoolType shutdown = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearShutdown() {
      bitField0_ = (bitField0_ & ~0x00000080);
      shutdown_ = 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:UgqGameQuestDataSimple)
  }

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

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

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

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

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

}

