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

package emu.grasscutter.net.proto;

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

    /**
     * <code>uint32 campId = 1;</code>
     * @return The campId.
     */
    int getCampId();

    /**
     * <code>uint32 campType = 2;</code>
     * @return The campType.
     */
    int getCampType();

    /**
     * <code>uint64 guid = 3;</code>
     * @return The guid.
     */
    long getGuid();

    /**
     * <code>uint32 ownerEntityId = 4;</code>
     * @return The ownerEntityId.
     */
    int getOwnerEntityId();

    /**
     * <code>uint32 targetEntityId = 5;</code>
     * @return The targetEntityId.
     */
    int getTargetEntityId();

    /**
     * <code>bool glmdcefdgeg = 6;</code>
     * @return The glmdcefdgeg.
     */
    boolean getGlmdcefdgeg();

    /**
     * <code>bool isPeerIdFromPlayer = 7;</code>
     * @return The isPeerIdFromPlayer.
     */
    boolean getIsPeerIdFromPlayer();

    /**
     * <code>repeated uint32 targetEntityIdList = 8;</code>
     * @return A list containing the targetEntityIdList.
     */
    java.util.List<java.lang.Integer> getTargetEntityIdListList();
    /**
     * <code>repeated uint32 targetEntityIdList = 8;</code>
     * @return The count of targetEntityIdList.
     */
    int getTargetEntityIdListCount();
    /**
     * <code>repeated uint32 targetEntityIdList = 8;</code>
     * @param index The index of the element to return.
     * @return The targetEntityIdList at the given index.
     */
    int getTargetEntityIdList(int index);
  }
  /**
   * Protobuf type {@code ClientGadget}
   */
  public static final class ClientGadget extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:ClientGadget)
      ClientGadgetOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClientGadget.newBuilder() to construct.
    private ClientGadget(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private ClientGadget() {
      targetEntityIdList_ = emptyIntList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClientGadget(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

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

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

              guid_ = input.readUInt64();
              break;
            }
            case 32: {

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

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

              glmdcefdgeg_ = input.readBool();
              break;
            }
            case 56: {

              isPeerIdFromPlayer_ = input.readBool();
              break;
            }
            case 64: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                targetEntityIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              targetEntityIdList_.addInt(input.readUInt32());
              break;
            }
            case 66: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                targetEntityIdList_ = newIntList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                targetEntityIdList_.addInt(input.readUInt32());
              }
              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)) {
          targetEntityIdList_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.ClientGadgetOuterClass.internal_static_ClientGadget_descriptor;
    }

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

    public static final int CAMPID_FIELD_NUMBER = 1;
    private int campId_;
    /**
     * <code>uint32 campId = 1;</code>
     * @return The campId.
     */
    @java.lang.Override
    public int getCampId() {
      return campId_;
    }

    public static final int CAMPTYPE_FIELD_NUMBER = 2;
    private int campType_;
    /**
     * <code>uint32 campType = 2;</code>
     * @return The campType.
     */
    @java.lang.Override
    public int getCampType() {
      return campType_;
    }

    public static final int GUID_FIELD_NUMBER = 3;
    private long guid_;
    /**
     * <code>uint64 guid = 3;</code>
     * @return The guid.
     */
    @java.lang.Override
    public long getGuid() {
      return guid_;
    }

    public static final int OWNERENTITYID_FIELD_NUMBER = 4;
    private int ownerEntityId_;
    /**
     * <code>uint32 ownerEntityId = 4;</code>
     * @return The ownerEntityId.
     */
    @java.lang.Override
    public int getOwnerEntityId() {
      return ownerEntityId_;
    }

    public static final int TARGETENTITYID_FIELD_NUMBER = 5;
    private int targetEntityId_;
    /**
     * <code>uint32 targetEntityId = 5;</code>
     * @return The targetEntityId.
     */
    @java.lang.Override
    public int getTargetEntityId() {
      return targetEntityId_;
    }

    public static final int GLMDCEFDGEG_FIELD_NUMBER = 6;
    private boolean glmdcefdgeg_;
    /**
     * <code>bool glmdcefdgeg = 6;</code>
     * @return The glmdcefdgeg.
     */
    @java.lang.Override
    public boolean getGlmdcefdgeg() {
      return glmdcefdgeg_;
    }

    public static final int ISPEERIDFROMPLAYER_FIELD_NUMBER = 7;
    private boolean isPeerIdFromPlayer_;
    /**
     * <code>bool isPeerIdFromPlayer = 7;</code>
     * @return The isPeerIdFromPlayer.
     */
    @java.lang.Override
    public boolean getIsPeerIdFromPlayer() {
      return isPeerIdFromPlayer_;
    }

    public static final int TARGETENTITYIDLIST_FIELD_NUMBER = 8;
    private com.google.protobuf.Internal.IntList targetEntityIdList_;
    /**
     * <code>repeated uint32 targetEntityIdList = 8;</code>
     * @return A list containing the targetEntityIdList.
     */
    @java.lang.Override
    public java.util.List<java.lang.Integer>
        getTargetEntityIdListList() {
      return targetEntityIdList_;
    }
    /**
     * <code>repeated uint32 targetEntityIdList = 8;</code>
     * @return The count of targetEntityIdList.
     */
    public int getTargetEntityIdListCount() {
      return targetEntityIdList_.size();
    }
    /**
     * <code>repeated uint32 targetEntityIdList = 8;</code>
     * @param index The index of the element to return.
     * @return The targetEntityIdList at the given index.
     */
    public int getTargetEntityIdList(int index) {
      return targetEntityIdList_.getInt(index);
    }
    private int targetEntityIdListMemoizedSerializedSize = -1;

    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();
      if (campId_ != 0) {
        output.writeUInt32(1, campId_);
      }
      if (campType_ != 0) {
        output.writeUInt32(2, campType_);
      }
      if (guid_ != 0L) {
        output.writeUInt64(3, guid_);
      }
      if (ownerEntityId_ != 0) {
        output.writeUInt32(4, ownerEntityId_);
      }
      if (targetEntityId_ != 0) {
        output.writeUInt32(5, targetEntityId_);
      }
      if (glmdcefdgeg_ != false) {
        output.writeBool(6, glmdcefdgeg_);
      }
      if (isPeerIdFromPlayer_ != false) {
        output.writeBool(7, isPeerIdFromPlayer_);
      }
      if (getTargetEntityIdListList().size() > 0) {
        output.writeUInt32NoTag(66);
        output.writeUInt32NoTag(targetEntityIdListMemoizedSerializedSize);
      }
      for (int i = 0; i < targetEntityIdList_.size(); i++) {
        output.writeUInt32NoTag(targetEntityIdList_.getInt(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (campId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, campId_);
      }
      if (campType_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, campType_);
      }
      if (guid_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(3, guid_);
      }
      if (ownerEntityId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, ownerEntityId_);
      }
      if (targetEntityId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, targetEntityId_);
      }
      if (glmdcefdgeg_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(6, glmdcefdgeg_);
      }
      if (isPeerIdFromPlayer_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, isPeerIdFromPlayer_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < targetEntityIdList_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeUInt32SizeNoTag(targetEntityIdList_.getInt(i));
        }
        size += dataSize;
        if (!getTargetEntityIdListList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        targetEntityIdListMemoizedSerializedSize = 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.ClientGadgetOuterClass.ClientGadget)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget other = (emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget) obj;

      if (getCampId()
          != other.getCampId()) return false;
      if (getCampType()
          != other.getCampType()) return false;
      if (getGuid()
          != other.getGuid()) return false;
      if (getOwnerEntityId()
          != other.getOwnerEntityId()) return false;
      if (getTargetEntityId()
          != other.getTargetEntityId()) return false;
      if (getGlmdcefdgeg()
          != other.getGlmdcefdgeg()) return false;
      if (getIsPeerIdFromPlayer()
          != other.getIsPeerIdFromPlayer()) return false;
      if (!getTargetEntityIdListList()
          .equals(other.getTargetEntityIdListList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CAMPID_FIELD_NUMBER;
      hash = (53 * hash) + getCampId();
      hash = (37 * hash) + CAMPTYPE_FIELD_NUMBER;
      hash = (53 * hash) + getCampType();
      hash = (37 * hash) + GUID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getGuid());
      hash = (37 * hash) + OWNERENTITYID_FIELD_NUMBER;
      hash = (53 * hash) + getOwnerEntityId();
      hash = (37 * hash) + TARGETENTITYID_FIELD_NUMBER;
      hash = (53 * hash) + getTargetEntityId();
      hash = (37 * hash) + GLMDCEFDGEG_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getGlmdcefdgeg());
      hash = (37 * hash) + ISPEERIDFROMPLAYER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getIsPeerIdFromPlayer());
      if (getTargetEntityIdListCount() > 0) {
        hash = (37 * hash) + TARGETENTITYIDLIST_FIELD_NUMBER;
        hash = (53 * hash) + getTargetEntityIdListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget 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.ClientGadgetOuterClass.ClientGadget parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget 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.ClientGadgetOuterClass.ClientGadget parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget 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.ClientGadgetOuterClass.ClientGadget parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget 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.ClientGadgetOuterClass.ClientGadget parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget 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.ClientGadgetOuterClass.ClientGadget 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 ClientGadget}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:ClientGadget)
        emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadgetOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.ClientGadgetOuterClass.internal_static_ClientGadget_descriptor;
      }

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

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

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

        campType_ = 0;

        guid_ = 0L;

        ownerEntityId_ = 0;

        targetEntityId_ = 0;

        glmdcefdgeg_ = false;

        isPeerIdFromPlayer_ = false;

        targetEntityIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget buildPartial() {
        emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget result = new emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget(this);
        int from_bitField0_ = bitField0_;
        result.campId_ = campId_;
        result.campType_ = campType_;
        result.guid_ = guid_;
        result.ownerEntityId_ = ownerEntityId_;
        result.targetEntityId_ = targetEntityId_;
        result.glmdcefdgeg_ = glmdcefdgeg_;
        result.isPeerIdFromPlayer_ = isPeerIdFromPlayer_;
        if (((bitField0_ & 0x00000001) != 0)) {
          targetEntityIdList_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.targetEntityIdList_ = targetEntityIdList_;
        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.ClientGadgetOuterClass.ClientGadget) {
          return mergeFrom((emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget other) {
        if (other == emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget.getDefaultInstance()) return this;
        if (other.getCampId() != 0) {
          setCampId(other.getCampId());
        }
        if (other.getCampType() != 0) {
          setCampType(other.getCampType());
        }
        if (other.getGuid() != 0L) {
          setGuid(other.getGuid());
        }
        if (other.getOwnerEntityId() != 0) {
          setOwnerEntityId(other.getOwnerEntityId());
        }
        if (other.getTargetEntityId() != 0) {
          setTargetEntityId(other.getTargetEntityId());
        }
        if (other.getGlmdcefdgeg() != false) {
          setGlmdcefdgeg(other.getGlmdcefdgeg());
        }
        if (other.getIsPeerIdFromPlayer() != false) {
          setIsPeerIdFromPlayer(other.getIsPeerIdFromPlayer());
        }
        if (!other.targetEntityIdList_.isEmpty()) {
          if (targetEntityIdList_.isEmpty()) {
            targetEntityIdList_ = other.targetEntityIdList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureTargetEntityIdListIsMutable();
            targetEntityIdList_.addAll(other.targetEntityIdList_);
          }
          onChanged();
        }
        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.ClientGadgetOuterClass.ClientGadget parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int campId_ ;
      /**
       * <code>uint32 campId = 1;</code>
       * @return The campId.
       */
      @java.lang.Override
      public int getCampId() {
        return campId_;
      }
      /**
       * <code>uint32 campId = 1;</code>
       * @param value The campId to set.
       * @return This builder for chaining.
       */
      public Builder setCampId(int value) {
        
        campId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 campId = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearCampId() {
        
        campId_ = 0;
        onChanged();
        return this;
      }

      private int campType_ ;
      /**
       * <code>uint32 campType = 2;</code>
       * @return The campType.
       */
      @java.lang.Override
      public int getCampType() {
        return campType_;
      }
      /**
       * <code>uint32 campType = 2;</code>
       * @param value The campType to set.
       * @return This builder for chaining.
       */
      public Builder setCampType(int value) {
        
        campType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 campType = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearCampType() {
        
        campType_ = 0;
        onChanged();
        return this;
      }

      private long guid_ ;
      /**
       * <code>uint64 guid = 3;</code>
       * @return The guid.
       */
      @java.lang.Override
      public long getGuid() {
        return guid_;
      }
      /**
       * <code>uint64 guid = 3;</code>
       * @param value The guid to set.
       * @return This builder for chaining.
       */
      public Builder setGuid(long value) {
        
        guid_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 guid = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearGuid() {
        
        guid_ = 0L;
        onChanged();
        return this;
      }

      private int ownerEntityId_ ;
      /**
       * <code>uint32 ownerEntityId = 4;</code>
       * @return The ownerEntityId.
       */
      @java.lang.Override
      public int getOwnerEntityId() {
        return ownerEntityId_;
      }
      /**
       * <code>uint32 ownerEntityId = 4;</code>
       * @param value The ownerEntityId to set.
       * @return This builder for chaining.
       */
      public Builder setOwnerEntityId(int value) {
        
        ownerEntityId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 ownerEntityId = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearOwnerEntityId() {
        
        ownerEntityId_ = 0;
        onChanged();
        return this;
      }

      private int targetEntityId_ ;
      /**
       * <code>uint32 targetEntityId = 5;</code>
       * @return The targetEntityId.
       */
      @java.lang.Override
      public int getTargetEntityId() {
        return targetEntityId_;
      }
      /**
       * <code>uint32 targetEntityId = 5;</code>
       * @param value The targetEntityId to set.
       * @return This builder for chaining.
       */
      public Builder setTargetEntityId(int value) {
        
        targetEntityId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 targetEntityId = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearTargetEntityId() {
        
        targetEntityId_ = 0;
        onChanged();
        return this;
      }

      private boolean glmdcefdgeg_ ;
      /**
       * <code>bool glmdcefdgeg = 6;</code>
       * @return The glmdcefdgeg.
       */
      @java.lang.Override
      public boolean getGlmdcefdgeg() {
        return glmdcefdgeg_;
      }
      /**
       * <code>bool glmdcefdgeg = 6;</code>
       * @param value The glmdcefdgeg to set.
       * @return This builder for chaining.
       */
      public Builder setGlmdcefdgeg(boolean value) {
        
        glmdcefdgeg_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool glmdcefdgeg = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearGlmdcefdgeg() {
        
        glmdcefdgeg_ = false;
        onChanged();
        return this;
      }

      private boolean isPeerIdFromPlayer_ ;
      /**
       * <code>bool isPeerIdFromPlayer = 7;</code>
       * @return The isPeerIdFromPlayer.
       */
      @java.lang.Override
      public boolean getIsPeerIdFromPlayer() {
        return isPeerIdFromPlayer_;
      }
      /**
       * <code>bool isPeerIdFromPlayer = 7;</code>
       * @param value The isPeerIdFromPlayer to set.
       * @return This builder for chaining.
       */
      public Builder setIsPeerIdFromPlayer(boolean value) {
        
        isPeerIdFromPlayer_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bool isPeerIdFromPlayer = 7;</code>
       * @return This builder for chaining.
       */
      public Builder clearIsPeerIdFromPlayer() {
        
        isPeerIdFromPlayer_ = false;
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.IntList targetEntityIdList_ = emptyIntList();
      private void ensureTargetEntityIdListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          targetEntityIdList_ = mutableCopy(targetEntityIdList_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @return A list containing the targetEntityIdList.
       */
      public java.util.List<java.lang.Integer>
          getTargetEntityIdListList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(targetEntityIdList_) : targetEntityIdList_;
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @return The count of targetEntityIdList.
       */
      public int getTargetEntityIdListCount() {
        return targetEntityIdList_.size();
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @param index The index of the element to return.
       * @return The targetEntityIdList at the given index.
       */
      public int getTargetEntityIdList(int index) {
        return targetEntityIdList_.getInt(index);
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @param index The index to set the value at.
       * @param value The targetEntityIdList to set.
       * @return This builder for chaining.
       */
      public Builder setTargetEntityIdList(
          int index, int value) {
        ensureTargetEntityIdListIsMutable();
        targetEntityIdList_.setInt(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @param value The targetEntityIdList to add.
       * @return This builder for chaining.
       */
      public Builder addTargetEntityIdList(int value) {
        ensureTargetEntityIdListIsMutable();
        targetEntityIdList_.addInt(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @param values The targetEntityIdList to add.
       * @return This builder for chaining.
       */
      public Builder addAllTargetEntityIdList(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureTargetEntityIdListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, targetEntityIdList_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated uint32 targetEntityIdList = 8;</code>
       * @return This builder for chaining.
       */
      public Builder clearTargetEntityIdList() {
        targetEntityIdList_ = emptyIntList();
        bitField0_ = (bitField0_ & ~0x00000001);
        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:ClientGadget)
    }

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

    public static emu.grasscutter.net.proto.ClientGadgetOuterClass.ClientGadget getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_ClientGadget_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_ClientGadget_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\022ClientGadget.proto\"\272\001\n\014ClientGadget\022\016\n" +
      "\006campId\030\001 \001(\r\022\020\n\010campType\030\002 \001(\r\022\014\n\004guid\030" +
      "\003 \001(\004\022\025\n\rownerEntityId\030\004 \001(\r\022\026\n\016targetEn" +
      "tityId\030\005 \001(\r\022\023\n\013glmdcefdgeg\030\006 \001(\010\022\032\n\022isP" +
      "eerIdFromPlayer\030\007 \001(\010\022\032\n\022targetEntityIdL" +
      "ist\030\010 \003(\rB\033\n\031emu.grasscutter.net.protob\006" +
      "proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_ClientGadget_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_ClientGadget_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_ClientGadget_descriptor,
        new java.lang.String[] { "CampId", "CampType", "Guid", "OwnerEntityId", "TargetEntityId", "Glmdcefdgeg", "IsPeerIdFromPlayer", "TargetEntityIdList", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
