Package org.wpilib.commands3.proto
Class SchedulerProto
java.lang.Object
org.wpilib.commands3.proto.SchedulerProto
- All Implemented Interfaces:
Protobuf<Scheduler,ProtobufCommands.ProtobufScheduler>
public class SchedulerProto
extends Object
implements Protobuf<Scheduler,ProtobufCommands.ProtobufScheduler>
Serializes a
Scheduler to a protobuf message. Deserialization is not supported. A
serialized message will include information about commands that are currently running or
scheduled (but not yet started), as well as how long the most recent call to Scheduler.run() took to execute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates protobuf message.us.hebi.quickbuf.Descriptors.DescriptorGets the protobuf descriptor.Gets the Class object for the stored value.voidpack(ProtobufCommands.ProtobufScheduler msg, Scheduler scheduler) Copies the object contents into a protobuf message.Deserializes an object from a protobuf message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.util.protobuf.Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, isImmutable, unpackInto
-
Constructor Details
-
SchedulerProto
public SchedulerProto()
-
-
Method Details
-
getTypeClass
Description copied from interface:ProtobufGets the Class object for the stored value.- Specified by:
getTypeClassin interfaceProtobuf<Scheduler,ProtobufCommands.ProtobufScheduler> - Returns:
- Class
-
getDescriptor
Description copied from interface:ProtobufGets the protobuf descriptor.- Specified by:
getDescriptorin interfaceProtobuf<Scheduler,ProtobufCommands.ProtobufScheduler> - Returns:
- descriptor
-
createMessage
Description copied from interface:ProtobufCreates protobuf message.- Specified by:
createMessagein interfaceProtobuf<Scheduler,ProtobufCommands.ProtobufScheduler> - Returns:
- protobuf message
-
unpack
Description copied from interface:ProtobufDeserializes an object from a protobuf message.- Specified by:
unpackin interfaceProtobuf<Scheduler,ProtobufCommands.ProtobufScheduler> - Parameters:
msg- protobuf message- Returns:
- New object
-
pack
Description copied from interface:ProtobufCopies the object contents into a protobuf message. Implementations should call either msg.setMember(member) or member.copyToProto(msg.getMutableMember()) for each member.- Specified by:
packin interfaceProtobuf<Scheduler,ProtobufCommands.ProtobufScheduler> - Parameters:
msg- protobuf messagescheduler- object to serialize
-