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

package emu.grasscutter.net.proto;

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

    /**
     * <code>.ItemParam gacha_item_ = 7;</code>
     * @return Whether the gachaItem field is set.
     */
    boolean hasGachaItem();
    /**
     * <code>.ItemParam gacha_item_ = 7;</code>
     * @return The gachaItem.
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem();
    /**
     * <code>.ItemParam gacha_item_ = 7;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder();

    /**
     * <code>bool is_gacha_item_new = 6;</code>
     * @return The isGachaItemNew.
     */
    boolean getIsGachaItemNew();

    /**
     * <code>bool is_flash_card = 8;</code>
     * @return The isFlashCard.
     */
    boolean getIsFlashCard();

    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> 
        getTokenItemListList();
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index);
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    int getTokenItemListCount();
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getTokenItemListOrBuilderList();
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder(
        int index);

    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> 
        getTransferItemsList();
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index);
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    int getTransferItemsCount();
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> 
        getTransferItemsOrBuilderList();
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code GachaItem}
   */
  public static final class GachaItem extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:GachaItem)
      GachaItemOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GachaItem.newBuilder() to construct.
    private GachaItem(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private GachaItem() {
      tokenItemList_ = java.util.Collections.emptyList();
      transferItems_ = java.util.Collections.emptyList();
    }

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

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

              isGachaItemNew_ = input.readBool();
              break;
            }
            case 58: {
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder subBuilder = null;
              if (gachaItem_ != null) {
                subBuilder = gachaItem_.toBuilder();
              }
              gachaItem_ = input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(gachaItem_);
                gachaItem_ = subBuilder.buildPartial();
              }

              break;
            }
            case 64: {

              isFlashCard_ = input.readBool();
              break;
            }
            case 74: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                tokenItemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>();
                mutable_bitField0_ |= 0x00000001;
              }
              tokenItemList_.add(
                  input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
              break;
            }
            case 98: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                transferItems_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem>();
                mutable_bitField0_ |= 0x00000002;
              }
              transferItems_.add(
                  input.readMessage(emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.parser(), extensionRegistry));
              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)) {
          tokenItemList_ = java.util.Collections.unmodifiableList(tokenItemList_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          transferItems_ = java.util.Collections.unmodifiableList(transferItems_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_descriptor;
    }

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

    public static final int GACHA_ITEM__FIELD_NUMBER = 7;
    private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam gachaItem_;
    /**
     * <code>.ItemParam gacha_item_ = 7;</code>
     * @return Whether the gachaItem field is set.
     */
    @java.lang.Override
    public boolean hasGachaItem() {
      return gachaItem_ != null;
    }
    /**
     * <code>.ItemParam gacha_item_ = 7;</code>
     * @return The gachaItem.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem() {
      return gachaItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : gachaItem_;
    }
    /**
     * <code>.ItemParam gacha_item_ = 7;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder() {
      return getGachaItem();
    }

    public static final int IS_GACHA_ITEM_NEW_FIELD_NUMBER = 6;
    private boolean isGachaItemNew_;
    /**
     * <code>bool is_gacha_item_new = 6;</code>
     * @return The isGachaItemNew.
     */
    @java.lang.Override
    public boolean getIsGachaItemNew() {
      return isGachaItemNew_;
    }

    public static final int IS_FLASH_CARD_FIELD_NUMBER = 8;
    private boolean isFlashCard_;
    /**
     * <code>bool is_flash_card = 8;</code>
     * @return The isFlashCard.
     */
    @java.lang.Override
    public boolean getIsFlashCard() {
      return isFlashCard_;
    }

    public static final int TOKEN_ITEM_LIST_FIELD_NUMBER = 9;
    private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> tokenItemList_;
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getTokenItemListList() {
      return tokenItemList_;
    }
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getTokenItemListOrBuilderList() {
      return tokenItemList_;
    }
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    @java.lang.Override
    public int getTokenItemListCount() {
      return tokenItemList_.size();
    }
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index) {
      return tokenItemList_.get(index);
    }
    /**
     * <code>repeated .ItemParam token_item_list = 9;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder(
        int index) {
      return tokenItemList_.get(index);
    }

    public static final int TRANSFER_ITEMS_FIELD_NUMBER = 12;
    private java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> transferItems_;
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> getTransferItemsList() {
      return transferItems_;
    }
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> 
        getTransferItemsOrBuilderList() {
      return transferItems_;
    }
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    @java.lang.Override
    public int getTransferItemsCount() {
      return transferItems_.size();
    }
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index) {
      return transferItems_.get(index);
    }
    /**
     * <code>repeated .GachaTransferItem transfer_items = 12;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder(
        int index) {
      return transferItems_.get(index);
    }

    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 (isGachaItemNew_ != false) {
        output.writeBool(6, isGachaItemNew_);
      }
      if (gachaItem_ != null) {
        output.writeMessage(7, getGachaItem());
      }
      if (isFlashCard_ != false) {
        output.writeBool(8, isFlashCard_);
      }
      for (int i = 0; i < tokenItemList_.size(); i++) {
        output.writeMessage(9, tokenItemList_.get(i));
      }
      for (int i = 0; i < transferItems_.size(); i++) {
        output.writeMessage(12, transferItems_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (isGachaItemNew_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, isGachaItemNew_);
      }
      if (gachaItem_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, getGachaItem());
      }
      if (isFlashCard_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(8, isFlashCard_);
      }
      for (int i = 0; i < tokenItemList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, tokenItemList_.get(i));
      }
      for (int i = 0; i < transferItems_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(12, transferItems_.get(i));
      }
      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.GachaItemOuterClass.GachaItem)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem other = (emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem) obj;

      if (hasGachaItem() != other.hasGachaItem()) return false;
      if (hasGachaItem()) {
        if (!getGachaItem()
            .equals(other.getGachaItem())) return false;
      }
      if (getIsGachaItemNew()
          != other.getIsGachaItemNew()) return false;
      if (getIsFlashCard()
          != other.getIsFlashCard()) return false;
      if (!getTokenItemListList()
          .equals(other.getTokenItemListList())) return false;
      if (!getTransferItemsList()
          .equals(other.getTransferItemsList())) 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 (hasGachaItem()) {
        hash = (37 * hash) + GACHA_ITEM__FIELD_NUMBER;
        hash = (53 * hash) + getGachaItem().hashCode();
      }
      hash = (37 * hash) + IS_GACHA_ITEM_NEW_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsGachaItemNew());
      hash = (37 * hash) + IS_FLASH_CARD_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsFlashCard());
      if (getTokenItemListCount() > 0) {
        hash = (37 * hash) + TOKEN_ITEM_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getTokenItemListList().hashCode();
      }
      if (getTransferItemsCount() > 0) {
        hash = (37 * hash) + TRANSFER_ITEMS_FIELD_NUMBER;
        hash = (53 * hash) + getTransferItemsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem 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.GachaItemOuterClass.GachaItem parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem 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.GachaItemOuterClass.GachaItem parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem 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.GachaItemOuterClass.GachaItem parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem 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.GachaItemOuterClass.GachaItem parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem 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.GachaItemOuterClass.GachaItem prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code GachaItem}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:GachaItem)
        emu.grasscutter.net.proto.GachaItemOuterClass.GachaItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.GachaItemOuterClass.internal_static_GachaItem_descriptor;
      }

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

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

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTokenItemListFieldBuilder();
          getTransferItemsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (gachaItemBuilder_ == null) {
          gachaItem_ = null;
        } else {
          gachaItem_ = null;
          gachaItemBuilder_ = null;
        }
        isGachaItemNew_ = false;

        isFlashCard_ = false;

        if (tokenItemListBuilder_ == null) {
          tokenItemList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          tokenItemListBuilder_.clear();
        }
        if (transferItemsBuilder_ == null) {
          transferItems_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          transferItemsBuilder_.clear();
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem buildPartial() {
        emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem result = new emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem(this);
        int from_bitField0_ = bitField0_;
        if (gachaItemBuilder_ == null) {
          result.gachaItem_ = gachaItem_;
        } else {
          result.gachaItem_ = gachaItemBuilder_.build();
        }
        result.isGachaItemNew_ = isGachaItemNew_;
        result.isFlashCard_ = isFlashCard_;
        if (tokenItemListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            tokenItemList_ = java.util.Collections.unmodifiableList(tokenItemList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.tokenItemList_ = tokenItemList_;
        } else {
          result.tokenItemList_ = tokenItemListBuilder_.build();
        }
        if (transferItemsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            transferItems_ = java.util.Collections.unmodifiableList(transferItems_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.transferItems_ = transferItems_;
        } else {
          result.transferItems_ = transferItemsBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem other) {
        if (other == emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem.getDefaultInstance()) return this;
        if (other.hasGachaItem()) {
          mergeGachaItem(other.getGachaItem());
        }
        if (other.getIsGachaItemNew() != false) {
          setIsGachaItemNew(other.getIsGachaItemNew());
        }
        if (other.getIsFlashCard() != false) {
          setIsFlashCard(other.getIsFlashCard());
        }
        if (tokenItemListBuilder_ == null) {
          if (!other.tokenItemList_.isEmpty()) {
            if (tokenItemList_.isEmpty()) {
              tokenItemList_ = other.tokenItemList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureTokenItemListIsMutable();
              tokenItemList_.addAll(other.tokenItemList_);
            }
            onChanged();
          }
        } else {
          if (!other.tokenItemList_.isEmpty()) {
            if (tokenItemListBuilder_.isEmpty()) {
              tokenItemListBuilder_.dispose();
              tokenItemListBuilder_ = null;
              tokenItemList_ = other.tokenItemList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              tokenItemListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTokenItemListFieldBuilder() : null;
            } else {
              tokenItemListBuilder_.addAllMessages(other.tokenItemList_);
            }
          }
        }
        if (transferItemsBuilder_ == null) {
          if (!other.transferItems_.isEmpty()) {
            if (transferItems_.isEmpty()) {
              transferItems_ = other.transferItems_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureTransferItemsIsMutable();
              transferItems_.addAll(other.transferItems_);
            }
            onChanged();
          }
        } else {
          if (!other.transferItems_.isEmpty()) {
            if (transferItemsBuilder_.isEmpty()) {
              transferItemsBuilder_.dispose();
              transferItemsBuilder_ = null;
              transferItems_ = other.transferItems_;
              bitField0_ = (bitField0_ & ~0x00000002);
              transferItemsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTransferItemsFieldBuilder() : null;
            } else {
              transferItemsBuilder_.addAllMessages(other.transferItems_);
            }
          }
        }
        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.GachaItemOuterClass.GachaItem parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam gachaItem_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> gachaItemBuilder_;
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       * @return Whether the gachaItem field is set.
       */
      public boolean hasGachaItem() {
        return gachaItemBuilder_ != null || gachaItem_ != null;
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       * @return The gachaItem.
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getGachaItem() {
        if (gachaItemBuilder_ == null) {
          return gachaItem_ == null ? emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : gachaItem_;
        } else {
          return gachaItemBuilder_.getMessage();
        }
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      public Builder setGachaItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (gachaItemBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          gachaItem_ = value;
          onChanged();
        } else {
          gachaItemBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      public Builder setGachaItem(
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (gachaItemBuilder_ == null) {
          gachaItem_ = builderForValue.build();
          onChanged();
        } else {
          gachaItemBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      public Builder mergeGachaItem(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (gachaItemBuilder_ == null) {
          if (gachaItem_ != null) {
            gachaItem_ =
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.newBuilder(gachaItem_).mergeFrom(value).buildPartial();
          } else {
            gachaItem_ = value;
          }
          onChanged();
        } else {
          gachaItemBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      public Builder clearGachaItem() {
        if (gachaItemBuilder_ == null) {
          gachaItem_ = null;
          onChanged();
        } else {
          gachaItem_ = null;
          gachaItemBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getGachaItemBuilder() {
        
        onChanged();
        return getGachaItemFieldBuilder().getBuilder();
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getGachaItemOrBuilder() {
        if (gachaItemBuilder_ != null) {
          return gachaItemBuilder_.getMessageOrBuilder();
        } else {
          return gachaItem_ == null ?
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance() : gachaItem_;
        }
      }
      /**
       * <code>.ItemParam gacha_item_ = 7;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
          getGachaItemFieldBuilder() {
        if (gachaItemBuilder_ == null) {
          gachaItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
                  getGachaItem(),
                  getParentForChildren(),
                  isClean());
          gachaItem_ = null;
        }
        return gachaItemBuilder_;
      }

      private boolean isGachaItemNew_ ;
      /**
       * <code>bool is_gacha_item_new = 6;</code>
       * @return The isGachaItemNew.
       */
      @java.lang.Override
      public boolean getIsGachaItemNew() {
        return isGachaItemNew_;
      }
      /**
       * <code>bool is_gacha_item_new = 6;</code>
       * @param value The isGachaItemNew to set.
       * @return This builder for chaining.
       */
      public Builder setIsGachaItemNew(boolean value) {
        
        isGachaItemNew_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool is_gacha_item_new = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsGachaItemNew() {
        
        isGachaItemNew_ = false;
        onChanged();
        return this;
      }

      private boolean isFlashCard_ ;
      /**
       * <code>bool is_flash_card = 8;</code>
       * @return The isFlashCard.
       */
      @java.lang.Override
      public boolean getIsFlashCard() {
        return isFlashCard_;
      }
      /**
       * <code>bool is_flash_card = 8;</code>
       * @param value The isFlashCard to set.
       * @return This builder for chaining.
       */
      public Builder setIsFlashCard(boolean value) {
        
        isFlashCard_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool is_flash_card = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsFlashCard() {
        
        isFlashCard_ = false;
        onChanged();
        return this;
      }

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

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

      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getTokenItemListList() {
        if (tokenItemListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(tokenItemList_);
        } else {
          return tokenItemListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public int getTokenItemListCount() {
        if (tokenItemListBuilder_ == null) {
          return tokenItemList_.size();
        } else {
          return tokenItemListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getTokenItemList(int index) {
        if (tokenItemListBuilder_ == null) {
          return tokenItemList_.get(index);
        } else {
          return tokenItemListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder setTokenItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (tokenItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTokenItemListIsMutable();
          tokenItemList_.set(index, value);
          onChanged();
        } else {
          tokenItemListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder setTokenItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (tokenItemListBuilder_ == null) {
          ensureTokenItemListIsMutable();
          tokenItemList_.set(index, builderForValue.build());
          onChanged();
        } else {
          tokenItemListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder addTokenItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (tokenItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTokenItemListIsMutable();
          tokenItemList_.add(value);
          onChanged();
        } else {
          tokenItemListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder addTokenItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (tokenItemListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTokenItemListIsMutable();
          tokenItemList_.add(index, value);
          onChanged();
        } else {
          tokenItemListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder addTokenItemList(
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (tokenItemListBuilder_ == null) {
          ensureTokenItemListIsMutable();
          tokenItemList_.add(builderForValue.build());
          onChanged();
        } else {
          tokenItemListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder addTokenItemList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (tokenItemListBuilder_ == null) {
          ensureTokenItemListIsMutable();
          tokenItemList_.add(index, builderForValue.build());
          onChanged();
        } else {
          tokenItemListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder addAllTokenItemList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
        if (tokenItemListBuilder_ == null) {
          ensureTokenItemListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, tokenItemList_);
          onChanged();
        } else {
          tokenItemListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder clearTokenItemList() {
        if (tokenItemListBuilder_ == null) {
          tokenItemList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          tokenItemListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public Builder removeTokenItemList(int index) {
        if (tokenItemListBuilder_ == null) {
          ensureTokenItemListIsMutable();
          tokenItemList_.remove(index);
          onChanged();
        } else {
          tokenItemListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getTokenItemListBuilder(
          int index) {
        return getTokenItemListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getTokenItemListOrBuilder(
          int index) {
        if (tokenItemListBuilder_ == null) {
          return tokenItemList_.get(index);  } else {
          return tokenItemListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
           getTokenItemListOrBuilderList() {
        if (tokenItemListBuilder_ != null) {
          return tokenItemListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(tokenItemList_);
        }
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addTokenItemListBuilder() {
        return getTokenItemListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addTokenItemListBuilder(
          int index) {
        return getTokenItemListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
      }
      /**
       * <code>repeated .ItemParam token_item_list = 9;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> 
           getTokenItemListBuilderList() {
        return getTokenItemListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
          getTokenItemListFieldBuilder() {
        if (tokenItemListBuilder_ == null) {
          tokenItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
                  tokenItemList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          tokenItemList_ = null;
        }
        return tokenItemListBuilder_;
      }

      private java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> transferItems_ =
        java.util.Collections.emptyList();
      private void ensureTransferItemsIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          transferItems_ = new java.util.ArrayList<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem>(transferItems_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> transferItemsBuilder_;

      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> getTransferItemsList() {
        if (transferItemsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(transferItems_);
        } else {
          return transferItemsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public int getTransferItemsCount() {
        if (transferItemsBuilder_ == null) {
          return transferItems_.size();
        } else {
          return transferItemsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem getTransferItems(int index) {
        if (transferItemsBuilder_ == null) {
          return transferItems_.get(index);
        } else {
          return transferItemsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder setTransferItems(
          int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem value) {
        if (transferItemsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransferItemsIsMutable();
          transferItems_.set(index, value);
          onChanged();
        } else {
          transferItemsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder setTransferItems(
          int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder builderForValue) {
        if (transferItemsBuilder_ == null) {
          ensureTransferItemsIsMutable();
          transferItems_.set(index, builderForValue.build());
          onChanged();
        } else {
          transferItemsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder addTransferItems(emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem value) {
        if (transferItemsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransferItemsIsMutable();
          transferItems_.add(value);
          onChanged();
        } else {
          transferItemsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder addTransferItems(
          int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem value) {
        if (transferItemsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTransferItemsIsMutable();
          transferItems_.add(index, value);
          onChanged();
        } else {
          transferItemsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder addTransferItems(
          emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder builderForValue) {
        if (transferItemsBuilder_ == null) {
          ensureTransferItemsIsMutable();
          transferItems_.add(builderForValue.build());
          onChanged();
        } else {
          transferItemsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder addTransferItems(
          int index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder builderForValue) {
        if (transferItemsBuilder_ == null) {
          ensureTransferItemsIsMutable();
          transferItems_.add(index, builderForValue.build());
          onChanged();
        } else {
          transferItemsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder addAllTransferItems(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem> values) {
        if (transferItemsBuilder_ == null) {
          ensureTransferItemsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, transferItems_);
          onChanged();
        } else {
          transferItemsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder clearTransferItems() {
        if (transferItemsBuilder_ == null) {
          transferItems_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          transferItemsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public Builder removeTransferItems(int index) {
        if (transferItemsBuilder_ == null) {
          ensureTransferItemsIsMutable();
          transferItems_.remove(index);
          onChanged();
        } else {
          transferItemsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder getTransferItemsBuilder(
          int index) {
        return getTransferItemsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder getTransferItemsOrBuilder(
          int index) {
        if (transferItemsBuilder_ == null) {
          return transferItems_.get(index);  } else {
          return transferItemsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> 
           getTransferItemsOrBuilderList() {
        if (transferItemsBuilder_ != null) {
          return transferItemsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(transferItems_);
        }
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder addTransferItemsBuilder() {
        return getTransferItemsFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance());
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder addTransferItemsBuilder(
          int index) {
        return getTransferItemsFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.getDefaultInstance());
      }
      /**
       * <code>repeated .GachaTransferItem transfer_items = 12;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder> 
           getTransferItemsBuilderList() {
        return getTransferItemsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder> 
          getTransferItemsFieldBuilder() {
        if (transferItemsBuilder_ == null) {
          transferItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItem.Builder, emu.grasscutter.net.proto.GachaTransferItemOuterClass.GachaTransferItemOrBuilder>(
                  transferItems_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          transferItems_ = null;
        }
        return transferItemsBuilder_;
      }
      @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:GachaItem)
    }

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

    public static emu.grasscutter.net.proto.GachaItemOuterClass.GachaItem getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_GachaItem_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_GachaItem_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\017GachaItem.proto\032\027GachaTransferItem.pro" +
      "to\032\017ItemParam.proto\"\257\001\n\tGachaItem\022\037\n\013gac" +
      "ha_item_\030\007 \001(\0132\n.ItemParam\022\031\n\021is_gacha_i" +
      "tem_new\030\006 \001(\010\022\025\n\ris_flash_card\030\010 \001(\010\022#\n\017" +
      "token_item_list\030\t \003(\0132\n.ItemParam\022*\n\016tra" +
      "nsfer_items\030\014 \003(\0132\022.GachaTransferItemB\033\n" +
      "\031emu.grasscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.GachaTransferItemOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
        });
    internal_static_GachaItem_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_GachaItem_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_GachaItem_descriptor,
        new java.lang.String[] { "GachaItem", "IsGachaItemNew", "IsFlashCard", "TokenItemList", "TransferItems", });
    emu.grasscutter.net.proto.GachaTransferItemOuterClass.getDescriptor();
    emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
