Package edu.wpi.first.math.proto
Class Geometry2D.ProtobufRotation2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
edu.wpi.first.math.proto.Geometry2D.ProtobufRotation2d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry2D
public static final class Geometry2D.ProtobufRotation2d extends us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d> implements Cloneable
Protobuf type
ProtobufRotation2d
-
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
ProtobufRotation2d
-
hasValue
optional double value = 1;
- Returns:
- whether the value_ field is set
-
clearValue
optional double value = 1;
- Returns:
- this
-
getValue
optional double value = 1;
- Returns:
- the value_
-
setValue
optional double value = 1;
- Parameters:
value
- the value_ to set- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
mergeFrom
public Geometry2D.ProtobufRotation2d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
- Throws:
IOException
-
mergeFrom
public Geometry2D.ProtobufRotation2d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRotation2d>
-
parseFrom
public static Geometry2D.ProtobufRotation2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry2D.ProtobufRotation2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Geometry2D.ProtobufRotation2d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufRotation2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-