Class ProtobufRotation2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
org.wpilib.math.proto.ProtobufRotation2d
- All Implemented Interfaces:
Cloneable
public final class ProtobufRotation2d
extends us.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
implements Cloneable
Protobuf type
ProtobufRotation2d-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double value = 1;clone()protected intcopyFrom(ProtobufRotation2d other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufRotation2d> doublegetValue()optional double value = 1;booleanhasValue()optional double value = 1;booleanisEmpty()mergeFrom(ProtobufRotation2d other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufRotation2dstatic ProtobufRotation2dparseFrom(byte[] data) static ProtobufRotation2dparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufRotation2dparseFrom(us.hebi.quickbuf.ProtoSource input) setValue(double value) optional double value = 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
ProtobufRotation2d
-
hasValue
-
clearValue
-
getValue
-
setValue
optional double value = 1;- Parameters:
value- the value_ to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation2d>
-
parseFrom
public static ProtobufRotation2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufRotation2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-