Package edu.wpi.first.math.proto
Class Geometry2D.ProtobufTransform2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
edu.wpi.first.math.proto.Geometry2D.ProtobufTransform2d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry2D
public static final class Geometry2D.ProtobufTransform2d extends us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d> implements Cloneable
Protobuf type
ProtobufTransform2d
-
Field Summary
-
Method Summary
Modifier and Type Method Description Geometry2D.ProtobufTransform2d
clear()
Geometry2D.ProtobufTransform2d
clearQuick()
Geometry2D.ProtobufTransform2d
clearRotation()
optional .wpi.proto.ProtobufRotation2d rotation = 2;
Geometry2D.ProtobufTransform2d
clearTranslation()
optional .wpi.proto.ProtobufTranslation2d translation = 1;
Geometry2D.ProtobufTransform2d
clone()
protected int
computeSerializedSize()
Geometry2D.ProtobufTransform2d
copyFrom(Geometry2D.ProtobufTransform2d other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Geometry2D.ProtobufTransform2d>
getFactory()
Geometry2D.ProtobufRotation2d
getMutableRotation()
optional .wpi.proto.ProtobufRotation2d rotation = 2;
This method returns the internal storage object and sets the corresponding has state.Geometry2D.ProtobufTranslation2d
getMutableTranslation()
optional .wpi.proto.ProtobufTranslation2d translation = 1;
This method returns the internal storage object and sets the corresponding has state.Geometry2D.ProtobufRotation2d
getRotation()
optional .wpi.proto.ProtobufRotation2d rotation = 2;
This method returns the internal storage object without modifying any has state.Geometry2D.ProtobufTranslation2d
getTranslation()
optional .wpi.proto.ProtobufTranslation2d translation = 1;
This method returns the internal storage object without modifying any has state.boolean
hasRotation()
optional .wpi.proto.ProtobufRotation2d rotation = 2;
boolean
hasTranslation()
optional .wpi.proto.ProtobufTranslation2d translation = 1;
boolean
isEmpty()
Geometry2D.ProtobufTransform2d
mergeFrom(Geometry2D.ProtobufTransform2d other)
Geometry2D.ProtobufTransform2d
mergeFrom(us.hebi.quickbuf.JsonSource input)
Geometry2D.ProtobufTransform2d
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Geometry2D.ProtobufTransform2d
newInstance()
static Geometry2D.ProtobufTransform2d
parseFrom(byte[] data)
static Geometry2D.ProtobufTransform2d
parseFrom(us.hebi.quickbuf.JsonSource input)
static Geometry2D.ProtobufTransform2d
parseFrom(us.hebi.quickbuf.ProtoSource input)
Geometry2D.ProtobufTransform2d
setRotation(Geometry2D.ProtobufRotation2d value)
optional .wpi.proto.ProtobufRotation2d rotation = 2;
Geometry2D.ProtobufTransform2d
setTranslation(Geometry2D.ProtobufTranslation2d value)
optional .wpi.proto.ProtobufTranslation2d translation = 1;
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
ProtobufTransform2d
-
hasTranslation
optional .wpi.proto.ProtobufTranslation2d translation = 1;
- Returns:
- whether the translation field is set
-
clearTranslation
optional .wpi.proto.ProtobufTranslation2d translation = 1;
- Returns:
- this
-
getTranslation
optional .wpi.proto.ProtobufTranslation2d translation = 1;
This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableTranslation()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableTranslation
optional .wpi.proto.ProtobufTranslation2d translation = 1;
This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
setTranslation
optional .wpi.proto.ProtobufTranslation2d translation = 1;
- Parameters:
value
- the translation to set- Returns:
- this
-
hasRotation
optional .wpi.proto.ProtobufRotation2d rotation = 2;
- Returns:
- whether the rotation field is set
-
clearRotation
optional .wpi.proto.ProtobufRotation2d rotation = 2;
- Returns:
- this
-
getRotation
optional .wpi.proto.ProtobufRotation2d rotation = 2;
This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableRotation()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableRotation
optional .wpi.proto.ProtobufRotation2d rotation = 2;
This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
setRotation
optional .wpi.proto.ProtobufRotation2d rotation = 2;
- Parameters:
value
- the rotation to set- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
mergeFrom
public Geometry2D.ProtobufTransform2d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
- Throws:
IOException
-
mergeFrom
public Geometry2D.ProtobufTransform2d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufTransform2d>
-
parseFrom
public static Geometry2D.ProtobufTransform2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry2D.ProtobufTransform2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Geometry2D.ProtobufTransform2d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTransform2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-