Package edu.wpi.first.math.proto
Class Geometry3D.ProtobufQuaternion
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
edu.wpi.first.math.proto.Geometry3D.ProtobufQuaternion
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry3D
public static final class Geometry3D.ProtobufQuaternion extends us.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion> implements Cloneable
Protobuf type
ProtobufQuaternion
-
Field Summary
-
Method Summary
Modifier and Type Method Description Geometry3D.ProtobufQuaternion
clear()
Geometry3D.ProtobufQuaternion
clearQuick()
Geometry3D.ProtobufQuaternion
clearW()
optional double w = 1;
Geometry3D.ProtobufQuaternion
clearX()
optional double x = 2;
Geometry3D.ProtobufQuaternion
clearY()
optional double y = 3;
Geometry3D.ProtobufQuaternion
clearZ()
optional double z = 4;
Geometry3D.ProtobufQuaternion
clone()
protected int
computeSerializedSize()
Geometry3D.ProtobufQuaternion
copyFrom(Geometry3D.ProtobufQuaternion other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Geometry3D.ProtobufQuaternion>
getFactory()
double
getW()
optional double w = 1;
double
getX()
optional double x = 2;
double
getY()
optional double y = 3;
double
getZ()
optional double z = 4;
boolean
hasW()
optional double w = 1;
boolean
hasX()
optional double x = 2;
boolean
hasY()
optional double y = 3;
boolean
hasZ()
optional double z = 4;
boolean
isEmpty()
Geometry3D.ProtobufQuaternion
mergeFrom(Geometry3D.ProtobufQuaternion other)
Geometry3D.ProtobufQuaternion
mergeFrom(us.hebi.quickbuf.JsonSource input)
Geometry3D.ProtobufQuaternion
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Geometry3D.ProtobufQuaternion
newInstance()
static Geometry3D.ProtobufQuaternion
parseFrom(byte[] data)
static Geometry3D.ProtobufQuaternion
parseFrom(us.hebi.quickbuf.JsonSource input)
static Geometry3D.ProtobufQuaternion
parseFrom(us.hebi.quickbuf.ProtoSource input)
Geometry3D.ProtobufQuaternion
setW(double value)
optional double w = 1;
Geometry3D.ProtobufQuaternion
setX(double value)
optional double x = 2;
Geometry3D.ProtobufQuaternion
setY(double value)
optional double y = 3;
Geometry3D.ProtobufQuaternion
setZ(double value)
optional double z = 4;
void
writeTo(us.hebi.quickbuf.JsonSink output)
void
writeTo(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
ProtobufQuaternion
-
hasW
optional double w = 1;
- Returns:
- whether the w field is set
-
clearW
optional double w = 1;
- Returns:
- this
-
getW
optional double w = 1;
- Returns:
- the w
-
setW
optional double w = 1;
- Parameters:
value
- the w to set- Returns:
- this
-
hasX
optional double x = 2;
- Returns:
- whether the x field is set
-
clearX
optional double x = 2;
- Returns:
- this
-
getX
optional double x = 2;
- Returns:
- the x
-
setX
optional double x = 2;
- Parameters:
value
- the x to set- Returns:
- this
-
hasY
optional double y = 3;
- Returns:
- whether the y field is set
-
clearY
optional double y = 3;
- Returns:
- this
-
getY
optional double y = 3;
- Returns:
- the y
-
setY
optional double y = 3;
- Parameters:
value
- the y to set- Returns:
- this
-
hasZ
optional double z = 4;
- Returns:
- whether the z field is set
-
clearZ
optional double z = 4;
- Returns:
- this
-
getZ
optional double z = 4;
- Returns:
- the z
-
setZ
optional double z = 4;
- Parameters:
value
- the z to set- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
mergeFrom
public Geometry3D.ProtobufQuaternion mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
- Throws:
IOException
-
mergeFrom
public Geometry3D.ProtobufQuaternion mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufQuaternion>
-
parseFrom
public static Geometry3D.ProtobufQuaternion parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry3D.ProtobufQuaternion parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Geometry3D.ProtobufQuaternion parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufQuaternion messages
-
getDescriptor
- Returns:
- this type's descriptor.
-