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

package emu.grasscutter.net.proto;

public final class AbilityInvokeEntryOuterClass {
  private AbilityInvokeEntryOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface AbilityInvokeEntryOrBuilder extends
      // @@protoc_insertion_point(interface_extends:AbilityInvokeEntry)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.AbilityInvokeArgument argument_type = 1;</code>
     * @return The enum numeric value on the wire for argumentType.
     */
    int getArgumentTypeValue();
    /**
     * <code>.AbilityInvokeArgument argument_type = 1;</code>
     * @return The argumentType.
     */
    emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument getArgumentType();

    /**
     * <code>.AbilityInvokeEntryHead head = 2;</code>
     * @return Whether the head field is set.
     */
    boolean hasHead();
    /**
     * <code>.AbilityInvokeEntryHead head = 2;</code>
     * @return The head.
     */
    emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead getHead();
    /**
     * <code>.AbilityInvokeEntryHead head = 2;</code>
     */
    emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHeadOrBuilder getHeadOrBuilder();

    /**
     * <code>uint32 forward_peer = 4;</code>
     * @return The forwardPeer.
     */
    int getForwardPeer();

    /**
     * <code>uint32 event_id = 12;</code>
     * @return The eventId.
     */
    int getEventId();

    /**
     * <code>.ForwardType forward_type = 3;</code>
     * @return The enum numeric value on the wire for forwardType.
     */
    int getForwardTypeValue();
    /**
     * <code>.ForwardType forward_type = 3;</code>
     * @return The forwardType.
     */
    emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType();

    /**
     * <code>bytes ability_data = 15;</code>
     * @return The abilityData.
     */
    com.google.protobuf.ByteString getAbilityData();

    /**
     * <code>double total_tick_time = 14;</code>
     * @return The totalTickTime.
     */
    double getTotalTickTime();

