Class ProtobufRectangle2d

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

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

    • newInstance

      public static ProtobufRectangle2d newInstance()
      Returns:
      a new empty instance of ProtobufRectangle2d
    • hasXWidth

      public boolean hasXWidth()
      optional double xWidth = 2;
      Returns:
      whether the xWidth field is set
    • clearXWidth

      public ProtobufRectangle2d clearXWidth()
      optional double xWidth = 2;
      Returns:
      this
    • getXWidth

      public double getXWidth()
      optional double xWidth = 2;
      Returns:
      the xWidth
    • setXWidth

      public ProtobufRectangle2d setXWidth(double value)
      optional double xWidth = 2;
      Parameters:
      value - the xWidth to set
      Returns:
      this
    • hasYWidth

      public boolean hasYWidth()
      optional double yWidth = 3;
      Returns:
      whether the yWidth field is set
    • clearYWidth

      public ProtobufRectangle2d clearYWidth()
      optional double yWidth = 3;
      Returns:
      this
    • getYWidth

      public double getYWidth()
      optional double yWidth = 3;
      Returns:
      the yWidth
    • setYWidth

      public ProtobufRectangle2d setYWidth(double value)
      optional double yWidth = 3;
      Parameters:
      value - the yWidth to set
      Returns:
      this
    • hasCenter

      public boolean hasCenter()
      optional .wpi.proto.ProtobufPose2d center = 1;
      Returns:
      whether the center field is set
    • clearCenter

      public ProtobufRectangle2d clearCenter()
      optional .wpi.proto.ProtobufPose2d center = 1;
      Returns:
      this
    • getCenter

      public ProtobufPose2d getCenter()
      optional .wpi.proto.ProtobufPose2d center = 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 getMutableCenter() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableCenter

      public ProtobufPose2d getMutableCenter()
      optional .wpi.proto.ProtobufPose2d center = 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
    • setCenter

      public ProtobufRectangle2d setCenter(ProtobufPose2d value)
      optional .wpi.proto.ProtobufPose2d center = 1;
      Parameters:
      value - the center to set
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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