Class ProtobufSwerveModuleVelocity
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
org.wpilib.math.proto.ProtobufSwerveModuleVelocity
- All Implemented Interfaces:
Cloneable
public final class ProtobufSwerveModuleVelocity
extends us.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
implements Cloneable
Protobuf type
ProtobufSwerveModuleVelocity-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional .wpi.proto.ProtobufRotation2d angle = 2;optional double velocity = 1;clone()protected intbooleangetAngle()optional .wpi.proto.ProtobufRotation2d angle = 2;This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufSwerveModuleVelocity> optional .wpi.proto.ProtobufRotation2d angle = 2;This method returns the internal storage object and sets the corresponding has state.doubleoptional double velocity = 1;booleanhasAngle()optional .wpi.proto.ProtobufRotation2d angle = 2;booleanoptional double velocity = 1;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufSwerveModuleVelocitystatic ProtobufSwerveModuleVelocityparseFrom(byte[] data) static ProtobufSwerveModuleVelocityparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufSwerveModuleVelocityparseFrom(us.hebi.quickbuf.ProtoSource input) setAngle(ProtobufRotation2d value) optional .wpi.proto.ProtobufRotation2d angle = 2;setVelocity(double value) optional double velocity = 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
ProtobufSwerveModuleVelocity
-
hasVelocity
optional double velocity = 1;- Returns:
- whether the velocity field is set
-
clearVelocity
-
getVelocity
-
setVelocity
optional double velocity = 1;- Parameters:
value- the velocity to set- Returns:
- this
-
hasAngle
optional .wpi.proto.ProtobufRotation2d angle = 2;- Returns:
- whether the angle field is set
-
clearAngle
optional .wpi.proto.ProtobufRotation2d angle = 2;- Returns:
- this
-
getAngle
optional .wpi.proto.ProtobufRotation2d angle = 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. UsegetMutableAngle()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableAngle
optional .wpi.proto.ProtobufRotation2d angle = 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
-
setAngle
optional .wpi.proto.ProtobufRotation2d angle = 2;- Parameters:
value- the angle to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
mergeFrom
public ProtobufSwerveModuleVelocity mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveModuleVelocity>
-
parseFrom
public static ProtobufSwerveModuleVelocity parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufSwerveModuleVelocity parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufSwerveModuleVelocity parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufSwerveModuleVelocity messages
-
getDescriptor
- Returns:
- this type's descriptor.
-