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

package io.grasscutter.net.proto.define;

/**
 * Protobuf type {@code MotionInfo}
 */
public final class MotionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:MotionInfo)
    MotionInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MotionInfo.newBuilder() to construct.
  private MotionInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private MotionInfo() {
    params_ = java.util.Collections.emptyList();
    state_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private MotionInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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 10: {
            io.grasscutter.net.proto.define.Vector.Builder subBuilder = null;
            if (pos_ != null) {
              subBuilder = pos_.toBuilder();
            }
            pos_ = input.readMessage(io.grasscutter.net.proto.define.Vector.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(pos_);
              pos_ = subBuilder.buildPartial();
            }

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

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

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

            state_ = rawValue;
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              params_ = new java.util.ArrayList<io.grasscutter.net.proto.define.Vector>();
              mutable_bitField0_ |= 0x00000001;
            }
            params_.add(
                input.readMessage(io.grasscutter.net.proto.define.Vector.parser(), extensionRegistry));
            break;
          }
          case 50: {
            io.grasscutter.net.proto.define.Vector.Builder subBuilder = null;
            if (refPos_ != null) {
              subBuilder = refPos_.toBuilder();
            }
            refPos_ = input.readMessage(io.grasscutter.net.proto.define.Vector.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(refPos_);
              refPos_ = subBuilder.buildPartial();
            }

            break;
          }
          case 56: {

            refId_ = input.readUInt32();
            break;
          }
          case 64: {

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

            intervalVelocity_ = input.readUInt64();
            break;
          }
          case 80: {

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

            dOIIHABEHKO_ = input.readUInt32();
            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 {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        params_ = java.util.Collections.unmodifiableList(params_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.define.Define.internal_static_MotionInfo_descriptor;
  }

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

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

  public static final int SPEED_FIELD_NUMBER = 3;
  private io.grasscutter.net.proto.define.Vector speed_;
  /**
   * <code>.Vector speed = 3;</code>
   * @return Whether the speed field is set.
   */
  @java.lang.Override
  public boolean hasSpeed() {
    return speed_ != null;
  }
  /**
   * <code>.Vector speed = 3;</code>
   * @return The speed.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getSpeed() {
    return speed_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : speed_;
  }
  /**
   * <code>.Vector speed = 3;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getSpeedOrBuilder() {
    return getSpeed();
  }

  public static final int REF_POS_FIELD_NUMBER = 6;
  private io.grasscutter.net.proto.define.Vector refPos_;
  /**
   * <code>.Vector ref_pos = 6;</code>
   * @return Whether the refPos field is set.
   */
  @java.lang.Override
  public boolean hasRefPos() {
    return refPos_ != null;
  }
  /**
   * <code>.Vector ref_pos = 6;</code>
   * @return The refPos.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getRefPos() {
    return refPos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : refPos_;
  }
  /**
   * <code>.Vector ref_pos = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getRefPosOrBuilder() {
    return getRefPos();
  }

  public static final int PARAMS_FIELD_NUMBER = 5;
  private java.util.List<io.grasscutter.net.proto.define.Vector> params_;
  /**
   * <code>repeated .Vector params = 5;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.define.Vector> getParamsList() {
    return params_;
  }
  /**
   * <code>repeated .Vector params = 5;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.define.VectorOrBuilder> 
      getParamsOrBuilderList() {
    return params_;
  }
  /**
   * <code>repeated .Vector params = 5;</code>
   */
  @java.lang.Override
  public int getParamsCount() {
    return params_.size();
  }
  /**
   * <code>repeated .Vector params = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getParams(int index) {
    return params_.get(index);
  }
  /**
   * <code>repeated .Vector params = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getParamsOrBuilder(
      int index) {
    return params_.get(index);
  }

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

  public static final int SCENE_TIME_FIELD_NUMBER = 8;
  private int sceneTime_;
  /**
   * <code>uint32 scene_time = 8;</code>
   * @return The sceneTime.
   */
  @java.lang.Override
  public int getSceneTime() {
    return sceneTime_;
  }

  public static final int ARC_ID_FIELD_NUMBER = 10;
  private int arcId_;
  /**
   * <code>uint32 arc_id = 10;</code>
   * @return The arcId.
   */
  @java.lang.Override
  public int getArcId() {
    return arcId_;
  }

  public static final int INTERVAL_VELOCITY_FIELD_NUMBER = 9;
  private long intervalVelocity_;
  /**
   * <code>uint64 interval_velocity = 9;</code>
   * @return The intervalVelocity.
   */
  @java.lang.Override
  public long getIntervalVelocity() {
    return intervalVelocity_;
  }

  public static final int REF_ID_FIELD_NUMBER = 7;
  private int refId_;
  /**
   * <code>uint32 ref_id = 7;</code>
   * @return The refId.
   */
  @java.lang.Override
  public int getRefId() {
    return refId_;
  }

  public static final int DOIIHABEHKO_FIELD_NUMBER = 11;
  private int dOIIHABEHKO_;
  /**
   * <code>uint32 DOIIHABEHKO = 11;</code>
   * @return The dOIIHABEHKO.
   */
  @java.lang.Override
  public int getDOIIHABEHKO() {
    return dOIIHABEHKO_;
  }

  public static final int STATE_FIELD_NUMBER = 4;
  private int state_;
  /**
   * <code>.MotionState state = 4;</code>
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override public int getStateValue() {
    return state_;
  }
  /**
   * <code>.MotionState state = 4;</code>
   * @return The state.
   */
  @java.lang.Override public io.grasscutter.net.proto.define.MotionState getState() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.define.MotionState result = io.grasscutter.net.proto.define.MotionState.valueOf(state_);
    return result == null ? io.grasscutter.net.proto.define.MotionState.UNRECOGNIZED : result;
  }

  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 (pos_ != null) {
      output.writeMessage(1, getPos());
    }
    if (rot_ != null) {
      output.writeMessage(2, getRot());
    }
    if (speed_ != null) {
      output.writeMessage(3, getSpeed());
    }
    if (state_ != io.grasscutter.net.proto.define.MotionState.MotionState_MOTION_NONE.getNumber()) {
      output.writeEnum(4, state_);
    }
    for (int i = 0; i < params_.size(); i++) {
      output.writeMessage(5, params_.get(i));
    }
    if (refPos_ != null) {
      output.writeMessage(6, getRefPos());
    }
    if (refId_ != 0) {
      output.writeUInt32(7, refId_);
    }
    if (sceneTime_ != 0) {
      output.writeUInt32(8, sceneTime_);
    }
    if (intervalVelocity_ != 0L) {
      output.writeUInt64(9, intervalVelocity_);
    }
    if (arcId_ != 0) {
      output.writeUInt32(10, arcId_);
    }
    if (dOIIHABEHKO_ != 0) {
      output.writeUInt32(11, dOIIHABEHKO_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (pos_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getPos());
    }
    if (rot_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getRot());
    }
    if (speed_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getSpeed());
    }
    if (state_ != io.grasscutter.net.proto.define.MotionState.MotionState_MOTION_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(4, state_);
    }
    for (int i = 0; i < params_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, params_.get(i));
    }
    if (refPos_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, getRefPos());
    }
    if (refId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, refId_);
    }
    if (sceneTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, sceneTime_);
    }
    if (intervalVelocity_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(9, intervalVelocity_);
    }
    if (arcId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(10, arcId_);
    }
    if (dOIIHABEHKO_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(11, dOIIHABEHKO_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof io.grasscutter.net.proto.define.MotionInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.MotionInfo other = (io.grasscutter.net.proto.define.MotionInfo) obj;

    if (hasRot() != other.hasRot()) return false;
    if (hasRot()) {
      if (!getRot()
          .equals(other.getRot())) return false;
    }
    if (hasSpeed() != other.hasSpeed()) return false;
    if (hasSpeed()) {
      if (!getSpeed()
          .equals(other.getSpeed())) return false;
    }
    if (hasRefPos() != other.hasRefPos()) return false;
    if (hasRefPos()) {
      if (!getRefPos()
          .equals(other.getRefPos())) return false;
    }
    if (!getParamsList()
        .equals(other.getParamsList())) return false;
    if (hasPos() != other.hasPos()) return false;
    if (hasPos()) {
      if (!getPos()
          .equals(other.getPos())) return false;
    }
    if (getSceneTime()
        != other.getSceneTime()) return false;
    if (getArcId()
        != other.getArcId()) return false;
    if (getIntervalVelocity()
        != other.getIntervalVelocity()) return false;
    if (getRefId()
        != other.getRefId()) return false;
    if (getDOIIHABEHKO()
        != other.getDOIIHABEHKO()) return false;
    if (state_ != other.state_) 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();
    if (hasRot()) {
      hash = (37 * hash) + ROT_FIELD_NUMBER;
      hash = (53 * hash) + getRot().hashCode();
    }
    if (hasSpeed()) {
      hash = (37 * hash) + SPEED_FIELD_NUMBER;
      hash = (53 * hash) + getSpeed().hashCode();
    }
    if (hasRefPos()) {
      hash = (37 * hash) + REF_POS_FIELD_NUMBER;
      hash = (53 * hash) + getRefPos().hashCode();
    }
    if (getParamsCount() > 0) {
      hash = (37 * hash) + PARAMS_FIELD_NUMBER;
      hash = (53 * hash) + getParamsList().hashCode();
    }
    if (hasPos()) {
      hash = (37 * hash) + POS_FIELD_NUMBER;
      hash = (53 * hash) + getPos().hashCode();
    }
    hash = (37 * hash) + SCENE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getSceneTime();
    hash = (37 * hash) + ARC_ID_FIELD_NUMBER;
    hash = (53 * hash) + getArcId();
    hash = (37 * hash) + INTERVAL_VELOCITY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getIntervalVelocity());
    hash = (37 * hash) + REF_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRefId();
    hash = (37 * hash) + DOIIHABEHKO_FIELD_NUMBER;
    hash = (53 * hash) + getDOIIHABEHKO();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.MotionInfo parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(io.grasscutter.net.proto.define.MotionInfo 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 MotionInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:MotionInfo)
      io.grasscutter.net.proto.define.MotionInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.define.Define.internal_static_MotionInfo_descriptor;
    }

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

    // Construct using io.grasscutter.net.proto.define.MotionInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getParamsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (rotBuilder_ == null) {
        rot_ = null;
      } else {
        rot_ = null;
        rotBuilder_ = null;
      }
      if (speedBuilder_ == null) {
        speed_ = null;
      } else {
        speed_ = null;
        speedBuilder_ = null;
      }
      if (refPosBuilder_ == null) {
        refPos_ = null;
      } else {
        refPos_ = null;
        refPosBuilder_ = null;
      }
      if (paramsBuilder_ == null) {
        params_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        paramsBuilder_.clear();
      }
      if (posBuilder_ == null) {
        pos_ = null;
      } else {
        pos_ = null;
        posBuilder_ = null;
      }
      sceneTime_ = 0;

      arcId_ = 0;

      intervalVelocity_ = 0L;

      refId_ = 0;

      dOIIHABEHKO_ = 0;

      state_ = 0;

      return this;
    }

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

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.MotionInfo buildPartial() {
      io.grasscutter.net.proto.define.MotionInfo result = new io.grasscutter.net.proto.define.MotionInfo(this);
      int from_bitField0_ = bitField0_;
      if (rotBuilder_ == null) {
        result.rot_ = rot_;
      } else {
        result.rot_ = rotBuilder_.build();
      }
      if (speedBuilder_ == null) {
        result.speed_ = speed_;
      } else {
        result.speed_ = speedBuilder_.build();
      }
      if (refPosBuilder_ == null) {
        result.refPos_ = refPos_;
      } else {
        result.refPos_ = refPosBuilder_.build();
      }
      if (paramsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          params_ = java.util.Collections.unmodifiableList(params_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.params_ = params_;
      } else {
        result.params_ = paramsBuilder_.build();
      }
      if (posBuilder_ == null) {
        result.pos_ = pos_;
      } else {
        result.pos_ = posBuilder_.build();
      }
      result.sceneTime_ = sceneTime_;
      result.arcId_ = arcId_;
      result.intervalVelocity_ = intervalVelocity_;
      result.refId_ = refId_;
      result.dOIIHABEHKO_ = dOIIHABEHKO_;
      result.state_ = state_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(io.grasscutter.net.proto.define.MotionInfo other) {
      if (other == io.grasscutter.net.proto.define.MotionInfo.getDefaultInstance()) return this;
      if (other.hasRot()) {
        mergeRot(other.getRot());
      }
      if (other.hasSpeed()) {
        mergeSpeed(other.getSpeed());
      }
      if (other.hasRefPos()) {
        mergeRefPos(other.getRefPos());
      }
      if (paramsBuilder_ == null) {
        if (!other.params_.isEmpty()) {
          if (params_.isEmpty()) {
            params_ = other.params_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureParamsIsMutable();
            params_.addAll(other.params_);
          }
          onChanged();
        }
      } else {
        if (!other.params_.isEmpty()) {
          if (paramsBuilder_.isEmpty()) {
            paramsBuilder_.dispose();
            paramsBuilder_ = null;
            params_ = other.params_;
            bitField0_ = (bitField0_ & ~0x00000001);
            paramsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getParamsFieldBuilder() : null;
          } else {
            paramsBuilder_.addAllMessages(other.params_);
          }
        }
      }
      if (other.hasPos()) {
        mergePos(other.getPos());
      }
      if (other.getSceneTime() != 0) {
        setSceneTime(other.getSceneTime());
      }
      if (other.getArcId() != 0) {
        setArcId(other.getArcId());
      }
      if (other.getIntervalVelocity() != 0L) {
        setIntervalVelocity(other.getIntervalVelocity());
      }
      if (other.getRefId() != 0) {
        setRefId(other.getRefId());
      }
      if (other.getDOIIHABEHKO() != 0) {
        setDOIIHABEHKO(other.getDOIIHABEHKO());
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

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

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

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

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

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

    private io.grasscutter.net.proto.define.Vector speed_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> speedBuilder_;
    /**
     * <code>.Vector speed = 3;</code>
     * @return Whether the speed field is set.
     */
    public boolean hasSpeed() {
      return speedBuilder_ != null || speed_ != null;
    }
    /**
     * <code>.Vector speed = 3;</code>
     * @return The speed.
     */
    public io.grasscutter.net.proto.define.Vector getSpeed() {
      if (speedBuilder_ == null) {
        return speed_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : speed_;
      } else {
        return speedBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    public Builder setSpeed(io.grasscutter.net.proto.define.Vector value) {
      if (speedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        speed_ = value;
        onChanged();
      } else {
        speedBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    public Builder setSpeed(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (speedBuilder_ == null) {
        speed_ = builderForValue.build();
        onChanged();
      } else {
        speedBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    public Builder mergeSpeed(io.grasscutter.net.proto.define.Vector value) {
      if (speedBuilder_ == null) {
        if (speed_ != null) {
          speed_ =
            io.grasscutter.net.proto.define.Vector.newBuilder(speed_).mergeFrom(value).buildPartial();
        } else {
          speed_ = value;
        }
        onChanged();
      } else {
        speedBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    public Builder clearSpeed() {
      if (speedBuilder_ == null) {
        speed_ = null;
        onChanged();
      } else {
        speed_ = null;
        speedBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getSpeedBuilder() {
      
      onChanged();
      return getSpeedFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getSpeedOrBuilder() {
      if (speedBuilder_ != null) {
        return speedBuilder_.getMessageOrBuilder();
      } else {
        return speed_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : speed_;
      }
    }
    /**
     * <code>.Vector speed = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> 
        getSpeedFieldBuilder() {
      if (speedBuilder_ == null) {
        speedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getSpeed(),
                getParentForChildren(),
                isClean());
        speed_ = null;
      }
      return speedBuilder_;
    }

    private io.grasscutter.net.proto.define.Vector refPos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> refPosBuilder_;
    /**
     * <code>.Vector ref_pos = 6;</code>
     * @return Whether the refPos field is set.
     */
    public boolean hasRefPos() {
      return refPosBuilder_ != null || refPos_ != null;
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     * @return The refPos.
     */
    public io.grasscutter.net.proto.define.Vector getRefPos() {
      if (refPosBuilder_ == null) {
        return refPos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : refPos_;
      } else {
        return refPosBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    public Builder setRefPos(io.grasscutter.net.proto.define.Vector value) {
      if (refPosBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        refPos_ = value;
        onChanged();
      } else {
        refPosBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    public Builder setRefPos(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (refPosBuilder_ == null) {
        refPos_ = builderForValue.build();
        onChanged();
      } else {
        refPosBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    public Builder mergeRefPos(io.grasscutter.net.proto.define.Vector value) {
      if (refPosBuilder_ == null) {
        if (refPos_ != null) {
          refPos_ =
            io.grasscutter.net.proto.define.Vector.newBuilder(refPos_).mergeFrom(value).buildPartial();
        } else {
          refPos_ = value;
        }
        onChanged();
      } else {
        refPosBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    public Builder clearRefPos() {
      if (refPosBuilder_ == null) {
        refPos_ = null;
        onChanged();
      } else {
        refPos_ = null;
        refPosBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getRefPosBuilder() {
      
      onChanged();
      return getRefPosFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getRefPosOrBuilder() {
      if (refPosBuilder_ != null) {
        return refPosBuilder_.getMessageOrBuilder();
      } else {
        return refPos_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : refPos_;
      }
    }
    /**
     * <code>.Vector ref_pos = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> 
        getRefPosFieldBuilder() {
      if (refPosBuilder_ == null) {
        refPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getRefPos(),
                getParentForChildren(),
                isClean());
        refPos_ = null;
      }
      return refPosBuilder_;
    }

    private java.util.List<io.grasscutter.net.proto.define.Vector> params_ =
      java.util.Collections.emptyList();
    private void ensureParamsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        params_ = new java.util.ArrayList<io.grasscutter.net.proto.define.Vector>(params_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> paramsBuilder_;

    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.Vector> getParamsList() {
      if (paramsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(params_);
      } else {
        return paramsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public int getParamsCount() {
      if (paramsBuilder_ == null) {
        return params_.size();
      } else {
        return paramsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public io.grasscutter.net.proto.define.Vector getParams(int index) {
      if (paramsBuilder_ == null) {
        return params_.get(index);
      } else {
        return paramsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder setParams(
        int index, io.grasscutter.net.proto.define.Vector value) {
      if (paramsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParamsIsMutable();
        params_.set(index, value);
        onChanged();
      } else {
        paramsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder setParams(
        int index, io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (paramsBuilder_ == null) {
        ensureParamsIsMutable();
        params_.set(index, builderForValue.build());
        onChanged();
      } else {
        paramsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder addParams(io.grasscutter.net.proto.define.Vector value) {
      if (paramsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParamsIsMutable();
        params_.add(value);
        onChanged();
      } else {
        paramsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder addParams(
        int index, io.grasscutter.net.proto.define.Vector value) {
      if (paramsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureParamsIsMutable();
        params_.add(index, value);
        onChanged();
      } else {
        paramsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder addParams(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (paramsBuilder_ == null) {
        ensureParamsIsMutable();
        params_.add(builderForValue.build());
        onChanged();
      } else {
        paramsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder addParams(
        int index, io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (paramsBuilder_ == null) {
        ensureParamsIsMutable();
        params_.add(index, builderForValue.build());
        onChanged();
      } else {
        paramsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder addAllParams(
        java.lang.Iterable<? extends io.grasscutter.net.proto.define.Vector> values) {
      if (paramsBuilder_ == null) {
        ensureParamsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, params_);
        onChanged();
      } else {
        paramsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder clearParams() {
      if (paramsBuilder_ == null) {
        params_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        paramsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public Builder removeParams(int index) {
      if (paramsBuilder_ == null) {
        ensureParamsIsMutable();
        params_.remove(index);
        onChanged();
      } else {
        paramsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getParamsBuilder(
        int index) {
      return getParamsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getParamsOrBuilder(
        int index) {
      if (paramsBuilder_ == null) {
        return params_.get(index);  } else {
        return paramsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.define.VectorOrBuilder> 
         getParamsOrBuilderList() {
      if (paramsBuilder_ != null) {
        return paramsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(params_);
      }
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder addParamsBuilder() {
      return getParamsFieldBuilder().addBuilder(
          io.grasscutter.net.proto.define.Vector.getDefaultInstance());
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder addParamsBuilder(
        int index) {
      return getParamsFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.define.Vector.getDefaultInstance());
    }
    /**
     * <code>repeated .Vector params = 5;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.Vector.Builder> 
         getParamsBuilderList() {
      return getParamsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> 
        getParamsFieldBuilder() {
      if (paramsBuilder_ == null) {
        paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                params_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        params_ = null;
      }
      return paramsBuilder_;
    }

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

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

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

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

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

    private int sceneTime_ ;
    /**
     * <code>uint32 scene_time = 8;</code>
     * @return The sceneTime.
     */
    @java.lang.Override
    public int getSceneTime() {
      return sceneTime_;
    }
    /**
     * <code>uint32 scene_time = 8;</code>
     * @param value The sceneTime to set.
     * @return This builder for chaining.
     */
    public Builder setSceneTime(int value) {
      
      sceneTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 scene_time = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearSceneTime() {
      
      sceneTime_ = 0;
      onChanged();
      return this;
    }

    private int arcId_ ;
    /**
     * <code>uint32 arc_id = 10;</code>
     * @return The arcId.
     */
    @java.lang.Override
    public int getArcId() {
      return arcId_;
    }
    /**
     * <code>uint32 arc_id = 10;</code>
     * @param value The arcId to set.
     * @return This builder for chaining.
     */
    public Builder setArcId(int value) {
      
      arcId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 arc_id = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearArcId() {
      
      arcId_ = 0;
      onChanged();
      return this;
    }

    private long intervalVelocity_ ;
    /**
     * <code>uint64 interval_velocity = 9;</code>
     * @return The intervalVelocity.
     */
    @java.lang.Override
    public long getIntervalVelocity() {
      return intervalVelocity_;
    }
    /**
     * <code>uint64 interval_velocity = 9;</code>
     * @param value The intervalVelocity to set.
     * @return This builder for chaining.
     */
    public Builder setIntervalVelocity(long value) {
      
      intervalVelocity_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 interval_velocity = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearIntervalVelocity() {
      
      intervalVelocity_ = 0L;
      onChanged();
      return this;
    }

    private int refId_ ;
    /**
     * <code>uint32 ref_id = 7;</code>
     * @return The refId.
     */
    @java.lang.Override
    public int getRefId() {
      return refId_;
    }
    /**
     * <code>uint32 ref_id = 7;</code>
     * @param value The refId to set.
     * @return This builder for chaining.
     */
    public Builder setRefId(int value) {
      
      refId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 ref_id = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearRefId() {
      
      refId_ = 0;
      onChanged();
      return this;
    }

    private int dOIIHABEHKO_ ;
    /**
     * <code>uint32 DOIIHABEHKO = 11;</code>
     * @return The dOIIHABEHKO.
     */
    @java.lang.Override
    public int getDOIIHABEHKO() {
      return dOIIHABEHKO_;
    }
    /**
     * <code>uint32 DOIIHABEHKO = 11;</code>
     * @param value The dOIIHABEHKO to set.
     * @return This builder for chaining.
     */
    public Builder setDOIIHABEHKO(int value) {
      
      dOIIHABEHKO_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 DOIIHABEHKO = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearDOIIHABEHKO() {
      
      dOIIHABEHKO_ = 0;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     * <code>.MotionState state = 4;</code>
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override public int getStateValue() {
      return state_;
    }
    /**
     * <code>.MotionState state = 4;</code>
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      
      state_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.MotionState state = 4;</code>
     * @return The state.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MotionState getState() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.define.MotionState result = io.grasscutter.net.proto.define.MotionState.valueOf(state_);
      return result == null ? io.grasscutter.net.proto.define.MotionState.UNRECOGNIZED : result;
    }
    /**
     * <code>.MotionState state = 4;</code>
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(io.grasscutter.net.proto.define.MotionState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.MotionState state = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearState() {
      
      state_ = 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:MotionInfo)
  }

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

  public static io.grasscutter.net.proto.define.MotionInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

