Class ProtobufTransform2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
org.wpilib.math.proto.ProtobufTransform2d
- All Implemented Interfaces:
Cloneable
public final class ProtobufTransform2d
extends us.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
implements Cloneable
Protobuf type
ProtobufTransform2d-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional .wpi.proto.ProtobufRotation2d rotation = 2;optional .wpi.proto.ProtobufTranslation2d translation = 1;clone()protected intcopyFrom(ProtobufTransform2d other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufTransform2d> optional .wpi.proto.ProtobufRotation2d rotation = 2;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTranslation2d translation = 1;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufRotation2d rotation = 2;This method returns the internal storage object without modifying any has state.optional .wpi.proto.ProtobufTranslation2d translation = 1;This method returns the internal storage object without modifying any has state.booleanoptional .wpi.proto.ProtobufRotation2d rotation = 2;booleanoptional .wpi.proto.ProtobufTranslation2d translation = 1;booleanisEmpty()mergeFrom(ProtobufTransform2d other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufTransform2dstatic ProtobufTransform2dparseFrom(byte[] data) static ProtobufTransform2dparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufTransform2dparseFrom(us.hebi.quickbuf.ProtoSource input) setRotation(ProtobufRotation2d value) optional .wpi.proto.ProtobufRotation2d rotation = 2;optional .wpi.proto.ProtobufTranslation2d translation = 1;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
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:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufTransform2d>
-
parseFrom
public static ProtobufTransform2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTransform2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-