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

package com.kfzs.duanduan.proto;

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

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

    /**
     * <code>int32 Id = 1;</code>
     */
    int getId();

    /**
     * <code>int32 GameId = 2;</code>
     */
    int getGameId();

    /**
     * <code>string GiftName = 3;</code>
     */
    java.lang.String getGiftName();
    /**
     * <code>string GiftName = 3;</code>
     */
    com.google.protobuf.ByteString
        getGiftNameBytes();

    /**
     * <code>int32 TypeId = 4;</code>
     */
    int getTypeId();

    /**
     * <code>string GiftContent = 5;</code>
     */
    java.lang.String getGiftContent();
    /**
     * <code>string GiftContent = 5;</code>
     */
    com.google.protobuf.ByteString
        getGiftContentBytes();

    /**
     * <code>int64 StartTime = 6;</code>
     */
    long getStartTime();

    /**
     * <code>int64 EndTime = 7;</code>
     */
    long getEndTime();

    /**
     * <code>int64 CreatedTime = 8;</code>
     */
    long getCreatedTime();

    /**
     * <code>string UseInstruction = 9;</code>
     */
    java.lang.String getUseInstruction();
    /**
     * <code>string UseInstruction = 9;</code>
     */
    com.google.protobuf.ByteString
        getUseInstructionBytes();

    /**
     * <code>int64 ReceiveNum = 10;</code>
     */
    long getReceiveNum();

    /**
     * <code>int64 PlanNum = 11;</code>
     */
    long getPlanNum();

    /**
     * <code>int32 Status = 12;</code>
     */
    int getStatus();

    /**
     * <code>int64 TotalNum = 13;</code>
     */
    long getTotalNum();

    /**
     * <code>string GiftCode = 14;</code>
     */
    java.lang.String getGiftCode();
    /**
     * <code>string GiftCode = 14;</code>
     */
    com.google.protobuf.ByteString
        getGiftCodeBytes();

    /**
     * <code>.protobuf.Game game = 15;</code>
     */
    boolean hasGame();
    /**
     * <code>.protobuf.Game game = 15;</code>
     */
    com.kfzs.duanduan.proto.GameOuterClass.Game getGame();
    /**
     * <code>.protobuf.Game game = 15;</code>
     */
    com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder();

    /**
     * <code>float Percentum = 16;</code>
     */
    float getPercentum();

    /**
     * <code>int64 RemainNum = 17;</code>
     */
    long getRemainNum();
  }
  /**
   * <pre>
   * 上架礼包
   * </pre>
   *
   * Protobuf type {@code protobuf.ShelvesGift}
   */
  public  static final class ShelvesGift extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:protobuf.ShelvesGift)
      ShelvesGiftOrBuilder {
    // Use ShelvesGift.newBuilder() to construct.
    private ShelvesGift(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ShelvesGift() {
      id_ = 0;
      gameId_ = 0;
      giftName_ = "";
      typeId_ = 0;
      giftContent_ = "";
      startTime_ = 0L;
      endTime_ = 0L;
      createdTime_ = 0L;
      useInstruction_ = "";
      receiveNum_ = 0L;
      planNum_ = 0L;
      status_ = 0;
      totalNum_ = 0L;
      giftCode_ = "";
      percentum_ = 0F;
      remainNum_ = 0L;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private ShelvesGift(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 8: {

              id_ = input.readInt32();
              break;
            }
            case 16: {

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

              giftName_ = s;
              break;
            }
            case 32: {

              typeId_ = input.readInt32();
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();

              giftContent_ = s;
              break;
            }
            case 48: {

              startTime_ = input.readInt64();
              break;
            }
            case 56: {

              endTime_ = input.readInt64();
              break;
            }
            case 64: {

              createdTime_ = input.readInt64();
              break;
            }
            case 74: {
              java.lang.String s = input.readStringRequireUtf8();

              useInstruction_ = s;
              break;
            }
            case 80: {

              receiveNum_ = input.readInt64();
              break;
            }
            case 88: {

              planNum_ = input.readInt64();
              break;
            }
            case 96: {

              status_ = input.readInt32();
              break;
            }
            case 104: {

              totalNum_ = input.readInt64();
              break;
            }
            case 114: {
              java.lang.String s = input.readStringRequireUtf8();

              giftCode_ = s;
              break;
            }
            case 122: {
              com.kfzs.duanduan.proto.GameOuterClass.Game.Builder subBuilder = null;
              if (game_ != null) {
                subBuilder = game_.toBuilder();
              }
              game_ = input.readMessage(com.kfzs.duanduan.proto.GameOuterClass.Game.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(game_);
                game_ = subBuilder.buildPartial();
              }

              break;
            }
            case 133: {

              percentum_ = input.readFloat();
              break;
            }
            case 136: {

              remainNum_ = input.readInt64();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.kfzs.duanduan.proto.ShelvesGiftOuterClass.internal_static_protobuf_ShelvesGift_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.kfzs.duanduan.proto.ShelvesGiftOuterClass.internal_static_protobuf_ShelvesGift_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.class, com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private int id_;
    /**
     * <code>int32 Id = 1;</code>
     */
    public int getId() {
      return id_;
    }

    public static final int GAMEID_FIELD_NUMBER = 2;
    private int gameId_;
    /**
     * <code>int32 GameId = 2;</code>
     */
    public int getGameId() {
      return gameId_;
    }

    public static final int GIFTNAME_FIELD_NUMBER = 3;
    private volatile java.lang.Object giftName_;
    /**
     * <code>string GiftName = 3;</code>
     */
    public java.lang.String getGiftName() {
      java.lang.Object ref = giftName_;
      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();
        giftName_ = s;
        return s;
      }
    }
    /**
     * <code>string GiftName = 3;</code>
     */
    public com.google.protobuf.ByteString
        getGiftNameBytes() {
      java.lang.Object ref = giftName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        giftName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TYPEID_FIELD_NUMBER = 4;
    private int typeId_;
    /**
     * <code>int32 TypeId = 4;</code>
     */
    public int getTypeId() {
      return typeId_;
    }

    public static final int GIFTCONTENT_FIELD_NUMBER = 5;
    private volatile java.lang.Object giftContent_;
    /**
     * <code>string GiftContent = 5;</code>
     */
    public java.lang.String getGiftContent() {
      java.lang.Object ref = giftContent_;
      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();
        giftContent_ = s;
        return s;
      }
    }
    /**
     * <code>string GiftContent = 5;</code>
     */
    public com.google.protobuf.ByteString
        getGiftContentBytes() {
      java.lang.Object ref = giftContent_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        giftContent_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int STARTTIME_FIELD_NUMBER = 6;
    private long startTime_;
    /**
     * <code>int64 StartTime = 6;</code>
     */
    public long getStartTime() {
      return startTime_;
    }

    public static final int ENDTIME_FIELD_NUMBER = 7;
    private long endTime_;
    /**
     * <code>int64 EndTime = 7;</code>
     */
    public long getEndTime() {
      return endTime_;
    }

    public static final int CREATEDTIME_FIELD_NUMBER = 8;
    private long createdTime_;
    /**
     * <code>int64 CreatedTime = 8;</code>
     */
    public long getCreatedTime() {
      return createdTime_;
    }

    public static final int USEINSTRUCTION_FIELD_NUMBER = 9;
    private volatile java.lang.Object useInstruction_;
    /**
     * <code>string UseInstruction = 9;</code>
     */
    public java.lang.String getUseInstruction() {
      java.lang.Object ref = useInstruction_;
      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();
        useInstruction_ = s;
        return s;
      }
    }
    /**
     * <code>string UseInstruction = 9;</code>
     */
    public com.google.protobuf.ByteString
        getUseInstructionBytes() {
      java.lang.Object ref = useInstruction_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        useInstruction_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int RECEIVENUM_FIELD_NUMBER = 10;
    private long receiveNum_;
    /**
     * <code>int64 ReceiveNum = 10;</code>
     */
    public long getReceiveNum() {
      return receiveNum_;
    }

    public static final int PLANNUM_FIELD_NUMBER = 11;
    private long planNum_;
    /**
     * <code>int64 PlanNum = 11;</code>
     */
    public long getPlanNum() {
      return planNum_;
    }

    public static final int STATUS_FIELD_NUMBER = 12;
    private int status_;
    /**
     * <code>int32 Status = 12;</code>
     */
    public int getStatus() {
      return status_;
    }

    public static final int TOTALNUM_FIELD_NUMBER = 13;
    private long totalNum_;
    /**
     * <code>int64 TotalNum = 13;</code>
     */
    public long getTotalNum() {
      return totalNum_;
    }

    public static final int GIFTCODE_FIELD_NUMBER = 14;
    private volatile java.lang.Object giftCode_;
    /**
     * <code>string GiftCode = 14;</code>
     */
    public java.lang.String getGiftCode() {
      java.lang.Object ref = giftCode_;
      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();
        giftCode_ = s;
        return s;
      }
    }
    /**
     * <code>string GiftCode = 14;</code>
     */
    public com.google.protobuf.ByteString
        getGiftCodeBytes() {
      java.lang.Object ref = giftCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        giftCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int GAME_FIELD_NUMBER = 15;
    private com.kfzs.duanduan.proto.GameOuterClass.Game game_;
    /**
     * <code>.protobuf.Game game = 15;</code>
     */
    public boolean hasGame() {
      return game_ != null;
    }
    /**
     * <code>.protobuf.Game game = 15;</code>
     */
    public com.kfzs.duanduan.proto.GameOuterClass.Game getGame() {
      return game_ == null ? com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
    }
    /**
     * <code>.protobuf.Game game = 15;</code>
     */
    public com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder() {
      return getGame();
    }

    public static final int PERCENTUM_FIELD_NUMBER = 16;
    private float percentum_;
    /**
     * <code>float Percentum = 16;</code>
     */
    public float getPercentum() {
      return percentum_;
    }

    public static final int REMAINNUM_FIELD_NUMBER = 17;
    private long remainNum_;
    /**
     * <code>int64 RemainNum = 17;</code>
     */
    public long getRemainNum() {
      return remainNum_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (id_ != 0) {
        output.writeInt32(1, id_);
      }
      if (gameId_ != 0) {
        output.writeInt32(2, gameId_);
      }
      if (!getGiftNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, giftName_);
      }
      if (typeId_ != 0) {
        output.writeInt32(4, typeId_);
      }
      if (!getGiftContentBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, giftContent_);
      }
      if (startTime_ != 0L) {
        output.writeInt64(6, startTime_);
      }
      if (endTime_ != 0L) {
        output.writeInt64(7, endTime_);
      }
      if (createdTime_ != 0L) {
        output.writeInt64(8, createdTime_);
      }
      if (!getUseInstructionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 9, useInstruction_);
      }
      if (receiveNum_ != 0L) {
        output.writeInt64(10, receiveNum_);
      }
      if (planNum_ != 0L) {
        output.writeInt64(11, planNum_);
      }
      if (status_ != 0) {
        output.writeInt32(12, status_);
      }
      if (totalNum_ != 0L) {
        output.writeInt64(13, totalNum_);
      }
      if (!getGiftCodeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 14, giftCode_);
      }
      if (game_ != null) {
        output.writeMessage(15, getGame());
      }
      if (percentum_ != 0F) {
        output.writeFloat(16, percentum_);
      }
      if (remainNum_ != 0L) {
        output.writeInt64(17, remainNum_);
      }
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (id_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, id_);
      }
      if (gameId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, gameId_);
      }
      if (!getGiftNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, giftName_);
      }
      if (typeId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, typeId_);
      }
      if (!getGiftContentBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, giftContent_);
      }
      if (startTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, startTime_);
      }
      if (endTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, endTime_);
      }
      if (createdTime_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(8, createdTime_);
      }
      if (!getUseInstructionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, useInstruction_);
      }
      if (receiveNum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(10, receiveNum_);
      }
      if (planNum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(11, planNum_);
      }
      if (status_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(12, status_);
      }
      if (totalNum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(13, totalNum_);
      }
      if (!getGiftCodeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, giftCode_);
      }
      if (game_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(15, getGame());
      }
      if (percentum_ != 0F) {
        size += com.google.protobuf.CodedOutputStream
          .computeFloatSize(16, percentum_);
      }
      if (remainNum_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(17, remainNum_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift)) {
        return super.equals(obj);
      }
      com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift other = (com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift) obj;

      boolean result = true;
      result = result && (getId()
          == other.getId());
      result = result && (getGameId()
          == other.getGameId());
      result = result && getGiftName()
          .equals(other.getGiftName());
      result = result && (getTypeId()
          == other.getTypeId());
      result = result && getGiftContent()
          .equals(other.getGiftContent());
      result = result && (getStartTime()
          == other.getStartTime());
      result = result && (getEndTime()
          == other.getEndTime());
      result = result && (getCreatedTime()
          == other.getCreatedTime());
      result = result && getUseInstruction()
          .equals(other.getUseInstruction());
      result = result && (getReceiveNum()
          == other.getReceiveNum());
      result = result && (getPlanNum()
          == other.getPlanNum());
      result = result && (getStatus()
          == other.getStatus());
      result = result && (getTotalNum()
          == other.getTotalNum());
      result = result && getGiftCode()
          .equals(other.getGiftCode());
      result = result && (hasGame() == other.hasGame());
      if (hasGame()) {
        result = result && getGame()
            .equals(other.getGame());
      }
      result = result && (
          java.lang.Float.floatToIntBits(getPercentum())
          == java.lang.Float.floatToIntBits(
              other.getPercentum()));
      result = result && (getRemainNum()
          == other.getRemainNum());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId();
      hash = (37 * hash) + GAMEID_FIELD_NUMBER;
      hash = (53 * hash) + getGameId();
      hash = (37 * hash) + GIFTNAME_FIELD_NUMBER;
      hash = (53 * hash) + getGiftName().hashCode();
      hash = (37 * hash) + TYPEID_FIELD_NUMBER;
      hash = (53 * hash) + getTypeId();
      hash = (37 * hash) + GIFTCONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getGiftContent().hashCode();
      hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getStartTime());
      hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEndTime());
      hash = (37 * hash) + CREATEDTIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCreatedTime());
      hash = (37 * hash) + USEINSTRUCTION_FIELD_NUMBER;
      hash = (53 * hash) + getUseInstruction().hashCode();
      hash = (37 * hash) + RECEIVENUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getReceiveNum());
      hash = (37 * hash) + PLANNUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getPlanNum());
      hash = (37 * hash) + STATUS_FIELD_NUMBER;
      hash = (53 * hash) + getStatus();
      hash = (37 * hash) + TOTALNUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTotalNum());
      hash = (37 * hash) + GIFTCODE_FIELD_NUMBER;
      hash = (53 * hash) + getGiftCode().hashCode();
      if (hasGame()) {
        hash = (37 * hash) + GAME_FIELD_NUMBER;
        hash = (53 * hash) + getGame().hashCode();
      }
      hash = (37 * hash) + PERCENTUM_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(
          getPercentum());
      hash = (37 * hash) + REMAINNUM_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getRemainNum());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift 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.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift 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.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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;
    }
    /**
     * <pre>
     * 上架礼包
     * </pre>
     *
     * Protobuf type {@code protobuf.ShelvesGift}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:protobuf.ShelvesGift)
        com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGiftOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.kfzs.duanduan.proto.ShelvesGiftOuterClass.internal_static_protobuf_ShelvesGift_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.kfzs.duanduan.proto.ShelvesGiftOuterClass.internal_static_protobuf_ShelvesGift_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.class, com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.Builder.class);
      }

      // Construct using com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        id_ = 0;

        gameId_ = 0;

        giftName_ = "";

        typeId_ = 0;

        giftContent_ = "";

        startTime_ = 0L;

        endTime_ = 0L;

        createdTime_ = 0L;

        useInstruction_ = "";

        receiveNum_ = 0L;

        planNum_ = 0L;

        status_ = 0;

        totalNum_ = 0L;

        giftCode_ = "";

        if (gameBuilder_ == null) {
          game_ = null;
        } else {
          game_ = null;
          gameBuilder_ = null;
        }
        percentum_ = 0F;

        remainNum_ = 0L;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.kfzs.duanduan.proto.ShelvesGiftOuterClass.internal_static_protobuf_ShelvesGift_descriptor;
      }

      public com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift getDefaultInstanceForType() {
        return com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.getDefaultInstance();
      }

      public com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift build() {
        com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift buildPartial() {
        com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift result = new com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift(this);
        result.id_ = id_;
        result.gameId_ = gameId_;
        result.giftName_ = giftName_;
        result.typeId_ = typeId_;
        result.giftContent_ = giftContent_;
        result.startTime_ = startTime_;
        result.endTime_ = endTime_;
        result.createdTime_ = createdTime_;
        result.useInstruction_ = useInstruction_;
        result.receiveNum_ = receiveNum_;
        result.planNum_ = planNum_;
        result.status_ = status_;
        result.totalNum_ = totalNum_;
        result.giftCode_ = giftCode_;
        if (gameBuilder_ == null) {
          result.game_ = game_;
        } else {
          result.game_ = gameBuilder_.build();
        }
        result.percentum_ = percentum_;
        result.remainNum_ = remainNum_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, Object value) {
        return super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift) {
          return mergeFrom((com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift other) {
        if (other == com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift.getDefaultInstance()) return this;
        if (other.getId() != 0) {
          setId(other.getId());
        }
        if (other.getGameId() != 0) {
          setGameId(other.getGameId());
        }
        if (!other.getGiftName().isEmpty()) {
          giftName_ = other.giftName_;
          onChanged();
        }
        if (other.getTypeId() != 0) {
          setTypeId(other.getTypeId());
        }
        if (!other.getGiftContent().isEmpty()) {
          giftContent_ = other.giftContent_;
          onChanged();
        }
        if (other.getStartTime() != 0L) {
          setStartTime(other.getStartTime());
        }
        if (other.getEndTime() != 0L) {
          setEndTime(other.getEndTime());
        }
        if (other.getCreatedTime() != 0L) {
          setCreatedTime(other.getCreatedTime());
        }
        if (!other.getUseInstruction().isEmpty()) {
          useInstruction_ = other.useInstruction_;
          onChanged();
        }
        if (other.getReceiveNum() != 0L) {
          setReceiveNum(other.getReceiveNum());
        }
        if (other.getPlanNum() != 0L) {
          setPlanNum(other.getPlanNum());
        }
        if (other.getStatus() != 0) {
          setStatus(other.getStatus());
        }
        if (other.getTotalNum() != 0L) {
          setTotalNum(other.getTotalNum());
        }
        if (!other.getGiftCode().isEmpty()) {
          giftCode_ = other.giftCode_;
          onChanged();
        }
        if (other.hasGame()) {
          mergeGame(other.getGame());
        }
        if (other.getPercentum() != 0F) {
          setPercentum(other.getPercentum());
        }
        if (other.getRemainNum() != 0L) {
          setRemainNum(other.getRemainNum());
        }
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int id_ ;
      /**
       * <code>int32 Id = 1;</code>
       */
      public int getId() {
        return id_;
      }
      /**
       * <code>int32 Id = 1;</code>
       */
      public Builder setId(int value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 Id = 1;</code>
       */
      public Builder clearId() {
        
        id_ = 0;
        onChanged();
        return this;
      }

      private int gameId_ ;
      /**
       * <code>int32 GameId = 2;</code>
       */
      public int getGameId() {
        return gameId_;
      }
      /**
       * <code>int32 GameId = 2;</code>
       */
      public Builder setGameId(int value) {
        
        gameId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 GameId = 2;</code>
       */
      public Builder clearGameId() {
        
        gameId_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object giftName_ = "";
      /**
       * <code>string GiftName = 3;</code>
       */
      public java.lang.String getGiftName() {
        java.lang.Object ref = giftName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          giftName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string GiftName = 3;</code>
       */
      public com.google.protobuf.ByteString
          getGiftNameBytes() {
        java.lang.Object ref = giftName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          giftName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string GiftName = 3;</code>
       */
      public Builder setGiftName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        giftName_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string GiftName = 3;</code>
       */
      public Builder clearGiftName() {
        
        giftName_ = getDefaultInstance().getGiftName();
        onChanged();
        return this;
      }
      /**
       * <code>string GiftName = 3;</code>
       */
      public Builder setGiftNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        giftName_ = value;
        onChanged();
        return this;
      }

      private int typeId_ ;
      /**
       * <code>int32 TypeId = 4;</code>
       */
      public int getTypeId() {
        return typeId_;
      }
      /**
       * <code>int32 TypeId = 4;</code>
       */
      public Builder setTypeId(int value) {
        
        typeId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 TypeId = 4;</code>
       */
      public Builder clearTypeId() {
        
        typeId_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object giftContent_ = "";
      /**
       * <code>string GiftContent = 5;</code>
       */
      public java.lang.String getGiftContent() {
        java.lang.Object ref = giftContent_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          giftContent_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string GiftContent = 5;</code>
       */
      public com.google.protobuf.ByteString
          getGiftContentBytes() {
        java.lang.Object ref = giftContent_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          giftContent_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string GiftContent = 5;</code>
       */
      public Builder setGiftContent(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        giftContent_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string GiftContent = 5;</code>
       */
      public Builder clearGiftContent() {
        
        giftContent_ = getDefaultInstance().getGiftContent();
        onChanged();
        return this;
      }
      /**
       * <code>string GiftContent = 5;</code>
       */
      public Builder setGiftContentBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        giftContent_ = value;
        onChanged();
        return this;
      }

      private long startTime_ ;
      /**
       * <code>int64 StartTime = 6;</code>
       */
      public long getStartTime() {
        return startTime_;
      }
      /**
       * <code>int64 StartTime = 6;</code>
       */
      public Builder setStartTime(long value) {
        
        startTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 StartTime = 6;</code>
       */
      public Builder clearStartTime() {
        
        startTime_ = 0L;
        onChanged();
        return this;
      }

      private long endTime_ ;
      /**
       * <code>int64 EndTime = 7;</code>
       */
      public long getEndTime() {
        return endTime_;
      }
      /**
       * <code>int64 EndTime = 7;</code>
       */
      public Builder setEndTime(long value) {
        
        endTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 EndTime = 7;</code>
       */
      public Builder clearEndTime() {
        
        endTime_ = 0L;
        onChanged();
        return this;
      }

      private long createdTime_ ;
      /**
       * <code>int64 CreatedTime = 8;</code>
       */
      public long getCreatedTime() {
        return createdTime_;
      }
      /**
       * <code>int64 CreatedTime = 8;</code>
       */
      public Builder setCreatedTime(long value) {
        
        createdTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 CreatedTime = 8;</code>
       */
      public Builder clearCreatedTime() {
        
        createdTime_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object useInstruction_ = "";
      /**
       * <code>string UseInstruction = 9;</code>
       */
      public java.lang.String getUseInstruction() {
        java.lang.Object ref = useInstruction_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          useInstruction_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string UseInstruction = 9;</code>
       */
      public com.google.protobuf.ByteString
          getUseInstructionBytes() {
        java.lang.Object ref = useInstruction_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          useInstruction_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string UseInstruction = 9;</code>
       */
      public Builder setUseInstruction(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        useInstruction_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string UseInstruction = 9;</code>
       */
      public Builder clearUseInstruction() {
        
        useInstruction_ = getDefaultInstance().getUseInstruction();
        onChanged();
        return this;
      }
      /**
       * <code>string UseInstruction = 9;</code>
       */
      public Builder setUseInstructionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        useInstruction_ = value;
        onChanged();
        return this;
      }

      private long receiveNum_ ;
      /**
       * <code>int64 ReceiveNum = 10;</code>
       */
      public long getReceiveNum() {
        return receiveNum_;
      }
      /**
       * <code>int64 ReceiveNum = 10;</code>
       */
      public Builder setReceiveNum(long value) {
        
        receiveNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 ReceiveNum = 10;</code>
       */
      public Builder clearReceiveNum() {
        
        receiveNum_ = 0L;
        onChanged();
        return this;
      }

      private long planNum_ ;
      /**
       * <code>int64 PlanNum = 11;</code>
       */
      public long getPlanNum() {
        return planNum_;
      }
      /**
       * <code>int64 PlanNum = 11;</code>
       */
      public Builder setPlanNum(long value) {
        
        planNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 PlanNum = 11;</code>
       */
      public Builder clearPlanNum() {
        
        planNum_ = 0L;
        onChanged();
        return this;
      }

      private int status_ ;
      /**
       * <code>int32 Status = 12;</code>
       */
      public int getStatus() {
        return status_;
      }
      /**
       * <code>int32 Status = 12;</code>
       */
      public Builder setStatus(int value) {
        
        status_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 Status = 12;</code>
       */
      public Builder clearStatus() {
        
        status_ = 0;
        onChanged();
        return this;
      }

      private long totalNum_ ;
      /**
       * <code>int64 TotalNum = 13;</code>
       */
      public long getTotalNum() {
        return totalNum_;
      }
      /**
       * <code>int64 TotalNum = 13;</code>
       */
      public Builder setTotalNum(long value) {
        
        totalNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 TotalNum = 13;</code>
       */
      public Builder clearTotalNum() {
        
        totalNum_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object giftCode_ = "";
      /**
       * <code>string GiftCode = 14;</code>
       */
      public java.lang.String getGiftCode() {
        java.lang.Object ref = giftCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          giftCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string GiftCode = 14;</code>
       */
      public com.google.protobuf.ByteString
          getGiftCodeBytes() {
        java.lang.Object ref = giftCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          giftCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string GiftCode = 14;</code>
       */
      public Builder setGiftCode(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        giftCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string GiftCode = 14;</code>
       */
      public Builder clearGiftCode() {
        
        giftCode_ = getDefaultInstance().getGiftCode();
        onChanged();
        return this;
      }
      /**
       * <code>string GiftCode = 14;</code>
       */
      public Builder setGiftCodeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        giftCode_ = value;
        onChanged();
        return this;
      }

      private com.kfzs.duanduan.proto.GameOuterClass.Game game_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder> gameBuilder_;
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public boolean hasGame() {
        return gameBuilder_ != null || game_ != null;
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.Game getGame() {
        if (gameBuilder_ == null) {
          return game_ == null ? com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
        } else {
          return gameBuilder_.getMessage();
        }
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public Builder setGame(com.kfzs.duanduan.proto.GameOuterClass.Game value) {
        if (gameBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          game_ = value;
          onChanged();
        } else {
          gameBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public Builder setGame(
          com.kfzs.duanduan.proto.GameOuterClass.Game.Builder builderForValue) {
        if (gameBuilder_ == null) {
          game_ = builderForValue.build();
          onChanged();
        } else {
          gameBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public Builder mergeGame(com.kfzs.duanduan.proto.GameOuterClass.Game value) {
        if (gameBuilder_ == null) {
          if (game_ != null) {
            game_ =
              com.kfzs.duanduan.proto.GameOuterClass.Game.newBuilder(game_).mergeFrom(value).buildPartial();
          } else {
            game_ = value;
          }
          onChanged();
        } else {
          gameBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public Builder clearGame() {
        if (gameBuilder_ == null) {
          game_ = null;
          onChanged();
        } else {
          game_ = null;
          gameBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.Game.Builder getGameBuilder() {
        
        onChanged();
        return getGameFieldBuilder().getBuilder();
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      public com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder getGameOrBuilder() {
        if (gameBuilder_ != null) {
          return gameBuilder_.getMessageOrBuilder();
        } else {
          return game_ == null ?
              com.kfzs.duanduan.proto.GameOuterClass.Game.getDefaultInstance() : game_;
        }
      }
      /**
       * <code>.protobuf.Game game = 15;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder> 
          getGameFieldBuilder() {
        if (gameBuilder_ == null) {
          gameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.kfzs.duanduan.proto.GameOuterClass.Game, com.kfzs.duanduan.proto.GameOuterClass.Game.Builder, com.kfzs.duanduan.proto.GameOuterClass.GameOrBuilder>(
                  getGame(),
                  getParentForChildren(),
                  isClean());
          game_ = null;
        }
        return gameBuilder_;
      }

      private float percentum_ ;
      /**
       * <code>float Percentum = 16;</code>
       */
      public float getPercentum() {
        return percentum_;
      }
      /**
       * <code>float Percentum = 16;</code>
       */
      public Builder setPercentum(float value) {
        
        percentum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>float Percentum = 16;</code>
       */
      public Builder clearPercentum() {
        
        percentum_ = 0F;
        onChanged();
        return this;
      }

      private long remainNum_ ;
      /**
       * <code>int64 RemainNum = 17;</code>
       */
      public long getRemainNum() {
        return remainNum_;
      }
      /**
       * <code>int64 RemainNum = 17;</code>
       */
      public Builder setRemainNum(long value) {
        
        remainNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int64 RemainNum = 17;</code>
       */
      public Builder clearRemainNum() {
        
        remainNum_ = 0L;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }


      // @@protoc_insertion_point(builder_scope:protobuf.ShelvesGift)
    }

    // @@protoc_insertion_point(class_scope:protobuf.ShelvesGift)
    private static final com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift();
    }

    public static com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.kfzs.duanduan.proto.ShelvesGiftOuterClass.ShelvesGift getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_protobuf_ShelvesGift_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_protobuf_ShelvesGift_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\022shelves_gift.proto\022\010protobuf\032\ngame.pro" +
      "to\"\316\002\n\013ShelvesGift\022\n\n\002Id\030\001 \001(\005\022\016\n\006GameId" +
      "\030\002 \001(\005\022\020\n\010GiftName\030\003 \001(\t\022\016\n\006TypeId\030\004 \001(\005" +
      "\022\023\n\013GiftContent\030\005 \001(\t\022\021\n\tStartTime\030\006 \001(\003" +
      "\022\017\n\007EndTime\030\007 \001(\003\022\023\n\013CreatedTime\030\010 \001(\003\022\026" +
      "\n\016UseInstruction\030\t \001(\t\022\022\n\nReceiveNum\030\n \001" +
      "(\003\022\017\n\007PlanNum\030\013 \001(\003\022\016\n\006Status\030\014 \001(\005\022\020\n\010T" +
      "otalNum\030\r \001(\003\022\020\n\010GiftCode\030\016 \001(\t\022\034\n\004game\030" +
      "\017 \001(\0132\016.protobuf.Game\022\021\n\tPercentum\030\020 \001(\002" +
      "\022\021\n\tRemainNum\030\021 \001(\003B\031\n\027com.kfzs.duanduan",
      ".protob\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.kfzs.duanduan.proto.GameOuterClass.getDescriptor(),
        }, assigner);
    internal_static_protobuf_ShelvesGift_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_protobuf_ShelvesGift_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_protobuf_ShelvesGift_descriptor,
        new java.lang.String[] { "Id", "GameId", "GiftName", "TypeId", "GiftContent", "StartTime", "EndTime", "CreatedTime", "UseInstruction", "ReceiveNum", "PlanNum", "Status", "TotalNum", "GiftCode", "Game", "Percentum", "RemainNum", });
    com.kfzs.duanduan.proto.GameOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
