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

package emu.grasscutter.net.proto;

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

    /**
     * <code>repeated uint64 food_weapon_guid_list = 15;</code>
     * @return A list containing the foodWeaponGuidList.
     */
    java.util.List<java.lang.Long> getFoodWeaponGuidListList();
    /**
     * <code>repeated uint64 food_weapon_guid_list = 15;</code>
     * @return The count of foodWeaponGuidList.
     */
    int getFoodWeaponGuidListCount();
    /**
     * <code>repeated uint64 food_weapon_guid_list = 15;</code>
     * @param index The index of the element to return.
     * @return The foodWeaponGuidList at the given index.
     */
    long getFoodWeaponGuidList(int index);

    /**
     * <code>uint64 target_weapon_guid = 12;</code>
     * @return The targetWeaponGuid.
     */
    long getTargetWeaponGuid();

    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> 
        getItemParamListList();
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index);
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    int getItemParamListCount();
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getItemParamListOrBuilderList();
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
        int index);
  }
  /**
   * <pre>
   * CmdId: 633
   * EnetChannelId: 0
   * EnetIsReliable: true
   * IsAllowClient: true
   * </pre>
   *
   * Protobuf type {@code CalcWeaponUpgradeReturnItemsReq}
   */
  public static final class CalcWeaponUpgradeReturnItemsReq extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:CalcWeaponUpgradeReturnItemsReq)
      CalcWeaponUpgradeReturnItemsReqOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CalcWeaponUpgradeReturnItemsReq.newBuilder() to construct.
    private CalcWeaponUpgradeReturnItemsReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CalcWeaponUpgradeReturnItemsReq() {
      foodWeaponGuidList_ = emptyLongList();
      itemParamList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CalcWeaponUpgradeReturnItemsReq(
        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 26: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>();
                mutable_bitField0_ |= 0x00000002;
              }
              itemParamList_.add(
                  input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
              break;
            }
            case 96: {

              targetWeaponGuid_ = input.readUInt64();
              break;
            }
            case 120: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                foodWeaponGuidList_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              foodWeaponGuidList_.addLong(input.readUInt64());
              break;
            }
            case 122: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                foodWeaponGuidList_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                foodWeaponGuidList_.addLong(input.readUInt64());
              }
              input.popLimit(limit);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_);
        }
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          foodWeaponGuidList_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor;
    }

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

    public static final int FOOD_WEAPON_GUID_LIST_FIELD_NUMBER = 15;
    private com.google.protobuf.Internal.LongList foodWeaponGuidList_;
    /**
     * <code>repeated uint64 food_weapon_guid_list = 15;</code>
     * @return A list containing the foodWeaponGuidList.
     */
    @java.lang.Override
    public java.util.List<java.lang.Long>
        getFoodWeaponGuidListList() {
      return foodWeaponGuidList_;
    }
    /**
     * <code>repeated uint64 food_weapon_guid_list = 15;</code>
     * @return The count of foodWeaponGuidList.
     */
    public int getFoodWeaponGuidListCount() {
      return foodWeaponGuidList_.size();
    }
    /**
     * <code>repeated uint64 food_weapon_guid_list = 15;</code>
     * @param index The index of the element to return.
     * @return The foodWeaponGuidList at the given index.
     */
    public long getFoodWeaponGuidList(int index) {
      return foodWeaponGuidList_.getLong(index);
    }
    private int foodWeaponGuidListMemoizedSerializedSize = -1;

    public static final int TARGET_WEAPON_GUID_FIELD_NUMBER = 12;
    private long targetWeaponGuid_;
    /**
     * <code>uint64 target_weapon_guid = 12;</code>
     * @return The targetWeaponGuid.
     */
    @java.lang.Override
    public long getTargetWeaponGuid() {
      return targetWeaponGuid_;
    }

    public static final int ITEM_PARAM_LIST_FIELD_NUMBER = 3;
    private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_;
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() {
      return itemParamList_;
    }
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getItemParamListOrBuilderList() {
      return itemParamList_;
    }
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    @java.lang.Override
    public int getItemParamListCount() {
      return itemParamList_.size();
    }
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) {
      return itemParamList_.get(index);
    }
    /**
     * <code>repeated .ItemParam item_param_list = 3;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
        int index) {
      return itemParamList_.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 {
      getSerializedSize();
      for (int i = 0; i < itemParamList_.size(); i++) {
        output.writeMessage(3, itemParamList_.get(i));
      }
      if (targetWeaponGuid_ != 0L) {
        output.writeUInt64(12, targetWeaponGuid_);
      }
      if (getFoodWeaponGuidListList().size() > 0) {
        output.writeUInt32NoTag(122);
        output.writeUInt32NoTag(foodWeaponGuidListMemoizedSerializedSize);
      }
      for (int i = 0; i < foodWeaponGuidList_.size(); i++) {
        output.writeUInt64NoTag(foodWeaponGuidList_.getLong(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < itemParamList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, itemParamList_.get(i));
      }
      if (targetWeaponGuid_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(12, targetWeaponGuid_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < foodWeaponGuidList_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeUInt64SizeNoTag(foodWeaponGuidList_.getLong(i));
        }
        size += dataSize;
        if (!getFoodWeaponGuidListList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        foodWeaponGuidListMemoizedSerializedSize = dataSize;
      }
      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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq other = (emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq) obj;

      if (!getFoodWeaponGuidListList()
          .equals(other.getFoodWeaponGuidListList())) return false;
      if (getTargetWeaponGuid()
          != other.getTargetWeaponGuid()) return false;
      if (!getItemParamListList()
          .equals(other.getItemParamListList())) 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 (getFoodWeaponGuidListCount() > 0) {
        hash = (37 * hash) + FOOD_WEAPON_GUID_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getFoodWeaponGuidListList().hashCode();
      }
      hash = (37 * hash) + TARGET_WEAPON_GUID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getTargetWeaponGuid());
      if (getItemParamListCount() > 0) {
        hash = (37 * hash) + ITEM_PARAM_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getItemParamListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq 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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq 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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq 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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq 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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq 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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq 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: 633
     * EnetChannelId: 0
     * EnetIsReliable: true
     * IsAllowClient: true
     * </pre>
     *
     * Protobuf type {@code CalcWeaponUpgradeReturnItemsReq}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:CalcWeaponUpgradeReturnItemsReq)
        emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReqOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor;
      }

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

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

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getItemParamListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        foodWeaponGuidList_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        targetWeaponGuid_ = 0L;

        if (itemParamListBuilder_ == null) {
          itemParamList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          itemParamListBuilder_.clear();
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq buildPartial() {
        emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq result = new emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          foodWeaponGuidList_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.foodWeaponGuidList_ = foodWeaponGuidList_;
        result.targetWeaponGuid_ = targetWeaponGuid_;
        if (itemParamListBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.itemParamList_ = itemParamList_;
        } else {
          result.itemParamList_ = itemParamListBuilder_.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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq) {
          return mergeFrom((emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq other) {
        if (other == emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq.getDefaultInstance()) return this;
        if (!other.foodWeaponGuidList_.isEmpty()) {
          if (foodWeaponGuidList_.isEmpty()) {
            foodWeaponGuidList_ = other.foodWeaponGuidList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureFoodWeaponGuidListIsMutable();
            foodWeaponGuidList_.addAll(other.foodWeaponGuidList_);
          }
          onChanged();
        }
        if (other.getTargetWeaponGuid() != 0L) {
          setTargetWeaponGuid(other.getTargetWeaponGuid());
        }
        if (itemParamListBuilder_ == null) {
          if (!other.itemParamList_.isEmpty()) {
            if (itemParamList_.isEmpty()) {
              itemParamList_ = other.itemParamList_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureItemParamListIsMutable();
              itemParamList_.addAll(other.itemParamList_);
            }
            onChanged();
          }
        } else {
          if (!other.itemParamList_.isEmpty()) {
            if (itemParamListBuilder_.isEmpty()) {
              itemParamListBuilder_.dispose();
              itemParamListBuilder_ = null;
              itemParamList_ = other.itemParamList_;
              bitField0_ = (bitField0_ & ~0x00000002);
              itemParamListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getItemParamListFieldBuilder() : null;
            } else {
              itemParamListBuilder_.addAllMessages(other.itemParamList_);
            }
          }
        }
        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.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.Internal.LongList foodWeaponGuidList_ = emptyLongList();
      private void ensureFoodWeaponGuidListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          foodWeaponGuidList_ = mutableCopy(foodWeaponGuidList_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @return A list containing the foodWeaponGuidList.
       */
      public java.util.List<java.lang.Long>
          getFoodWeaponGuidListList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(foodWeaponGuidList_) : foodWeaponGuidList_;
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @return The count of foodWeaponGuidList.
       */
      public int getFoodWeaponGuidListCount() {
        return foodWeaponGuidList_.size();
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @param index The index of the element to return.
       * @return The foodWeaponGuidList at the given index.
       */
      public long getFoodWeaponGuidList(int index) {
        return foodWeaponGuidList_.getLong(index);
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @param index The index to set the value at.
       * @param value The foodWeaponGuidList to set.
       * @return This builder for chaining.
       */
      public Builder setFoodWeaponGuidList(
          int index, long value) {
        ensureFoodWeaponGuidListIsMutable();
        foodWeaponGuidList_.setLong(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @param value The foodWeaponGuidList to add.
       * @return This builder for chaining.
       */
      public Builder addFoodWeaponGuidList(long value) {
        ensureFoodWeaponGuidListIsMutable();
        foodWeaponGuidList_.addLong(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @param values The foodWeaponGuidList to add.
       * @return This builder for chaining.
       */
      public Builder addAllFoodWeaponGuidList(
          java.lang.Iterable<? extends java.lang.Long> values) {
        ensureFoodWeaponGuidListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, foodWeaponGuidList_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 15;</code>
       * @return This builder for chaining.
       */
      public Builder clearFoodWeaponGuidList() {
        foodWeaponGuidList_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private long targetWeaponGuid_ ;
      /**
       * <code>uint64 target_weapon_guid = 12;</code>
       * @return The targetWeaponGuid.
       */
      @java.lang.Override
      public long getTargetWeaponGuid() {
        return targetWeaponGuid_;
      }
      /**
       * <code>uint64 target_weapon_guid = 12;</code>
       * @param value The targetWeaponGuid to set.
       * @return This builder for chaining.
       */
      public Builder setTargetWeaponGuid(long value) {
        
        targetWeaponGuid_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 target_weapon_guid = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearTargetWeaponGuid() {
        
        targetWeaponGuid_ = 0L;
        onChanged();
        return this;
      }

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

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

      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() {
        if (itemParamListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(itemParamList_);
        } else {
          return itemParamListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public int getItemParamListCount() {
        if (itemParamListBuilder_ == null) {
          return itemParamList_.size();
        } else {
          return itemParamListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) {
        if (itemParamListBuilder_ == null) {
          return itemParamList_.get(index);
        } else {
          return itemParamListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder setItemParamList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (itemParamListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureItemParamListIsMutable();
          itemParamList_.set(index, value);
          onChanged();
        } else {
          itemParamListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder setItemParamList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (itemParamListBuilder_ == null) {
          ensureItemParamListIsMutable();
          itemParamList_.set(index, builderForValue.build());
          onChanged();
        } else {
          itemParamListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder addItemParamList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (itemParamListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureItemParamListIsMutable();
          itemParamList_.add(value);
          onChanged();
        } else {
          itemParamListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder addItemParamList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
        if (itemParamListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureItemParamListIsMutable();
          itemParamList_.add(index, value);
          onChanged();
        } else {
          itemParamListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder addItemParamList(
          emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (itemParamListBuilder_ == null) {
          ensureItemParamListIsMutable();
          itemParamList_.add(builderForValue.build());
          onChanged();
        } else {
          itemParamListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder addItemParamList(
          int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
        if (itemParamListBuilder_ == null) {
          ensureItemParamListIsMutable();
          itemParamList_.add(index, builderForValue.build());
          onChanged();
        } else {
          itemParamListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder addAllItemParamList(
          java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
        if (itemParamListBuilder_ == null) {
          ensureItemParamListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, itemParamList_);
          onChanged();
        } else {
          itemParamListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder clearItemParamList() {
        if (itemParamListBuilder_ == null) {
          itemParamList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          itemParamListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public Builder removeItemParamList(int index) {
        if (itemParamListBuilder_ == null) {
          ensureItemParamListIsMutable();
          itemParamList_.remove(index);
          onChanged();
        } else {
          itemParamListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder(
          int index) {
        return getItemParamListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
          int index) {
        if (itemParamListBuilder_ == null) {
          return itemParamList_.get(index);  } else {
          return itemParamListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
           getItemParamListOrBuilderList() {
        if (itemParamListBuilder_ != null) {
          return itemParamListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(itemParamList_);
        }
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder() {
        return getItemParamListFieldBuilder().addBuilder(
            emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemParamListBuilder(
          int index) {
        return getItemParamListFieldBuilder().addBuilder(
            index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
      }
      /**
       * <code>repeated .ItemParam item_param_list = 3;</code>
       */
      public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder> 
           getItemParamListBuilderList() {
        return getItemParamListFieldBuilder().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> 
          getItemParamListFieldBuilder() {
        if (itemParamListBuilder_ == null) {
          itemParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
                  itemParamList_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          itemParamList_ = null;
        }
        return itemParamListBuilder_;
      }
      @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:CalcWeaponUpgradeReturnItemsReq)
    }

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

    public static emu.grasscutter.net.proto.CalcWeaponUpgradeReturnItemsReqOuterClass.CalcWeaponUpgradeReturnItemsReq getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_CalcWeaponUpgradeReturnItemsReq_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%CalcWeaponUpgradeReturnItemsReq.proto\032" +
      "\017ItemParam.proto\"\201\001\n\037CalcWeaponUpgradeRe" +
      "turnItemsReq\022\035\n\025food_weapon_guid_list\030\017 " +
      "\003(\004\022\032\n\022target_weapon_guid\030\014 \001(\004\022#\n\017item_" +
      "param_list\030\003 \003(\0132\n.ItemParamB\033\n\031emu.gras" +
      "scutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
        });
    internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_CalcWeaponUpgradeReturnItemsReq_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_CalcWeaponUpgradeReturnItemsReq_descriptor,
        new java.lang.String[] { "FoodWeaponGuidList", "TargetWeaponGuid", "ItemParamList", });
    emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
