Class ProtobufMecanumDriveKinematics

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

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

    • newInstance

      public static ProtobufMecanumDriveKinematics newInstance()
      Returns:
      a new empty instance of ProtobufMecanumDriveKinematics
    • hasFrontLeft

      public boolean hasFrontLeft()
      optional .wpi.proto.ProtobufTranslation2d front_left = 1;
      Returns:
      whether the frontLeft field is set
    • clearFrontLeft

      public ProtobufMecanumDriveKinematics clearFrontLeft()
      optional .wpi.proto.ProtobufTranslation2d front_left = 1;
      Returns:
      this
    • getFrontLeft

      public ProtobufTranslation2d getFrontLeft()
      optional .wpi.proto.ProtobufTranslation2d front_left = 1; 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 getMutableFrontLeft() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableFrontLeft

      public ProtobufTranslation2d getMutableFrontLeft()
      optional .wpi.proto.ProtobufTranslation2d front_left = 1; 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
    • setFrontLeft

      optional .wpi.proto.ProtobufTranslation2d front_left = 1;
      Parameters:
      value - the frontLeft to set
      Returns:
      this
    • hasFrontRight

      public boolean hasFrontRight()
      optional .wpi.proto.ProtobufTranslation2d front_right = 2;
      Returns:
      whether the frontRight field is set
    • clearFrontRight

      public ProtobufMecanumDriveKinematics clearFrontRight()
      optional .wpi.proto.ProtobufTranslation2d front_right = 2;
      Returns:
      this
    • getFrontRight

      public ProtobufTranslation2d getFrontRight()
      optional .wpi.proto.ProtobufTranslation2d front_right = 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 getMutableFrontRight() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableFrontRight

      public ProtobufTranslation2d getMutableFrontRight()
      optional .wpi.proto.ProtobufTranslation2d front_right = 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
    • setFrontRight

      optional .wpi.proto.ProtobufTranslation2d front_right = 2;
      Parameters:
      value - the frontRight to set
      Returns:
      this
    • hasRearLeft

      public boolean hasRearLeft()
      optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
      Returns:
      whether the rearLeft field is set
    • clearRearLeft

      public ProtobufMecanumDriveKinematics clearRearLeft()
      optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
      Returns:
      this
    • getRearLeft

      public ProtobufTranslation2d getRearLeft()
      optional .wpi.proto.ProtobufTranslation2d rear_left = 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 getMutableRearLeft() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableRearLeft

      public ProtobufTranslation2d getMutableRearLeft()
      optional .wpi.proto.ProtobufTranslation2d rear_left = 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
    • setRearLeft

      optional .wpi.proto.ProtobufTranslation2d rear_left = 3;
      Parameters:
      value - the rearLeft to set
      Returns:
      this
    • hasRearRight

      public boolean hasRearRight()
      optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
      Returns:
      whether the rearRight field is set
    • clearRearRight

      public ProtobufMecanumDriveKinematics clearRearRight()
      optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
      Returns:
      this
    • getRearRight

      public ProtobufTranslation2d getRearRight()
      optional .wpi.proto.ProtobufTranslation2d rear_right = 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 getMutableRearRight() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableRearRight

      public ProtobufTranslation2d getMutableRearRight()
      optional .wpi.proto.ProtobufTranslation2d rear_right = 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
    • setRearRight

      optional .wpi.proto.ProtobufTranslation2d rear_right = 4;
      Parameters:
      value - the rearRight to set
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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