Class ProtobufTrajectory
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
org.wpilib.math.proto.ProtobufTrajectory
- All Implemented Interfaces:
Cloneable
public final class ProtobufTrajectory
extends us.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
implements Cloneable
Protobuf type
ProtobufTrajectory-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllStates(ProtobufTrajectoryState... values) repeated .wpi.proto.ProtobufTrajectoryState states = 2;addStates(ProtobufTrajectoryState value) repeated .wpi.proto.ProtobufTrajectoryState states = 2;clear()repeated .wpi.proto.ProtobufTrajectoryState states = 2;clone()protected intcopyFrom(ProtobufTrajectory other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufTrajectory> us.hebi.quickbuf.RepeatedMessage<ProtobufTrajectoryState> repeated .wpi.proto.ProtobufTrajectoryState states = 2;This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<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(ProtobufTrajectory other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufTrajectorystatic ProtobufTrajectoryparseFrom(byte[] data) static ProtobufTrajectoryparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufTrajectoryparseFrom(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<ProtobufTrajectory>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufTrajectory>
-
parseFrom
public static ProtobufTrajectory parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTrajectory messages
-
getDescriptor
- Returns:
- this type's descriptor.
-