Class DCMotorProto
java.lang.Object
edu.wpi.first.math.system.plant.proto.DCMotorProto
- All Implemented Interfaces:
Protobuf<DCMotor,Plant.ProtobufDCMotor>
public class DCMotorProto extends Object implements Protobuf<DCMotor,Plant.ProtobufDCMotor>
-
Constructor Summary
Constructors Constructor Description DCMotorProto()
-
Method Summary
Modifier and Type Method Description Plant.ProtobufDCMotor
createMessage()
Creates protobuf message.us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
Gets the protobuf descriptor.Class<DCMotor>
getTypeClass()
Gets the Class object for the stored value.void
pack(Plant.ProtobufDCMotor msg, DCMotor value)
Copies the object contents into a protobuf message.DCMotor
unpack(Plant.ProtobufDCMotor msg)
Deserializes an object from a protobuf message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.util.protobuf.Protobuf
forEachDescriptor, getNested, getTypeString, unpackInto
-
Constructor Details
-
DCMotorProto
public DCMotorProto()
-
-
Method Details
-
getTypeClass
Description copied from interface:Protobuf
Gets the Class object for the stored value.- Specified by:
getTypeClass
in interfaceProtobuf<DCMotor,Plant.ProtobufDCMotor>
- Returns:
- Class
-
getDescriptor
Description copied from interface:Protobuf
Gets the protobuf descriptor.- Specified by:
getDescriptor
in interfaceProtobuf<DCMotor,Plant.ProtobufDCMotor>
- Returns:
- descriptor
-
createMessage
Description copied from interface:Protobuf
Creates protobuf message.- Specified by:
createMessage
in interfaceProtobuf<DCMotor,Plant.ProtobufDCMotor>
- Returns:
- protobuf message
-
unpack
Description copied from interface:Protobuf
Deserializes an object from a protobuf message.- Specified by:
unpack
in interfaceProtobuf<DCMotor,Plant.ProtobufDCMotor>
- Parameters:
msg
- protobuf message- Returns:
- New object
-
pack
Description copied from interface:Protobuf
Copies the object contents into a protobuf message. Implementations should call either msg.setMember(member) or member.copyToProto(msg.getMutableMember()) for each member.- Specified by:
pack
in interfaceProtobuf<DCMotor,Plant.ProtobufDCMotor>
- Parameters:
msg
- protobuf messagevalue
- object to serialize
-