Class ProtobufChassisVelocities
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
org.wpilib.math.kinematics.proto.detail.ProtobufChassisVelocities
- All Implemented Interfaces:
Cloneable
public final class ProtobufChassisVelocities
extends us.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
implements Cloneable
Protobuf type
ProtobufChassisVelocities-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double omega = 3;clearVx()optional double vx = 1;clearVy()optional double vy = 2;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufChassisVelocities> doublegetOmega()optional double omega = 3;doublegetVx()optional double vx = 1;doublegetVy()optional double vy = 2;booleanhasOmega()optional double omega = 3;booleanhasVx()optional double vx = 1;booleanhasVy()optional double vy = 2;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufChassisVelocitiesstatic ProtobufChassisVelocitiesparseFrom(byte[] data) static ProtobufChassisVelocitiesparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufChassisVelocitiesparseFrom(us.hebi.quickbuf.ProtoSource input) setOmega(double value) optional double omega = 3;setVx(double value) optional double vx = 1;setVy(double value) optional double vy = 2;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
ProtobufChassisVelocities
-
hasVx
public boolean hasVx()optional double vx = 1;- Returns:
- whether the vx field is set
-
clearVx
-
getVx
public double getVx()optional double vx = 1;- Returns:
- the vx
-
setVx
optional double vx = 1;- Parameters:
value- the vx to set- Returns:
- this
-
hasVy
public boolean hasVy()optional double vy = 2;- Returns:
- whether the vy field is set
-
clearVy
-
getVy
public double getVy()optional double vy = 2;- Returns:
- the vy
-
setVy
optional double vy = 2;- Parameters:
value- the vy to set- Returns:
- this
-
hasOmega
public boolean hasOmega()optional double omega = 3;- Returns:
- whether the omega field is set
-
clearOmega
-
getOmega
public double getOmega()optional double omega = 3;- Returns:
- the omega
-
setOmega
optional double omega = 3;- Parameters:
value- the omega to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufChassisVelocities>
-
parseFrom
public static ProtobufChassisVelocities parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufChassisVelocities parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufChassisVelocities parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufChassisVelocities messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-