Class ProtobufEllipse2d

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

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

    • newInstance

      public static ProtobufEllipse2d newInstance()
      Returns:
      a new empty instance of ProtobufEllipse2d
    • hasXSemiAxis

      public boolean hasXSemiAxis()
      optional double xSemiAxis = 2;
      Returns:
      whether the xSemiAxis field is set
    • clearXSemiAxis

      public ProtobufEllipse2d clearXSemiAxis()
      optional double xSemiAxis = 2;
      Returns:
      this
    • getXSemiAxis

      public double getXSemiAxis()
      optional double xSemiAxis = 2;
      Returns:
      the xSemiAxis
    • setXSemiAxis

      public ProtobufEllipse2d setXSemiAxis(double value)
      optional double xSemiAxis = 2;
      Parameters:
      value - the xSemiAxis to set
      Returns:
      this
    • hasYSemiAxis

      public boolean hasYSemiAxis()
      optional double ySemiAxis = 3;
      Returns:
      whether the ySemiAxis field is set
    • clearYSemiAxis

      public ProtobufEllipse2d clearYSemiAxis()
      optional double ySemiAxis = 3;
      Returns:
      this
    • getYSemiAxis

      public double getYSemiAxis()
      optional double ySemiAxis = 3;
      Returns:
      the ySemiAxis
    • setYSemiAxis

      public ProtobufEllipse2d setYSemiAxis(double value)
      optional double ySemiAxis = 3;
      Parameters:
      value - the ySemiAxis to set
      Returns:
      this
    • hasCenter

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

      public ProtobufEllipse2d 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 ProtobufEllipse2d setCenter(ProtobufPose2d value)
      optional .wpi.proto.ProtobufPose2d center = 1;
      Parameters:
      value - the center to set
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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