Class ProtobufTranslation2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
org.wpilib.math.geometry.proto.detail.ProtobufTranslation2d
- All Implemented Interfaces:
Cloneable
public final class ProtobufTranslation2d
extends us.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
implements Cloneable
Protobuf type
ProtobufTranslation2d-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()clearX()optional double x = 1;clearY()optional double y = 2;clone()protected intcopyFrom(ProtobufTranslation2d other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufTranslation2d> doublegetX()optional double x = 1;doublegetY()optional double y = 2;booleanhasX()optional double x = 1;booleanhasY()optional double y = 2;booleanisEmpty()mergeFrom(ProtobufTranslation2d other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufTranslation2dstatic ProtobufTranslation2dparseFrom(byte[] data) static ProtobufTranslation2dparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufTranslation2dparseFrom(us.hebi.quickbuf.ProtoSource input) setX(double value) optional double x = 1;setY(double value) optional double y = 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
ProtobufTranslation2d
-
hasX
public boolean hasX()optional double x = 1;- Returns:
- whether the x field is set
-
clearX
-
getX
public double getX()optional double x = 1;- Returns:
- the x
-
setX
optional double x = 1;- Parameters:
value- the x to set- Returns:
- this
-
hasY
public boolean hasY()optional double y = 2;- Returns:
- whether the y field is set
-
clearY
-
getY
public double getY()optional double y = 2;- Returns:
- the y
-
setY
optional double y = 2;- Parameters:
value- the y to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufTranslation2d>
-
parseFrom
public static ProtobufTranslation2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufTranslation2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTranslation2d messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-