Package edu.wpi.first.math.proto
Class Geometry3D.ProtobufTranslation3d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
edu.wpi.first.math.proto.Geometry3D.ProtobufTranslation3d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry3D
public static final class Geometry3D.ProtobufTranslation3d
extends us.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
implements Cloneable
Protobuf type
ProtobufTranslation3d-
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;clearZ()optional double z = 3;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Geometry3D.ProtobufTranslation3d>doublegetX()optional double x = 1;doublegetY()optional double y = 2;doublegetZ()optional double z = 3;booleanhasX()optional double x = 1;booleanhasY()optional double y = 2;booleanhasZ()optional double z = 3;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) setX(double value) optional double x = 1;setY(double value) optional double y = 2;setZ(double value) optional double z = 3;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
ProtobufTranslation3d
-
hasX
optional double x = 1;- Returns:
- whether the x field is set
-
clearX
optional double x = 1;- Returns:
- this
-
getX
optional double x = 1;- Returns:
- the x
-
setX
optional double x = 1;- Parameters:
value- the x to set- Returns:
- this
-
hasY
optional double y = 2;- Returns:
- whether the y field is set
-
clearY
optional double y = 2;- Returns:
- this
-
getY
optional double y = 2;- Returns:
- the y
-
setY
optional double y = 2;- Parameters:
value- the y to set- Returns:
- this
-
hasZ
optional double z = 3;- Returns:
- whether the z field is set
-
clearZ
optional double z = 3;- Returns:
- this
-
getZ
optional double z = 3;- Returns:
- the z
-
setZ
optional double z = 3;- Parameters:
value- the z to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
mergeFrom
public Geometry3D.ProtobufTranslation3d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>- Throws:
IOException
-
mergeFrom
public Geometry3D.ProtobufTranslation3d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufTranslation3d>
-
parseFrom
public static Geometry3D.ProtobufTranslation3d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry3D.ProtobufTranslation3d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Geometry3D.ProtobufTranslation3d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTranslation3d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-