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

package io.grasscutter.net.proto.ability;

/**
 * Protobuf type {@code AbilityInvokeEntry}
 */
public final class AbilityInvokeEntry extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:AbilityInvokeEntry)
    AbilityInvokeEntryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AbilityInvokeEntry.newBuilder() to construct.
  private AbilityInvokeEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private AbilityInvokeEntry() {
    abilityData_ = com.google.protobuf.ByteString.EMPTY;
    forwardType_ = 0;
    argumentType_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AbilityInvokeEntry(
      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 34: {
            io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.Builder subBuilder = null;
            if (head_ != null) {
              subBuilder = head_.toBuilder();
            }
            head_ = input.readMessage(io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(head_);
              head_ = subBuilder.buildPartial();
            }

            break;
          }
          case 48: {

            isIgnoreAuth_ = input.readBool();
            break;
          }
          case 56: {
            int rawValue = input.readEnum();

            argumentType_ = rawValue;
            break;
          }
          case 64: {

            hNOGKEHFLHE_ = input.readUInt32();
            break;
          }
          case 72: {
            int rawValue = input.readEnum();

            forwardType_ = rawValue;
            break;
          }
          case 81: {

            totalTickTime_ = input.readDouble();
            break;
          }
          case 88: {

            entityId_ = input.readUInt32();
            break;
          }
          case 104: {

            jPHBOKDMDAH_ = input.readUInt32();
            break;
          }
          case 122: {

            abilityData_ = input.readBytes();
            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.ability.Ability.internal_static_AbilityInvokeEntry_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.ability.Ability.internal_static_AbilityInvokeEntry_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.ability.AbilityInvokeEntry.class, io.grasscutter.net.proto.ability.AbilityInvokeEntry.Builder.class);
  }

  public static final int ABILITY_DATA_FIELD_NUMBER = 15;
  private com.google.protobuf.ByteString abilityData_;
  /**
   * <code>bytes ability_data = 15;</code>
   * @return The abilityData.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getAbilityData() {
    return abilityData_;
  }

  public static final int HEAD_FIELD_NUMBER = 4;
  private io.grasscutter.net.proto.ability.AbilityInvokeEntryHead head_;
  /**
   * <code>.AbilityInvokeEntryHead head = 4;</code>
   * @return Whether the head field is set.
   */
  @java.lang.Override
  public boolean hasHead() {
    return head_ != null;
  }
  /**
   * <code>.AbilityInvokeEntryHead head = 4;</code>
   * @return The head.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.ability.AbilityInvokeEntryHead getHead() {
    return head_ == null ? io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.getDefaultInstance() : head_;
  }
  /**
   * <code>.AbilityInvokeEntryHead head = 4;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.ability.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder() {
    return getHead();
  }

  public static final int IS_IGNORE_AUTH_FIELD_NUMBER = 6;
  private boolean isIgnoreAuth_;
  /**
   * <code>bool is_ignore_auth = 6;</code>
   * @return The isIgnoreAuth.
   */
  @java.lang.Override
  public boolean getIsIgnoreAuth() {
    return isIgnoreAuth_;
  }

  public static final int ENTITY_ID_FIELD_NUMBER = 11;
  private int entityId_;
  /**
   * <code>uint32 entity_id = 11;</code>
   * @return The entityId.
   */
  @java.lang.Override
  public int getEntityId() {
    return entityId_;
  }

  public static final int FORWARD_TYPE_FIELD_NUMBER = 9;
  private int forwardType_;
  /**
   * <code>.ForwardType forward_type = 9;</code>
   * @return The enum numeric value on the wire for forwardType.
   */
  @java.lang.Override public int getForwardTypeValue() {
    return forwardType_;
  }
  /**
   * <code>.ForwardType forward_type = 9;</code>
   * @return The forwardType.
   */
  @java.lang.Override public io.grasscutter.net.proto.fight.ForwardType getForwardType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.fight.ForwardType result = io.grasscutter.net.proto.fight.ForwardType.valueOf(forwardType_);
    return result == null ? io.grasscutter.net.proto.fight.ForwardType.UNRECOGNIZED : result;
  }

  public static final int JPHBOKDMDAH_FIELD_NUMBER = 13;
  private int jPHBOKDMDAH_;
  /**
   * <code>uint32 JPHBOKDMDAH = 13;</code>
   * @return The jPHBOKDMDAH.
   */
  @java.lang.Override
  public int getJPHBOKDMDAH() {
    return jPHBOKDMDAH_;
  }

  public static final int TOTAL_TICK_TIME_FIELD_NUMBER = 10;
  private double totalTickTime_;
  /**
   * <code>double total_tick_time = 10;</code>
   * @return The totalTickTime.
   */
  @java.lang.Override
  public double getTotalTickTime() {
    return totalTickTime_;
  }

  public static final int ARGUMENT_TYPE_FIELD_NUMBER = 7;
  private int argumentType_;
  /**
   * <code>.AbilityInvokeArgument argument_type = 7;</code>
   * @return The enum numeric value on the wire for argumentType.
   */
  @java.lang.Override public int getArgumentTypeValue() {
    return argumentType_;
  }
  /**
   * <code>.AbilityInvokeArgument argument_type = 7;</code>
   * @return The argumentType.
   */
  @java.lang.Override public io.grasscutter.net.proto.ability.AbilityInvokeArgument getArgumentType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.ability.AbilityInvokeArgument result = io.grasscutter.net.proto.ability.AbilityInvokeArgument.valueOf(argumentType_);
    return result == null ? io.grasscutter.net.proto.ability.AbilityInvokeArgument.UNRECOGNIZED : result;
  }

  public static final int HNOGKEHFLHE_FIELD_NUMBER = 8;
  private int hNOGKEHFLHE_;
  /**
   * <code>uint32 HNOGKEHFLHE = 8;</code>
   * @return The hNOGKEHFLHE.
   */
  @java.lang.Override
  public int getHNOGKEHFLHE() {
    return hNOGKEHFLHE_;
  }

  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 (head_ != null) {
      output.writeMessage(4, getHead());
    }
    if (isIgnoreAuth_ != false) {
      output.writeBool(6, isIgnoreAuth_);
    }
    if (argumentType_ != io.grasscutter.net.proto.ability.AbilityInvokeArgument.AbilityInvokeArgument_ABILITY_NONE.getNumber()) {
      output.writeEnum(7, argumentType_);
    }
    if (hNOGKEHFLHE_ != 0) {
      output.writeUInt32(8, hNOGKEHFLHE_);
    }
    if (forwardType_ != io.grasscutter.net.proto.fight.ForwardType.ForwardType_FORWARD_LOCAL.getNumber()) {
      output.writeEnum(9, forwardType_);
    }
    if (totalTickTime_ != 0D) {
      output.writeDouble(10, totalTickTime_);
    }
    if (entityId_ != 0) {
      output.writeUInt32(11, entityId_);
    }
    if (jPHBOKDMDAH_ != 0) {
      output.writeUInt32(13, jPHBOKDMDAH_);
    }
    if (!abilityData_.isEmpty()) {
      output.writeBytes(15, abilityData_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (head_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getHead());
    }
    if (isIgnoreAuth_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(6, isIgnoreAuth_);
    }
    if (argumentType_ != io.grasscutter.net.proto.ability.AbilityInvokeArgument.AbilityInvokeArgument_ABILITY_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(7, argumentType_);
    }
    if (hNOGKEHFLHE_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, hNOGKEHFLHE_);
    }
    if (forwardType_ != io.grasscutter.net.proto.fight.ForwardType.ForwardType_FORWARD_LOCAL.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(9, forwardType_);
    }
    if (totalTickTime_ != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(10, totalTickTime_);
    }
    if (entityId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(11, entityId_);
    }
    if (jPHBOKDMDAH_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(13, jPHBOKDMDAH_);
    }
    if (!abilityData_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(15, abilityData_);
    }
    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.ability.AbilityInvokeEntry)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.ability.AbilityInvokeEntry other = (io.grasscutter.net.proto.ability.AbilityInvokeEntry) obj;

    if (!getAbilityData()
        .equals(other.getAbilityData())) return false;
    if (hasHead() != other.hasHead()) return false;
    if (hasHead()) {
      if (!getHead()
          .equals(other.getHead())) return false;
    }
    if (getIsIgnoreAuth()
        != other.getIsIgnoreAuth()) return false;
    if (getEntityId()
        != other.getEntityId()) return false;
    if (forwardType_ != other.forwardType_) return false;
    if (getJPHBOKDMDAH()
        != other.getJPHBOKDMDAH()) return false;
    if (java.lang.Double.doubleToLongBits(getTotalTickTime())
        != java.lang.Double.doubleToLongBits(
            other.getTotalTickTime())) return false;
    if (argumentType_ != other.argumentType_) return false;
    if (getHNOGKEHFLHE()
        != other.getHNOGKEHFLHE()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ABILITY_DATA_FIELD_NUMBER;
    hash = (53 * hash) + getAbilityData().hashCode();
    if (hasHead()) {
      hash = (37 * hash) + HEAD_FIELD_NUMBER;
      hash = (53 * hash) + getHead().hashCode();
    }
    hash = (37 * hash) + IS_IGNORE_AUTH_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsIgnoreAuth());
    hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
    hash = (53 * hash) + getEntityId();
    hash = (37 * hash) + FORWARD_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + forwardType_;
    hash = (37 * hash) + JPHBOKDMDAH_FIELD_NUMBER;
    hash = (53 * hash) + getJPHBOKDMDAH();
    hash = (37 * hash) + TOTAL_TICK_TIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getTotalTickTime()));
    hash = (37 * hash) + ARGUMENT_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + argumentType_;
    hash = (37 * hash) + HNOGKEHFLHE_FIELD_NUMBER;
    hash = (53 * hash) + getHNOGKEHFLHE();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.ability.Ability.internal_static_AbilityInvokeEntry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.ability.AbilityInvokeEntry.class, io.grasscutter.net.proto.ability.AbilityInvokeEntry.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.ability.AbilityInvokeEntry.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();
      abilityData_ = com.google.protobuf.ByteString.EMPTY;

      if (headBuilder_ == null) {
        head_ = null;
      } else {
        head_ = null;
        headBuilder_ = null;
      }
      isIgnoreAuth_ = false;

      entityId_ = 0;

      forwardType_ = 0;

      jPHBOKDMDAH_ = 0;

      totalTickTime_ = 0D;

      argumentType_ = 0;

      hNOGKEHFLHE_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.ability.Ability.internal_static_AbilityInvokeEntry_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.ability.AbilityInvokeEntry buildPartial() {
      io.grasscutter.net.proto.ability.AbilityInvokeEntry result = new io.grasscutter.net.proto.ability.AbilityInvokeEntry(this);
      result.abilityData_ = abilityData_;
      if (headBuilder_ == null) {
        result.head_ = head_;
      } else {
        result.head_ = headBuilder_.build();
      }
      result.isIgnoreAuth_ = isIgnoreAuth_;
      result.entityId_ = entityId_;
      result.forwardType_ = forwardType_;
      result.jPHBOKDMDAH_ = jPHBOKDMDAH_;
      result.totalTickTime_ = totalTickTime_;
      result.argumentType_ = argumentType_;
      result.hNOGKEHFLHE_ = hNOGKEHFLHE_;
      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.ability.AbilityInvokeEntry) {
        return mergeFrom((io.grasscutter.net.proto.ability.AbilityInvokeEntry)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.ability.AbilityInvokeEntry other) {
      if (other == io.grasscutter.net.proto.ability.AbilityInvokeEntry.getDefaultInstance()) return this;
      if (other.getAbilityData() != com.google.protobuf.ByteString.EMPTY) {
        setAbilityData(other.getAbilityData());
      }
      if (other.hasHead()) {
        mergeHead(other.getHead());
      }
      if (other.getIsIgnoreAuth() != false) {
        setIsIgnoreAuth(other.getIsIgnoreAuth());
      }
      if (other.getEntityId() != 0) {
        setEntityId(other.getEntityId());
      }
      if (other.forwardType_ != 0) {
        setForwardTypeValue(other.getForwardTypeValue());
      }
      if (other.getJPHBOKDMDAH() != 0) {
        setJPHBOKDMDAH(other.getJPHBOKDMDAH());
      }
      if (other.getTotalTickTime() != 0D) {
        setTotalTickTime(other.getTotalTickTime());
      }
      if (other.argumentType_ != 0) {
        setArgumentTypeValue(other.getArgumentTypeValue());
      }
      if (other.getHNOGKEHFLHE() != 0) {
        setHNOGKEHFLHE(other.getHNOGKEHFLHE());
      }
      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.ability.AbilityInvokeEntry parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.ability.AbilityInvokeEntry) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private com.google.protobuf.ByteString abilityData_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * <code>bytes ability_data = 15;</code>
     * @return The abilityData.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAbilityData() {
      return abilityData_;
    }
    /**
     * <code>bytes ability_data = 15;</code>
     * @param value The abilityData to set.
     * @return This builder for chaining.
     */
    public Builder setAbilityData(com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      abilityData_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bytes ability_data = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearAbilityData() {
      
      abilityData_ = getDefaultInstance().getAbilityData();
      onChanged();
      return this;
    }

    private io.grasscutter.net.proto.ability.AbilityInvokeEntryHead head_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.ability.AbilityInvokeEntryHead, io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.Builder, io.grasscutter.net.proto.ability.AbilityInvokeEntryHeadOrBuilder> headBuilder_;
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     * @return Whether the head field is set.
     */
    public boolean hasHead() {
      return headBuilder_ != null || head_ != null;
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     * @return The head.
     */
    public io.grasscutter.net.proto.ability.AbilityInvokeEntryHead getHead() {
      if (headBuilder_ == null) {
        return head_ == null ? io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.getDefaultInstance() : head_;
      } else {
        return headBuilder_.getMessage();
      }
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    public Builder setHead(io.grasscutter.net.proto.ability.AbilityInvokeEntryHead value) {
      if (headBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        head_ = value;
        onChanged();
      } else {
        headBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    public Builder setHead(
        io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.Builder builderForValue) {
      if (headBuilder_ == null) {
        head_ = builderForValue.build();
        onChanged();
      } else {
        headBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    public Builder mergeHead(io.grasscutter.net.proto.ability.AbilityInvokeEntryHead value) {
      if (headBuilder_ == null) {
        if (head_ != null) {
          head_ =
            io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.newBuilder(head_).mergeFrom(value).buildPartial();
        } else {
          head_ = value;
        }
        onChanged();
      } else {
        headBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    public Builder clearHead() {
      if (headBuilder_ == null) {
        head_ = null;
        onChanged();
      } else {
        head_ = null;
        headBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    public io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.Builder getHeadBuilder() {
      
      onChanged();
      return getHeadFieldBuilder().getBuilder();
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    public io.grasscutter.net.proto.ability.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder() {
      if (headBuilder_ != null) {
        return headBuilder_.getMessageOrBuilder();
      } else {
        return head_ == null ?
            io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.getDefaultInstance() : head_;
      }
    }
    /**
     * <code>.AbilityInvokeEntryHead head = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.ability.AbilityInvokeEntryHead, io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.Builder, io.grasscutter.net.proto.ability.AbilityInvokeEntryHeadOrBuilder> 
        getHeadFieldBuilder() {
      if (headBuilder_ == null) {
        headBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.ability.AbilityInvokeEntryHead, io.grasscutter.net.proto.ability.AbilityInvokeEntryHead.Builder, io.grasscutter.net.proto.ability.AbilityInvokeEntryHeadOrBuilder>(
                getHead(),
                getParentForChildren(),
                isClean());
        head_ = null;
      }
      return headBuilder_;
    }

    private boolean isIgnoreAuth_ ;
    /**
     * <code>bool is_ignore_auth = 6;</code>
     * @return The isIgnoreAuth.
     */
    @java.lang.Override
    public boolean getIsIgnoreAuth() {
      return isIgnoreAuth_;
    }
    /**
     * <code>bool is_ignore_auth = 6;</code>
     * @param value The isIgnoreAuth to set.
     * @return This builder for chaining.
     */
    public Builder setIsIgnoreAuth(boolean value) {
      
      isIgnoreAuth_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_ignore_auth = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsIgnoreAuth() {
      
      isIgnoreAuth_ = false;
      onChanged();
      return this;
    }

    private int entityId_ ;
    /**
     * <code>uint32 entity_id = 11;</code>
     * @return The entityId.
     */
    @java.lang.Override
    public int getEntityId() {
      return entityId_;
    }
    /**
     * <code>uint32 entity_id = 11;</code>
     * @param value The entityId to set.
     * @return This builder for chaining.
     */
    public Builder setEntityId(int value) {
      
      entityId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 entity_id = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearEntityId() {
      
      entityId_ = 0;
      onChanged();
      return this;
    }

    private int forwardType_ = 0;
    /**
     * <code>.ForwardType forward_type = 9;</code>
     * @return The enum numeric value on the wire for forwardType.
     */
    @java.lang.Override public int getForwardTypeValue() {
      return forwardType_;
    }
    /**
     * <code>.ForwardType forward_type = 9;</code>
     * @param value The enum numeric value on the wire for forwardType to set.
     * @return This builder for chaining.
     */
    public Builder setForwardTypeValue(int value) {
      
      forwardType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.ForwardType forward_type = 9;</code>
     * @return The forwardType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.fight.ForwardType getForwardType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.fight.ForwardType result = io.grasscutter.net.proto.fight.ForwardType.valueOf(forwardType_);
      return result == null ? io.grasscutter.net.proto.fight.ForwardType.UNRECOGNIZED : result;
    }
    /**
     * <code>.ForwardType forward_type = 9;</code>
     * @param value The forwardType to set.
     * @return This builder for chaining.
     */
    public Builder setForwardType(io.grasscutter.net.proto.fight.ForwardType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      forwardType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.ForwardType forward_type = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearForwardType() {
      
      forwardType_ = 0;
      onChanged();
      return this;
    }

    private int jPHBOKDMDAH_ ;
    /**
     * <code>uint32 JPHBOKDMDAH = 13;</code>
     * @return The jPHBOKDMDAH.
     */
    @java.lang.Override
    public int getJPHBOKDMDAH() {
      return jPHBOKDMDAH_;
    }
    /**
     * <code>uint32 JPHBOKDMDAH = 13;</code>
     * @param value The jPHBOKDMDAH to set.
     * @return This builder for chaining.
     */
    public Builder setJPHBOKDMDAH(int value) {
      
      jPHBOKDMDAH_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 JPHBOKDMDAH = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearJPHBOKDMDAH() {
      
      jPHBOKDMDAH_ = 0;
      onChanged();
      return this;
    }

    private double totalTickTime_ ;
    /**
     * <code>double total_tick_time = 10;</code>
     * @return The totalTickTime.
     */
    @java.lang.Override
    public double getTotalTickTime() {
      return totalTickTime_;
    }
    /**
     * <code>double total_tick_time = 10;</code>
     * @param value The totalTickTime to set.
     * @return This builder for chaining.
     */
    public Builder setTotalTickTime(double value) {
      
      totalTickTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>double total_tick_time = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotalTickTime() {
      
      totalTickTime_ = 0D;
      onChanged();
      return this;
    }

    private int argumentType_ = 0;
    /**
     * <code>.AbilityInvokeArgument argument_type = 7;</code>
     * @return The enum numeric value on the wire for argumentType.
     */
    @java.lang.Override public int getArgumentTypeValue() {
      return argumentType_;
    }
    /**
     * <code>.AbilityInvokeArgument argument_type = 7;</code>
     * @param value The enum numeric value on the wire for argumentType to set.
     * @return This builder for chaining.
     */
    public Builder setArgumentTypeValue(int value) {
      
      argumentType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.AbilityInvokeArgument argument_type = 7;</code>
     * @return The argumentType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.ability.AbilityInvokeArgument getArgumentType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.ability.AbilityInvokeArgument result = io.grasscutter.net.proto.ability.AbilityInvokeArgument.valueOf(argumentType_);
      return result == null ? io.grasscutter.net.proto.ability.AbilityInvokeArgument.UNRECOGNIZED : result;
    }
    /**
     * <code>.AbilityInvokeArgument argument_type = 7;</code>
     * @param value The argumentType to set.
     * @return This builder for chaining.
     */
    public Builder setArgumentType(io.grasscutter.net.proto.ability.AbilityInvokeArgument value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      argumentType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.AbilityInvokeArgument argument_type = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearArgumentType() {
      
      argumentType_ = 0;
      onChanged();
      return this;
    }

    private int hNOGKEHFLHE_ ;
    /**
     * <code>uint32 HNOGKEHFLHE = 8;</code>
     * @return The hNOGKEHFLHE.
     */
    @java.lang.Override
    public int getHNOGKEHFLHE() {
      return hNOGKEHFLHE_;
    }
    /**
     * <code>uint32 HNOGKEHFLHE = 8;</code>
     * @param value The hNOGKEHFLHE to set.
     * @return This builder for chaining.
     */
    public Builder setHNOGKEHFLHE(int value) {
      
      hNOGKEHFLHE_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 HNOGKEHFLHE = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearHNOGKEHFLHE() {
      
      hNOGKEHFLHE_ = 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:AbilityInvokeEntry)
  }

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

  public static io.grasscutter.net.proto.ability.AbilityInvokeEntry getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

