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

package emu.grasscutter.net.proto;

public final class ShopGoodsOuterClass {
  private ShopGoodsOuterClass() {}
  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 ShopGoodsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ShopGoods)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>uint32 discount_end_time = 258;</code>
     * @return The discountEndTime.
     */
    int getDiscountEndTime();

    /**
     * <code>uint32 min_level = 8;</code>
     * @return The minLevel.
     */
    int getMinLevel();

    /**
     * <code>uint32 end_time = 11;</code>
     * @return The endTime.
     */
    int getEndTime();

    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> 
        getCostItemListList();
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index);
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    int getCostItemListCount();
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getCostItemListOrBuilderList();
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder(
        int index);

    /**
     * <code>uint32 secondary_sheet_id = 318;</code>
     * @return The secondarySheetId.
     */
    int getSecondarySheetId();

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

    /**
     * <code>uint32 mcoin = 14;</code>
     * @return The mcoin.
     */
    int getMcoin();

    /**
     * <code>uint32 discount_id = 1998;</code>
     * @return The discountId.
     */
    int getDiscountId();

    /**
     * <code>uint32 single_limit = 247;</code>
     * @return The singleLimit.
     */
    int getSingleLimit();

    /**
     * <code>uint32 goods_id = 13;</code>
     * @return The goodsId.
     */
    int getGoodsId();

    /**
     * <code>uint32 next_refresh_time = 7;</code>
     * @return The nextRefreshTime.
     */
    int getNextRefreshTime();

    /**
     * <code>uint32 max_level = 4;</code>
     * @return The maxLevel.
     */
    int getMaxLevel();

    /**
     * <code>uint32 disable_type = 6;</code>
     * @return The disableType.
     */
    int getDisableType();

    /**
     * <code>uint32 discount_begin_time = 574;</code>
     * @return The discountBeginTime.
     */
    int getDiscountBeginTime();

    /**
     * <code>repeated uint32 pre_goods_id_list = 2;</code>
     * @return A list containing the preGoodsIdList.
     */
    java.util.List<java.lang.Integer> getPreGoodsIdListList();
    /**
     * <code>repeated uint32 pre_goods_id_list = 2;</code>
     * @return The count of preGoodsIdList.
     */
    int getPreGoodsIdListCount();
    /**
     * <code>repeated uint32 pre_goods_id_list = 2;</code>
     * @param index The index of the element to return.
     * @return The preGoodsIdList at the given index.
     */
    int getPreGoodsIdList(int index);

    /**
     * <code>uint32 begin_time = 5;</code>
     * @return The beginTime.
     */
    int getBeginTime();

    /**
     * <code>uint32 scoin = 15;</code>
     * @return The scoin.
     */
    int getScoin();

    /**
     * <code>uint32 bought_num = 10;</code>
     * @return The boughtNum.
     */
    int getBoughtNum();

    /**
     * <code>uint32 buy_limit = 12;</code>
     * @return The buyLimit.
     */
    int getBuyLimit();

    /**
     * <code>.ItemParam goods_item = 9;</code>
     * @return Whether the goodsItem field is set.
     */
    boolean hasGoodsItem();
    /**
     * <code>.ItemParam goods_item = 9;</code>
     * @return The goodsItem.
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem();
    /**
     * <code>.ItemParam goods_item = 9;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder();
  }
  /**
   * Protobuf type {@code ShopGoods}
   */
  public static final class ShopGoods extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:ShopGoods)
      ShopGoodsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ShopGoods.newBuilder() to construct.
    private ShopGoods(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ShopGoods() {
      costItemList_ = java.util.Collections.emptyList();
      preGoodsIdList_ = emptyIntList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ShopGoods(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              hcoin_ = input.readUInt32();
              break;
            }
            case 16: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                preGoodsIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000002;
              }
              preGoodsIdList_.addInt(input.readUInt32());
              break;
            }
            case 18: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
                preGoodsIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                preGoodsIdList_.addInt(input.readUInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                costItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>();
                mutable_bitField0_ |= 0x00000001;
              }
              costItemList_.add(
                  input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
              break;
            }
            case 32: {

              maxLevel_ = input.readUInt32();
              break;
            }
            case 40: {

              beginTime_ = input.readUInt32();
              break;
            }
            case 48: {

              disableType_ = input.readUInt32();
              break;
            }
            case 56: {

              nextRefreshTime_ = input.readUInt32();
              break;
            }
            case 64: {

              minLevel_ = input.readUInt32();
              break;
            }
            case 74: {
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder subBuilder = null;
              if (goodsItem_ != null) {
                subBuilder = goodsItem_.toBuilder();
              }
              goodsItem_ = input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(goodsItem_);
                goodsItem_ = subBuilder.buildPartial();
              }

              break;
            }
            case 80: {

              boughtNum_ = input.readUInt32();
              break;
            }
            case 88: {

              endTime_ = input.readUInt32();
              break;
            }
            case 96: {

              buyLimit_ = input.readUInt32();
              break;
            }
            case 104: {

              goodsId_ = input.readUInt32();
              break;
            }
            case 112: {

              mcoin_ = input.readUInt32();
              break;
            }
            case 120: {

              scoin_ = input.readUInt32();
              break;
            }
            case 1976: {

              singleLimit_ = input.readUInt32();
              break;
            }
            case 2064: {

              discountEndTime_ = input.readUInt32();
              break;
            }
            case 2544: {

              secondarySheetId_ = input.readUInt32();
              break;
            }
            case 4592: {

              discountBeginTime_ = input.readUInt32();
              break;
            }
            case 15984: {

              discountId_ = input.readUInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          preGoodsIdList_.makeImmutable(); // C
        }
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          costItemList_ = java.util.Collections.unmodifiableList(costItemList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.class, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder.class);
    }

    public static final int DISCOUNT_END_TIME_FIELD_NUMBER = 258;
    private int discountEndTime_;
    /**
     * <code>uint32 discount_end_time = 258;</code>
     * @return The discountEndTime.
     */
    @java.lang.Override
    public int getDiscountEndTime() {
      return discountEndTime_;
    }

    public static final int MIN_LEVEL_FIELD_NUMBER = 8;
    private int minLevel_;
    /**
     * <code>uint32 min_level = 8;</code>
     * @return The minLevel.
     */
    @java.lang.Override
    public int getMinLevel() {
      return minLevel_;
    }

    public static final int END_TIME_FIELD_NUMBER = 11;
    private int endTime_;
    /**
     * <code>uint32 end_time = 11;</code>
     * @return The endTime.
     */
    @java.lang.Override
    public int getEndTime() {
      return endTime_;
    }

    public static final int COST_ITEM_LIST_FIELD_NUMBER = 3;
    private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> costItemList_;
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getCostItemListList() {
      return costItemList_;
    }
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getCostItemListOrBuilderList() {
      return costItemList_;
    }
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    @java.lang.Override
    public int getCostItemListCount() {
      return costItemList_.size();
    }
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index) {
      return costItemList_.get(index);
    }
    /**
     * <code>repeated .ItemParam cost_item_list = 3;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder(
        int index) {
      return costItemList_.get(index);
    }

    public static final int SECONDARY_SHEET_ID_FIELD_NUMBER = 318;
    private int secondarySheetId_;
    /**
     * <code>uint32 secondary_sheet_id = 318;</code>
     * @return The secondarySheetId.
     */
    @java.lang.Override
    public int getSecondarySheetId() {
      return secondarySheetId_;
    }

    public static final int HCOIN_FIELD_NUMBER = 1;
    private int hcoin_;
    /**
     * <code>uint32 hcoin = 1;</code>
     * @return The hcoin.
     */
    @java.lang.Override
    public int getHcoin() {
      return hcoin_;
    }

    public static final int MCOIN_FIELD_NUMBER = 14;
    private int mcoin_;
    /**
     * <code>uint32 mcoin = 14;</code>
     * @return The mcoin.
     */
    @java.lang.Override
    public int getMcoin() {
      return mcoin_;
    }

    public static final int DISCOUNT_ID_FIELD_NUMBER = 1998;
    private int discountId_;
    /**
     * <code>uint32 discount_id = 1998;</code>
     * @return The discountId.
     */
    @java.lang.Override
    public int getDiscountId() {
      return discountId_;
    }

    public static final int SINGLE_LIMIT_FIELD_NUMBER = 247;
    private int singleLimit_;
    /**
     * <code>uint32 single_limit = 247;</code>
     * @return The singleLimit.
     */
    @java.lang.Override
    public int getSingleLimit() {
      return singleLimit_;
    }

    public static final int GOODS_ID_FIELD_NUMBER = 13;
    private int goodsId_;
    /**
     * <code>uint32 goods_id = 13;</code>
     * @return The goodsId.
     */
    @java.lang.Override
    public int getGoodsId() {
      return goodsId_;
    }

    public static final int NEXT_REFRESH_TIME_FIELD_NUMBER = 7;
    private int nextRefreshTime_;
    /**
     * <code>uint32 next_refresh_time = 7;</code>
     * @return The nextRefreshTime.
     */
    @java.lang.Override
    public int getNextRefreshTime() {
      return nextRefreshTime_;
    }

    public static final int MAX_LEVEL_FIELD_NUMBER = 4;
    private int maxLevel_;
    /**
     * <code>uint32 max_level = 4;</code>
     * @return The maxLevel.
     */
    @java.lang.Override
    public int getMaxLevel() {
      return maxLevel_;
    }

    public static final int DISABLE_TYPE_FIELD_NUMBER = 6;
    private int disableType_;
    /**
     * <code>uint32 disable_type = 6;</code>
     * @return The disableType.
     */
    @java.lang.Override
    public int getDisableType() {
      return disableType_;
    }

    public static final int DISCOUNT_BEGIN_TIME_FIELD_NUMBER = 574;
    private int discountBeginTime_;
    /**
     * <code>uint32 discount_begin_time = 574;</code>
     * @return The discountBeginTime.
     */
    @java.lang.Override
    public int getDiscountBeginTime() {
      return discountBeginTime_;
    }

    public static final int PRE_GOODS_ID_LIST_FIELD_NUMBER = 2;
    private com.google.protobuf.Internal.IntList preGoodsIdList_;
    /**
     * <code>repeated uint32 pre_goods_id_list = 2;</code>
     * @return A list containing the preGoodsIdList.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
        getPreGoodsIdListList() {
      return preGoodsIdList_;
    }
    /**
     * <code>repeated uint32 pre_goods_id_list = 2;</code>
     * @return The count of preGoodsIdList.
     */
    public int getPreGoodsIdListCount() {
      return preGoodsIdList_.size();
    }
    /**
     * <code>repeated uint32 pre_goods_id_list = 2;</code>
     * @param index The index of the element to return.
     * @return The preGoodsIdList at the given index.
     */
    public int getPreGoodsIdList(int index) {
      return preGoodsIdList_.getInt(index);
    }
    private int preGoodsIdListMemoizedSerializedSize = -1;

    public static final int BEGIN_TIME_FIELD_NUMBER = 5;
    private int beginTime_;
    /**
     * <code>uint32 begin_time = 5;</code>
     * @return The beginTime.
     */
    @java.lang.Override
    public int getBeginTime() {
      return beginTime_;
    }

    public static final int SCOIN_FIELD_NUMBER = 15;
    private int scoin_;
    /**
     * <code>uint32 scoin = 15;</code>
     * @return The scoin.
     */
    @java.lang.Override
    public int getScoin() {
      return scoin_;
    }

    public static final int BOUGHT_NUM_FIELD_NUMBER = 10;
    private int boughtNum_;
    /**
     * <code>uint32 bought_num = 10;</code>
     * @return The boughtNum.
     */
    @java.lang.Override
    public int getBoughtNum() {
      return boughtNum_;
    }

    public static final int BUY_LIMIT_FIELD_NUMBER = 12;
    private int buyLimit_;
    /**
     * <code>uint32 buy_limit = 12;</code>
     * @return The buyLimit.
     */
    @java.lang.Override
    public int getBuyLimit() {
      return buyLimit_;
    }

    public static final int GOODS_ITEM_FIELD_NUMBER = 9;
    private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam goodsItem_;
    /**
     * <code>.ItemParam goods_item = 9;</code>
     * @return Whether the goodsItem field is set.
     */
    @java.lang.Override
    public boolean hasGoodsItem() {
      return goodsItem_ != null;
    }
    /**
     * <code>.ItemParam goods_item = 9;</code>
     * @return The goodsItem.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem() {
      return goodsItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : goodsItem_;
    }
    /**
     * <code>.ItemParam goods_item = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder() {
      return getGoodsItem();
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (hcoin_ != 0) {
        output.writeUInt32(1, hcoin_);
      }
      if (getPreGoodsIdListList().size() > 0) {
        output.writeUInt32NoTag(18);
        output.writeUInt32NoTag(preGoodsIdListMemoizedSerializedSize);
      }
      for (int i = 0; i < preGoodsIdList_.size(); i++) {
        output.writeUInt32NoTag(preGoodsIdList_.getInt(i));
      }
      for (int i = 0; i < costItemList_.size(); i++) {
        output.writeMessage(3, costItemList_.get(i));
      }
      if (maxLevel_ != 0) {
        output.writeUInt32(4, maxLevel_);
      }
      if (beginTime_ != 0) {
        output.writeUInt32(5, beginTime_);
      }
      if (disableType_ != 0) {
        output.writeUInt32(6, disableType_);
      }
      if (nextRefreshTime_ != 0) {
        output.writeUInt32(7, nextRefreshTime_);
      }
      if (minLevel_ != 0) {
        output.writeUInt32(8, minLevel_);
      }
      if (goodsItem_ != null) {
        output.writeMessage(9, getGoodsItem());
      }
      if (boughtNum_ != 0) {
        output.writeUInt32(10, boughtNum_);
      }
      if (endTime_ != 0) {
        output.writeUInt32(11, endTime_);
      }
      if (buyLimit_ != 0) {
        output.writeUInt32(12, buyLimit_);
      }
      if (goodsId_ != 0) {
        output.writeUInt32(13, goodsId_);
      }
      if (mcoin_ != 0) {
        output.writeUInt32(14, mcoin_);
      }
      if (scoin_ != 0) {
        output.writeUInt32(15, scoin_);
      }
      if (singleLimit_ != 0) {
        output.writeUInt32(247, singleLimit_);
      }
      if (discountEndTime_ != 0) {
        output.writeUInt32(258, discountEndTime_);
      }
      if (secondarySheetId_ != 0) {
        output.writeUInt32(318, secondarySheetId_);
      }
      if (discountBeginTime_ != 0) {
        output.writeUInt32(574, discountBeginTime_);
      }
      if (discountId_ != 0) {
        output.writeUInt32(1998, discountId_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (hcoin_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, hcoin_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < preGoodsIdList_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeUInt32SizeNoTag(preGoodsIdList_.getInt(i));
        }
        size += dataSize;
        if (!getPreGoodsIdListList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        preGoodsIdListMemoizedSerializedSize = dataSize;
      }
      for (int i = 0; i < costItemList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, costItemList_.get(i));
      }
      if (maxLevel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, maxLevel_);
      }
      if (beginTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, beginTime_);
      }
      if (disableType_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, disableType_);
      }
      if (nextRefreshTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(7, nextRefreshTime_);
      }
      if (minLevel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(8, minLevel_);
      }
      if (goodsItem_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, getGoodsItem());
      }
      if (boughtNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(10, boughtNum_);
      }
      if (endTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(11, endTime_);
      }
      if (buyLimit_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(12, buyLimit_);
      }
      if (goodsId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(13, goodsId_);
      }
      if (mcoin_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(14, mcoin_);
      }
      if (scoin_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(15, scoin_);
      }
      if (singleLimit_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(247, singleLimit_);
      }
      if (discountEndTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(258, discountEndTime_);
      }
      if (secondarySheetId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(318, secondarySheetId_);
      }
      if (discountBeginTime_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(574, discountBeginTime_);
      }
      if (discountId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1998, discountId_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods other = (emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods) obj;

      if (getDiscountEndTime()
          != other.getDiscountEndTime()) return false;
      if (getMinLevel()
          != other.getMinLevel()) return false;
      if (getEndTime()
          != other.getEndTime()) return false;
      if (!getCostItemListList()
          .equals(other.getCostItemListList())) return false;
      if (getSecondarySheetId()
          != other.getSecondarySheetId()) return false;
      if (getHcoin()
          != other.getHcoin()) return false;
      if (getMcoin()
          != other.getMcoin()) return false;
      if (getDiscountId()
          != other.getDiscountId()) return false;
      if (getSingleLimit()
          != other.getSingleLimit()) return false;
      if (getGoodsId()
          != other.getGoodsId()) return false;
      if (getNextRefreshTime()
          != other.getNextRefreshTime()) return false;
      if (getMaxLevel()
          != other.getMaxLevel()) return false;
      if (getDisableType()
          != other.getDisableType()) return false;
      if (getDiscountBeginTime()
          != other.getDiscountBeginTime()) return false;
      if (!getPreGoodsIdListList()
          .equals(other.getPreGoodsIdListList())) return false;
      if (getBeginTime()
          != other.getBeginTime()) return false;
      if (getScoin()
          != other.getScoin()) return false;
      if (getBoughtNum()
          != other.getBoughtNum()) return false;
      if (getBuyLimit()
          != other.getBuyLimit()) return false;
      if (hasGoodsItem() != other.hasGoodsItem()) return false;
      if (hasGoodsItem()) {
        if (!getGoodsItem()
            .equals(other.getGoodsItem())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + DISCOUNT_END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getDiscountEndTime();
      hash = (37 * hash) + MIN_LEVEL_FIELD_NUMBER;
      hash = (53 * hash) + getMinLevel();
      hash = (37 * hash) + END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getEndTime();
      if (getCostItemListCount() > 0) {
        hash = (37 * hash) + COST_ITEM_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getCostItemListList().hashCode();
      }
      hash = (37 * hash) + SECONDARY_SHEET_ID_FIELD_NUMBER;
      hash = (53 * hash) + getSecondarySheetId();
      hash = (37 * hash) + HCOIN_FIELD_NUMBER;
      hash = (53 * hash) + getHcoin();
      hash = (37 * hash) + MCOIN_FIELD_NUMBER;
      hash = (53 * hash) + getMcoin();
      hash = (37 * hash) + DISCOUNT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getDiscountId();
      hash = (37 * hash) + SINGLE_LIMIT_FIELD_NUMBER;
      hash = (53 * hash) + getSingleLimit();
      hash = (37 * hash) + GOODS_ID_FIELD_NUMBER;
      hash = (53 * hash) + getGoodsId();
      hash = (37 * hash) + NEXT_REFRESH_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getNextRefreshTime();
      hash = (37 * hash) + MAX_LEVEL_FIELD_NUMBER;
      hash = (53 * hash) + getMaxLevel();
      hash = (37 * hash) + DISABLE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getDisableType();
      hash = (37 * hash) + DISCOUNT_BEGIN_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getDiscountBeginTime();
      if (getPreGoodsIdListCount() > 0) {
        hash = (37 * hash) + PRE_GOODS_ID_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getPreGoodsIdListList().hashCode();
      }
      hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getBeginTime();
      hash = (37 * hash) + SCOIN_FIELD_NUMBER;
      hash = (53 * hash) + getScoin();
      hash = (37 * hash) + BOUGHT_NUM_FIELD_NUMBER;
      hash = (53 * hash) + getBoughtNum();
      hash = (37 * hash) + BUY_LIMIT_FIELD_NUMBER;
      hash = (53 * hash) + getBuyLimit();
      if (hasGoodsItem()) {
        hash = (37 * hash) + GOODS_ITEM_FIELD_NUMBER;
        hash = (53 * hash) + getGoodsItem().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods 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 emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods 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 emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods 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(emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods 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 ShopGoods}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:ShopGoods)
        emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoodsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.class, emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.Builder.class);
      }

      // Construct using emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        minLevel_ = 0;

        endTime_ = 0;

        if (costItemListBuilder_ == null) {
          costItemList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          costItemListBuilder_.clear();
        }
        secondarySheetId_ = 0;

        hcoin_ = 0;

        mcoin_ = 0;

        discountId_ = 0;

        singleLimit_ = 0;

        goodsId_ = 0;

        nextRefreshTime_ = 0;

        maxLevel_ = 0;

        disableType_ = 0;

        discountBeginTime_ = 0;

        preGoodsIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000002);
        beginTime_ = 0;

        scoin_ = 0;

        boughtNum_ = 0;

        buyLimit_ = 0;

        if (goodsItemBuilder_ == null) {
          goodsItem_ = null;
        } else {
          goodsItem_ = null;
          goodsItemBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return emu.grasscutter.net.proto.ShopGoodsOuterClass.internal_static_ShopGoods_descriptor;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getDefaultInstanceForType() {
        return emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance();
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods build() {
        emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods buildPartial() {
        emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods result = new emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods(this);
        int from_bitField0_ = bitField0_;
        result.discountEndTime_ = discountEndTime_;
        result.minLevel_ = minLevel_;
        result.endTime_ = endTime_;
        if (costItemListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            costItemList_ = java.util.Collections.unmodifiableList(costItemList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.costItemList_ = costItemList_;
        } else {
          result.costItemList_ = costItemListBuilder_.build();
        }
        result.secondarySheetId_ = secondarySheetId_;
        result.hcoin_ = hcoin_;
        result.mcoin_ = mcoin_;
        result.discountId_ = discountId_;
        result.singleLimit_ = singleLimit_;
        result.goodsId_ = goodsId_;
        result.nextRefreshTime_ = nextRefreshTime_;
        result.maxLevel_ = maxLevel_;
        result.disableType_ = disableType_;
        result.discountBeginTime_ = discountBeginTime_;
        if (((bitField0_ & 0x00000002) != 0)) {
          preGoodsIdList_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.preGoodsIdList_ = preGoodsIdList_;
        result.beginTime_ = beginTime_;
        result.scoin_ = scoin_;
        result.boughtNum_ = boughtNum_;
        result.buyLimit_ = buyLimit_;
        if (goodsItemBuilder_ == null) {
          result.goodsItem_ = goodsItem_;
        } else {
          result.goodsItem_ = goodsItemBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods) {
          return mergeFrom((emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods other) {
        if (other == emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods.getDefaultInstance()) return this;
        if (other.getDiscountEndTime() != 0) {
          setDiscountEndTime(other.getDiscountEndTime());
        }
        if (other.getMinLevel() != 0) {
          setMinLevel(other.getMinLevel());
        }
        if (other.getEndTime() != 0) {
          setEndTime(other.getEndTime());
        }
        if (costItemListBuilder_ == null) {
          if (!other.costItemList_.isEmpty()) {
            if (costItemList_.isEmpty()) {
              costItemList_ = other.costItemList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureCostItemListIsMutable();
              costItemList_.addAll(other.costItemList_);
            }
            onChanged();
          }
        } else {
          if (!other.costItemList_.isEmpty()) {
            if (costItemListBuilder_.isEmpty()) {
              costItemListBuilder_.dispose();
              costItemListBuilder_ = null;
              costItemList_ = other.costItemList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              costItemListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getCostItemListFieldBuilder() : null;
            } else {
              costItemListBuilder_.addAllMessages(other.costItemList_);
            }
          }
        }
        if (other.getSecondarySheetId() != 0) {
          setSecondarySheetId(other.getSecondarySheetId());
        }
        if (other.getHcoin() != 0) {
          setHcoin(other.getHcoin());
        }
        if (other.getMcoin() != 0) {
          setMcoin(other.getMcoin());
        }
        if (other.getDiscountId() != 0) {
          setDiscountId(other.getDiscountId());
        }
        if (other.getSingleLimit() != 0) {
          setSingleLimit(other.getSingleLimit());
        }
        if (other.getGoodsId() != 0) {
          setGoodsId(other.getGoodsId());
        }
        if (other.getNextRefreshTime() != 0) {
          setNextRefreshTime(other.getNextRefreshTime());
        }
        if (other.getMaxLevel() != 0) {
          setMaxLevel(other.getMaxLevel());
        }
        if (other.getDisableType() != 0) {
          setDisableType(other.getDisableType());
        }
        if (other.getDiscountBeginTime() != 0) {
          setDiscountBeginTime(other.getDiscountBeginTime());
        }
        if (!other.preGoodsIdList_.isEmpty()) {
          if (preGoodsIdList_.isEmpty()) {
            preGoodsIdList_ = other.preGoodsIdList_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensurePreGoodsIdListIsMutable();
            preGoodsIdList_.addAll(other.preGoodsIdList_);
          }
          onChanged();
        }
        if (other.getBeginTime() != 0) {
          setBeginTime(other.getBeginTime());
        }
        if (other.getScoin() != 0) {
          setScoin(other.getScoin());
        }
        if (other.getBoughtNum() != 0) {
          setBoughtNum(other.getBoughtNum());
        }
        if (other.getBuyLimit() != 0) {
          setBuyLimit(other.getBuyLimit());
        }
        if (other.hasGoodsItem()) {
          mergeGoodsItem(other.getGoodsItem());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int discountEndTime_ ;
      /**
       * <code>uint32 discount_end_time = 258;</code>
       * @return The discountEndTime.
       */
      @java.lang.Override
      public int getDiscountEndTime() {
        return discountEndTime_;
      }
      /**
       * <code>uint32 discount_end_time = 258;</code>
       * @param value The discountEndTime to set.
       * @return This builder for chaining.
       */
      public Builder setDiscountEndTime(int value) {
        
        discountEndTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 discount_end_time = 258;</code>
       * @return This builder for chaining.
       */
      public Builder clearDiscountEndTime() {
        
        discountEndTime_ = 0;
        onChanged();
        return this;
      }

      private int minLevel_ ;
      /**
       * <code>uint32 min_level = 8;</code>
       * @return The minLevel.
       */
      @java.lang.Override
      public int getMinLevel() {
        return minLevel_;
      }
      /**
       * <code>uint32 min_level = 8;</code>
       * @param value The minLevel to set.
       * @return This builder for chaining.
       */
      public Builder setMinLevel(int value) {
        
        minLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 min_level = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearMinLevel() {
        
        minLevel_ = 0;
        onChanged();
        return this;
      }

      private int endTime_ ;
      /**
       * <code>uint32 end_time = 11;</code>
       * @return The endTime.
       */
      @java.lang.Override
      public int getEndTime() {
        return endTime_;
      }
      /**
       * <code>uint32 end_time = 11;</code>
       * @param value The endTime to set.
       * @return This builder for chaining.
       */
      public Builder setEndTime(int value) {
        
        endTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 end_time = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearEndTime() {
        
        endTime_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> costItemList_ =
        java.util.Collections.emptyList();
      private void ensureCostItemListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          costItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(costItemList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> costItemListBuilder_;

      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getCostItemListList() {
        if (costItemListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(costItemList_);
        } else {
          return costItemListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public int getCostItemListCount() {
        if (costItemListBuilder_ == null) {
          return costItemList_.size();
        } else {
          return costItemListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getCostItemList(int index) {
        if (costItemListBuilder_ == null) {
          return costItemList_.get(index);
        } else {
          return costItemListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder setCostItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (costItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCostItemListIsMutable();
          costItemList_.set(index, value);
          onChanged();
        } else {
          costItemListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder setCostItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (costItemListBuilder_ == null) {
          ensureCostItemListIsMutable();
          costItemList_.set(index, builderForValue.build());
          onChanged();
        } else {
          costItemListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder addCostItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (costItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCostItemListIsMutable();
          costItemList_.add(value);
          onChanged();
        } else {
          costItemListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder addCostItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (costItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureCostItemListIsMutable();
          costItemList_.add(index, value);
          onChanged();
        } else {
          costItemListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder addCostItemList(
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (costItemListBuilder_ == null) {
          ensureCostItemListIsMutable();
          costItemList_.add(builderForValue.build());
          onChanged();
        } else {
          costItemListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder addCostItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (costItemListBuilder_ == null) {
          ensureCostItemListIsMutable();
          costItemList_.add(index, builderForValue.build());
          onChanged();
        } else {
          costItemListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder addAllCostItemList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
        if (costItemListBuilder_ == null) {
          ensureCostItemListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, costItemList_);
          onChanged();
        } else {
          costItemListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder clearCostItemList() {
        if (costItemListBuilder_ == null) {
          costItemList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          costItemListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public Builder removeCostItemList(int index) {
        if (costItemListBuilder_ == null) {
          ensureCostItemListIsMutable();
          costItemList_.remove(index);
          onChanged();
        } else {
          costItemListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getCostItemListBuilder(
          int index) {
        return getCostItemListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getCostItemListOrBuilder(
          int index) {
        if (costItemListBuilder_ == null) {
          return costItemList_.get(index);  } else {
          return costItemListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
           getCostItemListOrBuilderList() {
        if (costItemListBuilder_ != null) {
          return costItemListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(costItemList_);
        }
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addCostItemListBuilder() {
        return getCostItemListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addCostItemListBuilder(
          int index) {
        return getCostItemListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
      }
      /**
       * <code>repeated .ItemParam cost_item_list = 3;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> 
           getCostItemListBuilderList() {
        return getCostItemListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
          getCostItemListFieldBuilder() {
        if (costItemListBuilder_ == null) {
          costItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
                  costItemList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          costItemList_ = null;
        }
        return costItemListBuilder_;
      }

      private int secondarySheetId_ ;
      /**
       * <code>uint32 secondary_sheet_id = 318;</code>
       * @return The secondarySheetId.
       */
      @java.lang.Override
      public int getSecondarySheetId() {
        return secondarySheetId_;
      }
      /**
       * <code>uint32 secondary_sheet_id = 318;</code>
       * @param value The secondarySheetId to set.
       * @return This builder for chaining.
       */
      public Builder setSecondarySheetId(int value) {
        
        secondarySheetId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 secondary_sheet_id = 318;</code>
       * @return This builder for chaining.
       */
      public Builder clearSecondarySheetId() {
        
        secondarySheetId_ = 0;
        onChanged();
        return this;
      }

      private int hcoin_ ;
      /**
       * <code>uint32 hcoin = 1;</code>
       * @return The hcoin.
       */
      @java.lang.Override
      public int getHcoin() {
        return hcoin_;
      }
      /**
       * <code>uint32 hcoin = 1;</code>
       * @param value The hcoin to set.
       * @return This builder for chaining.
       */
      public Builder setHcoin(int value) {
        
        hcoin_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 hcoin = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearHcoin() {
        
        hcoin_ = 0;
        onChanged();
        return this;
      }

      private int mcoin_ ;
      /**
       * <code>uint32 mcoin = 14;</code>
       * @return The mcoin.
       */
      @java.lang.Override
      public int getMcoin() {
        return mcoin_;
      }
      /**
       * <code>uint32 mcoin = 14;</code>
       * @param value The mcoin to set.
       * @return This builder for chaining.
       */
      public Builder setMcoin(int value) {
        
        mcoin_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 mcoin = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearMcoin() {
        
        mcoin_ = 0;
        onChanged();
        return this;
      }

      private int discountId_ ;
      /**
       * <code>uint32 discount_id = 1998;</code>
       * @return The discountId.
       */
      @java.lang.Override
      public int getDiscountId() {
        return discountId_;
      }
      /**
       * <code>uint32 discount_id = 1998;</code>
       * @param value The discountId to set.
       * @return This builder for chaining.
       */
      public Builder setDiscountId(int value) {
        
        discountId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 discount_id = 1998;</code>
       * @return This builder for chaining.
       */
      public Builder clearDiscountId() {
        
        discountId_ = 0;
        onChanged();
        return this;
      }

      private int singleLimit_ ;
      /**
       * <code>uint32 single_limit = 247;</code>
       * @return The singleLimit.
       */
      @java.lang.Override
      public int getSingleLimit() {
        return singleLimit_;
      }
      /**
       * <code>uint32 single_limit = 247;</code>
       * @param value The singleLimit to set.
       * @return This builder for chaining.
       */
      public Builder setSingleLimit(int value) {
        
        singleLimit_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 single_limit = 247;</code>
       * @return This builder for chaining.
       */
      public Builder clearSingleLimit() {
        
        singleLimit_ = 0;
        onChanged();
        return this;
      }

      private int goodsId_ ;
      /**
       * <code>uint32 goods_id = 13;</code>
       * @return The goodsId.
       */
      @java.lang.Override
      public int getGoodsId() {
        return goodsId_;
      }
      /**
       * <code>uint32 goods_id = 13;</code>
       * @param value The goodsId to set.
       * @return This builder for chaining.
       */
      public Builder setGoodsId(int value) {
        
        goodsId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 goods_id = 13;</code>
       * @return This builder for chaining.
       */
      public Builder clearGoodsId() {
        
        goodsId_ = 0;
        onChanged();
        return this;
      }

      private int nextRefreshTime_ ;
      /**
       * <code>uint32 next_refresh_time = 7;</code>
       * @return The nextRefreshTime.
       */
      @java.lang.Override
      public int getNextRefreshTime() {
        return nextRefreshTime_;
      }
      /**
       * <code>uint32 next_refresh_time = 7;</code>
       * @param value The nextRefreshTime to set.
       * @return This builder for chaining.
       */
      public Builder setNextRefreshTime(int value) {
        
        nextRefreshTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 next_refresh_time = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearNextRefreshTime() {
        
        nextRefreshTime_ = 0;
        onChanged();
        return this;
      }

      private int maxLevel_ ;
      /**
       * <code>uint32 max_level = 4;</code>
       * @return The maxLevel.
       */
      @java.lang.Override
      public int getMaxLevel() {
        return maxLevel_;
      }
      /**
       * <code>uint32 max_level = 4;</code>
       * @param value The maxLevel to set.
       * @return This builder for chaining.
       */
      public Builder setMaxLevel(int value) {
        
        maxLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 max_level = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearMaxLevel() {
        
        maxLevel_ = 0;
        onChanged();
        return this;
      }

      private int disableType_ ;
      /**
       * <code>uint32 disable_type = 6;</code>
       * @return The disableType.
       */
      @java.lang.Override
      public int getDisableType() {
        return disableType_;
      }
      /**
       * <code>uint32 disable_type = 6;</code>
       * @param value The disableType to set.
       * @return This builder for chaining.
       */
      public Builder setDisableType(int value) {
        
        disableType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 disable_type = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearDisableType() {
        
        disableType_ = 0;
        onChanged();
        return this;
      }

      private int discountBeginTime_ ;
      /**
       * <code>uint32 discount_begin_time = 574;</code>
       * @return The discountBeginTime.
       */
      @java.lang.Override
      public int getDiscountBeginTime() {
        return discountBeginTime_;
      }
      /**
       * <code>uint32 discount_begin_time = 574;</code>
       * @param value The discountBeginTime to set.
       * @return This builder for chaining.
       */
      public Builder setDiscountBeginTime(int value) {
        
        discountBeginTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 discount_begin_time = 574;</code>
       * @return This builder for chaining.
       */
      public Builder clearDiscountBeginTime() {
        
        discountBeginTime_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.IntList preGoodsIdList_ = emptyIntList();
      private void ensurePreGoodsIdListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          preGoodsIdList_ = mutableCopy(preGoodsIdList_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @return A list containing the preGoodsIdList.
       */
      public java.util.List<java.lang.Integer>
          getPreGoodsIdListList() {
        return ((bitField0_ & 0x00000002) != 0) ?
                 java.util.Collections.unmodifiableList(preGoodsIdList_) : preGoodsIdList_;
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @return The count of preGoodsIdList.
       */
      public int getPreGoodsIdListCount() {
        return preGoodsIdList_.size();
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @param index The index of the element to return.
       * @return The preGoodsIdList at the given index.
       */
      public int getPreGoodsIdList(int index) {
        return preGoodsIdList_.getInt(index);
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @param index The index to set the value at.
       * @param value The preGoodsIdList to set.
       * @return This builder for chaining.
       */
      public Builder setPreGoodsIdList(
          int index, int value) {
        ensurePreGoodsIdListIsMutable();
        preGoodsIdList_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @param value The preGoodsIdList to add.
       * @return This builder for chaining.
       */
      public Builder addPreGoodsIdList(int value) {
        ensurePreGoodsIdListIsMutable();
        preGoodsIdList_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @param values The preGoodsIdList to add.
       * @return This builder for chaining.
       */
      public Builder addAllPreGoodsIdList(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensurePreGoodsIdListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, preGoodsIdList_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 pre_goods_id_list = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearPreGoodsIdList() {
        preGoodsIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      private int beginTime_ ;
      /**
       * <code>uint32 begin_time = 5;</code>
       * @return The beginTime.
       */
      @java.lang.Override
      public int getBeginTime() {
        return beginTime_;
      }
      /**
       * <code>uint32 begin_time = 5;</code>
       * @param value The beginTime to set.
       * @return This builder for chaining.
       */
      public Builder setBeginTime(int value) {
        
        beginTime_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 begin_time = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearBeginTime() {
        
        beginTime_ = 0;
        onChanged();
        return this;
      }

      private int scoin_ ;
      /**
       * <code>uint32 scoin = 15;</code>
       * @return The scoin.
       */
      @java.lang.Override
      public int getScoin() {
        return scoin_;
      }
      /**
       * <code>uint32 scoin = 15;</code>
       * @param value The scoin to set.
       * @return This builder for chaining.
       */
      public Builder setScoin(int value) {
        
        scoin_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 scoin = 15;</code>
       * @return This builder for chaining.
       */
      public Builder clearScoin() {
        
        scoin_ = 0;
        onChanged();
        return this;
      }

      private int boughtNum_ ;
      /**
       * <code>uint32 bought_num = 10;</code>
       * @return The boughtNum.
       */
      @java.lang.Override
      public int getBoughtNum() {
        return boughtNum_;
      }
      /**
       * <code>uint32 bought_num = 10;</code>
       * @param value The boughtNum to set.
       * @return This builder for chaining.
       */
      public Builder setBoughtNum(int value) {
        
        boughtNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 bought_num = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearBoughtNum() {
        
        boughtNum_ = 0;
        onChanged();
        return this;
      }

      private int buyLimit_ ;
      /**
       * <code>uint32 buy_limit = 12;</code>
       * @return The buyLimit.
       */
      @java.lang.Override
      public int getBuyLimit() {
        return buyLimit_;
      }
      /**
       * <code>uint32 buy_limit = 12;</code>
       * @param value The buyLimit to set.
       * @return This builder for chaining.
       */
      public Builder setBuyLimit(int value) {
        
        buyLimit_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 buy_limit = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearBuyLimit() {
        
        buyLimit_ = 0;
        onChanged();
        return this;
      }

      private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam goodsItem_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> goodsItemBuilder_;
      /**
       * <code>.ItemParam goods_item = 9;</code>
       * @return Whether the goodsItem field is set.
       */
      public boolean hasGoodsItem() {
        return goodsItemBuilder_ != null || goodsItem_ != null;
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       * @return The goodsItem.
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGoodsItem() {
        if (goodsItemBuilder_ == null) {
          return goodsItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : goodsItem_;
        } else {
          return goodsItemBuilder_.getMessage();
        }
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      public Builder setGoodsItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (goodsItemBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          goodsItem_ = value;
          onChanged();
        } else {
          goodsItemBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      public Builder setGoodsItem(
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (goodsItemBuilder_ == null) {
          goodsItem_ = builderForValue.build();
          onChanged();
        } else {
          goodsItemBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      public Builder mergeGoodsItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (goodsItemBuilder_ == null) {
          if (goodsItem_ != null) {
            goodsItem_ =
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder(goodsItem_).mergeFrom(value).buildPartial();
          } else {
            goodsItem_ = value;
          }
          onChanged();
        } else {
          goodsItemBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      public Builder clearGoodsItem() {
        if (goodsItemBuilder_ == null) {
          goodsItem_ = null;
          onChanged();
        } else {
          goodsItem_ = null;
          goodsItemBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getGoodsItemBuilder() {
        
        onChanged();
        return getGoodsItemFieldBuilder().getBuilder();
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGoodsItemOrBuilder() {
        if (goodsItemBuilder_ != null) {
          return goodsItemBuilder_.getMessageOrBuilder();
        } else {
          return goodsItem_ == null ?
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : goodsItem_;
        }
      }
      /**
       * <code>.ItemParam goods_item = 9;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
          getGoodsItemFieldBuilder() {
        if (goodsItemBuilder_ == null) {
          goodsItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
                  getGoodsItem(),
                  getParentForChildren(),
                  isClean());
          goodsItem_ = null;
        }
        return goodsItemBuilder_;
      }
      @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:ShopGoods)
    }

    // @@protoc_insertion_point(class_scope:ShopGoods)
    private static final emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods();
    }

    public static emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public emu.grasscutter.net.proto.ShopGoodsOuterClass.ShopGoods getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ShopGoods_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ShopGoods_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\017ShopGoods.proto\032\017ItemParam.proto\"\321\003\n\tS" +
      "hopGoods\022\032\n\021discount_end_time\030\202\002 \001(\r\022\021\n\t" +
      "min_level\030\010 \001(\r\022\020\n\010end_time\030\013 \001(\r\022\"\n\016cos" +
      "t_item_list\030\003 \003(\0132\n.ItemParam\022\033\n\022seconda" +
      "ry_sheet_id\030\276\002 \001(\r\022\r\n\005hcoin\030\001 \001(\r\022\r\n\005mco" +
      "in\030\016 \001(\r\022\024\n\013discount_id\030\316\017 \001(\r\022\025\n\014single" +
      "_limit\030\367\001 \001(\r\022\020\n\010goods_id\030\r \001(\r\022\031\n\021next_" +
      "refresh_time\030\007 \001(\r\022\021\n\tmax_level\030\004 \001(\r\022\024\n" +
      "\014disable_type\030\006 \001(\r\022\034\n\023discount_begin_ti" +
      "me\030\276\004 \001(\r\022\031\n\021pre_goods_id_list\030\002 \003(\r\022\022\n\n" +
      "begin_time\030\005 \001(\r\022\r\n\005scoin\030\017 \001(\r\022\022\n\nbough" +
      "t_num\030\n \001(\r\022\021\n\tbuy_limit\030\014 \001(\r\022\036\n\ngoods_" +
      "item\030\t \001(\0132\n.ItemParamB\033\n\031emu.grasscutte" +
      "r.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
        });
    internal_static_ShopGoods_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_ShopGoods_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ShopGoods_descriptor,
        new java.lang.String[] { "DiscountEndTime", "MinLevel", "EndTime", "CostItemList", "SecondarySheetId", "Hcoin", "Mcoin", "DiscountId", "SingleLimit", "GoodsId", "NextRefreshTime", "MaxLevel", "DisableType", "DiscountBeginTime", "PreGoodsIdList", "BeginTime", "Scoin", "BoughtNum", "BuyLimit", "GoodsItem", });
    emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
