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
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllStates(Trajectory.ProtobufTrajectoryState... values) repeated .wpi.proto.ProtobufTrajectoryState states = 2;repeated .wpi.proto.ProtobufTrajectoryState states = 2;clear()repeated .wpi.proto.ProtobufTrajectoryState states = 2;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Trajectory.ProtobufTrajectory>us.hebi.quickbuf.RepeatedMessage<Trajectory.ProtobufTrajectoryState>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>repeated .wpi.proto.ProtobufTrajectoryState states = 2;This method returns the internal storage object without modifying any has state.booleanrepeated .wpi.proto.ProtobufTrajectoryState states = 2;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) parseFrom(byte[] data) parseFrom(us.hebi.quickbuf.JsonSource input) parseFrom(us.hebi.quickbuf.ProtoSource input) voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(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:
copyFromin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
mergeFrom
public Trajectory.ProtobufTrajectory mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>- Throws:
IOException
-
mergeFrom
public Trajectory.ProtobufTrajectory mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Trajectory.ProtobufTrajectory>
-
isEmpty
- Overrides:
isEmptyin 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.
-