Class ProtobufDifferentialDriveWheelPositions
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
org.wpilib.math.kinematics.proto.detail.ProtobufDifferentialDriveWheelPositions
- All Implemented Interfaces:
Cloneable
public final class ProtobufDifferentialDriveWheelPositions
extends us.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
implements Cloneable
Protobuf type
ProtobufDifferentialDriveWheelPositions-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double left = 1;optional double right = 2;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufDifferentialDriveWheelPositions> doublegetLeft()optional double left = 1;doublegetRight()optional double right = 2;booleanhasLeft()optional double left = 1;booleanhasRight()optional double right = 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) setLeft(double value) optional double left = 1;setRight(double value) optional double right = 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
ProtobufDifferentialDriveWheelPositions
-
hasLeft
public boolean hasLeft()optional double left = 1;- Returns:
- whether the left field is set
-
clearLeft
-
getLeft
public double getLeft()optional double left = 1;- Returns:
- the left
-
setLeft
optional double left = 1;- Parameters:
value- the left to set- Returns:
- this
-
hasRight
public boolean hasRight()optional double right = 2;- Returns:
- whether the right field is set
-
clearRight
optional double right = 2;- Returns:
- this
-
getRight
public double getRight()optional double right = 2;- Returns:
- the right
-
setRight
optional double right = 2;- Parameters:
value- the right to set- Returns:
- this
-
copyFrom
public ProtobufDifferentialDriveWheelPositions copyFrom(ProtobufDifferentialDriveWheelPositions other) - Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
mergeFrom
public ProtobufDifferentialDriveWheelPositions mergeFrom(ProtobufDifferentialDriveWheelPositions other) - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
mergeFrom
public ProtobufDifferentialDriveWheelPositions mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
mergeFrom
public ProtobufDifferentialDriveWheelPositions mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufDifferentialDriveWheelPositions>
-
parseFrom
public static ProtobufDifferentialDriveWheelPositions parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufDifferentialDriveWheelPositions parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufDifferentialDriveWheelPositions parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufDifferentialDriveWheelPositions messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-