Class ProtobufSwerveDriveKinematics
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
org.wpilib.math.proto.ProtobufSwerveDriveKinematics
- All Implemented Interfaces:
Cloneable
public final class ProtobufSwerveDriveKinematics
extends us.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
implements Cloneable
Protobuf type
ProtobufSwerveDriveKinematics-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllModules(ProtobufTranslation2d... values) repeated .wpi.proto.ProtobufTranslation2d modules = 1;addModules(ProtobufTranslation2d value) repeated .wpi.proto.ProtobufTranslation2d modules = 1;clear()repeated .wpi.proto.ProtobufTranslation2d modules = 1;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufSwerveDriveKinematics> us.hebi.quickbuf.RepeatedMessage<ProtobufTranslation2d> repeated .wpi.proto.ProtobufTranslation2d modules = 1;This method returns the internal storage object without modifying any has state.us.hebi.quickbuf.RepeatedMessage<ProtobufTranslation2d> repeated .wpi.proto.ProtobufTranslation2d modules = 1;This method returns the internal storage object and sets the corresponding has state.booleanrepeated .wpi.proto.ProtobufTranslation2d modules = 1;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) parseFrom(byte[] data) parseFrom(us.hebi.quickbuf.JsonSource input) parseFrom(us.hebi.quickbuf.ProtoSource input) 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
ProtobufSwerveDriveKinematics
-
hasModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Returns:
- whether the modules field is set
-
clearModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Returns:
- this
-
getModules
repeated .wpi.proto.ProtobufTranslation2d modules = 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. UsegetMutableModules()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableModules
repeated .wpi.proto.ProtobufTranslation2d modules = 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
-
addModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Parameters:
value- the modules to add- Returns:
- this
-
addAllModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Parameters:
values- the modules to add- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
mergeFrom
public ProtobufSwerveDriveKinematics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>- Throws:
IOException
-
mergeFrom
public ProtobufSwerveDriveKinematics mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufSwerveDriveKinematics>
-
parseFrom
public static ProtobufSwerveDriveKinematics parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufSwerveDriveKinematics parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufSwerveDriveKinematics parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufSwerveDriveKinematics messages
-
getDescriptor
- Returns:
- this type's descriptor.
-