Class ProtobufHolonomicSample
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
org.wpilib.math.trajectory.proto.detail.ProtobufHolonomicSample
- All Implemented Interfaces:
Cloneable
public final class ProtobufHolonomicSample
extends us.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
implements Cloneable
Protobuf type
ProtobufHolonomicSample-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;optional .wpi.proto.ProtobufPose2d pose = 2;optional double time = 1;optional .wpi.proto.ProtobufChassisVelocities velocities = 3;clone()protected intcopyFrom(ProtobufHolonomicSample other) booleanoptional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufHolonomicSample> optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufPose2d pose = 2;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufChassisVelocities velocities = 3;This method returns the internal storage object and sets the corresponding has state.getPose()optional .wpi.proto.ProtobufPose2d pose = 2;This method returns the internal storage object without modifying any has state.doublegetTime()optional double time = 1;optional .wpi.proto.ProtobufChassisVelocities velocities = 3;This method returns the internal storage object without modifying any has state.booleanoptional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;booleanhasPose()optional .wpi.proto.ProtobufPose2d pose = 2;booleanhasTime()optional double time = 1;booleanoptional .wpi.proto.ProtobufChassisVelocities velocities = 3;booleanisEmpty()mergeFrom(ProtobufHolonomicSample other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufHolonomicSamplestatic ProtobufHolonomicSampleparseFrom(byte[] data) static ProtobufHolonomicSampleparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufHolonomicSampleparseFrom(us.hebi.quickbuf.ProtoSource input) optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;setPose(ProtobufPose2d value) optional .wpi.proto.ProtobufPose2d pose = 2;setTime(double value) optional double time = 1;optional .wpi.proto.ProtobufChassisVelocities velocities = 3;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
ProtobufHolonomicSample
-
hasTime
public boolean hasTime()optional double time = 1;- Returns:
- whether the time field is set
-
clearTime
-
getTime
public double getTime()optional double time = 1;- Returns:
- the time
-
setTime
optional double time = 1;- Parameters:
value- the time to set- Returns:
- this
-
hasPose
public boolean hasPose()optional .wpi.proto.ProtobufPose2d pose = 2;- Returns:
- whether the pose field is set
-
clearPose
optional .wpi.proto.ProtobufPose2d pose = 2;- Returns:
- this
-
getPose
optional .wpi.proto.ProtobufPose2d pose = 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. UsegetMutablePose()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutablePose
optional .wpi.proto.ProtobufPose2d pose = 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
-
setPose
optional .wpi.proto.ProtobufPose2d pose = 2;- Parameters:
value- the pose to set- Returns:
- this
-
hasVelocities
public boolean hasVelocities()optional .wpi.proto.ProtobufChassisVelocities velocities = 3;- Returns:
- whether the velocities field is set
-
clearVelocities
optional .wpi.proto.ProtobufChassisVelocities velocities = 3;- Returns:
- this
-
getVelocities
optional .wpi.proto.ProtobufChassisVelocities velocities = 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. UsegetMutableVelocities()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableVelocities
optional .wpi.proto.ProtobufChassisVelocities velocities = 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
-
setVelocities
optional .wpi.proto.ProtobufChassisVelocities velocities = 3;- Parameters:
value- the velocities to set- Returns:
- this
-
hasAccelerations
public boolean hasAccelerations()optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;- Returns:
- whether the accelerations field is set
-
clearAccelerations
optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;- Returns:
- this
-
getAccelerations
optional .wpi.proto.ProtobufChassisAccelerations accelerations = 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. UsegetMutableAccelerations()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableAccelerations
optional .wpi.proto.ProtobufChassisAccelerations accelerations = 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
-
setAccelerations
optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;- Parameters:
value- the accelerations to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
-
parseFrom
public static ProtobufHolonomicSample parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufHolonomicSample parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufHolonomicSample parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufHolonomicSample messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-