Class ProtobufCommands.ProtobufScheduler

java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
org.wpilib.command3.proto.ProtobufCommands.ProtobufScheduler
All Implemented Interfaces:
Cloneable
Enclosing class:
ProtobufCommands

public static final class ProtobufCommands.ProtobufScheduler extends us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler> implements Cloneable
Protobuf type ProtobufScheduler
  • Method Details

    • newInstance

      public static ProtobufCommands.ProtobufScheduler newInstance()
      Returns:
      a new empty instance of ProtobufScheduler
    • hasLastTimeMs

      public boolean hasLastTimeMs()
       How much time the scheduler took in its last `run()` invocation.
      
      optional double last_time_ms = 3;
      Returns:
      whether the lastTimeMs field is set
    • clearLastTimeMs

      public ProtobufCommands.ProtobufScheduler clearLastTimeMs()
       How much time the scheduler took in its last `run()` invocation.
      
      optional double last_time_ms = 3;
      Returns:
      this
    • getLastTimeMs

      public double getLastTimeMs()
       How much time the scheduler took in its last `run()` invocation.
      
      optional double last_time_ms = 3;
      Returns:
      the lastTimeMs
    • setLastTimeMs

      public ProtobufCommands.ProtobufScheduler setLastTimeMs(double value)
       How much time the scheduler took in its last `run()` invocation.
      
      optional double last_time_ms = 3;
      Parameters:
      value - the lastTimeMs to set
      Returns:
      this
    • hasQueuedCommands

      public boolean hasQueuedCommands()
       Note: commands are generally queued by triggers, which occurs immediately before they are
       promoted and start running. Entries will only appear here when serializing a scheduler
       _after_ manually scheduling a command but _before_ calling scheduler.run()
      
      repeated .wpi.proto.ProtobufCommand queued_commands = 1;
      Returns:
      whether the queuedCommands field is set
    • clearQueuedCommands

      public ProtobufCommands.ProtobufScheduler clearQueuedCommands()
       Note: commands are generally queued by triggers, which occurs immediately before they are
       promoted and start running. Entries will only appear here when serializing a scheduler
       _after_ manually scheduling a command but _before_ calling scheduler.run()
      
      repeated .wpi.proto.ProtobufCommand queued_commands = 1;
      Returns:
      this
    • getQueuedCommands

      public us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> getQueuedCommands()
       Note: commands are generally queued by triggers, which occurs immediately before they are
       promoted and start running. Entries will only appear here when serializing a scheduler
       _after_ manually scheduling a command but _before_ calling scheduler.run()
      
      repeated .wpi.proto.ProtobufCommand queued_commands = 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. Use getMutableQueuedCommands() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableQueuedCommands

      public us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> getMutableQueuedCommands()
       Note: commands are generally queued by triggers, which occurs immediately before they are
       promoted and start running. Entries will only appear here when serializing a scheduler
       _after_ manually scheduling a command but _before_ calling scheduler.run()
      
      repeated .wpi.proto.ProtobufCommand queued_commands = 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
    • addQueuedCommands

       Note: commands are generally queued by triggers, which occurs immediately before they are
       promoted and start running. Entries will only appear here when serializing a scheduler
       _after_ manually scheduling a command but _before_ calling scheduler.run()
      
      repeated .wpi.proto.ProtobufCommand queued_commands = 1;
      Parameters:
      value - the queuedCommands to add
      Returns:
      this
    • addAllQueuedCommands

       Note: commands are generally queued by triggers, which occurs immediately before they are
       promoted and start running. Entries will only appear here when serializing a scheduler
       _after_ manually scheduling a command but _before_ calling scheduler.run()
      
      repeated .wpi.proto.ProtobufCommand queued_commands = 1;
      Parameters:
      values - the queuedCommands to add
      Returns:
      this
    • hasRunningCommands

      public boolean hasRunningCommands()
      repeated .wpi.proto.ProtobufCommand running_commands = 2;
      Returns:
      whether the runningCommands field is set
    • clearRunningCommands

      public ProtobufCommands.ProtobufScheduler clearRunningCommands()
      repeated .wpi.proto.ProtobufCommand running_commands = 2;
      Returns:
      this
    • getRunningCommands

      public us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> getRunningCommands()
      repeated .wpi.proto.ProtobufCommand running_commands = 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. Use getMutableRunningCommands() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableRunningCommands

      public us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> getMutableRunningCommands()
      repeated .wpi.proto.ProtobufCommand running_commands = 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
    • addRunningCommands

      repeated .wpi.proto.ProtobufCommand running_commands = 2;
      Parameters:
      value - the runningCommands to add
      Returns:
      this
    • addAllRunningCommands

      public ProtobufCommands.ProtobufScheduler addAllRunningCommands(ProtobufCommands.ProtobufCommand... values)
      repeated .wpi.proto.ProtobufCommand running_commands = 2;
      Parameters:
      values - the runningCommands to add
      Returns:
      this
    • copyFrom

      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • mergeFrom

      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • clear

      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • clearQuick

      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • mergeFrom

      public ProtobufCommands.ProtobufScheduler mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
      Throws:
      IOException
    • mergeFrom

      public ProtobufCommands.ProtobufScheduler mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
      Throws:
      IOException
    • clone

      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
    • parseFrom

      public static ProtobufCommands.ProtobufScheduler parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtobufCommands.ProtobufScheduler parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtobufCommands.ProtobufScheduler parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<ProtobufCommands.ProtobufScheduler> getFactory()
      Returns:
      factory for creating ProtobufScheduler messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.