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

package emu.grasscutter.net.proto;

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

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

    /**
     * <code>.Vector pos = 6;</code>
     * @return Whether the pos field is set.
     */
    boolean hasPos();
    /**
     * <code>.Vector pos = 6;</code>
     * @return The pos.
     */
    emu.grasscutter.net.proto.VectorOuterClass.Vector getPos();
    /**
     * <code>.Vector pos = 6;</code>
     */
    emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder();

    /**
     * <code>.Vector rot = 7;</code>
     * @return Whether the rot field is set.
     */
    boolean hasRot();
    /**
     * <code>.Vector rot = 7;</code>
     * @return The rot.
     */
    emu.grasscutter.net.proto.VectorOuterClass.Vector getRot();
    /**
     * <code>.Vector rot = 7;</code>
     */
    emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder();

    /**
     * <code>uint32 scene_id = 10;</code>
     * @return The sceneId.
     */
    int getSceneId();

    /**
     * <code>uint32 room_id = 11;</code>
     * @return The roomId.
     */
    int getRoomId();

    /**
     * <code>uint32 client_unique_id = 12;</code>
     * @return The clientUniqueId.
     */
    int getClientUniqueId();

    /**
     * <code>uint32 monster_id = 1;</code>
     * @return Whether the monsterId field is set.
     */
    boolean hasMonsterId();
    /**
     * <code>uint32 monster_id = 1;</code>
     * @return The monsterId.
     */
    int getMonsterId();

    /**
     * <code>uint32 npc_id = 2;</code>
     * @return Whether the npcId field is set.
     */
    boolean hasNpcId();
    /**
     * <code>uint32 npc_id = 2;</code>
     * @return The npcId.
     */
    int getNpcId();

    /**
     * <code>uint32 gadget_id = 3;</code>
     * @return Whether the gadgetId field is set.
     */
    boolean hasGadgetId();
    /**
     * <code>uint32 gadget_id = 3;</code>
     * @return The gadgetId.
     */
    int getGadgetId();

    /**
     * <code>uint32 item_id = 4;</code>
     * @return Whether the itemId field is set.
     */
    boolean hasItemId();
    /**
     * <code>uint32 item_id = 4;</code>
     * @return The itemId.
     */
    int getItemId();

    /**
     * <code>.CreateGadgetInfo gadget = 13;</code>
     * @return Whether the gadget field is set.
     */
    boolean hasGadget();
    /**
     * <code>.CreateGadgetInfo gadget = 13;</code>
     * @return The gadget.
     */
    emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo getGadget();
    /**
     * <code>.CreateGadgetInfo gadget = 13;</code>
     */
    emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfoOrBuilder getGadgetOrBuilder();

    public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.EntityCase getEntityCase();

    public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.EntityCreateInfoCase getEntityCreateInfoCase();
  }
  /**
   * <pre>
   * Name: PDPKPDBANCA
   * </pre>
   *
   * Protobuf type {@code CreateEntityInfo}
   */
  public static final class CreateEntityInfo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:CreateEntityInfo)
      CreateEntityInfoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CreateEntityInfo.newBuilder() to construct.
    private CreateEntityInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CreateEntityInfo() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CreateEntityInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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: {
              entityCase_ = 1;
              entity_ = input.readUInt32();
              break;
            }
            case 16: {
              entityCase_ = 2;
              entity_ = input.readUInt32();
              break;
            }
            case 24: {
              entityCase_ = 3;
              entity_ = input.readUInt32();
              break;
            }
            case 32: {
              entityCase_ = 4;
              entity_ = input.readUInt32();
              break;
            }
            case 40: {

              level_ = input.readUInt32();
              break;
            }
            case 50: {
              emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null;
              if (pos_ != null) {
                subBuilder = pos_.toBuilder();
              }
              pos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(pos_);
                pos_ = subBuilder.buildPartial();
              }

              break;
            }
            case 58: {
              emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null;
              if (rot_ != null) {
                subBuilder = rot_.toBuilder();
              }
              rot_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(rot_);
                rot_ = subBuilder.buildPartial();
              }

              break;
            }
            case 80: {

              sceneId_ = input.readUInt32();
              break;
            }
            case 88: {

              roomId_ = input.readUInt32();
              break;
            }
            case 96: {

              clientUniqueId_ = input.readUInt32();
              break;
            }
            case 106: {
              emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.Builder subBuilder = null;
              if (entityCreateInfoCase_ == 13) {
                subBuilder = ((emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_).toBuilder();
              }
              entityCreateInfo_ =
                  input.readMessage(emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom((emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_);
                entityCreateInfo_ = subBuilder.buildPartial();
              }
              entityCreateInfoCase_ = 13;
              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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return emu.grasscutter.net.proto.CreateEntityInfoOuterClass.internal_static_CreateEntityInfo_descriptor;
    }

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

    private int entityCase_ = 0;
    private java.lang.Object entity_;
    public enum EntityCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      MONSTER_ID(1),
      NPC_ID(2),
      GADGET_ID(3),
      ITEM_ID(4),
      ENTITY_NOT_SET(0);
      private final int value;
      private EntityCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static EntityCase valueOf(int value) {
        return forNumber(value);
      }

      public static EntityCase forNumber(int value) {
        switch (value) {
          case 1: return MONSTER_ID;
          case 2: return NPC_ID;
          case 3: return GADGET_ID;
          case 4: return ITEM_ID;
          case 0: return ENTITY_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public EntityCase
    getEntityCase() {
      return EntityCase.forNumber(
          entityCase_);
    }

    private int entityCreateInfoCase_ = 0;
    private java.lang.Object entityCreateInfo_;
    public enum EntityCreateInfoCase
        implements com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      GADGET(13),
      ENTITYCREATEINFO_NOT_SET(0);
      private final int value;
      private EntityCreateInfoCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static EntityCreateInfoCase valueOf(int value) {
        return forNumber(value);
      }

      public static EntityCreateInfoCase forNumber(int value) {
        switch (value) {
          case 13: return GADGET;
          case 0: return ENTITYCREATEINFO_NOT_SET;
          default: return null;
        }
      }
      public int getNumber() {
        return this.value;
      }
    };

    public EntityCreateInfoCase
    getEntityCreateInfoCase() {
      return EntityCreateInfoCase.forNumber(
          entityCreateInfoCase_);
    }

    public static final int LEVEL_FIELD_NUMBER = 5;
    private int level_;
    /**
     * <code>uint32 level = 5;</code>
     * @return The level.
     */
    @java.lang.Override
    public int getLevel() {
      return level_;
    }

    public static final int POS_FIELD_NUMBER = 6;
    private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_;
    /**
     * <code>.Vector pos = 6;</code>
     * @return Whether the pos field is set.
     */
    @java.lang.Override
    public boolean hasPos() {
      return pos_ != null;
    }
    /**
     * <code>.Vector pos = 6;</code>
     * @return The pos.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() {
      return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_;
    }
    /**
     * <code>.Vector pos = 6;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() {
      return getPos();
    }

    public static final int ROT_FIELD_NUMBER = 7;
    private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_;
    /**
     * <code>.Vector rot = 7;</code>
     * @return Whether the rot field is set.
     */
    @java.lang.Override
    public boolean hasRot() {
      return rot_ != null;
    }
    /**
     * <code>.Vector rot = 7;</code>
     * @return The rot.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() {
      return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
    }
    /**
     * <code>.Vector rot = 7;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() {
      return getRot();
    }

    public static final int SCENE_ID_FIELD_NUMBER = 10;
    private int sceneId_;
    /**
     * <code>uint32 scene_id = 10;</code>
     * @return The sceneId.
     */
    @java.lang.Override
    public int getSceneId() {
      return sceneId_;
    }

    public static final int ROOM_ID_FIELD_NUMBER = 11;
    private int roomId_;
    /**
     * <code>uint32 room_id = 11;</code>
     * @return The roomId.
     */
    @java.lang.Override
    public int getRoomId() {
      return roomId_;
    }

    public static final int CLIENT_UNIQUE_ID_FIELD_NUMBER = 12;
    private int clientUniqueId_;
    /**
     * <code>uint32 client_unique_id = 12;</code>
     * @return The clientUniqueId.
     */
    @java.lang.Override
    public int getClientUniqueId() {
      return clientUniqueId_;
    }

    public static final int MONSTER_ID_FIELD_NUMBER = 1;
    /**
     * <code>uint32 monster_id = 1;</code>
     * @return Whether the monsterId field is set.
     */
    @java.lang.Override
    public boolean hasMonsterId() {
      return entityCase_ == 1;
    }
    /**
     * <code>uint32 monster_id = 1;</code>
     * @return The monsterId.
     */
    @java.lang.Override
    public int getMonsterId() {
      if (entityCase_ == 1) {
        return (java.lang.Integer) entity_;
      }
      return 0;
    }

    public static final int NPC_ID_FIELD_NUMBER = 2;
    /**
     * <code>uint32 npc_id = 2;</code>
     * @return Whether the npcId field is set.
     */
    @java.lang.Override
    public boolean hasNpcId() {
      return entityCase_ == 2;
    }
    /**
     * <code>uint32 npc_id = 2;</code>
     * @return The npcId.
     */
    @java.lang.Override
    public int getNpcId() {
      if (entityCase_ == 2) {
        return (java.lang.Integer) entity_;
      }
      return 0;
    }

    public static final int GADGET_ID_FIELD_NUMBER = 3;
    /**
     * <code>uint32 gadget_id = 3;</code>
     * @return Whether the gadgetId field is set.
     */
    @java.lang.Override
    public boolean hasGadgetId() {
      return entityCase_ == 3;
    }
    /**
     * <code>uint32 gadget_id = 3;</code>
     * @return The gadgetId.
     */
    @java.lang.Override
    public int getGadgetId() {
      if (entityCase_ == 3) {
        return (java.lang.Integer) entity_;
      }
      return 0;
    }

    public static final int ITEM_ID_FIELD_NUMBER = 4;
    /**
     * <code>uint32 item_id = 4;</code>
     * @return Whether the itemId field is set.
     */
    @java.lang.Override
    public boolean hasItemId() {
      return entityCase_ == 4;
    }
    /**
     * <code>uint32 item_id = 4;</code>
     * @return The itemId.
     */
    @java.lang.Override
    public int getItemId() {
      if (entityCase_ == 4) {
        return (java.lang.Integer) entity_;
      }
      return 0;
    }

    public static final int GADGET_FIELD_NUMBER = 13;
    /**
     * <code>.CreateGadgetInfo gadget = 13;</code>
     * @return Whether the gadget field is set.
     */
    @java.lang.Override
    public boolean hasGadget() {
      return entityCreateInfoCase_ == 13;
    }
    /**
     * <code>.CreateGadgetInfo gadget = 13;</code>
     * @return The gadget.
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo getGadget() {
      if (entityCreateInfoCase_ == 13) {
         return (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_;
      }
      return emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance();
    }
    /**
     * <code>.CreateGadgetInfo gadget = 13;</code>
     */
    @java.lang.Override
    public emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfoOrBuilder getGadgetOrBuilder() {
      if (entityCreateInfoCase_ == 13) {
         return (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_;
      }
      return emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance();
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (entityCase_ == 1) {
        output.writeUInt32(
            1, (int)((java.lang.Integer) entity_));
      }
      if (entityCase_ == 2) {
        output.writeUInt32(
            2, (int)((java.lang.Integer) entity_));
      }
      if (entityCase_ == 3) {
        output.writeUInt32(
            3, (int)((java.lang.Integer) entity_));
      }
      if (entityCase_ == 4) {
        output.writeUInt32(
            4, (int)((java.lang.Integer) entity_));
      }
      if (level_ != 0) {
        output.writeUInt32(5, level_);
      }
      if (pos_ != null) {
        output.writeMessage(6, getPos());
      }
      if (rot_ != null) {
        output.writeMessage(7, getRot());
      }
      if (sceneId_ != 0) {
        output.writeUInt32(10, sceneId_);
      }
      if (roomId_ != 0) {
        output.writeUInt32(11, roomId_);
      }
      if (clientUniqueId_ != 0) {
        output.writeUInt32(12, clientUniqueId_);
      }
      if (entityCreateInfoCase_ == 13) {
        output.writeMessage(13, (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (entityCase_ == 1) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              1, (int)((java.lang.Integer) entity_));
      }
      if (entityCase_ == 2) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              2, (int)((java.lang.Integer) entity_));
      }
      if (entityCase_ == 3) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              3, (int)((java.lang.Integer) entity_));
      }
      if (entityCase_ == 4) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(
              4, (int)((java.lang.Integer) entity_));
      }
      if (level_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, level_);
      }
      if (pos_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, getPos());
      }
      if (rot_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, getRot());
      }
      if (sceneId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(10, sceneId_);
      }
      if (roomId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(11, roomId_);
      }
      if (clientUniqueId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(12, clientUniqueId_);
      }
      if (entityCreateInfoCase_ == 13) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(13, (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_);
      }
      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.CreateEntityInfoOuterClass.CreateEntityInfo)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo other = (emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo) obj;

      if (getLevel()
          != other.getLevel()) return false;
      if (hasPos() != other.hasPos()) return false;
      if (hasPos()) {
        if (!getPos()
            .equals(other.getPos())) return false;
      }
      if (hasRot() != other.hasRot()) return false;
      if (hasRot()) {
        if (!getRot()
            .equals(other.getRot())) return false;
      }
      if (getSceneId()
          != other.getSceneId()) return false;
      if (getRoomId()
          != other.getRoomId()) return false;
      if (getClientUniqueId()
          != other.getClientUniqueId()) return false;
      if (!getEntityCase().equals(other.getEntityCase())) return false;
      switch (entityCase_) {
        case 1:
          if (getMonsterId()
              != other.getMonsterId()) return false;
          break;
        case 2:
          if (getNpcId()
              != other.getNpcId()) return false;
          break;
        case 3:
          if (getGadgetId()
              != other.getGadgetId()) return false;
          break;
        case 4:
          if (getItemId()
              != other.getItemId()) return false;
          break;
        case 0:
        default:
      }
      if (!getEntityCreateInfoCase().equals(other.getEntityCreateInfoCase())) return false;
      switch (entityCreateInfoCase_) {
        case 13:
          if (!getGadget()
              .equals(other.getGadget())) return false;
          break;
        case 0:
        default:
      }
      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) + LEVEL_FIELD_NUMBER;
      hash = (53 * hash) + getLevel();
      if (hasPos()) {
        hash = (37 * hash) + POS_FIELD_NUMBER;
        hash = (53 * hash) + getPos().hashCode();
      }
      if (hasRot()) {
        hash = (37 * hash) + ROT_FIELD_NUMBER;
        hash = (53 * hash) + getRot().hashCode();
      }
      hash = (37 * hash) + SCENE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getSceneId();
      hash = (37 * hash) + ROOM_ID_FIELD_NUMBER;
      hash = (53 * hash) + getRoomId();
      hash = (37 * hash) + CLIENT_UNIQUE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getClientUniqueId();
      switch (entityCase_) {
        case 1:
          hash = (37 * hash) + MONSTER_ID_FIELD_NUMBER;
          hash = (53 * hash) + getMonsterId();
          break;
        case 2:
          hash = (37 * hash) + NPC_ID_FIELD_NUMBER;
          hash = (53 * hash) + getNpcId();
          break;
        case 3:
          hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
          hash = (53 * hash) + getGadgetId();
          break;
        case 4:
          hash = (37 * hash) + ITEM_ID_FIELD_NUMBER;
          hash = (53 * hash) + getItemId();
          break;
        case 0:
        default:
      }
      switch (entityCreateInfoCase_) {
        case 13:
          hash = (37 * hash) + GADGET_FIELD_NUMBER;
          hash = (53 * hash) + getGadget().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.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();
        level_ = 0;

        if (posBuilder_ == null) {
          pos_ = null;
        } else {
          pos_ = null;
          posBuilder_ = null;
        }
        if (rotBuilder_ == null) {
          rot_ = null;
        } else {
          rot_ = null;
          rotBuilder_ = null;
        }
        sceneId_ = 0;

        roomId_ = 0;

        clientUniqueId_ = 0;

        entityCase_ = 0;
        entity_ = null;
        entityCreateInfoCase_ = 0;
        entityCreateInfo_ = null;
        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo buildPartial() {
        emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo result = new emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo(this);
        result.level_ = level_;
        if (posBuilder_ == null) {
          result.pos_ = pos_;
        } else {
          result.pos_ = posBuilder_.build();
        }
        if (rotBuilder_ == null) {
          result.rot_ = rot_;
        } else {
          result.rot_ = rotBuilder_.build();
        }
        result.sceneId_ = sceneId_;
        result.roomId_ = roomId_;
        result.clientUniqueId_ = clientUniqueId_;
        if (entityCase_ == 1) {
          result.entity_ = entity_;
        }
        if (entityCase_ == 2) {
          result.entity_ = entity_;
        }
        if (entityCase_ == 3) {
          result.entity_ = entity_;
        }
        if (entityCase_ == 4) {
          result.entity_ = entity_;
        }
        if (entityCreateInfoCase_ == 13) {
          if (gadgetBuilder_ == null) {
            result.entityCreateInfo_ = entityCreateInfo_;
          } else {
            result.entityCreateInfo_ = gadgetBuilder_.build();
          }
        }
        result.entityCase_ = entityCase_;
        result.entityCreateInfoCase_ = entityCreateInfoCase_;
        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.CreateEntityInfoOuterClass.CreateEntityInfo) {
          return mergeFrom((emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo other) {
        if (other == emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.getDefaultInstance()) return this;
        if (other.getLevel() != 0) {
          setLevel(other.getLevel());
        }
        if (other.hasPos()) {
          mergePos(other.getPos());
        }
        if (other.hasRot()) {
          mergeRot(other.getRot());
        }
        if (other.getSceneId() != 0) {
          setSceneId(other.getSceneId());
        }
        if (other.getRoomId() != 0) {
          setRoomId(other.getRoomId());
        }
        if (other.getClientUniqueId() != 0) {
          setClientUniqueId(other.getClientUniqueId());
        }
        switch (other.getEntityCase()) {
          case MONSTER_ID: {
            setMonsterId(other.getMonsterId());
            break;
          }
          case NPC_ID: {
            setNpcId(other.getNpcId());
            break;
          }
          case GADGET_ID: {
            setGadgetId(other.getGadgetId());
            break;
          }
          case ITEM_ID: {
            setItemId(other.getItemId());
            break;
          }
          case ENTITY_NOT_SET: {
            break;
          }
        }
        switch (other.getEntityCreateInfoCase()) {
          case GADGET: {
            mergeGadget(other.getGadget());
            break;
          }
          case ENTITYCREATEINFO_NOT_SET: {
            break;
          }
        }
        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.CreateEntityInfoOuterClass.CreateEntityInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int entityCase_ = 0;
      private java.lang.Object entity_;
      public EntityCase
          getEntityCase() {
        return EntityCase.forNumber(
            entityCase_);
      }

      public Builder clearEntity() {
        entityCase_ = 0;
        entity_ = null;
        onChanged();
        return this;
      }

      private int entityCreateInfoCase_ = 0;
      private java.lang.Object entityCreateInfo_;
      public EntityCreateInfoCase
          getEntityCreateInfoCase() {
        return EntityCreateInfoCase.forNumber(
            entityCreateInfoCase_);
      }

      public Builder clearEntityCreateInfo() {
        entityCreateInfoCase_ = 0;
        entityCreateInfo_ = null;
        onChanged();
        return this;
      }


      private int level_ ;
      /**
       * <code>uint32 level = 5;</code>
       * @return The level.
       */
      @java.lang.Override
      public int getLevel() {
        return level_;
      }
      /**
       * <code>uint32 level = 5;</code>
       * @param value The level to set.
       * @return This builder for chaining.
       */
      public Builder setLevel(int value) {
        
        level_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 level = 5;</code>
       * @return This builder for chaining.
       */
      public Builder clearLevel() {
        
        level_ = 0;
        onChanged();
        return this;
      }

      private emu.grasscutter.net.proto.VectorOuterClass.Vector pos_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> posBuilder_;
      /**
       * <code>.Vector pos = 6;</code>
       * @return Whether the pos field is set.
       */
      public boolean hasPos() {
        return posBuilder_ != null || pos_ != null;
      }
      /**
       * <code>.Vector pos = 6;</code>
       * @return The pos.
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector getPos() {
        if (posBuilder_ == null) {
          return pos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_;
        } else {
          return posBuilder_.getMessage();
        }
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      public Builder setPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (posBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          pos_ = value;
          onChanged();
        } else {
          posBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      public Builder setPos(
          emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
        if (posBuilder_ == null) {
          pos_ = builderForValue.build();
          onChanged();
        } else {
          posBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      public Builder mergePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (posBuilder_ == null) {
          if (pos_ != null) {
            pos_ =
              emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(pos_).mergeFrom(value).buildPartial();
          } else {
            pos_ = value;
          }
          onChanged();
        } else {
          posBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      public Builder clearPos() {
        if (posBuilder_ == null) {
          pos_ = null;
          onChanged();
        } else {
          pos_ = null;
          posBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getPosBuilder() {
        
        onChanged();
        return getPosFieldBuilder().getBuilder();
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getPosOrBuilder() {
        if (posBuilder_ != null) {
          return posBuilder_.getMessageOrBuilder();
        } else {
          return pos_ == null ?
              emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : pos_;
        }
      }
      /**
       * <code>.Vector pos = 6;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
          getPosFieldBuilder() {
        if (posBuilder_ == null) {
          posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
                  getPos(),
                  getParentForChildren(),
                  isClean());
          pos_ = null;
        }
        return posBuilder_;
      }

      private emu.grasscutter.net.proto.VectorOuterClass.Vector rot_;
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> rotBuilder_;
      /**
       * <code>.Vector rot = 7;</code>
       * @return Whether the rot field is set.
       */
      public boolean hasRot() {
        return rotBuilder_ != null || rot_ != null;
      }
      /**
       * <code>.Vector rot = 7;</code>
       * @return The rot.
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector getRot() {
        if (rotBuilder_ == null) {
          return rot_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
        } else {
          return rotBuilder_.getMessage();
        }
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      public Builder setRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (rotBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          rot_ = value;
          onChanged();
        } else {
          rotBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      public Builder setRot(
          emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
        if (rotBuilder_ == null) {
          rot_ = builderForValue.build();
          onChanged();
        } else {
          rotBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      public Builder mergeRot(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
        if (rotBuilder_ == null) {
          if (rot_ != null) {
            rot_ =
              emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(rot_).mergeFrom(value).buildPartial();
          } else {
            rot_ = value;
          }
          onChanged();
        } else {
          rotBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      public Builder clearRot() {
        if (rotBuilder_ == null) {
          rot_ = null;
          onChanged();
        } else {
          rot_ = null;
          rotBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getRotBuilder() {
        
        onChanged();
        return getRotFieldBuilder().getBuilder();
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getRotOrBuilder() {
        if (rotBuilder_ != null) {
          return rotBuilder_.getMessageOrBuilder();
        } else {
          return rot_ == null ?
              emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : rot_;
        }
      }
      /**
       * <code>.Vector rot = 7;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> 
          getRotFieldBuilder() {
        if (rotBuilder_ == null) {
          rotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
                  getRot(),
                  getParentForChildren(),
                  isClean());
          rot_ = null;
        }
        return rotBuilder_;
      }

      private int sceneId_ ;
      /**
       * <code>uint32 scene_id = 10;</code>
       * @return The sceneId.
       */
      @java.lang.Override
      public int getSceneId() {
        return sceneId_;
      }
      /**
       * <code>uint32 scene_id = 10;</code>
       * @param value The sceneId to set.
       * @return This builder for chaining.
       */
      public Builder setSceneId(int value) {
        
        sceneId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 scene_id = 10;</code>
       * @return This builder for chaining.
       */
      public Builder clearSceneId() {
        
        sceneId_ = 0;
        onChanged();
        return this;
      }

      private int roomId_ ;
      /**
       * <code>uint32 room_id = 11;</code>
       * @return The roomId.
       */
      @java.lang.Override
      public int getRoomId() {
        return roomId_;
      }
      /**
       * <code>uint32 room_id = 11;</code>
       * @param value The roomId to set.
       * @return This builder for chaining.
       */
      public Builder setRoomId(int value) {
        
        roomId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 room_id = 11;</code>
       * @return This builder for chaining.
       */
      public Builder clearRoomId() {
        
        roomId_ = 0;
        onChanged();
        return this;
      }

      private int clientUniqueId_ ;
      /**
       * <code>uint32 client_unique_id = 12;</code>
       * @return The clientUniqueId.
       */
      @java.lang.Override
      public int getClientUniqueId() {
        return clientUniqueId_;
      }
      /**
       * <code>uint32 client_unique_id = 12;</code>
       * @param value The clientUniqueId to set.
       * @return This builder for chaining.
       */
      public Builder setClientUniqueId(int value) {
        
        clientUniqueId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 client_unique_id = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearClientUniqueId() {
        
        clientUniqueId_ = 0;
        onChanged();
        return this;
      }

      /**
       * <code>uint32 monster_id = 1;</code>
       * @return Whether the monsterId field is set.
       */
      public boolean hasMonsterId() {
        return entityCase_ == 1;
      }
      /**
       * <code>uint32 monster_id = 1;</code>
       * @return The monsterId.
       */
      public int getMonsterId() {
        if (entityCase_ == 1) {
          return (java.lang.Integer) entity_;
        }
        return 0;
      }
      /**
       * <code>uint32 monster_id = 1;</code>
       * @param value The monsterId to set.
       * @return This builder for chaining.
       */
      public Builder setMonsterId(int value) {
        entityCase_ = 1;
        entity_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 monster_id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearMonsterId() {
        if (entityCase_ == 1) {
          entityCase_ = 0;
          entity_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * <code>uint32 npc_id = 2;</code>
       * @return Whether the npcId field is set.
       */
      public boolean hasNpcId() {
        return entityCase_ == 2;
      }
      /**
       * <code>uint32 npc_id = 2;</code>
       * @return The npcId.
       */
      public int getNpcId() {
        if (entityCase_ == 2) {
          return (java.lang.Integer) entity_;
        }
        return 0;
      }
      /**
       * <code>uint32 npc_id = 2;</code>
       * @param value The npcId to set.
       * @return This builder for chaining.
       */
      public Builder setNpcId(int value) {
        entityCase_ = 2;
        entity_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 npc_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearNpcId() {
        if (entityCase_ == 2) {
          entityCase_ = 0;
          entity_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * <code>uint32 gadget_id = 3;</code>
       * @return Whether the gadgetId field is set.
       */
      public boolean hasGadgetId() {
        return entityCase_ == 3;
      }
      /**
       * <code>uint32 gadget_id = 3;</code>
       * @return The gadgetId.
       */
      public int getGadgetId() {
        if (entityCase_ == 3) {
          return (java.lang.Integer) entity_;
        }
        return 0;
      }
      /**
       * <code>uint32 gadget_id = 3;</code>
       * @param value The gadgetId to set.
       * @return This builder for chaining.
       */
      public Builder setGadgetId(int value) {
        entityCase_ = 3;
        entity_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 gadget_id = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearGadgetId() {
        if (entityCase_ == 3) {
          entityCase_ = 0;
          entity_ = null;
          onChanged();
        }
        return this;
      }

      /**
       * <code>uint32 item_id = 4;</code>
       * @return Whether the itemId field is set.
       */
      public boolean hasItemId() {
        return entityCase_ == 4;
      }
      /**
       * <code>uint32 item_id = 4;</code>
       * @return The itemId.
       */
      public int getItemId() {
        if (entityCase_ == 4) {
          return (java.lang.Integer) entity_;
        }
        return 0;
      }
      /**
       * <code>uint32 item_id = 4;</code>
       * @param value The itemId to set.
       * @return This builder for chaining.
       */
      public Builder setItemId(int value) {
        entityCase_ = 4;
        entity_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 item_id = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearItemId() {
        if (entityCase_ == 4) {
          entityCase_ = 0;
          entity_ = null;
          onChanged();
        }
        return this;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo, emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.Builder, emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfoOrBuilder> gadgetBuilder_;
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       * @return Whether the gadget field is set.
       */
      @java.lang.Override
      public boolean hasGadget() {
        return entityCreateInfoCase_ == 13;
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       * @return The gadget.
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo getGadget() {
        if (gadgetBuilder_ == null) {
          if (entityCreateInfoCase_ == 13) {
            return (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_;
          }
          return emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance();
        } else {
          if (entityCreateInfoCase_ == 13) {
            return gadgetBuilder_.getMessage();
          }
          return emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance();
        }
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      public Builder setGadget(emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo value) {
        if (gadgetBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          entityCreateInfo_ = value;
          onChanged();
        } else {
          gadgetBuilder_.setMessage(value);
        }
        entityCreateInfoCase_ = 13;
        return this;
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      public Builder setGadget(
          emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.Builder builderForValue) {
        if (gadgetBuilder_ == null) {
          entityCreateInfo_ = builderForValue.build();
          onChanged();
        } else {
          gadgetBuilder_.setMessage(builderForValue.build());
        }
        entityCreateInfoCase_ = 13;
        return this;
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      public Builder mergeGadget(emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo value) {
        if (gadgetBuilder_ == null) {
          if (entityCreateInfoCase_ == 13 &&
              entityCreateInfo_ != emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance()) {
            entityCreateInfo_ = emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.newBuilder((emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_)
                .mergeFrom(value).buildPartial();
          } else {
            entityCreateInfo_ = value;
          }
          onChanged();
        } else {
          if (entityCreateInfoCase_ == 13) {
            gadgetBuilder_.mergeFrom(value);
          }
          gadgetBuilder_.setMessage(value);
        }
        entityCreateInfoCase_ = 13;
        return this;
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      public Builder clearGadget() {
        if (gadgetBuilder_ == null) {
          if (entityCreateInfoCase_ == 13) {
            entityCreateInfoCase_ = 0;
            entityCreateInfo_ = null;
            onChanged();
          }
        } else {
          if (entityCreateInfoCase_ == 13) {
            entityCreateInfoCase_ = 0;
            entityCreateInfo_ = null;
          }
          gadgetBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      public emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.Builder getGadgetBuilder() {
        return getGadgetFieldBuilder().getBuilder();
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfoOrBuilder getGadgetOrBuilder() {
        if ((entityCreateInfoCase_ == 13) && (gadgetBuilder_ != null)) {
          return gadgetBuilder_.getMessageOrBuilder();
        } else {
          if (entityCreateInfoCase_ == 13) {
            return (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_;
          }
          return emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance();
        }
      }
      /**
       * <code>.CreateGadgetInfo gadget = 13;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo, emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.Builder, emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfoOrBuilder> 
          getGadgetFieldBuilder() {
        if (gadgetBuilder_ == null) {
          if (!(entityCreateInfoCase_ == 13)) {
            entityCreateInfo_ = emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.getDefaultInstance();
          }
          gadgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo, emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo.Builder, emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfoOrBuilder>(
                  (emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.CreateGadgetInfo) entityCreateInfo_,
                  getParentForChildren(),
                  isClean());
          entityCreateInfo_ = null;
        }
        entityCreateInfoCase_ = 13;
        onChanged();;
        return gadgetBuilder_;
      }
      @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:CreateEntityInfo)
    }

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

    public static emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_CreateEntityInfo_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_CreateEntityInfo_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\026CreateEntityInfo.proto\032\026CreateGadgetIn" +
      "fo.proto\032\014Vector.proto\"\237\002\n\020CreateEntityI" +
      "nfo\022\r\n\005level\030\005 \001(\r\022\024\n\003pos\030\006 \001(\0132\007.Vector" +
      "\022\024\n\003rot\030\007 \001(\0132\007.Vector\022\020\n\010scene_id\030\n \001(\r" +
      "\022\017\n\007room_id\030\013 \001(\r\022\030\n\020client_unique_id\030\014 " +
      "\001(\r\022\024\n\nmonster_id\030\001 \001(\rH\000\022\020\n\006npc_id\030\002 \001(" +
      "\rH\000\022\023\n\tgadget_id\030\003 \001(\rH\000\022\021\n\007item_id\030\004 \001(" +
      "\rH\000\022#\n\006gadget\030\r \001(\0132\021.CreateGadgetInfoH\001" +
      "B\010\n\006entityB\024\n\022entity_create_infoB\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.CreateGadgetInfoOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(),
        });
    internal_static_CreateEntityInfo_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_CreateEntityInfo_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_CreateEntityInfo_descriptor,
        new java.lang.String[] { "Level", "Pos", "Rot", "SceneId", "RoomId", "ClientUniqueId", "MonsterId", "NpcId", "GadgetId", "ItemId", "Gadget", "Entity", "EntityCreateInfo", });
    emu.grasscutter.net.proto.CreateGadgetInfoOuterClass.getDescriptor();
    emu.grasscutter.net.proto.VectorOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
