Class ProtobufTwist2d

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

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

    • newInstance

      public static ProtobufTwist2d newInstance()
      Returns:
      a new empty instance of ProtobufTwist2d
    • hasDx

      public boolean hasDx()
      optional double dx = 1;
      Returns:
      whether the dx field is set
    • clearDx

      public ProtobufTwist2d clearDx()
      optional double dx = 1;
      Returns:
      this
    • getDx

      public double getDx()
      optional double dx = 1;
      Returns:
      the dx
    • setDx

      public ProtobufTwist2d setDx(double value)
      optional double dx = 1;
      Parameters:
      value - the dx to set
      Returns:
      this
    • hasDy

      public boolean hasDy()
      optional double dy = 2;
      Returns:
      whether the dy field is set
    • clearDy

      public ProtobufTwist2d clearDy()
      optional double dy = 2;
      Returns:
      this
    • getDy

      public double getDy()
      optional double dy = 2;
      Returns:
      the dy
    • setDy

      public ProtobufTwist2d setDy(double value)
      optional double dy = 2;
      Parameters:
      value - the dy to set
      Returns:
      this
    • hasDtheta

      public boolean hasDtheta()
      optional double dtheta = 3;
      Returns:
      whether the dtheta field is set
    • clearDtheta

      public ProtobufTwist2d clearDtheta()
      optional double dtheta = 3;
      Returns:
      this
    • getDtheta

      public double getDtheta()
      optional double dtheta = 3;
      Returns:
      the dtheta
    • setDtheta

      public ProtobufTwist2d setDtheta(double value)
      optional double dtheta = 3;
      Parameters:
      value - the dtheta to set
      Returns:
      this
    • copyFrom

      public ProtobufTwist2d copyFrom(ProtobufTwist2d other)
      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
    • mergeFrom

      public ProtobufTwist2d mergeFrom(ProtobufTwist2d other)
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
    • clear

      public ProtobufTwist2d clear()
      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
    • clearQuick

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

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

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

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

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

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

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

      public ProtobufTwist2d clone()
      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
    • isEmpty

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

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

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

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

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

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