Class ProtobufCubicHermiteSpline

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

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

    • newInstance

      public static ProtobufCubicHermiteSpline newInstance()
      Returns:
      a new empty instance of ProtobufCubicHermiteSpline
    • hasXInitial

      public boolean hasXInitial()
      repeated double x_initial = 1;
      Returns:
      whether the xInitial field is set
    • clearXInitial

      public ProtobufCubicHermiteSpline clearXInitial()
      repeated double x_initial = 1;
      Returns:
      this
    • getXInitial

      public us.hebi.quickbuf.RepeatedDouble getXInitial()
      repeated double x_initial = 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 getMutableXInitial() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableXInitial

      public us.hebi.quickbuf.RepeatedDouble getMutableXInitial()
      repeated double x_initial = 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
    • addXInitial

      public ProtobufCubicHermiteSpline addXInitial(double value)
      repeated double x_initial = 1;
      Parameters:
      value - the xInitial to add
      Returns:
      this
    • addAllXInitial

      public ProtobufCubicHermiteSpline addAllXInitial(double... values)
      repeated double x_initial = 1;
      Parameters:
      values - the xInitial to add
      Returns:
      this
    • hasXFinal

      public boolean hasXFinal()
      repeated double x_final = 2;
      Returns:
      whether the xFinal field is set
    • clearXFinal

      public ProtobufCubicHermiteSpline clearXFinal()
      repeated double x_final = 2;
      Returns:
      this
    • getXFinal

      public us.hebi.quickbuf.RepeatedDouble getXFinal()
      repeated double x_final = 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 getMutableXFinal() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableXFinal

      public us.hebi.quickbuf.RepeatedDouble getMutableXFinal()
      repeated double x_final = 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
    • addXFinal

      public ProtobufCubicHermiteSpline addXFinal(double value)
      repeated double x_final = 2;
      Parameters:
      value - the xFinal to add
      Returns:
      this
    • addAllXFinal

      public ProtobufCubicHermiteSpline addAllXFinal(double... values)
      repeated double x_final = 2;
      Parameters:
      values - the xFinal to add
      Returns:
      this
    • hasYInitial

      public boolean hasYInitial()
      repeated double y_initial = 3;
      Returns:
      whether the yInitial field is set
    • clearYInitial

      public ProtobufCubicHermiteSpline clearYInitial()
      repeated double y_initial = 3;
      Returns:
      this
    • getYInitial

      public us.hebi.quickbuf.RepeatedDouble getYInitial()
      repeated double y_initial = 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 getMutableYInitial() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableYInitial

      public us.hebi.quickbuf.RepeatedDouble getMutableYInitial()
      repeated double y_initial = 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
    • addYInitial

      public ProtobufCubicHermiteSpline addYInitial(double value)
      repeated double y_initial = 3;
      Parameters:
      value - the yInitial to add
      Returns:
      this
    • addAllYInitial

      public ProtobufCubicHermiteSpline addAllYInitial(double... values)
      repeated double y_initial = 3;
      Parameters:
      values - the yInitial to add
      Returns:
      this
    • hasYFinal

      public boolean hasYFinal()
      repeated double y_final = 4;
      Returns:
      whether the yFinal field is set
    • clearYFinal

      public ProtobufCubicHermiteSpline clearYFinal()
      repeated double y_final = 4;
      Returns:
      this
    • getYFinal

      public us.hebi.quickbuf.RepeatedDouble getYFinal()
      repeated double y_final = 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 getMutableYFinal() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableYFinal

      public us.hebi.quickbuf.RepeatedDouble getMutableYFinal()
      repeated double y_final = 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
    • addYFinal

      public ProtobufCubicHermiteSpline addYFinal(double value)
      repeated double y_final = 4;
      Parameters:
      value - the yFinal to add
      Returns:
      this
    • addAllYFinal

      public ProtobufCubicHermiteSpline addAllYFinal(double... values)
      repeated double y_final = 4;
      Parameters:
      values - the yFinal to add
      Returns:
      this
    • copyFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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