Class ProtobufDifferentialSample

java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
org.wpilib.math.trajectory.proto.detail.ProtobufDifferentialSample
All Implemented Interfaces:
Cloneable

public final class ProtobufDifferentialSample extends us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample> implements Cloneable
Protobuf type ProtobufDifferentialSample
  • Method Details

    • newInstance

      public static ProtobufDifferentialSample newInstance()
      Returns:
      a new empty instance of ProtobufDifferentialSample
    • hasTime

      public boolean hasTime()
      optional double time = 1;
      Returns:
      whether the time field is set
    • clearTime

      public ProtobufDifferentialSample clearTime()
      optional double time = 1;
      Returns:
      this
    • getTime

      public double getTime()
      optional double time = 1;
      Returns:
      the time
    • setTime

      public ProtobufDifferentialSample setTime(double value)
      optional double time = 1;
      Parameters:
      value - the time to set
      Returns:
      this
    • hasLeftVelocity

      public boolean hasLeftVelocity()
      optional double left_velocity = 5;
      Returns:
      whether the leftVelocity field is set
    • clearLeftVelocity

      public ProtobufDifferentialSample clearLeftVelocity()
      optional double left_velocity = 5;
      Returns:
      this
    • getLeftVelocity

      public double getLeftVelocity()
      optional double left_velocity = 5;
      Returns:
      the leftVelocity
    • setLeftVelocity

      public ProtobufDifferentialSample setLeftVelocity(double value)
      optional double left_velocity = 5;
      Parameters:
      value - the leftVelocity to set
      Returns:
      this
    • hasRightVelocity

      public boolean hasRightVelocity()
      optional double right_velocity = 6;
      Returns:
      whether the rightVelocity field is set
    • clearRightVelocity

      public ProtobufDifferentialSample clearRightVelocity()
      optional double right_velocity = 6;
      Returns:
      this
    • getRightVelocity

      public double getRightVelocity()
      optional double right_velocity = 6;
      Returns:
      the rightVelocity
    • setRightVelocity

      public ProtobufDifferentialSample setRightVelocity(double value)
      optional double right_velocity = 6;
      Parameters:
      value - the rightVelocity to set
      Returns:
      this
    • hasPose

      public boolean hasPose()
      optional .wpi.proto.ProtobufPose2d pose = 2;
      Returns:
      whether the pose field is set
    • clearPose

      public ProtobufDifferentialSample clearPose()
      optional .wpi.proto.ProtobufPose2d pose = 2;
      Returns:
      this
    • getPose

      public ProtobufPose2d getPose()
      optional .wpi.proto.ProtobufPose2d pose = 2; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutablePose() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutablePose

      public ProtobufPose2d getMutablePose()
      optional .wpi.proto.ProtobufPose2d pose = 2; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setPose

      optional .wpi.proto.ProtobufPose2d pose = 2;
      Parameters:
      value - the pose to set
      Returns:
      this
    • hasVelocities

      public boolean hasVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3;
      Returns:
      whether the velocities field is set
    • clearVelocities

      public ProtobufDifferentialSample clearVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3;
      Returns:
      this
    • getVelocities

      public ProtobufChassisVelocities getVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableVelocities() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableVelocities

      public ProtobufChassisVelocities getMutableVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setVelocities

      optional .wpi.proto.ProtobufChassisVelocities velocities = 3;
      Parameters:
      value - the velocities to set
      Returns:
      this
    • hasAccelerations

      public boolean hasAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;
      Returns:
      whether the accelerations field is set
    • clearAccelerations

      public ProtobufDifferentialSample clearAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;
      Returns:
      this
    • getAccelerations

      public ProtobufChassisAccelerations getAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableAccelerations() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableAccelerations

      public ProtobufChassisAccelerations getMutableAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setAccelerations

      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;
      Parameters:
      value - the accelerations to set
      Returns:
      this
    • copyFrom

      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • mergeFrom

      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • clear

      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • clearQuick

      public ProtobufDifferentialSample clearQuick()
      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • mergeFrom

      public ProtobufDifferentialSample mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
      Throws:
      IOException
    • mergeFrom

      public ProtobufDifferentialSample mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
      Throws:
      IOException
    • clone

      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialSample>
    • parseFrom

      public static ProtobufDifferentialSample parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtobufDifferentialSample parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtobufDifferentialSample parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<ProtobufDifferentialSample> getFactory()
      Returns:
      factory for creating ProtobufDifferentialSample messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.