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

package io.grasscutter.net.proto.define;

/**
 * Protobuf type {@code CreateEntityInfo}
 */
public 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: {
            jKPMLNNECOKCase_ = 1;
            jKPMLNNECOK_ = input.readUInt32();
            break;
          }
          case 16: {
            jKPMLNNECOKCase_ = 2;
            jKPMLNNECOK_ = input.readUInt32();
            break;
          }
          case 24: {
            jKPMLNNECOKCase_ = 3;
            jKPMLNNECOK_ = input.readUInt32();
            break;
          }
          case 32: {
            jKPMLNNECOKCase_ = 4;
            jKPMLNNECOK_ = input.readUInt32();
            break;
          }
          case 40: {

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

            break;
          }
          case 58: {
            io.grasscutter.net.proto.define.Vector.Builder subBuilder = null;
            if (rot_ != null) {
              subBuilder = rot_.toBuilder();
            }
            rot_ = input.readMessage(io.grasscutter.net.proto.define.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: {
            io.grasscutter.net.proto.define.CreateGadgetInfo.Builder subBuilder = null;
            if (oHAAOJACMOBCase_ == 13) {
              subBuilder = ((io.grasscutter.net.proto.define.CreateGadgetInfo) oHAAOJACMOB_).toBuilder();
            }
            oHAAOJACMOB_ =
                input.readMessage(io.grasscutter.net.proto.define.CreateGadgetInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.CreateGadgetInfo) oHAAOJACMOB_);
              oHAAOJACMOB_ = subBuilder.buildPartial();
            }
            oHAAOJACMOBCase_ = 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 io.grasscutter.net.proto.define.Define.internal_static_CreateEntityInfo_descriptor;
  }

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

  private int oHAAOJACMOBCase_ = 0;
  private java.lang.Object oHAAOJACMOB_;
  public enum OHAAOJACMOBCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    GADGET(13),
    OHAAOJACMOB_NOT_SET(0);
    private final int value;
    private OHAAOJACMOBCase(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 OHAAOJACMOBCase valueOf(int value) {
      return forNumber(value);
    }

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

  public OHAAOJACMOBCase
  getOHAAOJACMOBCase() {
    return OHAAOJACMOBCase.forNumber(
        oHAAOJACMOBCase_);
  }

  private int jKPMLNNECOKCase_ = 0;
  private java.lang.Object jKPMLNNECOK_;
  public enum JKPMLNNECOKCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    MONSTER_ID(1),
    GADGET_ID(3),
    ITEM_ID(4),
    NPC_ID(2),
    JKPMLNNECOK_NOT_SET(0);
    private final int value;
    private JKPMLNNECOKCase(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 JKPMLNNECOKCase valueOf(int value) {
      return forNumber(value);
    }

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

  public JKPMLNNECOKCase
  getJKPMLNNECOKCase() {
    return JKPMLNNECOKCase.forNumber(
        jKPMLNNECOKCase_);
  }

  public static final int POS_FIELD_NUMBER = 6;
  private io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.Vector getPos() {
    return pos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : pos_;
  }
  /**
   * <code>.Vector pos = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getPosOrBuilder() {
    return getPos();
  }

  public static final int ROT_FIELD_NUMBER = 7;
  private io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.Vector getRot() {
    return rot_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : rot_;
  }
  /**
   * <code>.Vector rot = 7;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getRotOrBuilder() {
    return getRot();
  }

  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 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 GADGET_FIELD_NUMBER = 13;
  /**
   * <code>.CreateGadgetInfo gadget = 13;</code>
   * @return Whether the gadget field is set.
   */
  @java.lang.Override
  public boolean hasGadget() {
    return oHAAOJACMOBCase_ == 13;
  }
  /**
   * <code>.CreateGadgetInfo gadget = 13;</code>
   * @return The gadget.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.CreateGadgetInfo getGadget() {
    if (oHAAOJACMOBCase_ == 13) {
       return (io.grasscutter.net.proto.define.CreateGadgetInfo) oHAAOJACMOB_;
    }
    return io.grasscutter.net.proto.define.CreateGadgetInfo.getDefaultInstance();
  }
  /**
   * <code>.CreateGadgetInfo gadget = 13;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.CreateGadgetInfoOrBuilder getGadgetOrBuilder() {
    if (oHAAOJACMOBCase_ == 13) {
       return (io.grasscutter.net.proto.define.CreateGadgetInfo) oHAAOJACMOB_;
    }
    return io.grasscutter.net.proto.define.CreateGadgetInfo.getDefaultInstance();
  }

  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 jKPMLNNECOKCase_ == 1;
  }
  /**
   * <code>uint32 monster_id = 1;</code>
   * @return The monsterId.
   */
  @java.lang.Override
  public int getMonsterId() {
    if (jKPMLNNECOKCase_ == 1) {
      return (java.lang.Integer) jKPMLNNECOK_;
    }
    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 jKPMLNNECOKCase_ == 3;
  }
  /**
   * <code>uint32 gadget_id = 3;</code>
   * @return The gadgetId.
   */
  @java.lang.Override
  public int getGadgetId() {
    if (jKPMLNNECOKCase_ == 3) {
      return (java.lang.Integer) jKPMLNNECOK_;
    }
    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 jKPMLNNECOKCase_ == 4;
  }
  /**
   * <code>uint32 item_id = 4;</code>
   * @return The itemId.
   */
  @java.lang.Override
  public int getItemId() {
    if (jKPMLNNECOKCase_ == 4) {
      return (java.lang.Integer) jKPMLNNECOK_;
    }
    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 jKPMLNNECOKCase_ == 2;
  }
  /**
   * <code>uint32 npc_id = 2;</code>
   * @return The npcId.
   */
  @java.lang.Override
  public int getNpcId() {
    if (jKPMLNNECOKCase_ == 2) {
      return (java.lang.Integer) jKPMLNNECOK_;
    }
    return 0;
  }

  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 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_;
  }

  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 (jKPMLNNECOKCase_ == 1) {
      output.writeUInt32(
          1, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 2) {
      output.writeUInt32(
          2, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 3) {
      output.writeUInt32(
          3, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 4) {
      output.writeUInt32(
          4, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    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 (oHAAOJACMOBCase_ == 13) {
      output.writeMessage(13, (io.grasscutter.net.proto.define.CreateGadgetInfo) oHAAOJACMOB_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (jKPMLNNECOKCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            1, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            2, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            3, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            4, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    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 (oHAAOJACMOBCase_ == 13) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(13, (io.grasscutter.net.proto.define.CreateGadgetInfo) oHAAOJACMOB_);
    }
    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 io.grasscutter.net.proto.define.CreateEntityInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.CreateEntityInfo other = (io.grasscutter.net.proto.define.CreateEntityInfo) obj;

    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 (getLevel()
        != other.getLevel()) return false;
    if (getRoomId()
        != other.getRoomId()) return false;
    if (getSceneId()
        != other.getSceneId()) return false;
    if (getClientUniqueId()
        != other.getClientUniqueId()) return false;
    if (!getOHAAOJACMOBCase().equals(other.getOHAAOJACMOBCase())) return false;
    switch (oHAAOJACMOBCase_) {
      case 13:
        if (!getGadget()
            .equals(other.getGadget())) return false;
        break;
      case 0:
      default:
    }
    if (!getJKPMLNNECOKCase().equals(other.getJKPMLNNECOKCase())) return false;
    switch (jKPMLNNECOKCase_) {
      case 1:
        if (getMonsterId()
            != other.getMonsterId()) return false;
        break;
      case 3:
        if (getGadgetId()
            != other.getGadgetId()) return false;
        break;
      case 4:
        if (getItemId()
            != other.getItemId()) return false;
        break;
      case 2:
        if (getNpcId()
            != other.getNpcId()) 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();
    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) + LEVEL_FIELD_NUMBER;
    hash = (53 * hash) + getLevel();
    hash = (37 * hash) + ROOM_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRoomId();
    hash = (37 * hash) + SCENE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getSceneId();
    hash = (37 * hash) + CLIENT_UNIQUE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getClientUniqueId();
    switch (oHAAOJACMOBCase_) {
      case 13:
        hash = (37 * hash) + GADGET_FIELD_NUMBER;
        hash = (53 * hash) + getGadget().hashCode();
        break;
      case 0:
      default:
    }
    switch (jKPMLNNECOKCase_) {
      case 1:
        hash = (37 * hash) + MONSTER_ID_FIELD_NUMBER;
        hash = (53 * hash) + getMonsterId();
        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 2:
        hash = (37 * hash) + NPC_ID_FIELD_NUMBER;
        hash = (53 * hash) + getNpcId();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using io.grasscutter.net.proto.define.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();
      if (posBuilder_ == null) {
        pos_ = null;
      } else {
        pos_ = null;
        posBuilder_ = null;
      }
      if (rotBuilder_ == null) {
        rot_ = null;
      } else {
        rot_ = null;
        rotBuilder_ = null;
      }
      level_ = 0;

      roomId_ = 0;

      sceneId_ = 0;

      clientUniqueId_ = 0;

      oHAAOJACMOBCase_ = 0;
      oHAAOJACMOB_ = null;
      jKPMLNNECOKCase_ = 0;
      jKPMLNNECOK_ = null;
      return this;
    }

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

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

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

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

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

    public Builder clearOHAAOJACMOB() {
      oHAAOJACMOBCase_ = 0;
      oHAAOJACMOB_ = null;
      onChanged();
      return this;
    }

    private int jKPMLNNECOKCase_ = 0;
    private java.lang.Object jKPMLNNECOK_;
    public JKPMLNNECOKCase
        getJKPMLNNECOKCase() {
      return JKPMLNNECOKCase.forNumber(
          jKPMLNNECOKCase_);
    }

    public Builder clearJKPMLNNECOK() {
      jKPMLNNECOKCase_ = 0;
      jKPMLNNECOK_ = null;
      onChanged();
      return this;
    }


    private io.grasscutter.net.proto.define.Vector pos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.Vector getPos() {
      if (posBuilder_ == null) {
        return pos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : pos_;
      } else {
        return posBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector pos = 6;</code>
     */
    public Builder setPos(io.grasscutter.net.proto.define.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(
        io.grasscutter.net.proto.define.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(io.grasscutter.net.proto.define.Vector value) {
      if (posBuilder_ == null) {
        if (pos_ != null) {
          pos_ =
            io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.Vector.Builder getPosBuilder() {
      
      onChanged();
      return getPosFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector pos = 6;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getPosOrBuilder() {
      if (posBuilder_ != null) {
        return posBuilder_.getMessageOrBuilder();
      } else {
        return pos_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : pos_;
      }
    }
    /**
     * <code>.Vector pos = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> 
        getPosFieldBuilder() {
      if (posBuilder_ == null) {
        posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getPos(),
                getParentForChildren(),
                isClean());
        pos_ = null;
      }
      return posBuilder_;
    }

    private io.grasscutter.net.proto.define.Vector rot_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.Vector getRot() {
      if (rotBuilder_ == null) {
        return rot_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : rot_;
      } else {
        return rotBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector rot = 7;</code>
     */
    public Builder setRot(io.grasscutter.net.proto.define.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(
        io.grasscutter.net.proto.define.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(io.grasscutter.net.proto.define.Vector value) {
      if (rotBuilder_ == null) {
        if (rot_ != null) {
          rot_ =
            io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.Vector.Builder getRotBuilder() {
      
      onChanged();
      return getRotFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector rot = 7;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getRotOrBuilder() {
      if (rotBuilder_ != null) {
        return rotBuilder_.getMessageOrBuilder();
      } else {
        return rot_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : rot_;
      }
    }
    /**
     * <code>.Vector rot = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> 
        getRotFieldBuilder() {
      if (rotBuilder_ == null) {
        rotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getRot(),
                getParentForChildren(),
                isClean());
        rot_ = null;
      }
      return rotBuilder_;
    }

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

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

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

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

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

    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 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;
    }
    @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 io.grasscutter.net.proto.define.CreateEntityInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.define.CreateEntityInfo();
  }

  public static io.grasscutter.net.proto.define.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 io.grasscutter.net.proto.define.CreateEntityInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

