Package edu.wpi.first.math.proto
Class Spline.ProtobufCubicHermiteSpline
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
edu.wpi.first.math.proto.Spline.ProtobufCubicHermiteSpline
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Spline
public static final class Spline.ProtobufCubicHermiteSpline extends us.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline> implements Cloneable
Protobuf type
ProtobufCubicHermiteSpline
-
Field Summary
-
Method Summary
Modifier and Type Method Description Spline.ProtobufCubicHermiteSpline
addAllXFinal(double... values)
repeated double x_final = 2;
Spline.ProtobufCubicHermiteSpline
addAllXInitial(double... values)
repeated double x_initial = 1;
Spline.ProtobufCubicHermiteSpline
addAllYFinal(double... values)
repeated double y_final = 4;
Spline.ProtobufCubicHermiteSpline
addAllYInitial(double... values)
repeated double y_initial = 3;
Spline.ProtobufCubicHermiteSpline
addXFinal(double value)
repeated double x_final = 2;
Spline.ProtobufCubicHermiteSpline
addXInitial(double value)
repeated double x_initial = 1;
Spline.ProtobufCubicHermiteSpline
addYFinal(double value)
repeated double y_final = 4;
Spline.ProtobufCubicHermiteSpline
addYInitial(double value)
repeated double y_initial = 3;
Spline.ProtobufCubicHermiteSpline
clear()
Spline.ProtobufCubicHermiteSpline
clearQuick()
Spline.ProtobufCubicHermiteSpline
clearXFinal()
repeated double x_final = 2;
Spline.ProtobufCubicHermiteSpline
clearXInitial()
repeated double x_initial = 1;
Spline.ProtobufCubicHermiteSpline
clearYFinal()
repeated double y_final = 4;
Spline.ProtobufCubicHermiteSpline
clearYInitial()
repeated double y_initial = 3;
Spline.ProtobufCubicHermiteSpline
clone()
protected int
computeSerializedSize()
Spline.ProtobufCubicHermiteSpline
copyFrom(Spline.ProtobufCubicHermiteSpline other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Spline.ProtobufCubicHermiteSpline>
getFactory()
us.hebi.quickbuf.RepeatedDouble
getMutableXFinal()
repeated double x_final = 2;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDouble
getMutableXInitial()
repeated double x_initial = 1;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDouble
getMutableYFinal()
repeated double y_final = 4;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDouble
getMutableYInitial()
repeated double y_initial = 3;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedDouble
getXFinal()
repeated double x_final = 2;
This method returns the internal storage object without modifying any has state.us.hebi.quickbuf.RepeatedDouble
getXInitial()
repeated double x_initial = 1;
This method returns the internal storage object without modifying any has state.us.hebi.quickbuf.RepeatedDouble
getYFinal()
repeated double y_final = 4;
This method returns the internal storage object without modifying any has state.us.hebi.quickbuf.RepeatedDouble
getYInitial()
repeated double y_initial = 3;
This method returns the internal storage object without modifying any has state.boolean
hasXFinal()
repeated double x_final = 2;
boolean
hasXInitial()
repeated double x_initial = 1;
boolean
hasYFinal()
repeated double y_final = 4;
boolean
hasYInitial()
repeated double y_initial = 3;
boolean
isEmpty()
Spline.ProtobufCubicHermiteSpline
mergeFrom(Spline.ProtobufCubicHermiteSpline other)
Spline.ProtobufCubicHermiteSpline
mergeFrom(us.hebi.quickbuf.JsonSource input)
Spline.ProtobufCubicHermiteSpline
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Spline.ProtobufCubicHermiteSpline
newInstance()
static Spline.ProtobufCubicHermiteSpline
parseFrom(byte[] data)
static Spline.ProtobufCubicHermiteSpline
parseFrom(us.hebi.quickbuf.JsonSource input)
static Spline.ProtobufCubicHermiteSpline
parseFrom(us.hebi.quickbuf.ProtoSource input)
void
writeTo(us.hebi.quickbuf.JsonSink output)
void
writeTo(us.hebi.quickbuf.ProtoSink output)
Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufCubicHermiteSpline
-
hasXInitial
repeated double x_initial = 1;
- Returns:
- whether the xInitial field is set
-
clearXInitial
repeated double x_initial = 1;
- Returns:
- this
-
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. UsegetMutableXInitial()
if you want to modify it.- Returns:
- internal storage object for reading
-
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
repeated double x_initial = 1;
- Parameters:
value
- the xInitial to add- Returns:
- this
-
addAllXInitial
repeated double x_initial = 1;
- Parameters:
values
- the xInitial to add- Returns:
- this
-
hasXFinal
repeated double x_final = 2;
- Returns:
- whether the xFinal field is set
-
clearXFinal
repeated double x_final = 2;
- Returns:
- this
-
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. UsegetMutableXFinal()
if you want to modify it.- Returns:
- internal storage object for reading
-
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
repeated double x_final = 2;
- Parameters:
value
- the xFinal to add- Returns:
- this
-
addAllXFinal
repeated double x_final = 2;
- Parameters:
values
- the xFinal to add- Returns:
- this
-
hasYInitial
repeated double y_initial = 3;
- Returns:
- whether the yInitial field is set
-
clearYInitial
repeated double y_initial = 3;
- Returns:
- this
-
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. UsegetMutableYInitial()
if you want to modify it.- Returns:
- internal storage object for reading
-
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
repeated double y_initial = 3;
- Parameters:
value
- the yInitial to add- Returns:
- this
-
addAllYInitial
repeated double y_initial = 3;
- Parameters:
values
- the yInitial to add- Returns:
- this
-
hasYFinal
repeated double y_final = 4;
- Returns:
- whether the yFinal field is set
-
clearYFinal
repeated double y_final = 4;
- Returns:
- this
-
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. UsegetMutableYFinal()
if you want to modify it.- Returns:
- internal storage object for reading
-
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
repeated double y_final = 4;
- Parameters:
value
- the yFinal to add- Returns:
- this
-
addAllYFinal
repeated double y_final = 4;
- Parameters:
values
- the yFinal to add- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
mergeFrom
public Spline.ProtobufCubicHermiteSpline mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
- Throws:
IOException
-
mergeFrom
public Spline.ProtobufCubicHermiteSpline mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Spline.ProtobufCubicHermiteSpline>
-
parseFrom
public static Spline.ProtobufCubicHermiteSpline parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Spline.ProtobufCubicHermiteSpline parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Spline.ProtobufCubicHermiteSpline parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufCubicHermiteSpline messages
-
getDescriptor
- Returns:
- this type's descriptor.
-