    /**
     * <code>uint32 entity_id = 9;</code>
     * @return The entityId.
     */
    int getEntityId();
  }
  /**
   * Protobuf type {@code AbilityInvokeEntry}
   */
  public static 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() {
      argumentType_ = 0;
      forwardType_ = 0;
      abilityData_ = com.google.protobuf.ByteString.EMPTY;
    }

    @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 8: {
              int rawValue = input.readEnum();

              argumentType_ = rawValue;
              break;
            }
            case 18: {
              emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.Builder subBuilder = null;
              if (head_ != null) {
                subBuilder = head_.toBuilder();
              }
              head_ = input.readMessage(emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.AbilityInvokeEntryHead.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(head_);
                head_ = subBuilder.buildPartial();
              }

              break;
            }
            case 24: {
              int rawValue = input.readEnum();

              forwardType_ = rawValue;
              break;
            }
            case 32: {

              forwardPeer_ = input.readUInt32();
              break;
            }
            case 72: {

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

              eventId_ = input.readUInt32();
              break;
            }
            case 113: {

              totalTickTime_ = input.readDouble();
              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 emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_descriptor;
    }

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

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

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

    public static final int FORWARD_PEER_FIELD_NUMBER = 4;
    private int forwardPeer_;
    /**
     * <code>uint32 forward_peer = 4;</code>
     * @return The forwardPeer.
     */
    @java.lang.Override
    public int getForwardPeer() {
      return forwardPeer_;
    }

    public static final int EVENT_ID_FIELD_NUMBER = 12;
    private int eventId_;
    /**
     * <code>uint32 event_id = 12;</code>
     * @return The eventId.
     */
    @java.lang.Override
    public int getEventId() {
      return eventId_;
    }

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

    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 TOTAL_TICK_TIME_FIELD_NUMBER = 14;
    private double totalTickTime_;
    /**
     * <code>double total_tick_time = 14;</code>
     * @return The totalTickTime.
     */
    @java.lang.Override
    public double getTotalTickTime() {
      return totalTickTime_;
    }

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

    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 (argumentType_ != emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.ABILITY_INVOKE_ARGUMENT_NONE.getNumber()) {
        output.writeEnum(1, argumentType_);
      }
      if (head_ != null) {
        output.writeMessage(2, getHead());
      }
      if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.FORWARD_TYPE_LOCAL.getNumber()) {
        output.writeEnum(3, forwardType_);
      }
      if (forwardPeer_ != 0) {
        output.writeUInt32(4, forwardPeer_);
      }
      if (entityId_ != 0) {
        output.writeUInt32(9, entityId_);
      }
      if (eventId_ != 0) {
        output.writeUInt32(12, eventId_);
      }
      if (totalTickTime_ != 0D) {
        output.writeDouble(14, totalTickTime_);
      }
      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 (argumentType_ != emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.AbilityInvokeArgument.ABILITY_INVOKE_ARGUMENT_NONE.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, argumentType_);
      }
      if (head_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getHead());
      }
      if (forwardType_ != emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.FORWARD_TYPE_LOCAL.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, forwardType_);
      }
      if (forwardPeer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(4, forwardPeer_);
      }
      if (entityId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(9, entityId_);
      }
      if (eventId_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(12, eventId_);
      }
      if (totalTickTime_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(14, totalTickTime_);
      }
      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 emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry)) {
        return super.equals(obj);
      }
      emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry other = (emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry) obj;

      if (argumentType_ != other.argumentType_) return false;
      if (hasHead() != other.hasHead()) return false;
      if (hasHead()) {
        if (!getHead()
            .equals(other.getHead())) return false;
      }
      if (getForwardPeer()
          != other.getForwardPeer()) return false;
      if (getEventId()
          != other.getEventId()) return false;
      if (forwardType_ != other.forwardType_) return false;
      if (!getAbilityData()
          .equals(other.getAbilityData())) return false;
      if (java.lang.Double.doubleToLongBits(getTotalTickTime())
          != java.lang.Double.doubleToLongBits(
              other.getTotalTickTime())) return false;
      if (getEntityId()
          != other.getEntityId()) 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) + ARGUMENT_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + argumentType_;
      if (hasHead()) {
        hash = (37 * hash) + HEAD_FIELD_NUMBER;
        hash = (53 * hash) + getHead().hashCode();
      }
      hash = (37 * hash) + FORWARD_PEER_FIELD_NUMBER;
      hash = (53 * hash) + getForwardPeer();
      hash = (37 * hash) + EVENT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getEventId();
      hash = (37 * hash) + FORWARD_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + forwardType_;
      hash = (37 * hash) + ABILITY_DATA_FIELD_NUMBER;
      hash = (53 * hash) + getAbilityData().hashCode();
      hash = (37 * hash) + TOTAL_TICK_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getTotalTickTime()));
      hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
      hash = (53 * hash) + getEntityId();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.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 emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.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 emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.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(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.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)
        emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntryOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.internal_static_AbilityInvokeEntry_descriptor;
      }

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

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

        if (headBuilder_ == null) {
          head_ = null;
        } else {
          head_ = null;
          headBuilder_ = null;
        }
        forwardPeer_ = 0;

        eventId_ = 0;

        forwardType_ = 0;

        abilityData_ = com.google.protobuf.ByteString.EMPTY;

        totalTickTime_ = 0D;

        entityId_ = 0;

        return this;
      }

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

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

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

      @java.lang.Override
      public emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry buildPartial() {
        emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry result = new emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry(this);
        result.argumentType_ = argumentType_;
        if (headBuilder_ == null) {
          result.head_ = head_;
        } else {
          result.head_ = headBuilder_.build();
        }
        result.forwardPeer_ = forwardPeer_;
        result.eventId_ = eventId_;
        result.forwardType_ = forwardType_;
        result.abilityData_ = abilityData_;
        result.totalTickTime_ = totalTickTime_;
        result.entityId_ = entityId_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry) {
          return mergeFrom((emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry other) {
        if (other == emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry.getDefaultInstance()) return this;
        if (other.argumentType_ != 0) {
          setArgumentTypeValue(other.getArgumentTypeValue());
        }
        if (other.hasHead()) {
          mergeHead(other.getHead());
        }
        if (other.getForwardPeer() != 0) {
          setForwardPeer(other.getForwardPeer());
        }
        if (other.getEventId() != 0) {
          setEventId(other.getEventId());
        }
        if (other.forwardType_ != 0) {
          setForwardTypeValue(other.getForwardTypeValue());
        }
        if (other.getAbilityData() != com.google.protobuf.ByteString.EMPTY) {
          setAbilityData(other.getAbilityData());
        }
        if (other.getTotalTickTime() != 0D) {
          setTotalTickTime(other.getTotalTickTime());
        }
        if (other.getEntityId() != 0) {
          setEntityId(other.getEntityId());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

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

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

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

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

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

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

      private int forwardPeer_ ;
      /**
       * <code>uint32 forward_peer = 4;</code>
       * @return The forwardPeer.
       */
      @java.lang.Override
      public int getForwardPeer() {
        return forwardPeer_;
      }
      /**
       * <code>uint32 forward_peer = 4;</code>
       * @param value The forwardPeer to set.
       * @return This builder for chaining.
       */
      public Builder setForwardPeer(int value) {
        
        forwardPeer_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 forward_peer = 4;</code>
       * @return This builder for chaining.
       */
      public Builder clearForwardPeer() {
        
        forwardPeer_ = 0;
        onChanged();
        return this;
      }

      private int eventId_ ;
      /**
       * <code>uint32 event_id = 12;</code>
       * @return The eventId.
       */
      @java.lang.Override
      public int getEventId() {
        return eventId_;
      }
      /**
       * <code>uint32 event_id = 12;</code>
       * @param value The eventId to set.
       * @return This builder for chaining.
       */
      public Builder setEventId(int value) {
        
        eventId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 event_id = 12;</code>
       * @return This builder for chaining.
       */
      public Builder clearEventId() {
        
        eventId_ = 0;
        onChanged();
        return this;
      }

      private int forwardType_ = 0;
      /**
       * <code>.ForwardType forward_type = 3;</code>
       * @return The enum numeric value on the wire for forwardType.
       */
      @java.lang.Override public int getForwardTypeValue() {
        return forwardType_;
      }
      /**
       * <code>.ForwardType forward_type = 3;</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 = 3;</code>
       * @return The forwardType.
       */
      @java.lang.Override
      public emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType getForwardType() {
        @SuppressWarnings("deprecation")
        emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType result = emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.valueOf(forwardType_);
        return result == null ? emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType.UNRECOGNIZED : result;
      }
      /**
       * <code>.ForwardType forward_type = 3;</code>
       * @param value The forwardType to set.
       * @return This builder for chaining.
       */
      public Builder setForwardType(emu.grasscutter.net.proto.ForwardTypeOuterClass.ForwardType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        forwardType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.ForwardType forward_type = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearForwardType() {
        
        forwardType_ = 0;
        onChanged();
        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 double totalTickTime_ ;
      /**
       * <code>double total_tick_time = 14;</code>
       * @return The totalTickTime.
       */
      @java.lang.Override
      public double getTotalTickTime() {
        return totalTickTime_;
      }
      /**
       * <code>double total_tick_time = 14;</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 = 14;</code>
       * @return This builder for chaining.
       */
      public Builder clearTotalTickTime() {
        
        totalTickTime_ = 0D;
        onChanged();
        return this;
      }

      private int entityId_ ;
      /**
       * <code>uint32 entity_id = 9;</code>
       * @return The entityId.
       */
      @java.lang.Override
      public int getEntityId() {
        return entityId_;
      }
      /**
       * <code>uint32 entity_id = 9;</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 = 9;</code>
       * @return This builder for chaining.
       */
      public Builder clearEntityId() {
        
        entityId_ = 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 emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry();
    }

    public static emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.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 emu.grasscutter.net.proto.AbilityInvokeEntryOuterClass.AbilityInvokeEntry getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_AbilityInvokeEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_AbilityInvokeEntry_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\030AbilityInvokeEntry.proto\032\033AbilityInvok" +
      "eArgument.proto\032\034AbilityInvokeEntryHead." +
      "proto\032\021ForwardType.proto\"\370\001\n\022AbilityInvo" +
      "keEntry\022-\n\rargument_type\030\001 \001(\0162\026.Ability" +
      "InvokeArgument\022%\n\004head\030\002 \001(\0132\027.AbilityIn" +
      "vokeEntryHead\022\024\n\014forward_peer\030\004 \001(\r\022\020\n\010e" +
      "vent_id\030\014 \001(\r\022\"\n\014forward_type\030\003 \001(\0162\014.Fo" +
      "rwardType\022\024\n\014ability_data\030\017 \001(\014\022\027\n\017total" +
      "_tick_time\030\016 \001(\001\022\021\n\tentity_id\030\t \001(\rB\033\n\031e" +
      "mu.grasscutter.net.protob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.getDescriptor(),
          emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor(),
        });
    internal_static_AbilityInvokeEntry_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_AbilityInvokeEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_AbilityInvokeEntry_descriptor,
        new java.lang.String[] { "ArgumentType", "Head", "ForwardPeer", "EventId", "ForwardType", "AbilityData", "TotalTickTime", "EntityId", });
    emu.grasscutter.net.proto.AbilityInvokeArgumentOuterClass.getDescriptor();
    emu.grasscutter.net.proto.AbilityInvokeEntryHeadOuterClass.getDescriptor();
    emu.grasscutter.net.proto.ForwardTypeOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
