Class ProtobufDifferentialTrajectory
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
org.wpilib.math.trajectory.proto.detail.ProtobufDifferentialTrajectory
- All Implemented Interfaces:
Cloneable
public final class ProtobufDifferentialTrajectory
extends us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
implements Cloneable
Protobuf type
ProtobufDifferentialTrajectory-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllSamples(ProtobufDifferentialSample... values) repeated .wpi.proto.ProtobufDifferentialSample samples = 1;repeated .wpi.proto.ProtobufDifferentialSample samples = 1;clear()repeated .wpi.proto.ProtobufDifferentialSample samples = 1;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufDifferentialTrajectory> us.hebi.quickbuf.RepeatedMessage<ProtobufDifferentialSample> repeated .wpi.proto.ProtobufDifferentialSample samples = 1;This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<ProtobufDifferentialSample> repeated .wpi.proto.ProtobufDifferentialSample samples = 1;This method returns the internal storage object without modifying any has state.booleanrepeated .wpi.proto.ProtobufDifferentialSample samples = 1;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
ProtobufDifferentialTrajectory
-
hasSamples
public boolean hasSamples()repeated .wpi.proto.ProtobufDifferentialSample samples = 1;- Returns:
- whether the samples field is set
-
clearSamples
repeated .wpi.proto.ProtobufDifferentialSample samples = 1;- Returns:
- this
-
getSamples
repeated .wpi.proto.ProtobufDifferentialSample samples = 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. UsegetMutableSamples()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableSamples
repeated .wpi.proto.ProtobufDifferentialSample samples = 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
-
addSamples
repeated .wpi.proto.ProtobufDifferentialSample samples = 1;- Parameters:
value- the samples to add- Returns:
- this
-
addAllSamples
repeated .wpi.proto.ProtobufDifferentialSample samples = 1;- Parameters:
values- the samples to add- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
mergeFrom
public ProtobufDifferentialTrajectory mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>- Throws:
IOException
-
mergeFrom
public ProtobufDifferentialTrajectory mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialTrajectory>
-
parseFrom
public static ProtobufDifferentialTrajectory parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufDifferentialTrajectory parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufDifferentialTrajectory parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufDifferentialTrajectory messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-