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

package io.grasscutter.net.proto.gacha;

/**
 * <pre>
 * CmdId: 3581
 * </pre>
 *
 * Protobuf type {@code GetGachaInfoRsp}
 */
public final class GetGachaInfoRsp extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:GetGachaInfoRsp)
    GetGachaInfoRspOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetGachaInfoRsp.newBuilder() to construct.
  private GetGachaInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GetGachaInfoRsp() {
    gachaInfoList_ = java.util.Collections.emptyList();
  }

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

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

            isUnderMinorsRestrict_ = input.readBool();
            break;
          }
          case 16: {

            isUnderGeneralRestrict_ = input.readBool();
            break;
          }
          case 24: {

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

            retcode_ = input.readInt32();
            break;
          }
          case 90: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              gachaInfoList_ = new java.util.ArrayList<io.grasscutter.net.proto.gacha.GachaInfo>();
              mutable_bitField0_ |= 0x00000001;
            }
            gachaInfoList_.add(
                input.readMessage(io.grasscutter.net.proto.gacha.GachaInfo.parser(), extensionRegistry));
            break;
          }
          case 112: {

            gachaRandom_ = 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_ & 0x00000001) != 0)) {
        gachaInfoList_ = java.util.Collections.unmodifiableList(gachaInfoList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.gacha.Gacha.internal_static_GetGachaInfoRsp_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.gacha.Gacha.internal_static_GetGachaInfoRsp_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.gacha.GetGachaInfoRsp.class, io.grasscutter.net.proto.gacha.GetGachaInfoRsp.Builder.class);
  }

  public static final int GACHA_INFO_LIST_FIELD_NUMBER = 11;
  private java.util.List<io.grasscutter.net.proto.gacha.GachaInfo> gachaInfoList_;
  /**
   * <code>repeated .GachaInfo gacha_info_list = 11;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.gacha.GachaInfo> getGachaInfoListList() {
    return gachaInfoList_;
  }
  /**
   * <code>repeated .GachaInfo gacha_info_list = 11;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.gacha.GachaInfoOrBuilder> 
      getGachaInfoListOrBuilderList() {
    return gachaInfoList_;
  }
  /**
   * <code>repeated .GachaInfo gacha_info_list = 11;</code>
   */
  @java.lang.Override
  public int getGachaInfoListCount() {
    return gachaInfoList_.size();
  }
  /**
   * <code>repeated .GachaInfo gacha_info_list = 11;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.gacha.GachaInfo getGachaInfoList(int index) {
    return gachaInfoList_.get(index);
  }
  /**
   * <code>repeated .GachaInfo gacha_info_list = 11;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.gacha.GachaInfoOrBuilder getGachaInfoListOrBuilder(
      int index) {
    return gachaInfoList_.get(index);
  }

  public static final int IS_UNDER_GENERAL_RESTRICT_FIELD_NUMBER = 2;
  private boolean isUnderGeneralRestrict_;
  /**
   * <code>bool is_under_general_restrict = 2;</code>
   * @return The isUnderGeneralRestrict.
   */
  @java.lang.Override
  public boolean getIsUnderGeneralRestrict() {
    return isUnderGeneralRestrict_;
  }

  public static final int IS_UNDER_MINORS_RESTRICT_FIELD_NUMBER = 1;
  private boolean isUnderMinorsRestrict_;
  /**
   * <code>bool is_under_minors_restrict = 1;</code>
   * @return The isUnderMinorsRestrict.
   */
  @java.lang.Override
  public boolean getIsUnderMinorsRestrict() {
    return isUnderMinorsRestrict_;
  }

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

  public static final int GACHA_RANDOM_FIELD_NUMBER = 14;
  private int gachaRandom_;
  /**
   * <code>uint32 gacha_random = 14;</code>
   * @return The gachaRandom.
   */
  @java.lang.Override
  public int getGachaRandom() {
    return gachaRandom_;
  }

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

  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 (isUnderMinorsRestrict_ != false) {
      output.writeBool(1, isUnderMinorsRestrict_);
    }
    if (isUnderGeneralRestrict_ != false) {
      output.writeBool(2, isUnderGeneralRestrict_);
    }
    if (dailyGachaTimes_ != 0) {
      output.writeUInt32(3, dailyGachaTimes_);
    }
    if (retcode_ != 0) {
      output.writeInt32(10, retcode_);
    }
    for (int i = 0; i < gachaInfoList_.size(); i++) {
      output.writeMessage(11, gachaInfoList_.get(i));
    }
    if (gachaRandom_ != 0) {
      output.writeUInt32(14, gachaRandom_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (isUnderMinorsRestrict_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(1, isUnderMinorsRestrict_);
    }
    if (isUnderGeneralRestrict_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(2, isUnderGeneralRestrict_);
    }
    if (dailyGachaTimes_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, dailyGachaTimes_);
    }
    if (retcode_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, retcode_);
    }
    for (int i = 0; i < gachaInfoList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, gachaInfoList_.get(i));
    }
    if (gachaRandom_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(14, gachaRandom_);
    }
    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 io.grasscutter.net.proto.gacha.GetGachaInfoRsp)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.gacha.GetGachaInfoRsp other = (io.grasscutter.net.proto.gacha.GetGachaInfoRsp) obj;

    if (!getGachaInfoListList()
        .equals(other.getGachaInfoListList())) return false;
    if (getIsUnderGeneralRestrict()
        != other.getIsUnderGeneralRestrict()) return false;
    if (getIsUnderMinorsRestrict()
        != other.getIsUnderMinorsRestrict()) return false;
    if (getRetcode()
        != other.getRetcode()) return false;
    if (getGachaRandom()
        != other.getGachaRandom()) return false;
    if (getDailyGachaTimes()
        != other.getDailyGachaTimes()) 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();
    if (getGachaInfoListCount() > 0) {
      hash = (37 * hash) + GACHA_INFO_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getGachaInfoListList().hashCode();
    }
    hash = (37 * hash) + IS_UNDER_GENERAL_RESTRICT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsUnderGeneralRestrict());
    hash = (37 * hash) + IS_UNDER_MINORS_RESTRICT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsUnderMinorsRestrict());
    hash = (37 * hash) + RETCODE_FIELD_NUMBER;
    hash = (53 * hash) + getRetcode();
    hash = (37 * hash) + GACHA_RANDOM_FIELD_NUMBER;
    hash = (53 * hash) + getGachaRandom();
    hash = (37 * hash) + DAILY_GACHA_TIMES_FIELD_NUMBER;
    hash = (53 * hash) + getDailyGachaTimes();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp 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 io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp 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 io.grasscutter.net.proto.gacha.GetGachaInfoRsp parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp 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(io.grasscutter.net.proto.gacha.GetGachaInfoRsp 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>
   * CmdId: 3581
   * </pre>
   *
   * Protobuf type {@code GetGachaInfoRsp}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:GetGachaInfoRsp)
      io.grasscutter.net.proto.gacha.GetGachaInfoRspOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.gacha.Gacha.internal_static_GetGachaInfoRsp_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.gacha.Gacha.internal_static_GetGachaInfoRsp_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.gacha.GetGachaInfoRsp.class, io.grasscutter.net.proto.gacha.GetGachaInfoRsp.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.gacha.GetGachaInfoRsp.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getGachaInfoListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (gachaInfoListBuilder_ == null) {
        gachaInfoList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        gachaInfoListBuilder_.clear();
      }
      isUnderGeneralRestrict_ = false;

      isUnderMinorsRestrict_ = false;

      retcode_ = 0;

      gachaRandom_ = 0;

      dailyGachaTimes_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.gacha.Gacha.internal_static_GetGachaInfoRsp_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.gacha.GetGachaInfoRsp getDefaultInstanceForType() {
      return io.grasscutter.net.proto.gacha.GetGachaInfoRsp.getDefaultInstance();
    }

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

    @java.lang.Override
    public io.grasscutter.net.proto.gacha.GetGachaInfoRsp buildPartial() {
      io.grasscutter.net.proto.gacha.GetGachaInfoRsp result = new io.grasscutter.net.proto.gacha.GetGachaInfoRsp(this);
      int from_bitField0_ = bitField0_;
      if (gachaInfoListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          gachaInfoList_ = java.util.Collections.unmodifiableList(gachaInfoList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.gachaInfoList_ = gachaInfoList_;
      } else {
        result.gachaInfoList_ = gachaInfoListBuilder_.build();
      }
      result.isUnderGeneralRestrict_ = isUnderGeneralRestrict_;
      result.isUnderMinorsRestrict_ = isUnderMinorsRestrict_;
      result.retcode_ = retcode_;
      result.gachaRandom_ = gachaRandom_;
      result.dailyGachaTimes_ = dailyGachaTimes_;
      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 io.grasscutter.net.proto.gacha.GetGachaInfoRsp) {
        return mergeFrom((io.grasscutter.net.proto.gacha.GetGachaInfoRsp)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.gacha.GetGachaInfoRsp other) {
      if (other == io.grasscutter.net.proto.gacha.GetGachaInfoRsp.getDefaultInstance()) return this;
      if (gachaInfoListBuilder_ == null) {
        if (!other.gachaInfoList_.isEmpty()) {
          if (gachaInfoList_.isEmpty()) {
            gachaInfoList_ = other.gachaInfoList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureGachaInfoListIsMutable();
            gachaInfoList_.addAll(other.gachaInfoList_);
          }
          onChanged();
        }
      } else {
        if (!other.gachaInfoList_.isEmpty()) {
          if (gachaInfoListBuilder_.isEmpty()) {
            gachaInfoListBuilder_.dispose();
            gachaInfoListBuilder_ = null;
            gachaInfoList_ = other.gachaInfoList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            gachaInfoListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getGachaInfoListFieldBuilder() : null;
          } else {
            gachaInfoListBuilder_.addAllMessages(other.gachaInfoList_);
          }
        }
      }
      if (other.getIsUnderGeneralRestrict() != false) {
        setIsUnderGeneralRestrict(other.getIsUnderGeneralRestrict());
      }
      if (other.getIsUnderMinorsRestrict() != false) {
        setIsUnderMinorsRestrict(other.getIsUnderMinorsRestrict());
      }
      if (other.getRetcode() != 0) {
        setRetcode(other.getRetcode());
      }
      if (other.getGachaRandom() != 0) {
        setGachaRandom(other.getGachaRandom());
      }
      if (other.getDailyGachaTimes() != 0) {
        setDailyGachaTimes(other.getDailyGachaTimes());
      }
      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 {
      io.grasscutter.net.proto.gacha.GetGachaInfoRsp parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.gacha.GetGachaInfoRsp) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<io.grasscutter.net.proto.gacha.GachaInfo> gachaInfoList_ =
      java.util.Collections.emptyList();
    private void ensureGachaInfoListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        gachaInfoList_ = new java.util.ArrayList<io.grasscutter.net.proto.gacha.GachaInfo>(gachaInfoList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.gacha.GachaInfo, io.grasscutter.net.proto.gacha.GachaInfo.Builder, io.grasscutter.net.proto.gacha.GachaInfoOrBuilder> gachaInfoListBuilder_;

    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public java.util.List<io.grasscutter.net.proto.gacha.GachaInfo> getGachaInfoListList() {
      if (gachaInfoListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(gachaInfoList_);
      } else {
        return gachaInfoListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public int getGachaInfoListCount() {
      if (gachaInfoListBuilder_ == null) {
        return gachaInfoList_.size();
      } else {
        return gachaInfoListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public io.grasscutter.net.proto.gacha.GachaInfo getGachaInfoList(int index) {
      if (gachaInfoListBuilder_ == null) {
        return gachaInfoList_.get(index);
      } else {
        return gachaInfoListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder setGachaInfoList(
        int index, io.grasscutter.net.proto.gacha.GachaInfo value) {
      if (gachaInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGachaInfoListIsMutable();
        gachaInfoList_.set(index, value);
        onChanged();
      } else {
        gachaInfoListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder setGachaInfoList(
        int index, io.grasscutter.net.proto.gacha.GachaInfo.Builder builderForValue) {
      if (gachaInfoListBuilder_ == null) {
        ensureGachaInfoListIsMutable();
        gachaInfoList_.set(index, builderForValue.build());
        onChanged();
      } else {
        gachaInfoListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder addGachaInfoList(io.grasscutter.net.proto.gacha.GachaInfo value) {
      if (gachaInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGachaInfoListIsMutable();
        gachaInfoList_.add(value);
        onChanged();
      } else {
        gachaInfoListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder addGachaInfoList(
        int index, io.grasscutter.net.proto.gacha.GachaInfo value) {
      if (gachaInfoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGachaInfoListIsMutable();
        gachaInfoList_.add(index, value);
        onChanged();
      } else {
        gachaInfoListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder addGachaInfoList(
        io.grasscutter.net.proto.gacha.GachaInfo.Builder builderForValue) {
      if (gachaInfoListBuilder_ == null) {
        ensureGachaInfoListIsMutable();
        gachaInfoList_.add(builderForValue.build());
        onChanged();
      } else {
        gachaInfoListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder addGachaInfoList(
        int index, io.grasscutter.net.proto.gacha.GachaInfo.Builder builderForValue) {
      if (gachaInfoListBuilder_ == null) {
        ensureGachaInfoListIsMutable();
        gachaInfoList_.add(index, builderForValue.build());
        onChanged();
      } else {
        gachaInfoListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder addAllGachaInfoList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.gacha.GachaInfo> values) {
      if (gachaInfoListBuilder_ == null) {
        ensureGachaInfoListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, gachaInfoList_);
        onChanged();
      } else {
        gachaInfoListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder clearGachaInfoList() {
      if (gachaInfoListBuilder_ == null) {
        gachaInfoList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        gachaInfoListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public Builder removeGachaInfoList(int index) {
      if (gachaInfoListBuilder_ == null) {
        ensureGachaInfoListIsMutable();
        gachaInfoList_.remove(index);
        onChanged();
      } else {
        gachaInfoListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public io.grasscutter.net.proto.gacha.GachaInfo.Builder getGachaInfoListBuilder(
        int index) {
      return getGachaInfoListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public io.grasscutter.net.proto.gacha.GachaInfoOrBuilder getGachaInfoListOrBuilder(
        int index) {
      if (gachaInfoListBuilder_ == null) {
        return gachaInfoList_.get(index);  } else {
        return gachaInfoListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.gacha.GachaInfoOrBuilder> 
         getGachaInfoListOrBuilderList() {
      if (gachaInfoListBuilder_ != null) {
        return gachaInfoListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(gachaInfoList_);
      }
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public io.grasscutter.net.proto.gacha.GachaInfo.Builder addGachaInfoListBuilder() {
      return getGachaInfoListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.gacha.GachaInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public io.grasscutter.net.proto.gacha.GachaInfo.Builder addGachaInfoListBuilder(
        int index) {
      return getGachaInfoListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.gacha.GachaInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .GachaInfo gacha_info_list = 11;</code>
     */
    public java.util.List<io.grasscutter.net.proto.gacha.GachaInfo.Builder> 
         getGachaInfoListBuilderList() {
      return getGachaInfoListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.gacha.GachaInfo, io.grasscutter.net.proto.gacha.GachaInfo.Builder, io.grasscutter.net.proto.gacha.GachaInfoOrBuilder> 
        getGachaInfoListFieldBuilder() {
      if (gachaInfoListBuilder_ == null) {
        gachaInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.gacha.GachaInfo, io.grasscutter.net.proto.gacha.GachaInfo.Builder, io.grasscutter.net.proto.gacha.GachaInfoOrBuilder>(
                gachaInfoList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        gachaInfoList_ = null;
      }
      return gachaInfoListBuilder_;
    }

    private boolean isUnderGeneralRestrict_ ;
    /**
     * <code>bool is_under_general_restrict = 2;</code>
     * @return The isUnderGeneralRestrict.
     */
    @java.lang.Override
    public boolean getIsUnderGeneralRestrict() {
      return isUnderGeneralRestrict_;
    }
    /**
     * <code>bool is_under_general_restrict = 2;</code>
     * @param value The isUnderGeneralRestrict to set.
     * @return This builder for chaining.
     */
    public Builder setIsUnderGeneralRestrict(boolean value) {
      
      isUnderGeneralRestrict_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_under_general_restrict = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsUnderGeneralRestrict() {
      
      isUnderGeneralRestrict_ = false;
      onChanged();
      return this;
    }

    private boolean isUnderMinorsRestrict_ ;
    /**
     * <code>bool is_under_minors_restrict = 1;</code>
     * @return The isUnderMinorsRestrict.
     */
    @java.lang.Override
    public boolean getIsUnderMinorsRestrict() {
      return isUnderMinorsRestrict_;
    }
    /**
     * <code>bool is_under_minors_restrict = 1;</code>
     * @param value The isUnderMinorsRestrict to set.
     * @return This builder for chaining.
     */
    public Builder setIsUnderMinorsRestrict(boolean value) {
      
      isUnderMinorsRestrict_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_under_minors_restrict = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsUnderMinorsRestrict() {
      
      isUnderMinorsRestrict_ = false;
      onChanged();
      return this;
    }

    private int retcode_ ;
    /**
     * <code>int32 retcode = 10;</code>
     * @return The retcode.
     */
    @java.lang.Override
    public int getRetcode() {
      return retcode_;
    }
    /**
     * <code>int32 retcode = 10;</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 = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearRetcode() {
      
      retcode_ = 0;
      onChanged();
      return this;
    }

    private int gachaRandom_ ;
    /**
     * <code>uint32 gacha_random = 14;</code>
     * @return The gachaRandom.
     */
    @java.lang.Override
    public int getGachaRandom() {
      return gachaRandom_;
    }
    /**
     * <code>uint32 gacha_random = 14;</code>
     * @param value The gachaRandom to set.
     * @return This builder for chaining.
     */
    public Builder setGachaRandom(int value) {
      
      gachaRandom_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 gacha_random = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearGachaRandom() {
      
      gachaRandom_ = 0;
      onChanged();
      return this;
    }

    private int dailyGachaTimes_ ;
    /**
     * <code>uint32 daily_gacha_times = 3;</code>
     * @return The dailyGachaTimes.
     */
    @java.lang.Override
    public int getDailyGachaTimes() {
      return dailyGachaTimes_;
    }
    /**
     * <code>uint32 daily_gacha_times = 3;</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 = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDailyGachaTimes() {
      
      dailyGachaTimes_ = 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:GetGachaInfoRsp)
  }

  // @@protoc_insertion_point(class_scope:GetGachaInfoRsp)
  private static final io.grasscutter.net.proto.gacha.GetGachaInfoRsp DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.gacha.GetGachaInfoRsp();
  }

  public static io.grasscutter.net.proto.gacha.GetGachaInfoRsp getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public io.grasscutter.net.proto.gacha.GetGachaInfoRsp getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

