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

package emu.grasscutter.net.proto;

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

    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> 
        getItemParamListList();
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index);
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    int getItemParamListCount();
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getItemParamListOrBuilderList();
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
        int index);

    /**
     * <code>repeated uint64 food_weapon_guid_list = 14;</code>
     * @return A list containing the foodWeaponGuidList.
     */
    java.util.List<java.lang.Long> getFoodWeaponGuidListList();
    /**
     * <code>repeated uint64 food_weapon_guid_list = 14;</code>
     * @return The count of foodWeaponGuidList.
     */
    int getFoodWeaponGuidListCount();
    /**
     * <code>repeated uint64 food_weapon_guid_list = 14;</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 = 3;</code>
     * @return The targetWeaponGuid.
     */
    long getTargetWeaponGuid();
  }
  /**
   * <pre>
   * enum CmdId {
   *   option allow_alias = true;
   *   NONE = 0;
   *   CMD_ID = 616;
   *   ENET_CHANNEL_ID = 0;
   *   ENET_IS_RELIABLE = 1;
   *   IS_ALLOW_CLIENT = 1;
   * }
   * </pre>
   *
   * Protobuf type {@code WeaponUpgradeReq}
   */
  public static final class WeaponUpgradeReq extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:WeaponUpgradeReq)
      WeaponUpgradeReqOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use WeaponUpgradeReq.newBuilder() to construct.
    private WeaponUpgradeReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private WeaponUpgradeReq() {
      itemParamList_ = java.util.Collections.emptyList();
      foodWeaponGuidList_ = emptyLongList();
    }

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

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

              targetWeaponGuid_ = input.readUInt64();
              break;
            }
            case 112: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                foodWeaponGuidList_ = newLongList();
                mutable_bitField0_ |= 0x00000002;
              }
              foodWeaponGuidList_.addLong(input.readUInt64());
              break;
            }
            case 114: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
                foodWeaponGuidList_ = newLongList();
                mutable_bitField0_ |= 0x00000002;
              }
              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_ & 0x00000001) != 0)) {
          itemParamList_ = java.util.Collections.unmodifiableList(itemParamList_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          foodWeaponGuidList_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_descriptor;
    }

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

    public static final int ITEM_PARAM_LIST_FIELD_NUMBER = 2;
    private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_;
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    @java.lang.Override
    public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemParamListList() {
      return itemParamList_;
    }
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> 
        getItemParamListOrBuilderList() {
      return itemParamList_;
    }
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    @java.lang.Override
    public int getItemParamListCount() {
      return itemParamList_.size();
    }
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemParamList(int index) {
      return itemParamList_.get(index);
    }
    /**
     * <code>repeated .ItemParam item_param_list = 2;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemParamListOrBuilder(
        int index) {
      return itemParamList_.get(index);
    }

    public static final int FOOD_WEAPON_GUID_LIST_FIELD_NUMBER = 14;
    private com.google.protobuf.Internal.LongList foodWeaponGuidList_;
    /**
     * <code>repeated uint64 food_weapon_guid_list = 14;</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 = 14;</code>
     * @return The count of foodWeaponGuidList.
     */
    public int getFoodWeaponGuidListCount() {
      return foodWeaponGuidList_.size();
    }
    /**
     * <code>repeated uint64 food_weapon_guid_list = 14;</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 = 3;
    private long targetWeaponGuid_;
    /**
     * <code>uint64 target_weapon_guid = 3;</code>
     * @return The targetWeaponGuid.
     */
    @java.lang.Override
    public long getTargetWeaponGuid() {
      return targetWeaponGuid_;
    }

    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(2, itemParamList_.get(i));
      }
      if (targetWeaponGuid_ != 0L) {
        output.writeUInt64(3, targetWeaponGuid_);
      }
      if (getFoodWeaponGuidListList().size() > 0) {
        output.writeUInt32NoTag(114);
        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(2, itemParamList_.get(i));
      }
      if (targetWeaponGuid_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(3, 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.WeaponUpgradeReqOuterClass.WeaponUpgradeReq)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq other = (emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq) obj;

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

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

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * enum CmdId {
     *   option allow_alias = true;
     *   NONE = 0;
     *   CMD_ID = 616;
     *   ENET_CHANNEL_ID = 0;
     *   ENET_IS_RELIABLE = 1;
     *   IS_ALLOW_CLIENT = 1;
     * }
     * </pre>
     *
     * Protobuf type {@code WeaponUpgradeReq}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:WeaponUpgradeReq)
        emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReqOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.internal_static_WeaponUpgradeReq_descriptor;
      }

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

      // Construct using emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq.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();
        if (itemParamListBuilder_ == null) {
          itemParamList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          itemParamListBuilder_.clear();
        }
        foodWeaponGuidList_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000002);
        targetWeaponGuid_ = 0L;

        return this;
      }

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

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

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

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

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

      private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemParamList_ =
        java.util.Collections.emptyList();
      private void ensureItemParamListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          itemParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemParamList_);
          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> itemParamListBuilder_;

      /**
       * <code>repeated .ItemParam item_param_list = 2;</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 = 2;</code>
       */
      public int getItemParamListCount() {
        if (itemParamListBuilder_ == null) {
          return itemParamList_.size();
        } else {
          return itemParamListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .ItemParam item_param_list = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</code>
       */
      public Builder clearItemParamList() {
        if (itemParamListBuilder_ == null) {
          itemParamList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          itemParamListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .ItemParam item_param_list = 2;</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 = 2;</code>
       */
      public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemParamListBuilder(
          int index) {
        return getItemParamListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .ItemParam item_param_list = 2;</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 = 2;</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 = 2;</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 = 2;</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 = 2;</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_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          itemParamList_ = null;
        }
        return itemParamListBuilder_;
      }

      private com.google.protobuf.Internal.LongList foodWeaponGuidList_ = emptyLongList();
      private void ensureFoodWeaponGuidListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          foodWeaponGuidList_ = mutableCopy(foodWeaponGuidList_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 14;</code>
       * @return A list containing the foodWeaponGuidList.
       */
      public java.util.List<java.lang.Long>
          getFoodWeaponGuidListList() {
        return ((bitField0_ & 0x00000002) != 0) ?
                 java.util.Collections.unmodifiableList(foodWeaponGuidList_) : foodWeaponGuidList_;
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 14;</code>
       * @return The count of foodWeaponGuidList.
       */
      public int getFoodWeaponGuidListCount() {
        return foodWeaponGuidList_.size();
      }
      /**
       * <code>repeated uint64 food_weapon_guid_list = 14;</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 = 14;</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 = 14;</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 = 14;</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 = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearFoodWeaponGuidList() {
        foodWeaponGuidList_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      private long targetWeaponGuid_ ;
      /**
       * <code>uint64 target_weapon_guid = 3;</code>
       * @return The targetWeaponGuid.
       */
      @java.lang.Override
      public long getTargetWeaponGuid() {
        return targetWeaponGuid_;
      }
      /**
       * <code>uint64 target_weapon_guid = 3;</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 = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearTargetWeaponGuid() {
        
        targetWeaponGuid_ = 0L;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:WeaponUpgradeReq)
    }

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

    public static emu.grasscutter.net.proto.WeaponUpgradeReqOuterClass.WeaponUpgradeReq getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_WeaponUpgradeReq_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_WeaponUpgradeReq_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\026WeaponUpgradeReq.proto\032\017ItemParam.prot" +
      "o\"r\n\020WeaponUpgradeReq\022#\n\017item_param_list" +
      "\030\002 \003(\0132\n.ItemParam\022\035\n\025food_weapon_guid_l" +
      "ist\030\016 \003(\004\022\032\n\022target_weapon_guid\030\003 \001(\004B\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.ItemParamOuterClass.getDescriptor(),
        });
    internal_static_WeaponUpgradeReq_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_WeaponUpgradeReq_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_WeaponUpgradeReq_descriptor,
        new java.lang.String[] { "ItemParamList", "FoodWeaponGuidList", "TargetWeaponGuid", });
    emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
