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

package io.grasscutter.net.proto.define;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PlatformInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            routeId_ = input.readUInt32();
            break;
          }
          case 16: {

            startIndex_ = input.readInt32();
            break;
          }
          case 24: {

            startRouteTime_ = input.readUInt32();
            break;
          }
          case 32: {

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

            break;
          }
          case 64: {

            isStarted_ = input.readBool();
            break;
          }
          case 74: {
            io.grasscutter.net.proto.define.MathQuaternion.Builder subBuilder = null;
            if (startRot_ != null) {
              subBuilder = startRot_.toBuilder();
            }
            startRot_ = input.readMessage(io.grasscutter.net.proto.define.MathQuaternion.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startRot_);
              startRot_ = subBuilder.buildPartial();
            }

            break;
          }
          case 80: {

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

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

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

            movingPlatformType_ = rawValue;
            break;
          }
          case 112: {

            isActive_ = input.readBool();
            break;
          }
          case 122: {
            io.grasscutter.net.proto.define.Route.Builder subBuilder = null;
            if (route_ != null) {
              subBuilder = route_.toBuilder();
            }
            route_ = input.readMessage(io.grasscutter.net.proto.define.Route.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(route_);
              route_ = subBuilder.buildPartial();
            }

            break;
          }
          case 128: {

            pointId_ = 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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.define.Define.internal_static_PlatformInfo_descriptor;
  }

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

  public static final int ROT_OFFSET_FIELD_NUMBER = 12;
  private io.grasscutter.net.proto.define.MathQuaternion rotOffset_;
  /**
   * <code>.MathQuaternion rot_offset = 12;</code>
   * @return Whether the rotOffset field is set.
   */
  @java.lang.Override
  public boolean hasRotOffset() {
    return rotOffset_ != null;
  }
  /**
   * <code>.MathQuaternion rot_offset = 12;</code>
   * @return The rotOffset.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternion getRotOffset() {
    return rotOffset_ == null ? io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance() : rotOffset_;
  }
  /**
   * <code>.MathQuaternion rot_offset = 12;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getRotOffsetOrBuilder() {
    return getRotOffset();
  }

  public static final int ROUTE_FIELD_NUMBER = 15;
  private io.grasscutter.net.proto.define.Route route_;
  /**
   * <code>.Route route = 15;</code>
   * @return Whether the route field is set.
   */
  @java.lang.Override
  public boolean hasRoute() {
    return route_ != null;
  }
  /**
   * <code>.Route route = 15;</code>
   * @return The route.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Route getRoute() {
    return route_ == null ? io.grasscutter.net.proto.define.Route.getDefaultInstance() : route_;
  }
  /**
   * <code>.Route route = 15;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.RouteOrBuilder getRouteOrBuilder() {
    return getRoute();
  }

  public static final int POS_OFFSET_FIELD_NUMBER = 11;
  private io.grasscutter.net.proto.define.Vector posOffset_;
  /**
   * <code>.Vector pos_offset = 11;</code>
   * @return Whether the posOffset field is set.
   */
  @java.lang.Override
  public boolean hasPosOffset() {
    return posOffset_ != null;
  }
  /**
   * <code>.Vector pos_offset = 11;</code>
   * @return The posOffset.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getPosOffset() {
    return posOffset_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : posOffset_;
  }
  /**
   * <code>.Vector pos_offset = 11;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getPosOffsetOrBuilder() {
    return getPosOffset();
  }

  public static final int START_ROT_FIELD_NUMBER = 9;
  private io.grasscutter.net.proto.define.MathQuaternion startRot_;
  /**
   * <code>.MathQuaternion start_rot = 9;</code>
   * @return Whether the startRot field is set.
   */
  @java.lang.Override
  public boolean hasStartRot() {
    return startRot_ != null;
  }
  /**
   * <code>.MathQuaternion start_rot = 9;</code>
   * @return The startRot.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternion getStartRot() {
    return startRot_ == null ? io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance() : startRot_;
  }
  /**
   * <code>.MathQuaternion start_rot = 9;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getStartRotOrBuilder() {
    return getStartRot();
  }

  public static final int START_POS_FIELD_NUMBER = 7;
  private io.grasscutter.net.proto.define.Vector startPos_;
  /**
   * <code>.Vector start_pos = 7;</code>
   * @return Whether the startPos field is set.
   */
  @java.lang.Override
  public boolean hasStartPos() {
    return startPos_ != null;
  }
  /**
   * <code>.Vector start_pos = 7;</code>
   * @return The startPos.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getStartPos() {
    return startPos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : startPos_;
  }
  /**
   * <code>.Vector start_pos = 7;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getStartPosOrBuilder() {
    return getStartPos();
  }

  public static final int MOVING_PLATFORM_TYPE_FIELD_NUMBER = 13;
  private int movingPlatformType_;
  /**
   * <code>.MovingPlatformType moving_platform_type = 13;</code>
   * @return The enum numeric value on the wire for movingPlatformType.
   */
  @java.lang.Override public int getMovingPlatformTypeValue() {
    return movingPlatformType_;
  }
  /**
   * <code>.MovingPlatformType moving_platform_type = 13;</code>
   * @return The movingPlatformType.
   */
  @java.lang.Override public io.grasscutter.net.proto.define.MovingPlatformType getMovingPlatformType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.define.MovingPlatformType result = io.grasscutter.net.proto.define.MovingPlatformType.valueOf(movingPlatformType_);
    return result == null ? io.grasscutter.net.proto.define.MovingPlatformType.UNRECOGNIZED : result;
  }

  public static final int POINT_ID_FIELD_NUMBER = 16;
  private int pointId_;
  /**
   * <code>uint32 point_id = 16;</code>
   * @return The pointId.
   */
  @java.lang.Override
  public int getPointId() {
    return pointId_;
  }

  public static final int START_SCENE_TIME_FIELD_NUMBER = 4;
  private int startSceneTime_;
  /**
   * <code>uint32 start_scene_time = 4;</code>
   * @return The startSceneTime.
   */
  @java.lang.Override
  public int getStartSceneTime() {
    return startSceneTime_;
  }

  public static final int ROUTE_ID_FIELD_NUMBER = 1;
  private int routeId_;
  /**
   * <code>uint32 route_id = 1;</code>
   * @return The routeId.
   */
  @java.lang.Override
  public int getRouteId() {
    return routeId_;
  }

  public static final int IS_STARTED_FIELD_NUMBER = 8;
  private boolean isStarted_;
  /**
   * <code>bool is_started = 8;</code>
   * @return The isStarted.
   */
  @java.lang.Override
  public boolean getIsStarted() {
    return isStarted_;
  }

  public static final int IS_ACTIVE_FIELD_NUMBER = 14;
  private boolean isActive_;
  /**
   * <code>bool is_active = 14;</code>
   * @return The isActive.
   */
  @java.lang.Override
  public boolean getIsActive() {
    return isActive_;
  }

  public static final int START_ROUTE_TIME_FIELD_NUMBER = 3;
  private int startRouteTime_;
  /**
   * <code>uint32 start_route_time = 3;</code>
   * @return The startRouteTime.
   */
  @java.lang.Override
  public int getStartRouteTime() {
    return startRouteTime_;
  }

  public static final int START_INDEX_FIELD_NUMBER = 2;
  private int startIndex_;
  /**
   * <code>int32 start_index = 2;</code>
   * @return The startIndex.
   */
  @java.lang.Override
  public int getStartIndex() {
    return startIndex_;
  }

  public static final int STOP_SCENE_TIME_FIELD_NUMBER = 10;
  private int stopSceneTime_;
  /**
   * <code>uint32 stop_scene_time = 10;</code>
   * @return The stopSceneTime.
   */
  @java.lang.Override
  public int getStopSceneTime() {
    return stopSceneTime_;
  }

  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 (routeId_ != 0) {
      output.writeUInt32(1, routeId_);
    }
    if (startIndex_ != 0) {
      output.writeInt32(2, startIndex_);
    }
    if (startRouteTime_ != 0) {
      output.writeUInt32(3, startRouteTime_);
    }
    if (startSceneTime_ != 0) {
      output.writeUInt32(4, startSceneTime_);
    }
    if (startPos_ != null) {
      output.writeMessage(7, getStartPos());
    }
    if (isStarted_ != false) {
      output.writeBool(8, isStarted_);
    }
    if (startRot_ != null) {
      output.writeMessage(9, getStartRot());
    }
    if (stopSceneTime_ != 0) {
      output.writeUInt32(10, stopSceneTime_);
    }
    if (posOffset_ != null) {
      output.writeMessage(11, getPosOffset());
    }
    if (rotOffset_ != null) {
      output.writeMessage(12, getRotOffset());
    }
    if (movingPlatformType_ != io.grasscutter.net.proto.define.MovingPlatformType.MovingPlatformType_MOVING_PLATFORM_NONE.getNumber()) {
      output.writeEnum(13, movingPlatformType_);
    }
    if (isActive_ != false) {
      output.writeBool(14, isActive_);
    }
    if (route_ != null) {
      output.writeMessage(15, getRoute());
    }
    if (pointId_ != 0) {
      output.writeUInt32(16, pointId_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (routeId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, routeId_);
    }
    if (startIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, startIndex_);
    }
    if (startRouteTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, startRouteTime_);
    }
    if (startSceneTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(4, startSceneTime_);
    }
    if (startPos_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getStartPos());
    }
    if (isStarted_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(8, isStarted_);
    }
    if (startRot_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(9, getStartRot());
    }
    if (stopSceneTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(10, stopSceneTime_);
    }
    if (posOffset_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, getPosOffset());
    }
    if (rotOffset_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, getRotOffset());
    }
    if (movingPlatformType_ != io.grasscutter.net.proto.define.MovingPlatformType.MovingPlatformType_MOVING_PLATFORM_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(13, movingPlatformType_);
    }
    if (isActive_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(14, isActive_);
    }
    if (route_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(15, getRoute());
    }
    if (pointId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(16, pointId_);
    }
    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.PlatformInfo)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.PlatformInfo other = (io.grasscutter.net.proto.define.PlatformInfo) obj;

    if (hasRotOffset() != other.hasRotOffset()) return false;
    if (hasRotOffset()) {
      if (!getRotOffset()
          .equals(other.getRotOffset())) return false;
    }
    if (hasRoute() != other.hasRoute()) return false;
    if (hasRoute()) {
      if (!getRoute()
          .equals(other.getRoute())) return false;
    }
    if (hasPosOffset() != other.hasPosOffset()) return false;
    if (hasPosOffset()) {
      if (!getPosOffset()
          .equals(other.getPosOffset())) return false;
    }
    if (hasStartRot() != other.hasStartRot()) return false;
    if (hasStartRot()) {
      if (!getStartRot()
          .equals(other.getStartRot())) return false;
    }
    if (hasStartPos() != other.hasStartPos()) return false;
    if (hasStartPos()) {
      if (!getStartPos()
          .equals(other.getStartPos())) return false;
    }
    if (movingPlatformType_ != other.movingPlatformType_) return false;
    if (getPointId()
        != other.getPointId()) return false;
    if (getStartSceneTime()
        != other.getStartSceneTime()) return false;
    if (getRouteId()
        != other.getRouteId()) return false;
    if (getIsStarted()
        != other.getIsStarted()) return false;
    if (getIsActive()
        != other.getIsActive()) return false;
    if (getStartRouteTime()
        != other.getStartRouteTime()) return false;
    if (getStartIndex()
        != other.getStartIndex()) return false;
    if (getStopSceneTime()
        != other.getStopSceneTime()) 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 (hasRotOffset()) {
      hash = (37 * hash) + ROT_OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + getRotOffset().hashCode();
    }
    if (hasRoute()) {
      hash = (37 * hash) + ROUTE_FIELD_NUMBER;
      hash = (53 * hash) + getRoute().hashCode();
    }
    if (hasPosOffset()) {
      hash = (37 * hash) + POS_OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + getPosOffset().hashCode();
    }
    if (hasStartRot()) {
      hash = (37 * hash) + START_ROT_FIELD_NUMBER;
      hash = (53 * hash) + getStartRot().hashCode();
    }
    if (hasStartPos()) {
      hash = (37 * hash) + START_POS_FIELD_NUMBER;
      hash = (53 * hash) + getStartPos().hashCode();
    }
    hash = (37 * hash) + MOVING_PLATFORM_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + movingPlatformType_;
    hash = (37 * hash) + POINT_ID_FIELD_NUMBER;
    hash = (53 * hash) + getPointId();
    hash = (37 * hash) + START_SCENE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartSceneTime();
    hash = (37 * hash) + ROUTE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRouteId();
    hash = (37 * hash) + IS_STARTED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsStarted());
    hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsActive());
    hash = (37 * hash) + START_ROUTE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartRouteTime();
    hash = (37 * hash) + START_INDEX_FIELD_NUMBER;
    hash = (53 * hash) + getStartIndex();
    hash = (37 * hash) + STOP_SCENE_TIME_FIELD_NUMBER;
    hash = (53 * hash) + getStopSceneTime();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using io.grasscutter.net.proto.define.PlatformInfo.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 (rotOffsetBuilder_ == null) {
        rotOffset_ = null;
      } else {
        rotOffset_ = null;
        rotOffsetBuilder_ = null;
      }
      if (routeBuilder_ == null) {
        route_ = null;
      } else {
        route_ = null;
        routeBuilder_ = null;
      }
      if (posOffsetBuilder_ == null) {
        posOffset_ = null;
      } else {
        posOffset_ = null;
        posOffsetBuilder_ = null;
      }
      if (startRotBuilder_ == null) {
        startRot_ = null;
      } else {
        startRot_ = null;
        startRotBuilder_ = null;
      }
      if (startPosBuilder_ == null) {
        startPos_ = null;
      } else {
        startPos_ = null;
        startPosBuilder_ = null;
      }
      movingPlatformType_ = 0;

      pointId_ = 0;

      startSceneTime_ = 0;

      routeId_ = 0;

      isStarted_ = false;

      isActive_ = false;

      startRouteTime_ = 0;

      startIndex_ = 0;

      stopSceneTime_ = 0;

      return this;
    }

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

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.PlatformInfo buildPartial() {
      io.grasscutter.net.proto.define.PlatformInfo result = new io.grasscutter.net.proto.define.PlatformInfo(this);
      if (rotOffsetBuilder_ == null) {
        result.rotOffset_ = rotOffset_;
      } else {
        result.rotOffset_ = rotOffsetBuilder_.build();
      }
      if (routeBuilder_ == null) {
        result.route_ = route_;
      } else {
        result.route_ = routeBuilder_.build();
      }
      if (posOffsetBuilder_ == null) {
        result.posOffset_ = posOffset_;
      } else {
        result.posOffset_ = posOffsetBuilder_.build();
      }
      if (startRotBuilder_ == null) {
        result.startRot_ = startRot_;
      } else {
        result.startRot_ = startRotBuilder_.build();
      }
      if (startPosBuilder_ == null) {
        result.startPos_ = startPos_;
      } else {
        result.startPos_ = startPosBuilder_.build();
      }
      result.movingPlatformType_ = movingPlatformType_;
      result.pointId_ = pointId_;
      result.startSceneTime_ = startSceneTime_;
      result.routeId_ = routeId_;
      result.isStarted_ = isStarted_;
      result.isActive_ = isActive_;
      result.startRouteTime_ = startRouteTime_;
      result.startIndex_ = startIndex_;
      result.stopSceneTime_ = stopSceneTime_;
      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.PlatformInfo) {
        return mergeFrom((io.grasscutter.net.proto.define.PlatformInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.PlatformInfo other) {
      if (other == io.grasscutter.net.proto.define.PlatformInfo.getDefaultInstance()) return this;
      if (other.hasRotOffset()) {
        mergeRotOffset(other.getRotOffset());
      }
      if (other.hasRoute()) {
        mergeRoute(other.getRoute());
      }
      if (other.hasPosOffset()) {
        mergePosOffset(other.getPosOffset());
      }
      if (other.hasStartRot()) {
        mergeStartRot(other.getStartRot());
      }
      if (other.hasStartPos()) {
        mergeStartPos(other.getStartPos());
      }
      if (other.movingPlatformType_ != 0) {
        setMovingPlatformTypeValue(other.getMovingPlatformTypeValue());
      }
      if (other.getPointId() != 0) {
        setPointId(other.getPointId());
      }
      if (other.getStartSceneTime() != 0) {
        setStartSceneTime(other.getStartSceneTime());
      }
      if (other.getRouteId() != 0) {
        setRouteId(other.getRouteId());
      }
      if (other.getIsStarted() != false) {
        setIsStarted(other.getIsStarted());
      }
      if (other.getIsActive() != false) {
        setIsActive(other.getIsActive());
      }
      if (other.getStartRouteTime() != 0) {
        setStartRouteTime(other.getStartRouteTime());
      }
      if (other.getStartIndex() != 0) {
        setStartIndex(other.getStartIndex());
      }
      if (other.getStopSceneTime() != 0) {
        setStopSceneTime(other.getStopSceneTime());
      }
      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.PlatformInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.PlatformInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private io.grasscutter.net.proto.define.MathQuaternion rotOffset_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder> rotOffsetBuilder_;
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     * @return Whether the rotOffset field is set.
     */
    public boolean hasRotOffset() {
      return rotOffsetBuilder_ != null || rotOffset_ != null;
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     * @return The rotOffset.
     */
    public io.grasscutter.net.proto.define.MathQuaternion getRotOffset() {
      if (rotOffsetBuilder_ == null) {
        return rotOffset_ == null ? io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance() : rotOffset_;
      } else {
        return rotOffsetBuilder_.getMessage();
      }
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     */
    public Builder setRotOffset(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (rotOffsetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        rotOffset_ = value;
        onChanged();
      } else {
        rotOffsetBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     */
    public Builder setRotOffset(
        io.grasscutter.net.proto.define.MathQuaternion.Builder builderForValue) {
      if (rotOffsetBuilder_ == null) {
        rotOffset_ = builderForValue.build();
        onChanged();
      } else {
        rotOffsetBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     */
    public Builder mergeRotOffset(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (rotOffsetBuilder_ == null) {
        if (rotOffset_ != null) {
          rotOffset_ =
            io.grasscutter.net.proto.define.MathQuaternion.newBuilder(rotOffset_).mergeFrom(value).buildPartial();
        } else {
          rotOffset_ = value;
        }
        onChanged();
      } else {
        rotOffsetBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     */
    public Builder clearRotOffset() {
      if (rotOffsetBuilder_ == null) {
        rotOffset_ = null;
        onChanged();
      } else {
        rotOffset_ = null;
        rotOffsetBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     */
    public io.grasscutter.net.proto.define.MathQuaternion.Builder getRotOffsetBuilder() {
      
      onChanged();
      return getRotOffsetFieldBuilder().getBuilder();
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</code>
     */
    public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getRotOffsetOrBuilder() {
      if (rotOffsetBuilder_ != null) {
        return rotOffsetBuilder_.getMessageOrBuilder();
      } else {
        return rotOffset_ == null ?
            io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance() : rotOffset_;
      }
    }
    /**
     * <code>.MathQuaternion rot_offset = 12;</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> 
        getRotOffsetFieldBuilder() {
      if (rotOffsetBuilder_ == null) {
        rotOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder>(
                getRotOffset(),
                getParentForChildren(),
                isClean());
        rotOffset_ = null;
      }
      return rotOffsetBuilder_;
    }

    private io.grasscutter.net.proto.define.Route route_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Route, io.grasscutter.net.proto.define.Route.Builder, io.grasscutter.net.proto.define.RouteOrBuilder> routeBuilder_;
    /**
     * <code>.Route route = 15;</code>
     * @return Whether the route field is set.
     */
    public boolean hasRoute() {
      return routeBuilder_ != null || route_ != null;
    }
    /**
     * <code>.Route route = 15;</code>
     * @return The route.
     */
    public io.grasscutter.net.proto.define.Route getRoute() {
      if (routeBuilder_ == null) {
        return route_ == null ? io.grasscutter.net.proto.define.Route.getDefaultInstance() : route_;
      } else {
        return routeBuilder_.getMessage();
      }
    }
    /**
     * <code>.Route route = 15;</code>
     */
    public Builder setRoute(io.grasscutter.net.proto.define.Route value) {
      if (routeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        route_ = value;
        onChanged();
      } else {
        routeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Route route = 15;</code>
     */
    public Builder setRoute(
        io.grasscutter.net.proto.define.Route.Builder builderForValue) {
      if (routeBuilder_ == null) {
        route_ = builderForValue.build();
        onChanged();
      } else {
        routeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.Route route = 15;</code>
     */
    public Builder mergeRoute(io.grasscutter.net.proto.define.Route value) {
      if (routeBuilder_ == null) {
        if (route_ != null) {
          route_ =
            io.grasscutter.net.proto.define.Route.newBuilder(route_).mergeFrom(value).buildPartial();
        } else {
          route_ = value;
        }
        onChanged();
      } else {
        routeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.Route route = 15;</code>
     */
    public Builder clearRoute() {
      if (routeBuilder_ == null) {
        route_ = null;
        onChanged();
      } else {
        route_ = null;
        routeBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Route route = 15;</code>
     */
    public io.grasscutter.net.proto.define.Route.Builder getRouteBuilder() {
      
      onChanged();
      return getRouteFieldBuilder().getBuilder();
    }
    /**
     * <code>.Route route = 15;</code>
     */
    public io.grasscutter.net.proto.define.RouteOrBuilder getRouteOrBuilder() {
      if (routeBuilder_ != null) {
        return routeBuilder_.getMessageOrBuilder();
      } else {
        return route_ == null ?
            io.grasscutter.net.proto.define.Route.getDefaultInstance() : route_;
      }
    }
    /**
     * <code>.Route route = 15;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Route, io.grasscutter.net.proto.define.Route.Builder, io.grasscutter.net.proto.define.RouteOrBuilder> 
        getRouteFieldBuilder() {
      if (routeBuilder_ == null) {
        routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Route, io.grasscutter.net.proto.define.Route.Builder, io.grasscutter.net.proto.define.RouteOrBuilder>(
                getRoute(),
                getParentForChildren(),
                isClean());
        route_ = null;
      }
      return routeBuilder_;
    }

    private io.grasscutter.net.proto.define.Vector posOffset_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> posOffsetBuilder_;
    /**
     * <code>.Vector pos_offset = 11;</code>
     * @return Whether the posOffset field is set.
     */
    public boolean hasPosOffset() {
      return posOffsetBuilder_ != null || posOffset_ != null;
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     * @return The posOffset.
     */
    public io.grasscutter.net.proto.define.Vector getPosOffset() {
      if (posOffsetBuilder_ == null) {
        return posOffset_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : posOffset_;
      } else {
        return posOffsetBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     */
    public Builder setPosOffset(io.grasscutter.net.proto.define.Vector value) {
      if (posOffsetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        posOffset_ = value;
        onChanged();
      } else {
        posOffsetBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     */
    public Builder setPosOffset(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (posOffsetBuilder_ == null) {
        posOffset_ = builderForValue.build();
        onChanged();
      } else {
        posOffsetBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     */
    public Builder mergePosOffset(io.grasscutter.net.proto.define.Vector value) {
      if (posOffsetBuilder_ == null) {
        if (posOffset_ != null) {
          posOffset_ =
            io.grasscutter.net.proto.define.Vector.newBuilder(posOffset_).mergeFrom(value).buildPartial();
        } else {
          posOffset_ = value;
        }
        onChanged();
      } else {
        posOffsetBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     */
    public Builder clearPosOffset() {
      if (posOffsetBuilder_ == null) {
        posOffset_ = null;
        onChanged();
      } else {
        posOffset_ = null;
        posOffsetBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getPosOffsetBuilder() {
      
      onChanged();
      return getPosOffsetFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector pos_offset = 11;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getPosOffsetOrBuilder() {
      if (posOffsetBuilder_ != null) {
        return posOffsetBuilder_.getMessageOrBuilder();
      } else {
        return posOffset_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : posOffset_;
      }
    }
    /**
     * <code>.Vector pos_offset = 11;</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> 
        getPosOffsetFieldBuilder() {
      if (posOffsetBuilder_ == null) {
        posOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getPosOffset(),
                getParentForChildren(),
                isClean());
        posOffset_ = null;
      }
      return posOffsetBuilder_;
    }

    private io.grasscutter.net.proto.define.MathQuaternion startRot_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder> startRotBuilder_;
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     * @return Whether the startRot field is set.
     */
    public boolean hasStartRot() {
      return startRotBuilder_ != null || startRot_ != null;
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     * @return The startRot.
     */
    public io.grasscutter.net.proto.define.MathQuaternion getStartRot() {
      if (startRotBuilder_ == null) {
        return startRot_ == null ? io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance() : startRot_;
      } else {
        return startRotBuilder_.getMessage();
      }
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     */
    public Builder setStartRot(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (startRotBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startRot_ = value;
        onChanged();
      } else {
        startRotBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     */
    public Builder setStartRot(
        io.grasscutter.net.proto.define.MathQuaternion.Builder builderForValue) {
      if (startRotBuilder_ == null) {
        startRot_ = builderForValue.build();
        onChanged();
      } else {
        startRotBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     */
    public Builder mergeStartRot(io.grasscutter.net.proto.define.MathQuaternion value) {
      if (startRotBuilder_ == null) {
        if (startRot_ != null) {
          startRot_ =
            io.grasscutter.net.proto.define.MathQuaternion.newBuilder(startRot_).mergeFrom(value).buildPartial();
        } else {
          startRot_ = value;
        }
        onChanged();
      } else {
        startRotBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     */
    public Builder clearStartRot() {
      if (startRotBuilder_ == null) {
        startRot_ = null;
        onChanged();
      } else {
        startRot_ = null;
        startRotBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     */
    public io.grasscutter.net.proto.define.MathQuaternion.Builder getStartRotBuilder() {
      
      onChanged();
      return getStartRotFieldBuilder().getBuilder();
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</code>
     */
    public io.grasscutter.net.proto.define.MathQuaternionOrBuilder getStartRotOrBuilder() {
      if (startRotBuilder_ != null) {
        return startRotBuilder_.getMessageOrBuilder();
      } else {
        return startRot_ == null ?
            io.grasscutter.net.proto.define.MathQuaternion.getDefaultInstance() : startRot_;
      }
    }
    /**
     * <code>.MathQuaternion start_rot = 9;</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> 
        getStartRotFieldBuilder() {
      if (startRotBuilder_ == null) {
        startRotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.MathQuaternion, io.grasscutter.net.proto.define.MathQuaternion.Builder, io.grasscutter.net.proto.define.MathQuaternionOrBuilder>(
                getStartRot(),
                getParentForChildren(),
                isClean());
        startRot_ = null;
      }
      return startRotBuilder_;
    }

    private io.grasscutter.net.proto.define.Vector startPos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> startPosBuilder_;
    /**
     * <code>.Vector start_pos = 7;</code>
     * @return Whether the startPos field is set.
     */
    public boolean hasStartPos() {
      return startPosBuilder_ != null || startPos_ != null;
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     * @return The startPos.
     */
    public io.grasscutter.net.proto.define.Vector getStartPos() {
      if (startPosBuilder_ == null) {
        return startPos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : startPos_;
      } else {
        return startPosBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     */
    public Builder setStartPos(io.grasscutter.net.proto.define.Vector value) {
      if (startPosBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startPos_ = value;
        onChanged();
      } else {
        startPosBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     */
    public Builder setStartPos(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (startPosBuilder_ == null) {
        startPos_ = builderForValue.build();
        onChanged();
      } else {
        startPosBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     */
    public Builder mergeStartPos(io.grasscutter.net.proto.define.Vector value) {
      if (startPosBuilder_ == null) {
        if (startPos_ != null) {
          startPos_ =
            io.grasscutter.net.proto.define.Vector.newBuilder(startPos_).mergeFrom(value).buildPartial();
        } else {
          startPos_ = value;
        }
        onChanged();
      } else {
        startPosBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     */
    public Builder clearStartPos() {
      if (startPosBuilder_ == null) {
        startPos_ = null;
        onChanged();
      } else {
        startPos_ = null;
        startPosBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getStartPosBuilder() {
      
      onChanged();
      return getStartPosFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector start_pos = 7;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getStartPosOrBuilder() {
      if (startPosBuilder_ != null) {
        return startPosBuilder_.getMessageOrBuilder();
      } else {
        return startPos_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : startPos_;
      }
    }
    /**
     * <code>.Vector start_pos = 7;</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> 
        getStartPosFieldBuilder() {
      if (startPosBuilder_ == null) {
        startPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getStartPos(),
                getParentForChildren(),
                isClean());
        startPos_ = null;
      }
      return startPosBuilder_;
    }

    private int movingPlatformType_ = 0;
    /**
     * <code>.MovingPlatformType moving_platform_type = 13;</code>
     * @return The enum numeric value on the wire for movingPlatformType.
     */
    @java.lang.Override public int getMovingPlatformTypeValue() {
      return movingPlatformType_;
    }
    /**
     * <code>.MovingPlatformType moving_platform_type = 13;</code>
     * @param value The enum numeric value on the wire for movingPlatformType to set.
     * @return This builder for chaining.
     */
    public Builder setMovingPlatformTypeValue(int value) {
      
      movingPlatformType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.MovingPlatformType moving_platform_type = 13;</code>
     * @return The movingPlatformType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.define.MovingPlatformType getMovingPlatformType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.define.MovingPlatformType result = io.grasscutter.net.proto.define.MovingPlatformType.valueOf(movingPlatformType_);
      return result == null ? io.grasscutter.net.proto.define.MovingPlatformType.UNRECOGNIZED : result;
    }
    /**
     * <code>.MovingPlatformType moving_platform_type = 13;</code>
     * @param value The movingPlatformType to set.
     * @return This builder for chaining.
     */
    public Builder setMovingPlatformType(io.grasscutter.net.proto.define.MovingPlatformType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      movingPlatformType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.MovingPlatformType moving_platform_type = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearMovingPlatformType() {
      
      movingPlatformType_ = 0;
      onChanged();
      return this;
    }

    private int pointId_ ;
    /**
     * <code>uint32 point_id = 16;</code>
     * @return The pointId.
     */
    @java.lang.Override
    public int getPointId() {
      return pointId_;
    }
    /**
     * <code>uint32 point_id = 16;</code>
     * @param value The pointId to set.
     * @return This builder for chaining.
     */
    public Builder setPointId(int value) {
      
      pointId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 point_id = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearPointId() {
      
      pointId_ = 0;
      onChanged();
      return this;
    }

    private int startSceneTime_ ;
    /**
     * <code>uint32 start_scene_time = 4;</code>
     * @return The startSceneTime.
     */
    @java.lang.Override
    public int getStartSceneTime() {
      return startSceneTime_;
    }
    /**
     * <code>uint32 start_scene_time = 4;</code>
     * @param value The startSceneTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartSceneTime(int value) {
      
      startSceneTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 start_scene_time = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartSceneTime() {
      
      startSceneTime_ = 0;
      onChanged();
      return this;
    }

    private int routeId_ ;
    /**
     * <code>uint32 route_id = 1;</code>
     * @return The routeId.
     */
    @java.lang.Override
    public int getRouteId() {
      return routeId_;
    }
    /**
     * <code>uint32 route_id = 1;</code>
     * @param value The routeId to set.
     * @return This builder for chaining.
     */
    public Builder setRouteId(int value) {
      
      routeId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 route_id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearRouteId() {
      
      routeId_ = 0;
      onChanged();
      return this;
    }

    private boolean isStarted_ ;
    /**
     * <code>bool is_started = 8;</code>
     * @return The isStarted.
     */
    @java.lang.Override
    public boolean getIsStarted() {
      return isStarted_;
    }
    /**
     * <code>bool is_started = 8;</code>
     * @param value The isStarted to set.
     * @return This builder for chaining.
     */
    public Builder setIsStarted(boolean value) {
      
      isStarted_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_started = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsStarted() {
      
      isStarted_ = false;
      onChanged();
      return this;
    }

    private boolean isActive_ ;
    /**
     * <code>bool is_active = 14;</code>
     * @return The isActive.
     */
    @java.lang.Override
    public boolean getIsActive() {
      return isActive_;
    }
    /**
     * <code>bool is_active = 14;</code>
     * @param value The isActive to set.
     * @return This builder for chaining.
     */
    public Builder setIsActive(boolean value) {
      
      isActive_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_active = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsActive() {
      
      isActive_ = false;
      onChanged();
      return this;
    }

    private int startRouteTime_ ;
    /**
     * <code>uint32 start_route_time = 3;</code>
     * @return The startRouteTime.
     */
    @java.lang.Override
    public int getStartRouteTime() {
      return startRouteTime_;
    }
    /**
     * <code>uint32 start_route_time = 3;</code>
     * @param value The startRouteTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartRouteTime(int value) {
      
      startRouteTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 start_route_time = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartRouteTime() {
      
      startRouteTime_ = 0;
      onChanged();
      return this;
    }

    private int startIndex_ ;
    /**
     * <code>int32 start_index = 2;</code>
     * @return The startIndex.
     */
    @java.lang.Override
    public int getStartIndex() {
      return startIndex_;
    }
    /**
     * <code>int32 start_index = 2;</code>
     * @param value The startIndex to set.
     * @return This builder for chaining.
     */
    public Builder setStartIndex(int value) {
      
      startIndex_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 start_index = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearStartIndex() {
      
      startIndex_ = 0;
      onChanged();
      return this;
    }

    private int stopSceneTime_ ;
    /**
     * <code>uint32 stop_scene_time = 10;</code>
     * @return The stopSceneTime.
     */
    @java.lang.Override
    public int getStopSceneTime() {
      return stopSceneTime_;
    }
    /**
     * <code>uint32 stop_scene_time = 10;</code>
     * @param value The stopSceneTime to set.
     * @return This builder for chaining.
     */
    public Builder setStopSceneTime(int value) {
      
      stopSceneTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 stop_scene_time = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearStopSceneTime() {
      
      stopSceneTime_ = 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:PlatformInfo)
  }

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

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

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

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

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

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

}

