Package edu.wpi.first.math.proto
Class Geometry2D.ProtobufTranslation2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
edu.wpi.first.math.proto.Geometry2D.ProtobufTranslation2d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry2D
public static final class Geometry2D.ProtobufTranslation2d extends us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d> implements Cloneable
Protobuf type
ProtobufTranslation2d
-
Field Summary
-
Method Summary
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
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
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
mergeFrom
public Geometry2D.ProtobufTranslation2d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
- Throws:
IOException
-
mergeFrom
public Geometry2D.ProtobufTranslation2d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTranslation2d>
-
parseFrom
public static Geometry2D.ProtobufTranslation2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry2D.ProtobufTranslation2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Geometry2D.ProtobufTranslation2d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTranslation2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-