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

package emu.grasscutter.net.proto;

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

    /**
     * <code>bool Unk3300_OHFMHIHJHPJ = 1812;</code>
     * @return The unk3300OHFMHIHJHPJ.
     */
    boolean getUnk3300OHFMHIHJHPJ();

    /**
     * <code>uint32 left_gacha_times = 3;</code>
     * @return The leftGachaTimes.
     */
    int getLeftGachaTimes();

    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> 
        getGachaItemListList();
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index);
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    int getGachaItemListCount();
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> 
        getGachaItemListOrBuilderList();
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder(
        int index);

    /**
     * <code>bool Unk3300_HBILIAEIHNK = 1887;</code>
     * @return The unk3300HBILIAEIHNK.
     */
    boolean getUnk3300HBILIAEIHNK();

    /**
     * <code>uint32 gacha_type = 10;</code>
     * @return The gachaType.
     */
    int getGachaType();

    /**
     * <code>uint32 new_gacha_random = 6;</code>
     * @return The newGachaRandom.
     */
    int getNewGachaRandom();

    /**
     * <code>uint32 wish_progress = 1;</code>
     * @return The wishProgress.
     */
    int getWishProgress();

    /**
     * <code>uint32 wish_max_progress = 5;</code>
     * @return The wishMaxProgress.
     */
    int getWishMaxProgress();

    /**
     * <code>uint32 gacha_times = 4;</code>
     * @return The gachaTimes.
     */
    int getGachaTimes();

    /**
     * <code>uint32 gacha_times_limit = 15;</code>
     * @return The gachaTimesLimit.
     */
    int getGachaTimesLimit();

    /**
     * <code>uint32 wish_item_id = 12;</code>
     * @return The wishItemId.
     */
    int getWishItemId();

    /**
     * <code>uint32 ten_cost_item_id = 13;</code>
     * @return The tenCostItemId.
     */
    int getTenCostItemId();

    /**
     * <code>uint32 cost_item_num = 8;</code>
     * @return The costItemNum.
     */
    int getCostItemNum();

    /**
     * <code>uint32 ten_cost_item_num = 2;</code>
     * @return The tenCostItemNum.
     */
    int getTenCostItemNum();

    /**
     * <code>uint32 cur_schedule_daily_gacha_times = 1550;</code>
     * @return The curScheduleDailyGachaTimes.
     */
    int getCurScheduleDailyGachaTimes();

    /**
     * <code>uint32 cost_item_id = 7;</code>
     * @return The costItemId.
     */
    int getCostItemId();

    /**
     * <code>uint32 gacha_schedule_id = 14;</code>
     * @return The gachaScheduleId.
     */
    int getGachaScheduleId();

    /**
     * <code>uint32 daily_gacha_times = 467;</code>
     * @return The dailyGachaTimes.
     */
    int getDailyGachaTimes();

    /**
     * <code>int32 retcode = 11;</code>
     * @return The retcode.
     */
    int getRetcode();
  }
  /**
   * <pre>
   * enum CmdId {
   *   option allow_alias = true;
   *   NONE = 0;
   *   CMD_ID = 1519;
   *   ENET_CHANNEL_ID = 0;
   *   ENET_IS_RELIABLE = 1;
   * }
   * </pre>
   *
   * Protobuf type {@code DoGachaRsp}
   */
  public static final class DoGachaRsp extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:DoGachaRsp)
      DoGachaRspOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DoGachaRsp.newBuilder() to construct.
    private DoGachaRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private DoGachaRsp() {
      gachaItemList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private DoGachaRsp(
        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: {

              wishProgress_ = input.readUInt32();
              break;
            }
            case 16: {

              tenCostItemNum_ = input.readUInt32();
              break;
            }
            case 24: {

              leftGachaTimes_ = input.readUInt32();
              break;
            }
            case 32: {

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

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

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

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

              costItemNum_ = input.readUInt32();
              break;
            }
            case 74: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                gachaItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem>();
                mutable_bitField0_ |= 0x00000001;
              }
              gachaItemList_.add(
                  input.readMessage(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.parser(), extensionRegistry));
              break;
            }
            case 80: {

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

              retcode_ = input.readInt32();
              break;
            }
            case 96: {

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

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

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

              gachaTimesLimit_ = input.readUInt32();
              break;
            }
            case 3736: {

              dailyGachaTimes_ = input.readUInt32();
              break;
            }
            case 12400: {

              curScheduleDailyGachaTimes_ = input.readUInt32();
              break;
            }
            case 14496: {

              unk3300OHFMHIHJHPJ_ = input.readBool();
              break;
            }
            case 15096: {

              unk3300HBILIAEIHNK_ = input.readBool();
              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_ & 0x00000001) != 0)) {
          gachaItemList_ = java.util.Collections.unmodifiableList(gachaItemList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor;
    }

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

    public static final int UNK3300_OHFMHIHJHPJ_FIELD_NUMBER = 1812;
    private boolean unk3300OHFMHIHJHPJ_;
    /**
     * <code>bool Unk3300_OHFMHIHJHPJ = 1812;</code>
     * @return The unk3300OHFMHIHJHPJ.
     */
    @java.lang.Override
    public boolean getUnk3300OHFMHIHJHPJ() {
      return unk3300OHFMHIHJHPJ_;
    }

    public static final int LEFT_GACHA_TIMES_FIELD_NUMBER = 3;
    private int leftGachaTimes_;
    /**
     * <code>uint32 left_gacha_times = 3;</code>
     * @return The leftGachaTimes.
     */
    @java.lang.Override
    public int getLeftGachaTimes() {
      return leftGachaTimes_;
    }

    public static final int GACHA_ITEM_LIST_FIELD_NUMBER = 9;
    private java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> gachaItemList_;
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> getGachaItemListList() {
      return gachaItemList_;
    }
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> 
        getGachaItemListOrBuilderList() {
      return gachaItemList_;
    }
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    @java.lang.Override
    public int getGachaItemListCount() {
      return gachaItemList_.size();
    }
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) {
      return gachaItemList_.get(index);
    }
    /**
     * <code>repeated .GachaItem gacha_item_list = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder(
        int index) {
      return gachaItemList_.get(index);
    }

    public static final int UNK3300_HBILIAEIHNK_FIELD_NUMBER = 1887;
    private boolean unk3300HBILIAEIHNK_;
    /**
     * <code>bool Unk3300_HBILIAEIHNK = 1887;</code>
     * @return The unk3300HBILIAEIHNK.
     */
    @java.lang.Override
    public boolean getUnk3300HBILIAEIHNK() {
      return unk3300HBILIAEIHNK_;
    }

    public static final int GACHA_TYPE_FIELD_NUMBER = 10;
    private int gachaType_;
    /**
     * <code>uint32 gacha_type = 10;</code>
     * @return The gachaType.
     */
    @java.lang.Override
    public int getGachaType() {
      return gachaType_;
    }

    public static final int NEW_GACHA_RANDOM_FIELD_NUMBER = 6;
    private int newGachaRandom_;
    /**
     * <code>uint32 new_gacha_random = 6;</code>
     * @return The newGachaRandom.
     */
    @java.lang.Override
    public int getNewGachaRandom() {
      return newGachaRandom_;
    }

    public static final int WISH_PROGRESS_FIELD_NUMBER = 1;
    private int wishProgress_;
    /**
     * <code>uint32 wish_progress = 1;</code>
     * @return The wishProgress.
     */
    @java.lang.Override
    public int getWishProgress() {
      return wishProgress_;
    }

    public static final int WISH_MAX_PROGRESS_FIELD_NUMBER = 5;
    private int wishMaxProgress_;
    /**
     * <code>uint32 wish_max_progress = 5;</code>
     * @return The wishMaxProgress.
     */
    @java.lang.Override
    public int getWishMaxProgress() {
      return wishMaxProgress_;
    }

    public static final int GACHA_TIMES_FIELD_NUMBER = 4;
    private int gachaTimes_;
    /**
     * <code>uint32 gacha_times = 4;</code>
     * @return The gachaTimes.
     */
    @java.lang.Override
    public int getGachaTimes() {
      return gachaTimes_;
    }

    public static final int GACHA_TIMES_LIMIT_FIELD_NUMBER = 15;
    private int gachaTimesLimit_;
    /**
     * <code>uint32 gacha_times_limit = 15;</code>
     * @return The gachaTimesLimit.
     */
    @java.lang.Override
    public int getGachaTimesLimit() {
      return gachaTimesLimit_;
    }

    public static final int WISH_ITEM_ID_FIELD_NUMBER = 12;
    private int wishItemId_;
    /**
     * <code>uint32 wish_item_id = 12;</code>
     * @return The wishItemId.
     */
    @java.lang.Override
    public int getWishItemId() {
      return wishItemId_;
    }

    public static final int TEN_COST_ITEM_ID_FIELD_NUMBER = 13;
    private int tenCostItemId_;
    /**
     * <code>uint32 ten_cost_item_id = 13;</code>
     * @return The tenCostItemId.
     */
    @java.lang.Override
    public int getTenCostItemId() {
      return tenCostItemId_;
    }

    public static final int COST_ITEM_NUM_FIELD_NUMBER = 8;
    private int costItemNum_;
    /**
     * <code>uint32 cost_item_num = 8;</code>
     * @return The costItemNum.
     */
    @java.lang.Override
    public int getCostItemNum() {
      return costItemNum_;
    }

    public static final int TEN_COST_ITEM_NUM_FIELD_NUMBER = 2;
    private int tenCostItemNum_;
    /**
     * <code>uint32 ten_cost_item_num = 2;</code>
     * @return The tenCostItemNum.
     */
    @java.lang.Override
    public int getTenCostItemNum() {
      return tenCostItemNum_;
    }

    public static final int CUR_SCHEDULE_DAILY_GACHA_TIMES_FIELD_NUMBER = 1550;
    private int curScheduleDailyGachaTimes_;
    /**
     * <code>uint32 cur_schedule_daily_gacha_times = 1550;</code>
     * @return The curScheduleDailyGachaTimes.
     */
    @java.lang.Override
    public int getCurScheduleDailyGachaTimes() {
      return curScheduleDailyGachaTimes_;
    }

    public static final int COST_ITEM_ID_FIELD_NUMBER = 7;
    private int costItemId_;
    /**
     * <code>uint32 cost_item_id = 7;</code>
     * @return The costItemId.
     */
    @java.lang.Override
    public int getCostItemId() {
      return costItemId_;
    }

    public static final int GACHA_SCHEDULE_ID_FIELD_NUMBER = 14;
    private int gachaScheduleId_;
    /**
     * <code>uint32 gacha_schedule_id = 14;</code>
     * @return The gachaScheduleId.
     */
    @java.lang.Override
    public int getGachaScheduleId() {
      return gachaScheduleId_;
    }

    public static final int DAILY_GACHA_TIMES_FIELD_NUMBER = 467;
    private int dailyGachaTimes_;
    /**
     * <code>uint32 daily_gacha_times = 467;</code>
     * @return The dailyGachaTimes.
     */
    @java.lang.Override
    public int getDailyGachaTimes() {
      return dailyGachaTimes_;
    }

    public static final int RETCODE_FIELD_NUMBER = 11;
    private int retcode_;
    /**
     * <code>int32 retcode = 11;</code>
     * @return The retcode.
     */
    @java.lang.Override
    public int getRetcode() {
      return retcode_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (wishProgress_ != 0) {
        output.writeUInt32(1, wishProgress_);
      }
      if (tenCostItemNum_ != 0) {
        output.writeUInt32(2, tenCostItemNum_);
      }
      if (leftGachaTimes_ != 0) {
        output.writeUInt32(3, leftGachaTimes_);
      }
      if (gachaTimes_ != 0) {
        output.writeUInt32(4, gachaTimes_);
      }
      if (wishMaxProgress_ != 0) {
        output.writeUInt32(5, wishMaxProgress_);
      }
      if (newGachaRandom_ != 0) {
        output.writeUInt32(6, newGachaRandom_);
      }
      if (costItemId_ != 0) {
        output.writeUInt32(7, costItemId_);
      }
      if (costItemNum_ != 0) {
        output.writeUInt32(8, costItemNum_);
      }
      for (int i = 0; i < gachaItemList_.size(); i++) {
        output.writeMessage(9, gachaItemList_.get(i));
      }
      if (gachaType_ != 0) {
        output.writeUInt32(10, gachaType_);
      }
      if (retcode_ != 0) {
        output.writeInt32(11, retcode_);
      }
      if (wishItemId_ != 0) {
        output.writeUInt32(12, wishItemId_);
      }
      if (tenCostItemId_ != 0) {
        output.writeUInt32(13, tenCostItemId_);
      }
      if (gachaScheduleId_ != 0) {
        output.writeUInt32(14, gachaScheduleId_);
      }
      if (gachaTimesLimit_ != 0) {
        output.writeUInt32(15, gachaTimesLimit_);
      }
      if (dailyGachaTimes_ != 0) {
        output.writeUInt32(467, dailyGachaTimes_);
      }
      if (curScheduleDailyGachaTimes_ != 0) {
        output.writeUInt32(1550, curScheduleDailyGachaTimes_);
      }
      if (unk3300OHFMHIHJHPJ_ != false) {
        output.writeBool(1812, unk3300OHFMHIHJHPJ_);
      }
      if (unk3300HBILIAEIHNK_ != false) {
        output.writeBool(1887, unk3300HBILIAEIHNK_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (wishProgress_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, wishProgress_);
      }
      if (tenCostItemNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, tenCostItemNum_);
      }
      if (leftGachaTimes_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, leftGachaTimes_);
      }
      if (gachaTimes_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, gachaTimes_);
      }
      if (wishMaxProgress_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, wishMaxProgress_);
      }
      if (newGachaRandom_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, newGachaRandom_);
      }
      if (costItemId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(7, costItemId_);
      }
      if (costItemNum_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(8, costItemNum_);
      }
      for (int i = 0; i < gachaItemList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, gachaItemList_.get(i));
      }
      if (gachaType_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(10, gachaType_);
      }
      if (retcode_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(11, retcode_);
      }
      if (wishItemId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(12, wishItemId_);
      }
      if (tenCostItemId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(13, tenCostItemId_);
      }
      if (gachaScheduleId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(14, gachaScheduleId_);
      }
      if (gachaTimesLimit_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(15, gachaTimesLimit_);
      }
      if (dailyGachaTimes_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(467, dailyGachaTimes_);
      }
      if (curScheduleDailyGachaTimes_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1550, curScheduleDailyGachaTimes_);
      }
      if (unk3300OHFMHIHJHPJ_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1812, unk3300OHFMHIHJHPJ_);
      }
      if (unk3300HBILIAEIHNK_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1887, unk3300HBILIAEIHNK_);
      }
      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.DoGachaRspOuterClass.DoGachaRsp)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp other = (emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) obj;

      if (getUnk3300OHFMHIHJHPJ()
          != other.getUnk3300OHFMHIHJHPJ()) return false;
      if (getLeftGachaTimes()
          != other.getLeftGachaTimes()) return false;
      if (!getGachaItemListList()
          .equals(other.getGachaItemListList())) return false;
      if (getUnk3300HBILIAEIHNK()
          != other.getUnk3300HBILIAEIHNK()) return false;
      if (getGachaType()
          != other.getGachaType()) return false;
      if (getNewGachaRandom()
          != other.getNewGachaRandom()) return false;
      if (getWishProgress()
          != other.getWishProgress()) return false;
      if (getWishMaxProgress()
          != other.getWishMaxProgress()) return false;
      if (getGachaTimes()
          != other.getGachaTimes()) return false;
      if (getGachaTimesLimit()
          != other.getGachaTimesLimit()) return false;
      if (getWishItemId()
          != other.getWishItemId()) return false;
      if (getTenCostItemId()
          != other.getTenCostItemId()) return false;
      if (getCostItemNum()
          != other.getCostItemNum()) return false;
      if (getTenCostItemNum()
          != other.getTenCostItemNum()) return false;
      if (getCurScheduleDailyGachaTimes()
          != other.getCurScheduleDailyGachaTimes()) return false;
      if (getCostItemId()
          != other.getCostItemId()) return false;
      if (getGachaScheduleId()
          != other.getGachaScheduleId()) return false;
      if (getDailyGachaTimes()
          != other.getDailyGachaTimes()) return false;
      if (getRetcode()
          != other.getRetcode()) 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) + UNK3300_OHFMHIHJHPJ_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getUnk3300OHFMHIHJHPJ());
      hash = (37 * hash) + LEFT_GACHA_TIMES_FIELD_NUMBER;
      hash = (53 * hash) + getLeftGachaTimes();
      if (getGachaItemListCount() > 0) {
        hash = (37 * hash) + GACHA_ITEM_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getGachaItemListList().hashCode();
      }
      hash = (37 * hash) + UNK3300_HBILIAEIHNK_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getUnk3300HBILIAEIHNK());
      hash = (37 * hash) + GACHA_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getGachaType();
      hash = (37 * hash) + NEW_GACHA_RANDOM_FIELD_NUMBER;
      hash = (53 * hash) + getNewGachaRandom();
      hash = (37 * hash) + WISH_PROGRESS_FIELD_NUMBER;
      hash = (53 * hash) + getWishProgress();
      hash = (37 * hash) + WISH_MAX_PROGRESS_FIELD_NUMBER;
      hash = (53 * hash) + getWishMaxProgress();
      hash = (37 * hash) + GACHA_TIMES_FIELD_NUMBER;
      hash = (53 * hash) + getGachaTimes();
      hash = (37 * hash) + GACHA_TIMES_LIMIT_FIELD_NUMBER;
      hash = (53 * hash) + getGachaTimesLimit();
      hash = (37 * hash) + WISH_ITEM_ID_FIELD_NUMBER;
      hash = (53 * hash) + getWishItemId();
      hash = (37 * hash) + TEN_COST_ITEM_ID_FIELD_NUMBER;
      hash = (53 * hash) + getTenCostItemId();
      hash = (37 * hash) + COST_ITEM_NUM_FIELD_NUMBER;
      hash = (53 * hash) + getCostItemNum();
      hash = (37 * hash) + TEN_COST_ITEM_NUM_FIELD_NUMBER;
      hash = (53 * hash) + getTenCostItemNum();
      hash = (37 * hash) + CUR_SCHEDULE_DAILY_GACHA_TIMES_FIELD_NUMBER;
      hash = (53 * hash) + getCurScheduleDailyGachaTimes();
      hash = (37 * hash) + COST_ITEM_ID_FIELD_NUMBER;
      hash = (53 * hash) + getCostItemId();
      hash = (37 * hash) + GACHA_SCHEDULE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getGachaScheduleId();
      hash = (37 * hash) + DAILY_GACHA_TIMES_FIELD_NUMBER;
      hash = (53 * hash) + getDailyGachaTimes();
      hash = (37 * hash) + RETCODE_FIELD_NUMBER;
      hash = (53 * hash) + getRetcode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp 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.DoGachaRspOuterClass.DoGachaRsp 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;
    }
    /**
     * <pre>
     * enum CmdId {
     *   option allow_alias = true;
     *   NONE = 0;
     *   CMD_ID = 1519;
     *   ENET_CHANNEL_ID = 0;
     *   ENET_IS_RELIABLE = 1;
     * }
     * </pre>
     *
     * Protobuf type {@code DoGachaRsp}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:DoGachaRsp)
        emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRspOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.DoGachaRspOuterClass.internal_static_DoGachaRsp_descriptor;
      }

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

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

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

        leftGachaTimes_ = 0;

        if (gachaItemListBuilder_ == null) {
          gachaItemList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          gachaItemListBuilder_.clear();
        }
        unk3300HBILIAEIHNK_ = false;

        gachaType_ = 0;

        newGachaRandom_ = 0;

        wishProgress_ = 0;

        wishMaxProgress_ = 0;

        gachaTimes_ = 0;

        gachaTimesLimit_ = 0;

        wishItemId_ = 0;

        tenCostItemId_ = 0;

        costItemNum_ = 0;

        tenCostItemNum_ = 0;

        curScheduleDailyGachaTimes_ = 0;

        costItemId_ = 0;

        gachaScheduleId_ = 0;

        dailyGachaTimes_ = 0;

        retcode_ = 0;

        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp buildPartial() {
        emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp result = new emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp(this);
        int from_bitField0_ = bitField0_;
        result.unk3300OHFMHIHJHPJ_ = unk3300OHFMHIHJHPJ_;
        result.leftGachaTimes_ = leftGachaTimes_;
        if (gachaItemListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            gachaItemList_ = java.util.Collections.unmodifiableList(gachaItemList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.gachaItemList_ = gachaItemList_;
        } else {
          result.gachaItemList_ = gachaItemListBuilder_.build();
        }
        result.unk3300HBILIAEIHNK_ = unk3300HBILIAEIHNK_;
        result.gachaType_ = gachaType_;
        result.newGachaRandom_ = newGachaRandom_;
        result.wishProgress_ = wishProgress_;
        result.wishMaxProgress_ = wishMaxProgress_;
        result.gachaTimes_ = gachaTimes_;
        result.gachaTimesLimit_ = gachaTimesLimit_;
        result.wishItemId_ = wishItemId_;
        result.tenCostItemId_ = tenCostItemId_;
        result.costItemNum_ = costItemNum_;
        result.tenCostItemNum_ = tenCostItemNum_;
        result.curScheduleDailyGachaTimes_ = curScheduleDailyGachaTimes_;
        result.costItemId_ = costItemId_;
        result.gachaScheduleId_ = gachaScheduleId_;
        result.dailyGachaTimes_ = dailyGachaTimes_;
        result.retcode_ = retcode_;
        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.DoGachaRspOuterClass.DoGachaRsp) {
          return mergeFrom((emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp other) {
        if (other == emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp.getDefaultInstance()) return this;
        if (other.getUnk3300OHFMHIHJHPJ() != false) {
          setUnk3300OHFMHIHJHPJ(other.getUnk3300OHFMHIHJHPJ());
        }
        if (other.getLeftGachaTimes() != 0) {
          setLeftGachaTimes(other.getLeftGachaTimes());
        }
        if (gachaItemListBuilder_ == null) {
          if (!other.gachaItemList_.isEmpty()) {
            if (gachaItemList_.isEmpty()) {
              gachaItemList_ = other.gachaItemList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureGachaItemListIsMutable();
              gachaItemList_.addAll(other.gachaItemList_);
            }
            onChanged();
          }
        } else {
          if (!other.gachaItemList_.isEmpty()) {
            if (gachaItemListBuilder_.isEmpty()) {
              gachaItemListBuilder_.dispose();
              gachaItemListBuilder_ = null;
              gachaItemList_ = other.gachaItemList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              gachaItemListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getGachaItemListFieldBuilder() : null;
            } else {
              gachaItemListBuilder_.addAllMessages(other.gachaItemList_);
            }
          }
        }
        if (other.getUnk3300HBILIAEIHNK() != false) {
          setUnk3300HBILIAEIHNK(other.getUnk3300HBILIAEIHNK());
        }
        if (other.getGachaType() != 0) {
          setGachaType(other.getGachaType());
        }
        if (other.getNewGachaRandom() != 0) {
          setNewGachaRandom(other.getNewGachaRandom());
        }
        if (other.getWishProgress() != 0) {
          setWishProgress(other.getWishProgress());
        }
        if (other.getWishMaxProgress() != 0) {
          setWishMaxProgress(other.getWishMaxProgress());
        }
        if (other.getGachaTimes() != 0) {
          setGachaTimes(other.getGachaTimes());
        }
        if (other.getGachaTimesLimit() != 0) {
          setGachaTimesLimit(other.getGachaTimesLimit());
        }
        if (other.getWishItemId() != 0) {
          setWishItemId(other.getWishItemId());
        }
        if (other.getTenCostItemId() != 0) {
          setTenCostItemId(other.getTenCostItemId());
        }
        if (other.getCostItemNum() != 0) {
          setCostItemNum(other.getCostItemNum());
        }
        if (other.getTenCostItemNum() != 0) {
          setTenCostItemNum(other.getTenCostItemNum());
        }
        if (other.getCurScheduleDailyGachaTimes() != 0) {
          setCurScheduleDailyGachaTimes(other.getCurScheduleDailyGachaTimes());
        }
        if (other.getCostItemId() != 0) {
          setCostItemId(other.getCostItemId());
        }
        if (other.getGachaScheduleId() != 0) {
          setGachaScheduleId(other.getGachaScheduleId());
        }
        if (other.getDailyGachaTimes() != 0) {
          setDailyGachaTimes(other.getDailyGachaTimes());
        }
        if (other.getRetcode() != 0) {
          setRetcode(other.getRetcode());
        }
        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.DoGachaRspOuterClass.DoGachaRsp parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private boolean unk3300OHFMHIHJHPJ_ ;
      /**
       * <code>bool Unk3300_OHFMHIHJHPJ = 1812;</code>
       * @return The unk3300OHFMHIHJHPJ.
       */
      @java.lang.Override
      public boolean getUnk3300OHFMHIHJHPJ() {
        return unk3300OHFMHIHJHPJ_;
      }
      /**
       * <code>bool Unk3300_OHFMHIHJHPJ = 1812;</code>
       * @param value The unk3300OHFMHIHJHPJ to set.
       * @return This builder for chaining.
       */
      public Builder setUnk3300OHFMHIHJHPJ(boolean value) {
        
        unk3300OHFMHIHJHPJ_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool Unk3300_OHFMHIHJHPJ = 1812;</code>
       * @return This builder for chaining.
       */
      public Builder clearUnk3300OHFMHIHJHPJ() {
        
        unk3300OHFMHIHJHPJ_ = false;
        onChanged();
        return this;
      }

      private int leftGachaTimes_ ;
      /**
       * <code>uint32 left_gacha_times = 3;</code>
       * @return The leftGachaTimes.
       */
      @java.lang.Override
      public int getLeftGachaTimes() {
        return leftGachaTimes_;
      }
      /**
       * <code>uint32 left_gacha_times = 3;</code>
       * @param value The leftGachaTimes to set.
       * @return This builder for chaining.
       */
      public Builder setLeftGachaTimes(int value) {
        
        leftGachaTimes_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 left_gacha_times = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearLeftGachaTimes() {
        
        leftGachaTimes_ = 0;
        onChanged();
        return this;
      }

      private java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> gachaItemList_ =
        java.util.Collections.emptyList();
      private void ensureGachaItemListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          gachaItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem>(gachaItemList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> gachaItemListBuilder_;

      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> getGachaItemListList() {
        if (gachaItemListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(gachaItemList_);
        } else {
          return gachaItemListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public int getGachaItemListCount() {
        if (gachaItemListBuilder_ == null) {
          return gachaItemList_.size();
        } else {
          return gachaItemListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getGachaItemList(int index) {
        if (gachaItemListBuilder_ == null) {
          return gachaItemList_.get(index);
        } else {
          return gachaItemListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder setGachaItemList(
          int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) {
        if (gachaItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGachaItemListIsMutable();
          gachaItemList_.set(index, value);
          onChanged();
        } else {
          gachaItemListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder setGachaItemList(
          int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) {
        if (gachaItemListBuilder_ == null) {
          ensureGachaItemListIsMutable();
          gachaItemList_.set(index, builderForValue.build());
          onChanged();
        } else {
          gachaItemListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder addGachaItemList(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) {
        if (gachaItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGachaItemListIsMutable();
          gachaItemList_.add(value);
          onChanged();
        } else {
          gachaItemListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder addGachaItemList(
          int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem value) {
        if (gachaItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGachaItemListIsMutable();
          gachaItemList_.add(index, value);
          onChanged();
        } else {
          gachaItemListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder addGachaItemList(
          emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) {
        if (gachaItemListBuilder_ == null) {
          ensureGachaItemListIsMutable();
          gachaItemList_.add(builderForValue.build());
          onChanged();
        } else {
          gachaItemListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder addGachaItemList(
          int index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder builderForValue) {
        if (gachaItemListBuilder_ == null) {
          ensureGachaItemListIsMutable();
          gachaItemList_.add(index, builderForValue.build());
          onChanged();
        } else {
          gachaItemListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder addAllGachaItemList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem> values) {
        if (gachaItemListBuilder_ == null) {
          ensureGachaItemListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, gachaItemList_);
          onChanged();
        } else {
          gachaItemListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder clearGachaItemList() {
        if (gachaItemListBuilder_ == null) {
          gachaItemList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          gachaItemListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public Builder removeGachaItemList(int index) {
        if (gachaItemListBuilder_ == null) {
          ensureGachaItemListIsMutable();
          gachaItemList_.remove(index);
          onChanged();
        } else {
          gachaItemListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder getGachaItemListBuilder(
          int index) {
        return getGachaItemListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder getGachaItemListOrBuilder(
          int index) {
        if (gachaItemListBuilder_ == null) {
          return gachaItemList_.get(index);  } else {
          return gachaItemListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> 
           getGachaItemListOrBuilderList() {
        if (gachaItemListBuilder_ != null) {
          return gachaItemListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(gachaItemList_);
        }
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder() {
        return getGachaItemListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance());
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder addGachaItemListBuilder(
          int index) {
        return getGachaItemListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance());
      }
      /**
       * <code>repeated .GachaItem gacha_item_list = 9;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder> 
           getGachaItemListBuilderList() {
        return getGachaItemListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder> 
          getGachaItemListFieldBuilder() {
        if (gachaItemListBuilder_ == null) {
          gachaItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.Builder, emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder>(
                  gachaItemList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          gachaItemList_ = null;
        }
        return gachaItemListBuilder_;
      }

      private boolean unk3300HBILIAEIHNK_ ;
      /**
       * <code>bool Unk3300_HBILIAEIHNK = 1887;</code>
       * @return The unk3300HBILIAEIHNK.
       */
      @java.lang.Override
      public boolean getUnk3300HBILIAEIHNK() {
        return unk3300HBILIAEIHNK_;
      }
      /**
       * <code>bool Unk3300_HBILIAEIHNK = 1887;</code>
       * @param value The unk3300HBILIAEIHNK to set.
       * @return This builder for chaining.
       */
      public Builder setUnk3300HBILIAEIHNK(boolean value) {
        
        unk3300HBILIAEIHNK_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool Unk3300_HBILIAEIHNK = 1887;</code>
       * @return This builder for chaining.
       */
      public Builder clearUnk3300HBILIAEIHNK() {
        
        unk3300HBILIAEIHNK_ = false;
        onChanged();
        return this;
      }

      private int gachaType_ ;
      /**
       * <code>uint32 gacha_type = 10;</code>
       * @return The gachaType.
       */
      @java.lang.Override
      public int getGachaType() {
        return gachaType_;
      }
      /**
       * <code>uint32 gacha_type = 10;</code>
       * @param value The gachaType to set.
       * @return This builder for chaining.
       */
      public Builder setGachaType(int value) {
        
        gachaType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 gacha_type = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearGachaType() {
        
        gachaType_ = 0;
        onChanged();
        return this;
      }

      private int newGachaRandom_ ;
      /**
       * <code>uint32 new_gacha_random = 6;</code>
       * @return The newGachaRandom.
       */
      @java.lang.Override
      public int getNewGachaRandom() {
        return newGachaRandom_;
      }
      /**
       * <code>uint32 new_gacha_random = 6;</code>
       * @param value The newGachaRandom to set.
       * @return This builder for chaining.
       */
      public Builder setNewGachaRandom(int value) {
        
        newGachaRandom_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 new_gacha_random = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearNewGachaRandom() {
        
        newGachaRandom_ = 0;
        onChanged();
        return this;
      }

      private int wishProgress_ ;
      /**
       * <code>uint32 wish_progress = 1;</code>
       * @return The wishProgress.
       */
      @java.lang.Override
      public int getWishProgress() {
        return wishProgress_;
      }
      /**
       * <code>uint32 wish_progress = 1;</code>
       * @param value The wishProgress to set.
       * @return This builder for chaining.
       */
      public Builder setWishProgress(int value) {
        
        wishProgress_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 wish_progress = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearWishProgress() {
        
        wishProgress_ = 0;
        onChanged();
        return this;
      }

      private int wishMaxProgress_ ;
      /**
       * <code>uint32 wish_max_progress = 5;</code>
       * @return The wishMaxProgress.
       */
      @java.lang.Override
      public int getWishMaxProgress() {
        return wishMaxProgress_;
      }
      /**
       * <code>uint32 wish_max_progress = 5;</code>
       * @param value The wishMaxProgress to set.
       * @return This builder for chaining.
       */
      public Builder setWishMaxProgress(int value) {
        
        wishMaxProgress_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 wish_max_progress = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearWishMaxProgress() {
        
        wishMaxProgress_ = 0;
        onChanged();
        return this;
      }

      private int gachaTimes_ ;
      /**
       * <code>uint32 gacha_times = 4;</code>
       * @return The gachaTimes.
       */
      @java.lang.Override
      public int getGachaTimes() {
        return gachaTimes_;
      }
      /**
       * <code>uint32 gacha_times = 4;</code>
       * @param value The gachaTimes to set.
       * @return This builder for chaining.
       */
      public Builder setGachaTimes(int value) {
        
        gachaTimes_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 gacha_times = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearGachaTimes() {
        
        gachaTimes_ = 0;
        onChanged();
        return this;
      }

      private int gachaTimesLimit_ ;
      /**
       * <code>uint32 gacha_times_limit = 15;</code>
       * @return The gachaTimesLimit.
       */
      @java.lang.Override
      public int getGachaTimesLimit() {
        return gachaTimesLimit_;
      }
      /**
       * <code>uint32 gacha_times_limit = 15;</code>
       * @param value The gachaTimesLimit to set.
       * @return This builder for chaining.
       */
      public Builder setGachaTimesLimit(int value) {
        
        gachaTimesLimit_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 gacha_times_limit = 15;</code>
       * @return This builder for chaining.
       */
      public Builder clearGachaTimesLimit() {
        
        gachaTimesLimit_ = 0;
        onChanged();
        return this;
      }

      private int wishItemId_ ;
      /**
       * <code>uint32 wish_item_id = 12;</code>
       * @return The wishItemId.
       */
      @java.lang.Override
      public int getWishItemId() {
        return wishItemId_;
      }
      /**
       * <code>uint32 wish_item_id = 12;</code>
       * @param value The wishItemId to set.
       * @return This builder for chaining.
       */
      public Builder setWishItemId(int value) {
        
        wishItemId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 wish_item_id = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearWishItemId() {
        
        wishItemId_ = 0;
        onChanged();
        return this;
      }

      private int tenCostItemId_ ;
      /**
       * <code>uint32 ten_cost_item_id = 13;</code>
       * @return The tenCostItemId.
       */
      @java.lang.Override
      public int getTenCostItemId() {
        return tenCostItemId_;
      }
      /**
       * <code>uint32 ten_cost_item_id = 13;</code>
       * @param value The tenCostItemId to set.
       * @return This builder for chaining.
       */
      public Builder setTenCostItemId(int value) {
        
        tenCostItemId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 ten_cost_item_id = 13;</code>
       * @return This builder for chaining.
       */
      public Builder clearTenCostItemId() {
        
        tenCostItemId_ = 0;
        onChanged();
        return this;
      }

      private int costItemNum_ ;
      /**
       * <code>uint32 cost_item_num = 8;</code>
       * @return The costItemNum.
       */
      @java.lang.Override
      public int getCostItemNum() {
        return costItemNum_;
      }
      /**
       * <code>uint32 cost_item_num = 8;</code>
       * @param value The costItemNum to set.
       * @return This builder for chaining.
       */
      public Builder setCostItemNum(int value) {
        
        costItemNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 cost_item_num = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearCostItemNum() {
        
        costItemNum_ = 0;
        onChanged();
        return this;
      }

      private int tenCostItemNum_ ;
      /**
       * <code>uint32 ten_cost_item_num = 2;</code>
       * @return The tenCostItemNum.
       */
      @java.lang.Override
      public int getTenCostItemNum() {
        return tenCostItemNum_;
      }
      /**
       * <code>uint32 ten_cost_item_num = 2;</code>
       * @param value The tenCostItemNum to set.
       * @return This builder for chaining.
       */
      public Builder setTenCostItemNum(int value) {
        
        tenCostItemNum_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 ten_cost_item_num = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearTenCostItemNum() {
        
        tenCostItemNum_ = 0;
        onChanged();
        return this;
      }

      private int curScheduleDailyGachaTimes_ ;
      /**
       * <code>uint32 cur_schedule_daily_gacha_times = 1550;</code>
       * @return The curScheduleDailyGachaTimes.
       */
      @java.lang.Override
      public int getCurScheduleDailyGachaTimes() {
        return curScheduleDailyGachaTimes_;
      }
      /**
       * <code>uint32 cur_schedule_daily_gacha_times = 1550;</code>
       * @param value The curScheduleDailyGachaTimes to set.
       * @return This builder for chaining.
       */
      public Builder setCurScheduleDailyGachaTimes(int value) {
        
        curScheduleDailyGachaTimes_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 cur_schedule_daily_gacha_times = 1550;</code>
       * @return This builder for chaining.
       */
      public Builder clearCurScheduleDailyGachaTimes() {
        
        curScheduleDailyGachaTimes_ = 0;
        onChanged();
        return this;
      }

      private int costItemId_ ;
      /**
       * <code>uint32 cost_item_id = 7;</code>
       * @return The costItemId.
       */
      @java.lang.Override
      public int getCostItemId() {
        return costItemId_;
      }
      /**
       * <code>uint32 cost_item_id = 7;</code>
       * @param value The costItemId to set.
       * @return This builder for chaining.
       */
      public Builder setCostItemId(int value) {
        
        costItemId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 cost_item_id = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearCostItemId() {
        
        costItemId_ = 0;
        onChanged();
        return this;
      }

      private int gachaScheduleId_ ;
      /**
       * <code>uint32 gacha_schedule_id = 14;</code>
       * @return The gachaScheduleId.
       */
      @java.lang.Override
      public int getGachaScheduleId() {
        return gachaScheduleId_;
      }
      /**
       * <code>uint32 gacha_schedule_id = 14;</code>
       * @param value The gachaScheduleId to set.
       * @return This builder for chaining.
       */
      public Builder setGachaScheduleId(int value) {
        
        gachaScheduleId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 gacha_schedule_id = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearGachaScheduleId() {
        
        gachaScheduleId_ = 0;
        onChanged();
        return this;
      }

      private int dailyGachaTimes_ ;
      /**
       * <code>uint32 daily_gacha_times = 467;</code>
       * @return The dailyGachaTimes.
       */
      @java.lang.Override
      public int getDailyGachaTimes() {
        return dailyGachaTimes_;
      }
      /**
       * <code>uint32 daily_gacha_times = 467;</code>
       * @param value The dailyGachaTimes to set.
       * @return This builder for chaining.
       */
      public Builder setDailyGachaTimes(int value) {
        
        dailyGachaTimes_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 daily_gacha_times = 467;</code>
       * @return This builder for chaining.
       */
      public Builder clearDailyGachaTimes() {
        
        dailyGachaTimes_ = 0;
        onChanged();
        return this;
      }

      private int retcode_ ;
      /**
       * <code>int32 retcode = 11;</code>
       * @return The retcode.
       */
      @java.lang.Override
      public int getRetcode() {
        return retcode_;
      }
      /**
       * <code>int32 retcode = 11;</code>
       * @param value The retcode to set.
       * @return This builder for chaining.
       */
      public Builder setRetcode(int value) {
        
        retcode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 retcode = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearRetcode() {
        
        retcode_ = 0;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:DoGachaRsp)
    }

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

    public static emu.grasscutter.net.proto.DoGachaRspOuterClass.DoGachaRsp getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_DoGachaRsp_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_DoGachaRsp_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\020DoGachaRsp.proto\032\017GachaItem.proto\"\200\004\n\n" +
      "DoGachaRsp\022\034\n\023Unk3300_OHFMHIHJHPJ\030\224\016 \001(\010" +
      "\022\030\n\020left_gacha_times\030\003 \001(\r\022#\n\017gacha_item" +
      "_list\030\t \003(\0132\n.GachaItem\022\034\n\023Unk3300_HBILI" +
      "AEIHNK\030\337\016 \001(\010\022\022\n\ngacha_type\030\n \001(\r\022\030\n\020new" +
      "_gacha_random\030\006 \001(\r\022\025\n\rwish_progress\030\001 \001" +
      "(\r\022\031\n\021wish_max_progress\030\005 \001(\r\022\023\n\013gacha_t" +
      "imes\030\004 \001(\r\022\031\n\021gacha_times_limit\030\017 \001(\r\022\024\n" +
      "\014wish_item_id\030\014 \001(\r\022\030\n\020ten_cost_item_id\030" +
      "\r \001(\r\022\025\n\rcost_item_num\030\010 \001(\r\022\031\n\021ten_cost" +
      "_item_num\030\002 \001(\r\022\'\n\036cur_schedule_daily_ga" +
      "cha_times\030\216\014 \001(\r\022\024\n\014cost_item_id\030\007 \001(\r\022\031" +
      "\n\021gacha_schedule_id\030\016 \001(\r\022\032\n\021daily_gacha" +
      "_times\030\323\003 \001(\r\022\017\n\007retcode\030\013 \001(\005B\033\n\031emu.gr" +
      "asscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.GachaItemOuterClass.getDescriptor(),
        });
    internal_static_DoGachaRsp_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_DoGachaRsp_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_DoGachaRsp_descriptor,
        new java.lang.String[] { "Unk3300OHFMHIHJHPJ", "LeftGachaTimes", "GachaItemList", "Unk3300HBILIAEIHNK", "GachaType", "NewGachaRandom", "WishProgress", "WishMaxProgress", "GachaTimes", "GachaTimesLimit", "WishItemId", "TenCostItemId", "CostItemNum", "TenCostItemNum", "CurScheduleDailyGachaTimes", "CostItemId", "GachaScheduleId", "DailyGachaTimes", "Retcode", });
    emu.grasscutter.net.proto.GachaItemOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
