Package edu.wpi.first.math.proto
Class Trajectory.ProtobufTrajectory
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
edu.wpi.first.math.proto.Trajectory.ProtobufTrajectory
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Trajectory
public static final class Trajectory.ProtobufTrajectory extends us.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory> implements Cloneable
Protobuf type
ProtobufTrajectory
-
Field Summary
-
Method Summary
Modifier and Type Method Description Trajectory.ProtobufTrajectory
addAllStates(Trajectory.ProtobufTrajectoryState... values)
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
Trajectory.ProtobufTrajectory
addStates(Trajectory.ProtobufTrajectoryState value)
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
Trajectory.ProtobufTrajectory
clear()
Trajectory.ProtobufTrajectory
clearQuick()
Trajectory.ProtobufTrajectory
clearStates()
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
Trajectory.ProtobufTrajectory
clone()
protected int
computeSerializedSize()
Trajectory.ProtobufTrajectory
copyFrom(Trajectory.ProtobufTrajectory other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Trajectory.ProtobufTrajectory>
getFactory()
us.hebi.quickbuf.RepeatedMessage<Trajectory.ProtobufTrajectoryState>
getMutableStates()
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<Trajectory.ProtobufTrajectoryState>
getStates()
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
This method returns the internal storage object without modifying any has state.boolean
hasStates()
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
boolean
isEmpty()
Trajectory.ProtobufTrajectory
mergeFrom(Trajectory.ProtobufTrajectory other)
Trajectory.ProtobufTrajectory
mergeFrom(us.hebi.quickbuf.JsonSource input)
Trajectory.ProtobufTrajectory
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Trajectory.ProtobufTrajectory
newInstance()
static Trajectory.ProtobufTrajectory
parseFrom(byte[] data)
static Trajectory.ProtobufTrajectory
parseFrom(us.hebi.quickbuf.JsonSource input)
static Trajectory.ProtobufTrajectory
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
ProtobufTrajectory
-
hasStates
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
- Returns:
- whether the states field is set
-
clearStates
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
- Returns:
- this
-
getStates
repeated .wpi.proto.ProtobufTrajectoryState states = 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. UsegetMutableStates()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableStates
repeated .wpi.proto.ProtobufTrajectoryState states = 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
-
addStates
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
- Parameters:
value
- the states to add- Returns:
- this
-
addAllStates
repeated .wpi.proto.ProtobufTrajectoryState states = 2;
- Parameters:
values
- the states to add- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
mergeFrom
public Trajectory.ProtobufTrajectory mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
- Throws:
IOException
-
mergeFrom
public Trajectory.ProtobufTrajectory mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
parseFrom
public static Trajectory.ProtobufTrajectory parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Trajectory.ProtobufTrajectory parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Trajectory.ProtobufTrajectory parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTrajectory messages
-
getDescriptor
- Returns:
- this type's descriptor.
-