Class ProtobufTwist2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
org.wpilib.math.geometry.proto.detail.ProtobufTwist2d
- All Implemented Interfaces:
Cloneable
public final class ProtobufTwist2d
extends us.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
implements Cloneable
Protobuf type
ProtobufTwist2d-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double dtheta = 3;clearDx()optional double dx = 1;clearDy()optional double dy = 2;clone()protected intcopyFrom(ProtobufTwist2d other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptordoubleoptional double dtheta = 3;doublegetDx()optional double dx = 1;doublegetDy()optional double dy = 2;static us.hebi.quickbuf.MessageFactory<ProtobufTwist2d> booleanoptional double dtheta = 3;booleanhasDx()optional double dx = 1;booleanhasDy()optional double dy = 2;booleanisEmpty()mergeFrom(ProtobufTwist2d other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufTwist2dstatic ProtobufTwist2dparseFrom(byte[] data) static ProtobufTwist2dparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufTwist2dparseFrom(us.hebi.quickbuf.ProtoSource input) setDtheta(double value) optional double dtheta = 3;setDx(double value) optional double dx = 1;setDy(double value) optional double dy = 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
ProtobufTwist2d
-
hasDx
public boolean hasDx()optional double dx = 1;- Returns:
- whether the dx field is set
-
clearDx
-
getDx
public double getDx()optional double dx = 1;- Returns:
- the dx
-
setDx
optional double dx = 1;- Parameters:
value- the dx to set- Returns:
- this
-
hasDy
public boolean hasDy()optional double dy = 2;- Returns:
- whether the dy field is set
-
clearDy
-
getDy
public double getDy()optional double dy = 2;- Returns:
- the dy
-
setDy
optional double dy = 2;- Parameters:
value- the dy to set- Returns:
- this
-
hasDtheta
public boolean hasDtheta()optional double dtheta = 3;- Returns:
- whether the dtheta field is set
-
clearDtheta
-
getDtheta
public double getDtheta()optional double dtheta = 3;- Returns:
- the dtheta
-
setDtheta
optional double dtheta = 3;- Parameters:
value- the dtheta to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufTwist2d>
-
parseFrom
public static ProtobufTwist2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTwist2d messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-