Class ProtobufMecanumDriveKinematics
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
org.wpilib.math.proto.ProtobufMecanumDriveKinematics
- All Implemented Interfaces:
Cloneable
public final class ProtobufMecanumDriveKinematics
extends us.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
implements Cloneable
Protobuf type
ProtobufMecanumDriveKinematics-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional .wpi.proto.ProtobufTranslation2d front_left = 1;optional .wpi.proto.ProtobufTranslation2d front_right = 2;optional .wpi.proto.ProtobufTranslation2d rear_left = 3;optional .wpi.proto.ProtobufTranslation2d rear_right = 4;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufMecanumDriveKinematics> optional .wpi.proto.ProtobufTranslation2d front_left = 1;This method returns the internal storage object without modifying any has state.optional .wpi.proto.ProtobufTranslation2d front_right = 2;This method returns the internal storage object without modifying any has state.optional .wpi.proto.ProtobufTranslation2d front_left = 1;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTranslation2d front_right = 2;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTranslation2d rear_left = 3;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTranslation2d rear_right = 4;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTranslation2d rear_left = 3;This method returns the internal storage object without modifying any has state.optional .wpi.proto.ProtobufTranslation2d rear_right = 4;This method returns the internal storage object without modifying any has state.booleanoptional .wpi.proto.ProtobufTranslation2d front_left = 1;booleanoptional .wpi.proto.ProtobufTranslation2d front_right = 2;booleanoptional .wpi.proto.ProtobufTranslation2d rear_left = 3;booleanoptional .wpi.proto.ProtobufTranslation2d rear_right = 4;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) optional .wpi.proto.ProtobufTranslation2d front_left = 1;optional .wpi.proto.ProtobufTranslation2d front_right = 2;setRearLeft(ProtobufTranslation2d value) optional .wpi.proto.ProtobufTranslation2d rear_left = 3;optional .wpi.proto.ProtobufTranslation2d rear_right = 4;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
ProtobufMecanumDriveKinematics
-
hasFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;- Returns:
- whether the frontLeft field is set
-
clearFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;- Returns:
- this
-
getFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 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. UsegetMutableFrontLeft()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 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
-
setFrontLeft
optional .wpi.proto.ProtobufTranslation2d front_left = 1;- Parameters:
value- the frontLeft to set- Returns:
- this
-
hasFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;- Returns:
- whether the frontRight field is set
-
clearFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;- Returns:
- this
-
getFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 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. UsegetMutableFrontRight()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 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
-
setFrontRight
optional .wpi.proto.ProtobufTranslation2d front_right = 2;- Parameters:
value- the frontRight to set- Returns:
- this
-
hasRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;- Returns:
- whether the rearLeft field is set
-
clearRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;- Returns:
- this
-
getRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;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. UsegetMutableRearLeft()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;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
-
setRearLeft
optional .wpi.proto.ProtobufTranslation2d rear_left = 3;- Parameters:
value- the rearLeft to set- Returns:
- this
-
hasRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;- Returns:
- whether the rearRight field is set
-
clearRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;- Returns:
- this
-
getRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;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. UsegetMutableRearRight()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;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
-
setRearRight
optional .wpi.proto.ProtobufTranslation2d rear_right = 4;- Parameters:
value- the rearRight to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
mergeFrom
public ProtobufMecanumDriveKinematics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>- Throws:
IOException
-
mergeFrom
public ProtobufMecanumDriveKinematics mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufMecanumDriveKinematics>
-
parseFrom
public static ProtobufMecanumDriveKinematics parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static ProtobufMecanumDriveKinematics parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static ProtobufMecanumDriveKinematics parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufMecanumDriveKinematics messages
-
getDescriptor
- Returns:
- this type's descriptor.
-