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

package io.grasscutter.net.proto.gadget;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private VehicleInteractRsp(
      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: {

            entityId_ = input.readUInt32();
            break;
          }
          case 16: {
            int rawValue = input.readEnum();

            interactType_ = rawValue;
            break;
          }
          case 32: {

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

            break;
          }
          case 64: {

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

            break;
          }
          case 104: {

            gadgetId_ = input.readUInt32();
            break;
          }
          case 112: {
            int rawValue = input.readEnum();

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

            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.gadget.Gadget.internal_static_VehicleInteractRsp_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.gadget.Gadget.internal_static_VehicleInteractRsp_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.gadget.VehicleInteractRsp.class, io.grasscutter.net.proto.gadget.VehicleInteractRsp.Builder.class);
  }

  public static final int MEMBER_FIELD_NUMBER = 12;
  private io.grasscutter.net.proto.define.VehicleMember member_;
  /**
   * <code>.VehicleMember member = 12;</code>
   * @return Whether the member field is set.
   */
  @java.lang.Override
  public boolean hasMember() {
    return member_ != null;
  }
  /**
   * <code>.VehicleMember member = 12;</code>
   * @return The member.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VehicleMember getMember() {
    return member_ == null ? io.grasscutter.net.proto.define.VehicleMember.getDefaultInstance() : member_;
  }
  /**
   * <code>.VehicleMember member = 12;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VehicleMemberOrBuilder getMemberOrBuilder() {
    return getMember();
  }

  public static final int VEHICLE_POS_FIELD_NUMBER = 15;
  private io.grasscutter.net.proto.define.Vector vehiclePos_;
  /**
   * <code>.Vector vehicle_pos = 15;</code>
   * @return Whether the vehiclePos field is set.
   */
  @java.lang.Override
  public boolean hasVehiclePos() {
    return vehiclePos_ != null;
  }
  /**
   * <code>.Vector vehicle_pos = 15;</code>
   * @return The vehiclePos.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getVehiclePos() {
    return vehiclePos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : vehiclePos_;
  }
  /**
   * <code>.Vector vehicle_pos = 15;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getVehiclePosOrBuilder() {
    return getVehiclePos();
  }

  public static final int VEHICLE_ROT_FIELD_NUMBER = 7;
  private io.grasscutter.net.proto.define.Vector vehicleRot_;
  /**
   * <code>.Vector vehicle_rot = 7;</code>
   * @return Whether the vehicleRot field is set.
   */
  @java.lang.Override
  public boolean hasVehicleRot() {
    return vehicleRot_ != null;
  }
  /**
   * <code>.Vector vehicle_rot = 7;</code>
   * @return The vehicleRot.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.Vector getVehicleRot() {
    return vehicleRot_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : vehicleRot_;
  }
  /**
   * <code>.Vector vehicle_rot = 7;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.VectorOrBuilder getVehicleRotOrBuilder() {
    return getVehicleRot();
  }

  public static final int VEHICLE_TYPE_FIELD_NUMBER = 8;
  private int vehicleType_;
  /**
   * <code>uint32 vehicle_type = 8;</code>
   * @return The vehicleType.
   */
  @java.lang.Override
  public int getVehicleType() {
    return vehicleType_;
  }

  public static final int GADGET_ID_FIELD_NUMBER = 13;
  private int gadgetId_;
  /**
   * <code>uint32 gadget_id = 13;</code>
   * @return The gadgetId.
   */
  @java.lang.Override
  public int getGadgetId() {
    return gadgetId_;
  }

  public static final int INTERACT_TYPE_FIELD_NUMBER = 2;
  private int interactType_;
  /**
   * <code>.VehicleInteractType interact_type = 2;</code>
   * @return The enum numeric value on the wire for interactType.
   */
  @java.lang.Override public int getInteractTypeValue() {
    return interactType_;
  }
  /**
   * <code>.VehicleInteractType interact_type = 2;</code>
   * @return The interactType.
   */
  @java.lang.Override public io.grasscutter.net.proto.gadget.VehicleInteractType getInteractType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.gadget.VehicleInteractType result = io.grasscutter.net.proto.gadget.VehicleInteractType.valueOf(interactType_);
    return result == null ? io.grasscutter.net.proto.gadget.VehicleInteractType.UNRECOGNIZED : result;
  }

  public static final int INTERACT_REASON_FIELD_NUMBER = 14;
  private int interactReason_;
  /**
   * <code>.VehicleInteractReason interact_reason = 14;</code>
   * @return The enum numeric value on the wire for interactReason.
   */
  @java.lang.Override public int getInteractReasonValue() {
    return interactReason_;
  }
  /**
   * <code>.VehicleInteractReason interact_reason = 14;</code>
   * @return The interactReason.
   */
  @java.lang.Override public io.grasscutter.net.proto.gadget.VehicleInteractReason getInteractReason() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.gadget.VehicleInteractReason result = io.grasscutter.net.proto.gadget.VehicleInteractReason.valueOf(interactReason_);
    return result == null ? io.grasscutter.net.proto.gadget.VehicleInteractReason.UNRECOGNIZED : result;
  }

  public static final int RETCODE_FIELD_NUMBER = 4;
  private int retcode_;
  /**
   * <code>int32 retcode = 4;</code>
   * @return The retcode.
   */
  @java.lang.Override
  public int getRetcode() {
    return retcode_;
  }

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

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (entityId_ != 0) {
      output.writeUInt32(1, entityId_);
    }
    if (interactType_ != io.grasscutter.net.proto.gadget.VehicleInteractType.VehicleInteractType_VEHICLE_INTERACT_NONE.getNumber()) {
      output.writeEnum(2, interactType_);
    }
    if (retcode_ != 0) {
      output.writeInt32(4, retcode_);
    }
    if (vehicleRot_ != null) {
      output.writeMessage(7, getVehicleRot());
    }
    if (vehicleType_ != 0) {
      output.writeUInt32(8, vehicleType_);
    }
    if (member_ != null) {
      output.writeMessage(12, getMember());
    }
    if (gadgetId_ != 0) {
      output.writeUInt32(13, gadgetId_);
    }
    if (interactReason_ != io.grasscutter.net.proto.gadget.VehicleInteractReason.VehicleInteractReason_NONE.getNumber()) {
      output.writeEnum(14, interactReason_);
    }
    if (vehiclePos_ != null) {
      output.writeMessage(15, getVehiclePos());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (entityId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, entityId_);
    }
    if (interactType_ != io.grasscutter.net.proto.gadget.VehicleInteractType.VehicleInteractType_VEHICLE_INTERACT_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, interactType_);
    }
    if (retcode_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, retcode_);
    }
    if (vehicleRot_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getVehicleRot());
    }
    if (vehicleType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, vehicleType_);
    }
    if (member_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, getMember());
    }
    if (gadgetId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(13, gadgetId_);
    }
    if (interactReason_ != io.grasscutter.net.proto.gadget.VehicleInteractReason.VehicleInteractReason_NONE.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(14, interactReason_);
    }
    if (vehiclePos_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(15, getVehiclePos());
    }
    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.gadget.VehicleInteractRsp)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.gadget.VehicleInteractRsp other = (io.grasscutter.net.proto.gadget.VehicleInteractRsp) obj;

    if (hasMember() != other.hasMember()) return false;
    if (hasMember()) {
      if (!getMember()
          .equals(other.getMember())) return false;
    }
    if (hasVehiclePos() != other.hasVehiclePos()) return false;
    if (hasVehiclePos()) {
      if (!getVehiclePos()
          .equals(other.getVehiclePos())) return false;
    }
    if (hasVehicleRot() != other.hasVehicleRot()) return false;
    if (hasVehicleRot()) {
      if (!getVehicleRot()
          .equals(other.getVehicleRot())) return false;
    }
    if (getVehicleType()
        != other.getVehicleType()) return false;
    if (getGadgetId()
        != other.getGadgetId()) return false;
    if (interactType_ != other.interactType_) return false;
    if (interactReason_ != other.interactReason_) return false;
    if (getRetcode()
        != other.getRetcode()) return false;
    if (getEntityId()
        != other.getEntityId()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasMember()) {
      hash = (37 * hash) + MEMBER_FIELD_NUMBER;
      hash = (53 * hash) + getMember().hashCode();
    }
    if (hasVehiclePos()) {
      hash = (37 * hash) + VEHICLE_POS_FIELD_NUMBER;
      hash = (53 * hash) + getVehiclePos().hashCode();
    }
    if (hasVehicleRot()) {
      hash = (37 * hash) + VEHICLE_ROT_FIELD_NUMBER;
      hash = (53 * hash) + getVehicleRot().hashCode();
    }
    hash = (37 * hash) + VEHICLE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getVehicleType();
    hash = (37 * hash) + GADGET_ID_FIELD_NUMBER;
    hash = (53 * hash) + getGadgetId();
    hash = (37 * hash) + INTERACT_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + interactType_;
    hash = (37 * hash) + INTERACT_REASON_FIELD_NUMBER;
    hash = (53 * hash) + interactReason_;
    hash = (37 * hash) + RETCODE_FIELD_NUMBER;
    hash = (53 * hash) + getRetcode();
    hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
    hash = (53 * hash) + getEntityId();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp 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.gadget.VehicleInteractRsp parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp 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.gadget.VehicleInteractRsp parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp 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.gadget.VehicleInteractRsp parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp 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.gadget.VehicleInteractRsp parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp 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.gadget.VehicleInteractRsp 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;
  }
  /**
   * <pre>
   * CmdId: 21684
   * </pre>
   *
   * Protobuf type {@code VehicleInteractRsp}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:VehicleInteractRsp)
      io.grasscutter.net.proto.gadget.VehicleInteractRspOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.gadget.Gadget.internal_static_VehicleInteractRsp_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.gadget.Gadget.internal_static_VehicleInteractRsp_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.gadget.VehicleInteractRsp.class, io.grasscutter.net.proto.gadget.VehicleInteractRsp.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.gadget.VehicleInteractRsp.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 (memberBuilder_ == null) {
        member_ = null;
      } else {
        member_ = null;
        memberBuilder_ = null;
      }
      if (vehiclePosBuilder_ == null) {
        vehiclePos_ = null;
      } else {
        vehiclePos_ = null;
        vehiclePosBuilder_ = null;
      }
      if (vehicleRotBuilder_ == null) {
        vehicleRot_ = null;
      } else {
        vehicleRot_ = null;
        vehicleRotBuilder_ = null;
      }
      vehicleType_ = 0;

      gadgetId_ = 0;

      interactType_ = 0;

      interactReason_ = 0;

      retcode_ = 0;

      entityId_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.gadget.Gadget.internal_static_VehicleInteractRsp_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.gadget.VehicleInteractRsp buildPartial() {
      io.grasscutter.net.proto.gadget.VehicleInteractRsp result = new io.grasscutter.net.proto.gadget.VehicleInteractRsp(this);
      if (memberBuilder_ == null) {
        result.member_ = member_;
      } else {
        result.member_ = memberBuilder_.build();
      }
      if (vehiclePosBuilder_ == null) {
        result.vehiclePos_ = vehiclePos_;
      } else {
        result.vehiclePos_ = vehiclePosBuilder_.build();
      }
      if (vehicleRotBuilder_ == null) {
        result.vehicleRot_ = vehicleRot_;
      } else {
        result.vehicleRot_ = vehicleRotBuilder_.build();
      }
      result.vehicleType_ = vehicleType_;
      result.gadgetId_ = gadgetId_;
      result.interactType_ = interactType_;
      result.interactReason_ = interactReason_;
      result.retcode_ = retcode_;
      result.entityId_ = entityId_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(io.grasscutter.net.proto.gadget.VehicleInteractRsp other) {
      if (other == io.grasscutter.net.proto.gadget.VehicleInteractRsp.getDefaultInstance()) return this;
      if (other.hasMember()) {
        mergeMember(other.getMember());
      }
      if (other.hasVehiclePos()) {
        mergeVehiclePos(other.getVehiclePos());
      }
      if (other.hasVehicleRot()) {
        mergeVehicleRot(other.getVehicleRot());
      }
      if (other.getVehicleType() != 0) {
        setVehicleType(other.getVehicleType());
      }
      if (other.getGadgetId() != 0) {
        setGadgetId(other.getGadgetId());
      }
      if (other.interactType_ != 0) {
        setInteractTypeValue(other.getInteractTypeValue());
      }
      if (other.interactReason_ != 0) {
        setInteractReasonValue(other.getInteractReasonValue());
      }
      if (other.getRetcode() != 0) {
        setRetcode(other.getRetcode());
      }
      if (other.getEntityId() != 0) {
        setEntityId(other.getEntityId());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private io.grasscutter.net.proto.define.VehicleMember member_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.VehicleMember, io.grasscutter.net.proto.define.VehicleMember.Builder, io.grasscutter.net.proto.define.VehicleMemberOrBuilder> memberBuilder_;
    /**
     * <code>.VehicleMember member = 12;</code>
     * @return Whether the member field is set.
     */
    public boolean hasMember() {
      return memberBuilder_ != null || member_ != null;
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     * @return The member.
     */
    public io.grasscutter.net.proto.define.VehicleMember getMember() {
      if (memberBuilder_ == null) {
        return member_ == null ? io.grasscutter.net.proto.define.VehicleMember.getDefaultInstance() : member_;
      } else {
        return memberBuilder_.getMessage();
      }
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    public Builder setMember(io.grasscutter.net.proto.define.VehicleMember value) {
      if (memberBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        member_ = value;
        onChanged();
      } else {
        memberBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    public Builder setMember(
        io.grasscutter.net.proto.define.VehicleMember.Builder builderForValue) {
      if (memberBuilder_ == null) {
        member_ = builderForValue.build();
        onChanged();
      } else {
        memberBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    public Builder mergeMember(io.grasscutter.net.proto.define.VehicleMember value) {
      if (memberBuilder_ == null) {
        if (member_ != null) {
          member_ =
            io.grasscutter.net.proto.define.VehicleMember.newBuilder(member_).mergeFrom(value).buildPartial();
        } else {
          member_ = value;
        }
        onChanged();
      } else {
        memberBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    public Builder clearMember() {
      if (memberBuilder_ == null) {
        member_ = null;
        onChanged();
      } else {
        member_ = null;
        memberBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    public io.grasscutter.net.proto.define.VehicleMember.Builder getMemberBuilder() {
      
      onChanged();
      return getMemberFieldBuilder().getBuilder();
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    public io.grasscutter.net.proto.define.VehicleMemberOrBuilder getMemberOrBuilder() {
      if (memberBuilder_ != null) {
        return memberBuilder_.getMessageOrBuilder();
      } else {
        return member_ == null ?
            io.grasscutter.net.proto.define.VehicleMember.getDefaultInstance() : member_;
      }
    }
    /**
     * <code>.VehicleMember member = 12;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.VehicleMember, io.grasscutter.net.proto.define.VehicleMember.Builder, io.grasscutter.net.proto.define.VehicleMemberOrBuilder> 
        getMemberFieldBuilder() {
      if (memberBuilder_ == null) {
        memberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.VehicleMember, io.grasscutter.net.proto.define.VehicleMember.Builder, io.grasscutter.net.proto.define.VehicleMemberOrBuilder>(
                getMember(),
                getParentForChildren(),
                isClean());
        member_ = null;
      }
      return memberBuilder_;
    }

    private io.grasscutter.net.proto.define.Vector vehiclePos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> vehiclePosBuilder_;
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     * @return Whether the vehiclePos field is set.
     */
    public boolean hasVehiclePos() {
      return vehiclePosBuilder_ != null || vehiclePos_ != null;
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     * @return The vehiclePos.
     */
    public io.grasscutter.net.proto.define.Vector getVehiclePos() {
      if (vehiclePosBuilder_ == null) {
        return vehiclePos_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : vehiclePos_;
      } else {
        return vehiclePosBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     */
    public Builder setVehiclePos(io.grasscutter.net.proto.define.Vector value) {
      if (vehiclePosBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        vehiclePos_ = value;
        onChanged();
      } else {
        vehiclePosBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     */
    public Builder setVehiclePos(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (vehiclePosBuilder_ == null) {
        vehiclePos_ = builderForValue.build();
        onChanged();
      } else {
        vehiclePosBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     */
    public Builder mergeVehiclePos(io.grasscutter.net.proto.define.Vector value) {
      if (vehiclePosBuilder_ == null) {
        if (vehiclePos_ != null) {
          vehiclePos_ =
            io.grasscutter.net.proto.define.Vector.newBuilder(vehiclePos_).mergeFrom(value).buildPartial();
        } else {
          vehiclePos_ = value;
        }
        onChanged();
      } else {
        vehiclePosBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     */
    public Builder clearVehiclePos() {
      if (vehiclePosBuilder_ == null) {
        vehiclePos_ = null;
        onChanged();
      } else {
        vehiclePos_ = null;
        vehiclePosBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getVehiclePosBuilder() {
      
      onChanged();
      return getVehiclePosFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector vehicle_pos = 15;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getVehiclePosOrBuilder() {
      if (vehiclePosBuilder_ != null) {
        return vehiclePosBuilder_.getMessageOrBuilder();
      } else {
        return vehiclePos_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : vehiclePos_;
      }
    }
    /**
     * <code>.Vector vehicle_pos = 15;</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> 
        getVehiclePosFieldBuilder() {
      if (vehiclePosBuilder_ == null) {
        vehiclePosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getVehiclePos(),
                getParentForChildren(),
                isClean());
        vehiclePos_ = null;
      }
      return vehiclePosBuilder_;
    }

    private io.grasscutter.net.proto.define.Vector vehicleRot_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder> vehicleRotBuilder_;
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     * @return Whether the vehicleRot field is set.
     */
    public boolean hasVehicleRot() {
      return vehicleRotBuilder_ != null || vehicleRot_ != null;
    }
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     * @return The vehicleRot.
     */
    public io.grasscutter.net.proto.define.Vector getVehicleRot() {
      if (vehicleRotBuilder_ == null) {
        return vehicleRot_ == null ? io.grasscutter.net.proto.define.Vector.getDefaultInstance() : vehicleRot_;
      } else {
        return vehicleRotBuilder_.getMessage();
      }
    }
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     */
    public Builder setVehicleRot(io.grasscutter.net.proto.define.Vector value) {
      if (vehicleRotBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        vehicleRot_ = value;
        onChanged();
      } else {
        vehicleRotBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     */
    public Builder setVehicleRot(
        io.grasscutter.net.proto.define.Vector.Builder builderForValue) {
      if (vehicleRotBuilder_ == null) {
        vehicleRot_ = builderForValue.build();
        onChanged();
      } else {
        vehicleRotBuilder_.setMessage(builderForValue.build());
      }

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

      return this;
    }
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     */
    public Builder clearVehicleRot() {
      if (vehicleRotBuilder_ == null) {
        vehicleRot_ = null;
        onChanged();
      } else {
        vehicleRot_ = null;
        vehicleRotBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     */
    public io.grasscutter.net.proto.define.Vector.Builder getVehicleRotBuilder() {
      
      onChanged();
      return getVehicleRotFieldBuilder().getBuilder();
    }
    /**
     * <code>.Vector vehicle_rot = 7;</code>
     */
    public io.grasscutter.net.proto.define.VectorOrBuilder getVehicleRotOrBuilder() {
      if (vehicleRotBuilder_ != null) {
        return vehicleRotBuilder_.getMessageOrBuilder();
      } else {
        return vehicleRot_ == null ?
            io.grasscutter.net.proto.define.Vector.getDefaultInstance() : vehicleRot_;
      }
    }
    /**
     * <code>.Vector vehicle_rot = 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> 
        getVehicleRotFieldBuilder() {
      if (vehicleRotBuilder_ == null) {
        vehicleRotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.Vector, io.grasscutter.net.proto.define.Vector.Builder, io.grasscutter.net.proto.define.VectorOrBuilder>(
                getVehicleRot(),
                getParentForChildren(),
                isClean());
        vehicleRot_ = null;
      }
      return vehicleRotBuilder_;
    }

    private int vehicleType_ ;
    /**
     * <code>uint32 vehicle_type = 8;</code>
     * @return The vehicleType.
     */
    @java.lang.Override
    public int getVehicleType() {
      return vehicleType_;
    }
    /**
     * <code>uint32 vehicle_type = 8;</code>
     * @param value The vehicleType to set.
     * @return This builder for chaining.
     */
    public Builder setVehicleType(int value) {
      
      vehicleType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 vehicle_type = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearVehicleType() {
      
      vehicleType_ = 0;
      onChanged();
      return this;
    }

    private int gadgetId_ ;
    /**
     * <code>uint32 gadget_id = 13;</code>
     * @return The gadgetId.
     */
    @java.lang.Override
    public int getGadgetId() {
      return gadgetId_;
    }
    /**
     * <code>uint32 gadget_id = 13;</code>
     * @param value The gadgetId to set.
     * @return This builder for chaining.
     */
    public Builder setGadgetId(int value) {
      
      gadgetId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 gadget_id = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearGadgetId() {
      
      gadgetId_ = 0;
      onChanged();
      return this;
    }

    private int interactType_ = 0;
    /**
     * <code>.VehicleInteractType interact_type = 2;</code>
     * @return The enum numeric value on the wire for interactType.
     */
    @java.lang.Override public int getInteractTypeValue() {
      return interactType_;
    }
    /**
     * <code>.VehicleInteractType interact_type = 2;</code>
     * @param value The enum numeric value on the wire for interactType to set.
     * @return This builder for chaining.
     */
    public Builder setInteractTypeValue(int value) {
      
      interactType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.VehicleInteractType interact_type = 2;</code>
     * @return The interactType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.gadget.VehicleInteractType getInteractType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.gadget.VehicleInteractType result = io.grasscutter.net.proto.gadget.VehicleInteractType.valueOf(interactType_);
      return result == null ? io.grasscutter.net.proto.gadget.VehicleInteractType.UNRECOGNIZED : result;
    }
    /**
     * <code>.VehicleInteractType interact_type = 2;</code>
     * @param value The interactType to set.
     * @return This builder for chaining.
     */
    public Builder setInteractType(io.grasscutter.net.proto.gadget.VehicleInteractType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      interactType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.VehicleInteractType interact_type = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearInteractType() {
      
      interactType_ = 0;
      onChanged();
      return this;
    }

    private int interactReason_ = 0;
    /**
     * <code>.VehicleInteractReason interact_reason = 14;</code>
     * @return The enum numeric value on the wire for interactReason.
     */
    @java.lang.Override public int getInteractReasonValue() {
      return interactReason_;
    }
    /**
     * <code>.VehicleInteractReason interact_reason = 14;</code>
     * @param value The enum numeric value on the wire for interactReason to set.
     * @return This builder for chaining.
     */
    public Builder setInteractReasonValue(int value) {
      
      interactReason_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.VehicleInteractReason interact_reason = 14;</code>
     * @return The interactReason.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.gadget.VehicleInteractReason getInteractReason() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.gadget.VehicleInteractReason result = io.grasscutter.net.proto.gadget.VehicleInteractReason.valueOf(interactReason_);
      return result == null ? io.grasscutter.net.proto.gadget.VehicleInteractReason.UNRECOGNIZED : result;
    }
    /**
     * <code>.VehicleInteractReason interact_reason = 14;</code>
     * @param value The interactReason to set.
     * @return This builder for chaining.
     */
    public Builder setInteractReason(io.grasscutter.net.proto.gadget.VehicleInteractReason value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      interactReason_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.VehicleInteractReason interact_reason = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearInteractReason() {
      
      interactReason_ = 0;
      onChanged();
      return this;
    }

    private int retcode_ ;
    /**
     * <code>int32 retcode = 4;</code>
     * @return The retcode.
     */
    @java.lang.Override
    public int getRetcode() {
      return retcode_;
    }
    /**
     * <code>int32 retcode = 4;</code>
     * @param value The retcode to set.
     * @return This builder for chaining.
     */
    public Builder setRetcode(int value) {
      
      retcode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 retcode = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearRetcode() {
      
      retcode_ = 0;
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:VehicleInteractRsp)
  }

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

  public static io.grasscutter.net.proto.gadget.VehicleInteractRsp getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

