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

package io.grasscutter.net.proto.scene;

/**
 * <pre>
 * CmdId: 4233
 * </pre>
 *
 * Protobuf type {@code WorldPlayerDieNotify}
 */
public final class WorldPlayerDieNotify extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:WorldPlayerDieNotify)
    WorldPlayerDieNotifyOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WorldPlayerDieNotify.newBuilder() to construct.
  private WorldPlayerDieNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private WorldPlayerDieNotify() {
    dieType_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WorldPlayerDieNotify(
      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: {

            hIACPELKDMP_ = input.readUInt32();
            break;
          }
          case 16: {
            jKPMLNNECOKCase_ = 2;
            jKPMLNNECOK_ = input.readUInt32();
            break;
          }
          case 32: {
            jKPMLNNECOKCase_ = 4;
            jKPMLNNECOK_ = input.readUInt32();
            break;
          }
          case 40: {
            int rawValue = input.readEnum();

            dieType_ = rawValue;
            break;
          }
          case 64: {

            aMOHEAPPLCA_ = input.readUInt32();
            break;
          }
          case 90: {
            io.grasscutter.net.proto.define.AbilityString.Builder subBuilder = null;
            if (cAINBBIBGEB_ != null) {
              subBuilder = cAINBBIBGEB_.toBuilder();
            }
            cAINBBIBGEB_ = input.readMessage(io.grasscutter.net.proto.define.AbilityString.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(cAINBBIBGEB_);
              cAINBBIBGEB_ = subBuilder.buildPartial();
            }

            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.scene.Scene.internal_static_WorldPlayerDieNotify_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.scene.Scene.internal_static_WorldPlayerDieNotify_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.scene.WorldPlayerDieNotify.class, io.grasscutter.net.proto.scene.WorldPlayerDieNotify.Builder.class);
  }

  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(4),
    GADGET_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 4: return MONSTER_ID;
        case 2: return GADGET_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 CAINBBIBGEB_FIELD_NUMBER = 11;
  private io.grasscutter.net.proto.define.AbilityString cAINBBIBGEB_;
  /**
   * <code>.AbilityString CAINBBIBGEB = 11;</code>
   * @return Whether the cAINBBIBGEB field is set.
   */
  @java.lang.Override
  public boolean hasCAINBBIBGEB() {
    return cAINBBIBGEB_ != null;
  }
  /**
   * <code>.AbilityString CAINBBIBGEB = 11;</code>
   * @return The cAINBBIBGEB.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.AbilityString getCAINBBIBGEB() {
    return cAINBBIBGEB_ == null ? io.grasscutter.net.proto.define.AbilityString.getDefaultInstance() : cAINBBIBGEB_;
  }
  /**
   * <code>.AbilityString CAINBBIBGEB = 11;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.AbilityStringOrBuilder getCAINBBIBGEBOrBuilder() {
    return getCAINBBIBGEB();
  }

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

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

  public static final int AMOHEAPPLCA_FIELD_NUMBER = 8;
  private int aMOHEAPPLCA_;
  /**
   * <code>uint32 AMOHEAPPLCA = 8;</code>
   * @return The aMOHEAPPLCA.
   */
  @java.lang.Override
  public int getAMOHEAPPLCA() {
    return aMOHEAPPLCA_;
  }

  public static final int DIE_TYPE_FIELD_NUMBER = 5;
  private int dieType_;
  /**
   * <code>.PlayerDieType die_type = 5;</code>
   * @return The enum numeric value on the wire for dieType.
   */
  @java.lang.Override public int getDieTypeValue() {
    return dieType_;
  }
  /**
   * <code>.PlayerDieType die_type = 5;</code>
   * @return The dieType.
   */
  @java.lang.Override public io.grasscutter.net.proto.define.PlayerDieType getDieType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.define.PlayerDieType result = io.grasscutter.net.proto.define.PlayerDieType.valueOf(dieType_);
    return result == null ? io.grasscutter.net.proto.define.PlayerDieType.UNRECOGNIZED : result;
  }

  public static final int HIACPELKDMP_FIELD_NUMBER = 1;
  private int hIACPELKDMP_;
  /**
   * <code>uint32 HIACPELKDMP = 1;</code>
   * @return The hIACPELKDMP.
   */
  @java.lang.Override
  public int getHIACPELKDMP() {
    return hIACPELKDMP_;
  }

  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 (hIACPELKDMP_ != 0) {
      output.writeUInt32(1, hIACPELKDMP_);
    }
    if (jKPMLNNECOKCase_ == 2) {
      output.writeUInt32(
          2, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 4) {
      output.writeUInt32(
          4, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (dieType_ != io.grasscutter.net.proto.define.PlayerDieType.PlayerDieType_PLAYER_DIE_NONE.getNumber()) {
      output.writeEnum(5, dieType_);
    }
    if (aMOHEAPPLCA_ != 0) {
      output.writeUInt32(8, aMOHEAPPLCA_);
    }
    if (cAINBBIBGEB_ != null) {
      output.writeMessage(11, getCAINBBIBGEB());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (hIACPELKDMP_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, hIACPELKDMP_);
    }
    if (jKPMLNNECOKCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            2, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (jKPMLNNECOKCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            4, (int)((java.lang.Integer) jKPMLNNECOK_));
    }
    if (dieType_ != io.grasscutter.net.proto.define.PlayerDieType.PlayerDieType_PLAYER_DIE_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(5, dieType_);
    }
    if (aMOHEAPPLCA_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, aMOHEAPPLCA_);
    }
    if (cAINBBIBGEB_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, getCAINBBIBGEB());
    }
    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.scene.WorldPlayerDieNotify)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.scene.WorldPlayerDieNotify other = (io.grasscutter.net.proto.scene.WorldPlayerDieNotify) obj;

    if (hasCAINBBIBGEB() != other.hasCAINBBIBGEB()) return false;
    if (hasCAINBBIBGEB()) {
      if (!getCAINBBIBGEB()
          .equals(other.getCAINBBIBGEB())) return false;
    }
    if (getAMOHEAPPLCA()
        != other.getAMOHEAPPLCA()) return false;
    if (dieType_ != other.dieType_) return false;
    if (getHIACPELKDMP()
        != other.getHIACPELKDMP()) return false;
    if (!getJKPMLNNECOKCase().equals(other.getJKPMLNNECOKCase())) return false;
    switch (jKPMLNNECOKCase_) {
      case 4:
        if (getMonsterId()
            != other.getMonsterId()) return false;
        break;
      case 2:
        if (getGadgetId()
            != other.getGadgetId()) 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 (hasCAINBBIBGEB()) {
      hash = (37 * hash) + CAINBBIBGEB_FIELD_NUMBER;
      hash = (53 * hash) + getCAINBBIBGEB().hashCode();
    }
    hash = (37 * hash) + AMOHEAPPLCA_FIELD_NUMBER;
    hash = (53 * hash) + getAMOHEAPPLCA();
    hash = (37 * hash) + DIE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + dieType_;
    hash = (37 * hash) + HIACPELKDMP_FIELD_NUMBER;
    hash = (53 * hash) + getHIACPELKDMP();
    switch (jKPMLNNECOKCase_) {
      case 4:
        hash = (37 * hash) + MONSTER_ID_FIELD_NUMBER;
        hash = (53 * hash) + getMonsterId();
        break;
      case 2:
        hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
        hash = (53 * hash) + getGadgetId();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * CmdId: 4233
   * </pre>
   *
   * Protobuf type {@code WorldPlayerDieNotify}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:WorldPlayerDieNotify)
      io.grasscutter.net.proto.scene.WorldPlayerDieNotifyOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_WorldPlayerDieNotify_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_WorldPlayerDieNotify_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.scene.WorldPlayerDieNotify.class, io.grasscutter.net.proto.scene.WorldPlayerDieNotify.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.scene.WorldPlayerDieNotify.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 (cAINBBIBGEBBuilder_ == null) {
        cAINBBIBGEB_ = null;
      } else {
        cAINBBIBGEB_ = null;
        cAINBBIBGEBBuilder_ = null;
      }
      aMOHEAPPLCA_ = 0;

      dieType_ = 0;

      hIACPELKDMP_ = 0;

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

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.scene.Scene.internal_static_WorldPlayerDieNotify_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.scene.WorldPlayerDieNotify buildPartial() {
      io.grasscutter.net.proto.scene.WorldPlayerDieNotify result = new io.grasscutter.net.proto.scene.WorldPlayerDieNotify(this);
      if (cAINBBIBGEBBuilder_ == null) {
        result.cAINBBIBGEB_ = cAINBBIBGEB_;
      } else {
        result.cAINBBIBGEB_ = cAINBBIBGEBBuilder_.build();
      }
      if (jKPMLNNECOKCase_ == 4) {
        result.jKPMLNNECOK_ = jKPMLNNECOK_;
      }
      if (jKPMLNNECOKCase_ == 2) {
        result.jKPMLNNECOK_ = jKPMLNNECOK_;
      }
      result.aMOHEAPPLCA_ = aMOHEAPPLCA_;
      result.dieType_ = dieType_;
      result.hIACPELKDMP_ = hIACPELKDMP_;
      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.scene.WorldPlayerDieNotify) {
        return mergeFrom((io.grasscutter.net.proto.scene.WorldPlayerDieNotify)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.scene.WorldPlayerDieNotify other) {
      if (other == io.grasscutter.net.proto.scene.WorldPlayerDieNotify.getDefaultInstance()) return this;
      if (other.hasCAINBBIBGEB()) {
        mergeCAINBBIBGEB(other.getCAINBBIBGEB());
      }
      if (other.getAMOHEAPPLCA() != 0) {
        setAMOHEAPPLCA(other.getAMOHEAPPLCA());
      }
      if (other.dieType_ != 0) {
        setDieTypeValue(other.getDieTypeValue());
      }
      if (other.getHIACPELKDMP() != 0) {
        setHIACPELKDMP(other.getHIACPELKDMP());
      }
      switch (other.getJKPMLNNECOKCase()) {
        case MONSTER_ID: {
          setMonsterId(other.getMonsterId());
          break;
        }
        case GADGET_ID: {
          setGadgetId(other.getGadgetId());
          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.scene.WorldPlayerDieNotify parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.scene.WorldPlayerDieNotify) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      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.AbilityString cAINBBIBGEB_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.AbilityString, io.grasscutter.net.proto.define.AbilityString.Builder, io.grasscutter.net.proto.define.AbilityStringOrBuilder> cAINBBIBGEBBuilder_;
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     * @return Whether the cAINBBIBGEB field is set.
     */
    public boolean hasCAINBBIBGEB() {
      return cAINBBIBGEBBuilder_ != null || cAINBBIBGEB_ != null;
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     * @return The cAINBBIBGEB.
     */
    public io.grasscutter.net.proto.define.AbilityString getCAINBBIBGEB() {
      if (cAINBBIBGEBBuilder_ == null) {
        return cAINBBIBGEB_ == null ? io.grasscutter.net.proto.define.AbilityString.getDefaultInstance() : cAINBBIBGEB_;
      } else {
        return cAINBBIBGEBBuilder_.getMessage();
      }
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    public Builder setCAINBBIBGEB(io.grasscutter.net.proto.define.AbilityString value) {
      if (cAINBBIBGEBBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cAINBBIBGEB_ = value;
        onChanged();
      } else {
        cAINBBIBGEBBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    public Builder setCAINBBIBGEB(
        io.grasscutter.net.proto.define.AbilityString.Builder builderForValue) {
      if (cAINBBIBGEBBuilder_ == null) {
        cAINBBIBGEB_ = builderForValue.build();
        onChanged();
      } else {
        cAINBBIBGEBBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    public Builder mergeCAINBBIBGEB(io.grasscutter.net.proto.define.AbilityString value) {
      if (cAINBBIBGEBBuilder_ == null) {
        if (cAINBBIBGEB_ != null) {
          cAINBBIBGEB_ =
            io.grasscutter.net.proto.define.AbilityString.newBuilder(cAINBBIBGEB_).mergeFrom(value).buildPartial();
        } else {
          cAINBBIBGEB_ = value;
        }
        onChanged();
      } else {
        cAINBBIBGEBBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    public Builder clearCAINBBIBGEB() {
      if (cAINBBIBGEBBuilder_ == null) {
        cAINBBIBGEB_ = null;
        onChanged();
      } else {
        cAINBBIBGEB_ = null;
        cAINBBIBGEBBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    public io.grasscutter.net.proto.define.AbilityString.Builder getCAINBBIBGEBBuilder() {
      
      onChanged();
      return getCAINBBIBGEBFieldBuilder().getBuilder();
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    public io.grasscutter.net.proto.define.AbilityStringOrBuilder getCAINBBIBGEBOrBuilder() {
      if (cAINBBIBGEBBuilder_ != null) {
        return cAINBBIBGEBBuilder_.getMessageOrBuilder();
      } else {
        return cAINBBIBGEB_ == null ?
            io.grasscutter.net.proto.define.AbilityString.getDefaultInstance() : cAINBBIBGEB_;
      }
    }
    /**
     * <code>.AbilityString CAINBBIBGEB = 11;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.AbilityString, io.grasscutter.net.proto.define.AbilityString.Builder, io.grasscutter.net.proto.define.AbilityStringOrBuilder> 
        getCAINBBIBGEBFieldBuilder() {
      if (cAINBBIBGEBBuilder_ == null) {
        cAINBBIBGEBBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.AbilityString, io.grasscutter.net.proto.define.AbilityString.Builder, io.grasscutter.net.proto.define.AbilityStringOrBuilder>(
                getCAINBBIBGEB(),
                getParentForChildren(),
                isClean());
        cAINBBIBGEB_ = null;
      }
      return cAINBBIBGEBBuilder_;
    }

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

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

    private int aMOHEAPPLCA_ ;
    /**
     * <code>uint32 AMOHEAPPLCA = 8;</code>
     * @return The aMOHEAPPLCA.
     */
    @java.lang.Override
    public int getAMOHEAPPLCA() {
      return aMOHEAPPLCA_;
    }
    /**
     * <code>uint32 AMOHEAPPLCA = 8;</code>
     * @param value The aMOHEAPPLCA to set.
     * @return This builder for chaining.
     */
    public Builder setAMOHEAPPLCA(int value) {
      
      aMOHEAPPLCA_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 AMOHEAPPLCA = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearAMOHEAPPLCA() {
      
      aMOHEAPPLCA_ = 0;
      onChanged();
      return this;
    }

    private int dieType_ = 0;
    /**
     * <code>.PlayerDieType die_type = 5;</code>
     * @return The enum numeric value on the wire for dieType.
     */
    @java.lang.Override public int getDieTypeValue() {
      return dieType_;
    }
    /**
     * <code>.PlayerDieType die_type = 5;</code>
     * @param value The enum numeric value on the wire for dieType to set.
     * @return This builder for chaining.
     */
    public Builder setDieTypeValue(int value) {
      
      dieType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.PlayerDieType die_type = 5;</code>
     * @return The dieType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.PlayerDieType getDieType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.define.PlayerDieType result = io.grasscutter.net.proto.define.PlayerDieType.valueOf(dieType_);
      return result == null ? io.grasscutter.net.proto.define.PlayerDieType.UNRECOGNIZED : result;
    }
    /**
     * <code>.PlayerDieType die_type = 5;</code>
     * @param value The dieType to set.
     * @return This builder for chaining.
     */
    public Builder setDieType(io.grasscutter.net.proto.define.PlayerDieType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      dieType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.PlayerDieType die_type = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDieType() {
      
      dieType_ = 0;
      onChanged();
      return this;
    }

    private int hIACPELKDMP_ ;
    /**
     * <code>uint32 HIACPELKDMP = 1;</code>
     * @return The hIACPELKDMP.
     */
    @java.lang.Override
    public int getHIACPELKDMP() {
      return hIACPELKDMP_;
    }
    /**
     * <code>uint32 HIACPELKDMP = 1;</code>
     * @param value The hIACPELKDMP to set.
     * @return This builder for chaining.
     */
    public Builder setHIACPELKDMP(int value) {
      
      hIACPELKDMP_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 HIACPELKDMP = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearHIACPELKDMP() {
      
      hIACPELKDMP_ = 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:WorldPlayerDieNotify)
  }

  // @@protoc_insertion_point(class_scope:WorldPlayerDieNotify)
  private static final io.grasscutter.net.proto.scene.WorldPlayerDieNotify DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.scene.WorldPlayerDieNotify();
  }

  public static io.grasscutter.net.proto.scene.WorldPlayerDieNotify getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public io.grasscutter.net.proto.scene.WorldPlayerDieNotify getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

