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

package io.grasscutter.net.proto.define;

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

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

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

            break;
          }
          case 21: {

            arriveRange_ = input.readFloat();
            break;
          }
          case 24: {

            hasReachEvent_ = input.readBool();
            break;
          }
          case 93: {
            pPKBBEKFPIACase_ = 11;
            pPKBBEKFPIA_ = input.readFloat();
            break;
          }
          case 101: {
            pPKBBEKFPIACase_ = 12;
            pPKBBEKFPIA_ = input.readFloat();
            break;
          }
          case 170: {
            io.grasscutter.net.proto.define.Vector.Builder subBuilder = null;
            if (cFCAEGJNCDLCase_ == 21) {
              subBuilder = ((io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_).toBuilder();
            }
            cFCAEGJNCDL_ =
                input.readMessage(io.grasscutter.net.proto.define.Vector.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_);
              cFCAEGJNCDL_ = subBuilder.buildPartial();
            }
            cFCAEGJNCDLCase_ = 21;
            break;
          }
          case 178: {
            io.grasscutter.net.proto.define.MathQuaternion.Builder subBuilder = null;
            if (cFCAEGJNCDLCase_ == 22) {
              subBuilder = ((io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_).toBuilder();
            }
            cFCAEGJNCDL_ =
                input.readMessage(io.grasscutter.net.proto.define.MathQuaternion.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_);
              cFCAEGJNCDL_ = subBuilder.buildPartial();
            }
            cFCAEGJNCDLCase_ = 22;
            break;
          }
          case 186: {
            io.grasscutter.net.proto.define.MathQuaternion.Builder subBuilder = null;
            if (cFCAEGJNCDLCase_ == 23) {
              subBuilder = ((io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_).toBuilder();
            }
            cFCAEGJNCDL_ =
                input.readMessage(io.grasscutter.net.proto.define.MathQuaternion.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_);
              cFCAEGJNCDL_ = subBuilder.buildPartial();
            }
            cFCAEGJNCDLCase_ = 23;
            break;
          }
          case 192: {
            int rawValue = input.readEnum();

            pointType_ = rawValue;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.define.Define.internal_static_RoutePoint_descriptor;
  }

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

  private int pPKBBEKFPIACase_ = 0;
  private java.lang.Object pPKBBEKFPIA_;
  public enum PPKBBEKFPIACase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    VELOCITY(11),
    TIME(12),
    PPKBBEKFPIA_NOT_SET(0);
    private final int value;
    private PPKBBEKFPIACase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PPKBBEKFPIACase valueOf(int value) {
      return forNumber(value);
    }

    public static PPKBBEKFPIACase forNumber(int value) {
      switch (value) {
        case 11: return VELOCITY;
        case 12: return TIME;
        case 0: return PPKBBEKFPIA_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public PPKBBEKFPIACase
  getPPKBBEKFPIACase() {
    return PPKBBEKFPIACase.forNumber(
        pPKBBEKFPIACase_);
  }

  private int cFCAEGJNCDLCase_ = 0;
  private java.lang.Object cFCAEGJNCDL_;
  public enum CFCAEGJNCDLCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    AXIS_SPEED(23),
    ROTATION(21),
    ROTATION_SPEED(22),
    CFCAEGJNCDL_NOT_SET(0);
    private final int value;
    private CFCAEGJNCDLCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CFCAEGJNCDLCase valueOf(int value) {
      return forNumber(value);
    }

    public static CFCAEGJNCDLCase forNumber(int value) {
      switch (value) {
        case 23: return AXIS_SPEED;
        case 21: return ROTATION;
        case 22: return ROTATION_SPEED;
        case 0: return CFCAEGJNCDL_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public CFCAEGJNCDLCase
  getCFCAEGJNCDLCase() {
    return CFCAEGJNCDLCase.forNumber(
        cFCAEGJNCDLCase_);
  }

  public static final int POSITION_FIELD_NUMBER = 1;
  private io.grasscutter.net.proto.define.Vector position_;
  /**
   * <code>.Vector position = 1;</code>
   * @return Whether the position field is set.
   */
  @java.lang.Override
  public boolean hasPosition() {
    return position_ != null;
  }
  /**
   * <code>.Vector position = 1;</code>
   * @return The position.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getPosition() {
    return position_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : position_;
  }
  /**
   * <code>.Vector position = 1;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getPositionOrBuilder() {
    return getPosition();
  }

  public static final int ARRIVE_RANGE_FIELD_NUMBER = 2;
  private float arriveRange_;
  /**
   * <code>float arrive_range = 2;</code>
   * @return The arriveRange.
   */
  @java.lang.Override
  public float getArriveRange() {
    return arriveRange_;
  }

  public static final int HAS_REACH_EVENT_FIELD_NUMBER = 3;
  private boolean hasReachEvent_;
  /**
   * <code>bool has_reach_event = 3;</code>
   * @return The hasReachEvent.
   */
  @java.lang.Override
  public boolean getHasReachEvent() {
    return hasReachEvent_;
  }

  public static final int VELOCITY_FIELD_NUMBER = 11;
  /**
   * <code>float velocity = 11;</code>
   * @return Whether the velocity field is set.
   */
  @java.lang.Override
  public boolean hasVelocity() {
    return pPKBBEKFPIACase_ == 11;
  }
  /**
   * <code>float velocity = 11;</code>
   * @return The velocity.
   */
  @java.lang.Override
  public float getVelocity() {
    if (pPKBBEKFPIACase_ == 11) {
      return (java.lang.Float) pPKBBEKFPIA_;
    }
    return 0F;
  }

  public static final int TIME_FIELD_NUMBER = 12;
  /**
   * <code>float time = 12;</code>
   * @return Whether the time field is set.
   */
  @java.lang.Override
  public boolean hasTime() {
    return pPKBBEKFPIACase_ == 12;
  }
  /**
   * <code>float time = 12;</code>
   * @return The time.
   */
  @java.lang.Override
  public float getTime() {
    if (pPKBBEKFPIACase_ == 12) {
      return (java.lang.Float) pPKBBEKFPIA_;
    }
    return 0F;
  }

  public static final int POINT_TYPE_FIELD_NUMBER = 24;
  private int pointType_;
  /**
   * <code>.ALGFPDOAAFA point_type = 24;</code>
   * @return The enum numeric value on the wire for pointType.
   */
  @java.lang.Override public int getPointTypeValue() {
    return pointType_;
  }
  /**
   * <code>.ALGFPDOAAFA point_type = 24;</code>
   * @return The pointType.
   */
  @java.lang.Override public io.grasscutter.net.proto.define.ALGFPDOAAFA getPointType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.define.ALGFPDOAAFA result = io.grasscutter.net.proto.define.ALGFPDOAAFA.valueOf(pointType_);
    return result == null ? io.grasscutter.net.proto.define.ALGFPDOAAFA.UNRECOGNIZED : result;
  }

  public static final int AXIS_SPEED_FIELD_NUMBER = 23;
  /**
   * <code>.MathQuaternion axis_speed = 23;</code>
   * @return Whether the axisSpeed field is set.
   */
  @java.lang.Override
  public boolean hasAxisSpeed() {
    return cFCAEGJNCDLCase_ == 23;
  }
  /**
   * <code>.MathQuaternion axis_speed = 23;</code>
   * @return The axisSpeed.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternion getAxisSpeed() {
    if (cFCAEGJNCDLCase_ == 23) {
       return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
    }
    return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
  }
  /**
   * <code>.MathQuaternion axis_speed = 23;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getAxisSpeedOrBuilder() {
    if (cFCAEGJNCDLCase_ == 23) {
       return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
    }
    return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
  }

  public static final int ROTATION_FIELD_NUMBER = 21;
  /**
   * <code>.Vector rotation = 21;</code>
   * @return Whether the rotation field is set.
   */
  @java.lang.Override
  public boolean hasRotation() {
    return cFCAEGJNCDLCase_ == 21;
  }
  /**
   * <code>.Vector rotation = 21;</code>
   * @return The rotation.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getRotation() {
    if (cFCAEGJNCDLCase_ == 21) {
       return (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_;
    }
    return io.grasscutter.net.proto.define.Vector.getDefaultInstance();
  }
  /**
   * <code>.Vector rotation = 21;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getRotationOrBuilder() {
    if (cFCAEGJNCDLCase_ == 21) {
       return (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_;
    }
    return io.grasscutter.net.proto.define.Vector.getDefaultInstance();
  }

  public static final int ROTATION_SPEED_FIELD_NUMBER = 22;
  /**
   * <code>.MathQuaternion rotation_speed = 22;</code>
   * @return Whether the rotationSpeed field is set.
   */
  @java.lang.Override
  public boolean hasRotationSpeed() {
    return cFCAEGJNCDLCase_ == 22;
  }
  /**
   * <code>.MathQuaternion rotation_speed = 22;</code>
   * @return The rotationSpeed.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternion getRotationSpeed() {
    if (cFCAEGJNCDLCase_ == 22) {
       return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
    }
    return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
  }
  /**
   * <code>.MathQuaternion rotation_speed = 22;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getRotationSpeedOrBuilder() {
    if (cFCAEGJNCDLCase_ == 22) {
       return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
    }
    return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
  }

  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 (position_ != null) {
      output.writeMessage(1, getPosition());
    }
    if (arriveRange_ != 0F) {
      output.writeFloat(2, arriveRange_);
    }
    if (hasReachEvent_ != false) {
      output.writeBool(3, hasReachEvent_);
    }
    if (pPKBBEKFPIACase_ == 11) {
      output.writeFloat(
          11, (float)((java.lang.Float) pPKBBEKFPIA_));
    }
    if (pPKBBEKFPIACase_ == 12) {
      output.writeFloat(
          12, (float)((java.lang.Float) pPKBBEKFPIA_));
    }
    if (cFCAEGJNCDLCase_ == 21) {
      output.writeMessage(21, (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_);
    }
    if (cFCAEGJNCDLCase_ == 22) {
      output.writeMessage(22, (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_);
    }
    if (cFCAEGJNCDLCase_ == 23) {
      output.writeMessage(23, (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_);
    }
    if (pointType_ != io.grasscutter.net.proto.define.ALGFPDOAAFA.ALGFPDOAAFA_DEFAULT_VALUE.getNumber()) {
      output.writeEnum(24, pointType_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (position_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getPosition());
    }
    if (arriveRange_ != 0F) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(2, arriveRange_);
    }
    if (hasReachEvent_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(3, hasReachEvent_);
    }
    if (pPKBBEKFPIACase_ == 11) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(
            11, (float)((java.lang.Float) pPKBBEKFPIA_));
    }
    if (pPKBBEKFPIACase_ == 12) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(
            12, (float)((java.lang.Float) pPKBBEKFPIA_));
    }
    if (cFCAEGJNCDLCase_ == 21) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(21, (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_);
    }
    if (cFCAEGJNCDLCase_ == 22) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(22, (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_);
    }
    if (cFCAEGJNCDLCase_ == 23) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(23, (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_);
    }
    if (pointType_ != io.grasscutter.net.proto.define.ALGFPDOAAFA.ALGFPDOAAFA_DEFAULT_VALUE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(24, pointType_);
    }
    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.RoutePoint)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.RoutePoint other = (io.grasscutter.net.proto.define.RoutePoint) obj;

    if (hasPosition() != other.hasPosition()) return false;
    if (hasPosition()) {
      if (!getPosition()
          .equals(other.getPosition())) return false;
    }
    if (java.lang.Float.floatToIntBits(getArriveRange())
        != java.lang.Float.floatToIntBits(
            other.getArriveRange())) return false;
    if (getHasReachEvent()
        != other.getHasReachEvent()) return false;
    if (pointType_ != other.pointType_) return false;
    if (!getPPKBBEKFPIACase().equals(other.getPPKBBEKFPIACase())) return false;
    switch (pPKBBEKFPIACase_) {
      case 11:
        if (java.lang.Float.floatToIntBits(getVelocity())
            != java.lang.Float.floatToIntBits(
                other.getVelocity())) return false;
        break;
      case 12:
        if (java.lang.Float.floatToIntBits(getTime())
            != java.lang.Float.floatToIntBits(
                other.getTime())) return false;
        break;
      case 0:
      default:
    }
    if (!getCFCAEGJNCDLCase().equals(other.getCFCAEGJNCDLCase())) return false;
    switch (cFCAEGJNCDLCase_) {
      case 23:
        if (!getAxisSpeed()
            .equals(other.getAxisSpeed())) return false;
        break;
      case 21:
        if (!getRotation()
            .equals(other.getRotation())) return false;
        break;
      case 22:
        if (!getRotationSpeed()
            .equals(other.getRotationSpeed())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasPosition()) {
      hash = (37 * hash) + POSITION_FIELD_NUMBER;
      hash = (53 * hash) + getPosition().hashCode();
    }
    hash = (37 * hash) + ARRIVE_RANGE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(
        getArriveRange());
    hash = (37 * hash) + HAS_REACH_EVENT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getHasReachEvent());
    hash = (37 * hash) + POINT_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + pointType_;
    switch (pPKBBEKFPIACase_) {
      case 11:
        hash = (37 * hash) + VELOCITY_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getVelocity());
        break;
      case 12:
        hash = (37 * hash) + TIME_FIELD_NUMBER;
        hash = (53 * hash) + java.lang.Float.floatToIntBits(
            getTime());
        break;
      case 0:
      default:
    }
    switch (cFCAEGJNCDLCase_) {
      case 23:
        hash = (37 * hash) + AXIS_SPEED_FIELD_NUMBER;
        hash = (53 * hash) + getAxisSpeed().hashCode();
        break;
      case 21:
        hash = (37 * hash) + ROTATION_FIELD_NUMBER;
        hash = (53 * hash) + getRotation().hashCode();
        break;
      case 22:
        hash = (37 * hash) + ROTATION_SPEED_FIELD_NUMBER;
        hash = (53 * hash) + getRotationSpeed().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (positionBuilder_ == null) {
        position_ = null;
      } else {
        position_ = null;
        positionBuilder_ = null;
      }
      arriveRange_ = 0F;

      hasReachEvent_ = false;

      pointType_ = 0;

      pPKBBEKFPIACase_ = 0;
      pPKBBEKFPIA_ = null;
      cFCAEGJNCDLCase_ = 0;
      cFCAEGJNCDL_ = null;
      return this;
    }

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

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.RoutePoint buildPartial() {
      io.grasscutter.net.proto.define.RoutePoint result = new io.grasscutter.net.proto.define.RoutePoint(this);
      if (positionBuilder_ == null) {
        result.position_ = position_;
      } else {
        result.position_ = positionBuilder_.build();
      }
      result.arriveRange_ = arriveRange_;
      result.hasReachEvent_ = hasReachEvent_;
      if (pPKBBEKFPIACase_ == 11) {
        result.pPKBBEKFPIA_ = pPKBBEKFPIA_;
      }
      if (pPKBBEKFPIACase_ == 12) {
        result.pPKBBEKFPIA_ = pPKBBEKFPIA_;
      }
      result.pointType_ = pointType_;
      if (cFCAEGJNCDLCase_ == 23) {
        if (axisSpeedBuilder_ == null) {
          result.cFCAEGJNCDL_ = cFCAEGJNCDL_;
        } else {
          result.cFCAEGJNCDL_ = axisSpeedBuilder_.build();
        }
      }
      if (cFCAEGJNCDLCase_ == 21) {
        if (rotationBuilder_ == null) {
          result.cFCAEGJNCDL_ = cFCAEGJNCDL_;
        } else {
          result.cFCAEGJNCDL_ = rotationBuilder_.build();
        }
      }
      if (cFCAEGJNCDLCase_ == 22) {
        if (rotationSpeedBuilder_ == null) {
          result.cFCAEGJNCDL_ = cFCAEGJNCDL_;
        } else {
          result.cFCAEGJNCDL_ = rotationSpeedBuilder_.build();
        }
      }
      result.pPKBBEKFPIACase_ = pPKBBEKFPIACase_;
      result.cFCAEGJNCDLCase_ = cFCAEGJNCDLCase_;
      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.RoutePoint) {
        return mergeFrom((io.grasscutter.net.proto.define.RoutePoint)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.RoutePoint other) {
      if (other == io.grasscutter.net.proto.define.RoutePoint.getDefaultInstance()) return this;
      if (other.hasPosition()) {
        mergePosition(other.getPosition());
      }
      if (other.getArriveRange() != 0F) {
        setArriveRange(other.getArriveRange());
      }
      if (other.getHasReachEvent() != false) {
        setHasReachEvent(other.getHasReachEvent());
      }
      if (other.pointType_ != 0) {
        setPointTypeValue(other.getPointTypeValue());
      }
      switch (other.getPPKBBEKFPIACase()) {
        case VELOCITY: {
          setVelocity(other.getVelocity());
          break;
        }
        case TIME: {
          setTime(other.getTime());
          break;
        }
        case PPKBBEKFPIA_NOT_SET: {
          break;
        }
      }
      switch (other.getCFCAEGJNCDLCase()) {
        case AXIS_SPEED: {
          mergeAxisSpeed(other.getAxisSpeed());
          break;
        }
        case ROTATION: {
          mergeRotation(other.getRotation());
          break;
        }
        case ROTATION_SPEED: {
          mergeRotationSpeed(other.getRotationSpeed());
          break;
        }
        case CFCAEGJNCDL_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    public Builder clearPPKBBEKFPIA() {
      pPKBBEKFPIACase_ = 0;
      pPKBBEKFPIA_ = null;
      onChanged();
      return this;
    }

    private int cFCAEGJNCDLCase_ = 0;
    private java.lang.Object cFCAEGJNCDL_;
    public CFCAEGJNCDLCase
        getCFCAEGJNCDLCase() {
      return CFCAEGJNCDLCase.forNumber(
          cFCAEGJNCDLCase_);
    }

    public Builder clearCFCAEGJNCDL() {
      cFCAEGJNCDLCase_ = 0;
      cFCAEGJNCDL_ = null;
      onChanged();
      return this;
    }


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

      return this;
    }
    /**
     * <code>.Vector position = 1;</code>
     */
    public Builder setPosition(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (positionBuilder_ == null) {
        position_ = builderForValue.build();
        onChanged();
      } else {
        positionBuilder_.setMessage(builderForValue.build());
      }

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

      return this;
    }
    /**
     * <code>.Vector position = 1;</code>
     */
    public Builder clearPosition() {
      if (positionBuilder_ == null) {
        position_ = null;
        onChanged();
      } else {
        position_ = null;
        positionBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector position = 1;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getPositionBuilder() {
      
      onChanged();
      return getPositionFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector position = 1;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getPositionOrBuilder() {
      if (positionBuilder_ != null) {
        return positionBuilder_.getMessageOrBuilder();
      } else {
        return position_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : position_;
      }
    }
    /**
     * <code>.Vector position = 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> 
        getPositionFieldBuilder() {
      if (positionBuilder_ == null) {
        positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getPosition(),
                getParentForChildren(),
                isClean());
        position_ = null;
      }
      return positionBuilder_;
    }

    private float arriveRange_ ;
    /**
     * <code>float arrive_range = 2;</code>
     * @return The arriveRange.
     */
    @java.lang.Override
    public float getArriveRange() {
      return arriveRange_;
    }
    /**
     * <code>float arrive_range = 2;</code>
     * @param value The arriveRange to set.
     * @return This builder for chaining.
     */
    public Builder setArriveRange(float value) {
      
      arriveRange_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>float arrive_range = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearArriveRange() {
      
      arriveRange_ = 0F;
      onChanged();
      return this;
    }

    private boolean hasReachEvent_ ;
    /**
     * <code>bool has_reach_event = 3;</code>
     * @return The hasReachEvent.
     */
    @java.lang.Override
    public boolean getHasReachEvent() {
      return hasReachEvent_;
    }
    /**
     * <code>bool has_reach_event = 3;</code>
     * @param value The hasReachEvent to set.
     * @return This builder for chaining.
     */
    public Builder setHasReachEvent(boolean value) {
      
      hasReachEvent_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool has_reach_event = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearHasReachEvent() {
      
      hasReachEvent_ = false;
      onChanged();
      return this;
    }

    /**
     * <code>float velocity = 11;</code>
     * @return Whether the velocity field is set.
     */
    public boolean hasVelocity() {
      return pPKBBEKFPIACase_ == 11;
    }
    /**
     * <code>float velocity = 11;</code>
     * @return The velocity.
     */
    public float getVelocity() {
      if (pPKBBEKFPIACase_ == 11) {
        return (java.lang.Float) pPKBBEKFPIA_;
      }
      return 0F;
    }
    /**
     * <code>float velocity = 11;</code>
     * @param value The velocity to set.
     * @return This builder for chaining.
     */
    public Builder setVelocity(float value) {
      pPKBBEKFPIACase_ = 11;
      pPKBBEKFPIA_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>float velocity = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearVelocity() {
      if (pPKBBEKFPIACase_ == 11) {
        pPKBBEKFPIACase_ = 0;
        pPKBBEKFPIA_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * <code>float time = 12;</code>
     * @return Whether the time field is set.
     */
    public boolean hasTime() {
      return pPKBBEKFPIACase_ == 12;
    }
    /**
     * <code>float time = 12;</code>
     * @return The time.
     */
    public float getTime() {
      if (pPKBBEKFPIACase_ == 12) {
        return (java.lang.Float) pPKBBEKFPIA_;
      }
      return 0F;
    }
    /**
     * <code>float time = 12;</code>
     * @param value The time to set.
     * @return This builder for chaining.
     */
    public Builder setTime(float value) {
      pPKBBEKFPIACase_ = 12;
      pPKBBEKFPIA_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>float time = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearTime() {
      if (pPKBBEKFPIACase_ == 12) {
        pPKBBEKFPIACase_ = 0;
        pPKBBEKFPIA_ = null;
        onChanged();
      }
      return this;
    }

    private int pointType_ = 0;
    /**
     * <code>.ALGFPDOAAFA point_type = 24;</code>
     * @return The enum numeric value on the wire for pointType.
     */
    @java.lang.Override public int getPointTypeValue() {
      return pointType_;
    }
    /**
     * <code>.ALGFPDOAAFA point_type = 24;</code>
     * @param value The enum numeric value on the wire for pointType to set.
     * @return This builder for chaining.
     */
    public Builder setPointTypeValue(int value) {
      
      pointType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.ALGFPDOAAFA point_type = 24;</code>
     * @return The pointType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.ALGFPDOAAFA getPointType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.define.ALGFPDOAAFA result = io.grasscutter.net.proto.define.ALGFPDOAAFA.valueOf(pointType_);
      return result == null ? io.grasscutter.net.proto.define.ALGFPDOAAFA.UNRECOGNIZED : result;
    }
    /**
     * <code>.ALGFPDOAAFA point_type = 24;</code>
     * @param value The pointType to set.
     * @return This builder for chaining.
     */
    public Builder setPointType(io.grasscutter.net.proto.define.ALGFPDOAAFA value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      pointType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.ALGFPDOAAFA point_type = 24;</code>
     * @return This builder for chaining.
     */
    public Builder clearPointType() {
      
      pointType_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder> axisSpeedBuilder_;
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     * @return Whether the axisSpeed field is set.
     */
    @java.lang.Override
    public boolean hasAxisSpeed() {
      return cFCAEGJNCDLCase_ == 23;
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     * @return The axisSpeed.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MathQuaternion getAxisSpeed() {
      if (axisSpeedBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 23) {
          return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
        }
        return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
      } else {
        if (cFCAEGJNCDLCase_ == 23) {
          return axisSpeedBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
      }
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    public Builder setAxisSpeed(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (axisSpeedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cFCAEGJNCDL_ = value;
        onChanged();
      } else {
        axisSpeedBuilder_.setMessage(value);
      }
      cFCAEGJNCDLCase_ = 23;
      return this;
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    public Builder setAxisSpeed(
        io.grasscutter.net.proto.define.MathQuaternion.Builder builderForValue) {
      if (axisSpeedBuilder_ == null) {
        cFCAEGJNCDL_ = builderForValue.build();
        onChanged();
      } else {
        axisSpeedBuilder_.setMessage(builderForValue.build());
      }
      cFCAEGJNCDLCase_ = 23;
      return this;
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    public Builder mergeAxisSpeed(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (axisSpeedBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 23 &&
            cFCAEGJNCDL_ != io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance()) {
          cFCAEGJNCDL_ = io.grasscutter.net.proto.define.MathQuaternion.newBuilder((io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_)
              .mergeFrom(value).buildPartial();
        } else {
          cFCAEGJNCDL_ = value;
        }
        onChanged();
      } else {
        if (cFCAEGJNCDLCase_ == 23) {
          axisSpeedBuilder_.mergeFrom(value);
        }
        axisSpeedBuilder_.setMessage(value);
      }
      cFCAEGJNCDLCase_ = 23;
      return this;
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    public Builder clearAxisSpeed() {
      if (axisSpeedBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 23) {
          cFCAEGJNCDLCase_ = 0;
          cFCAEGJNCDL_ = null;
          onChanged();
        }
      } else {
        if (cFCAEGJNCDLCase_ == 23) {
          cFCAEGJNCDLCase_ = 0;
          cFCAEGJNCDL_ = null;
        }
        axisSpeedBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    public io.grasscutter.net.proto.define.MathQuaternion.Builder getAxisSpeedBuilder() {
      return getAxisSpeedFieldBuilder().getBuilder();
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getAxisSpeedOrBuilder() {
      if ((cFCAEGJNCDLCase_ == 23) && (axisSpeedBuilder_ != null)) {
        return axisSpeedBuilder_.getMessageOrBuilder();
      } else {
        if (cFCAEGJNCDLCase_ == 23) {
          return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
        }
        return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
      }
    }
    /**
     * <code>.MathQuaternion axis_speed = 23;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder> 
        getAxisSpeedFieldBuilder() {
      if (axisSpeedBuilder_ == null) {
        if (!(cFCAEGJNCDLCase_ == 23)) {
          cFCAEGJNCDL_ = io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
        }
        axisSpeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder>(
                (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_,
                getParentForChildren(),
                isClean());
        cFCAEGJNCDL_ = null;
      }
      cFCAEGJNCDLCase_ = 23;
      onChanged();;
      return axisSpeedBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> rotationBuilder_;
    /**
     * <code>.Vector rotation = 21;</code>
     * @return Whether the rotation field is set.
     */
    @java.lang.Override
    public boolean hasRotation() {
      return cFCAEGJNCDLCase_ == 21;
    }
    /**
     * <code>.Vector rotation = 21;</code>
     * @return The rotation.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.Vector getRotation() {
      if (rotationBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 21) {
          return (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_;
        }
        return io.grasscutter.net.proto.define.Vector.getDefaultInstance();
      } else {
        if (cFCAEGJNCDLCase_ == 21) {
          return rotationBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.Vector.getDefaultInstance();
      }
    }
    /**
     * <code>.Vector rotation = 21;</code>
     */
    public Builder setRotation(io.grasscutter.net.proto.define.Vector value) {
      if (rotationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cFCAEGJNCDL_ = value;
        onChanged();
      } else {
        rotationBuilder_.setMessage(value);
      }
      cFCAEGJNCDLCase_ = 21;
      return this;
    }
    /**
     * <code>.Vector rotation = 21;</code>
     */
    public Builder setRotation(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (rotationBuilder_ == null) {
        cFCAEGJNCDL_ = builderForValue.build();
        onChanged();
      } else {
        rotationBuilder_.setMessage(builderForValue.build());
      }
      cFCAEGJNCDLCase_ = 21;
      return this;
    }
    /**
     * <code>.Vector rotation = 21;</code>
     */
    public Builder mergeRotation(io.grasscutter.net.proto.define.Vector value) {
      if (rotationBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 21 &&
            cFCAEGJNCDL_ != io.grasscutter.net.proto.define.Vector.getDefaultInstance()) {
          cFCAEGJNCDL_ = io.grasscutter.net.proto.define.Vector.newBuilder((io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_)
              .mergeFrom(value).buildPartial();
        } else {
          cFCAEGJNCDL_ = value;
        }
        onChanged();
      } else {
        if (cFCAEGJNCDLCase_ == 21) {
          rotationBuilder_.mergeFrom(value);
        }
        rotationBuilder_.setMessage(value);
      }
      cFCAEGJNCDLCase_ = 21;
      return this;
    }
    /**
     * <code>.Vector rotation = 21;</code>
     */
    public Builder clearRotation() {
      if (rotationBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 21) {
          cFCAEGJNCDLCase_ = 0;
          cFCAEGJNCDL_ = null;
          onChanged();
        }
      } else {
        if (cFCAEGJNCDLCase_ == 21) {
          cFCAEGJNCDLCase_ = 0;
          cFCAEGJNCDL_ = null;
        }
        rotationBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.Vector rotation = 21;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getRotationBuilder() {
      return getRotationFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector rotation = 21;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.VectorOrBuilder getRotationOrBuilder() {
      if ((cFCAEGJNCDLCase_ == 21) && (rotationBuilder_ != null)) {
        return rotationBuilder_.getMessageOrBuilder();
      } else {
        if (cFCAEGJNCDLCase_ == 21) {
          return (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_;
        }
        return io.grasscutter.net.proto.define.Vector.getDefaultInstance();
      }
    }
    /**
     * <code>.Vector rotation = 21;</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> 
        getRotationFieldBuilder() {
      if (rotationBuilder_ == null) {
        if (!(cFCAEGJNCDLCase_ == 21)) {
          cFCAEGJNCDL_ = io.grasscutter.net.proto.define.Vector.getDefaultInstance();
        }
        rotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                (io.grasscutter.net.proto.define.Vector) cFCAEGJNCDL_,
                getParentForChildren(),
                isClean());
        cFCAEGJNCDL_ = null;
      }
      cFCAEGJNCDLCase_ = 21;
      onChanged();;
      return rotationBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder> rotationSpeedBuilder_;
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     * @return Whether the rotationSpeed field is set.
     */
    @java.lang.Override
    public boolean hasRotationSpeed() {
      return cFCAEGJNCDLCase_ == 22;
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     * @return The rotationSpeed.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MathQuaternion getRotationSpeed() {
      if (rotationSpeedBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 22) {
          return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
        }
        return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
      } else {
        if (cFCAEGJNCDLCase_ == 22) {
          return rotationSpeedBuilder_.getMessage();
        }
        return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
      }
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    public Builder setRotationSpeed(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (rotationSpeedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        cFCAEGJNCDL_ = value;
        onChanged();
      } else {
        rotationSpeedBuilder_.setMessage(value);
      }
      cFCAEGJNCDLCase_ = 22;
      return this;
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    public Builder setRotationSpeed(
        io.grasscutter.net.proto.define.MathQuaternion.Builder builderForValue) {
      if (rotationSpeedBuilder_ == null) {
        cFCAEGJNCDL_ = builderForValue.build();
        onChanged();
      } else {
        rotationSpeedBuilder_.setMessage(builderForValue.build());
      }
      cFCAEGJNCDLCase_ = 22;
      return this;
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    public Builder mergeRotationSpeed(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (rotationSpeedBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 22 &&
            cFCAEGJNCDL_ != io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance()) {
          cFCAEGJNCDL_ = io.grasscutter.net.proto.define.MathQuaternion.newBuilder((io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_)
              .mergeFrom(value).buildPartial();
        } else {
          cFCAEGJNCDL_ = value;
        }
        onChanged();
      } else {
        if (cFCAEGJNCDLCase_ == 22) {
          rotationSpeedBuilder_.mergeFrom(value);
        }
        rotationSpeedBuilder_.setMessage(value);
      }
      cFCAEGJNCDLCase_ = 22;
      return this;
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    public Builder clearRotationSpeed() {
      if (rotationSpeedBuilder_ == null) {
        if (cFCAEGJNCDLCase_ == 22) {
          cFCAEGJNCDLCase_ = 0;
          cFCAEGJNCDL_ = null;
          onChanged();
        }
      } else {
        if (cFCAEGJNCDLCase_ == 22) {
          cFCAEGJNCDLCase_ = 0;
          cFCAEGJNCDL_ = null;
        }
        rotationSpeedBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    public io.grasscutter.net.proto.define.MathQuaternion.Builder getRotationSpeedBuilder() {
      return getRotationSpeedFieldBuilder().getBuilder();
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getRotationSpeedOrBuilder() {
      if ((cFCAEGJNCDLCase_ == 22) && (rotationSpeedBuilder_ != null)) {
        return rotationSpeedBuilder_.getMessageOrBuilder();
      } else {
        if (cFCAEGJNCDLCase_ == 22) {
          return (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_;
        }
        return io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
      }
    }
    /**
     * <code>.MathQuaternion rotation_speed = 22;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder> 
        getRotationSpeedFieldBuilder() {
      if (rotationSpeedBuilder_ == null) {
        if (!(cFCAEGJNCDLCase_ == 22)) {
          cFCAEGJNCDL_ = io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance();
        }
        rotationSpeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder>(
                (io.grasscutter.net.proto.define.MathQuaternion) cFCAEGJNCDL_,
                getParentForChildren(),
                isClean());
        cFCAEGJNCDL_ = null;
      }
      cFCAEGJNCDLCase_ = 22;
      onChanged();;
      return rotationSpeedBuilder_;
    }
    @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:RoutePoint)
  }

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

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

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

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

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

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

}

