Package org.wpilib.commands3.proto
Class ProtobufCommands.ProtobufScheduler
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
org.wpilib.commands3.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-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionNote: commands are generally queued by triggers, which occurs immediately before they are promoted and start running.repeated .wpi.proto.ProtobufCommand running_commands = 2;Note: commands are generally queued by triggers, which occurs immediately before they are promoted and start running.repeated .wpi.proto.ProtobufCommand running_commands = 2;clear()How much time the scheduler took in its last `run()` invocation.Note: commands are generally queued by triggers, which occurs immediately before they are promoted and start running.repeated .wpi.proto.ProtobufCommand running_commands = 2;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufCommands.ProtobufScheduler> doubleHow much time the scheduler took in its last `run()` invocation.us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> Note: commands are generally queued by triggers, which occurs immediately before they are promoted and start running.us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> repeated .wpi.proto.ProtobufCommand running_commands = 2;This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> Note: commands are generally queued by triggers, which occurs immediately before they are promoted and start running.us.hebi.quickbuf.RepeatedMessage<ProtobufCommands.ProtobufCommand> repeated .wpi.proto.ProtobufCommand running_commands = 2;This method returns the internal storage object without modifying any has state.booleanHow much time the scheduler took in its last `run()` invocation.booleanNote: commands are generally queued by triggers, which occurs immediately before they are promoted and start running.booleanrepeated .wpi.proto.ProtobufCommand running_commands = 2;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) setLastTimeMs(double value) How much time the scheduler took in its last `run()` invocation.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
ProtobufScheduler
-
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
How much time the scheduler took in its last `run()` invocation.
optional double last_time_ms = 3;- Returns:
- this
-
getLastTimeMs
How much time the scheduler took in its last `run()` invocation.
optional double last_time_ms = 3;- Returns:
- the lastTimeMs
-
setLastTimeMs
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
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
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
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. UsegetMutableQueuedCommands()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
public ProtobufCommands.ProtobufScheduler addAllQueuedCommands(ProtobufCommands.ProtobufCommand... values) 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
repeated .wpi.proto.ProtobufCommand running_commands = 2;- Returns:
- whether the runningCommands field is set
-
clearRunningCommands
repeated .wpi.proto.ProtobufCommand running_commands = 2;- Returns:
- this
-
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. UsegetMutableRunningCommands()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
public ProtobufCommands.ProtobufScheduler addRunningCommands(ProtobufCommands.ProtobufCommand value) 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:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
mergeFrom
public ProtobufCommands.ProtobufScheduler mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>- Throws:
IOException
-
mergeFrom
public ProtobufCommands.ProtobufScheduler mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufCommands.ProtobufScheduler>
-
isEmpty
- Overrides:
isEmptyin classus.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
- Returns:
- factory for creating ProtobufScheduler messages
-
getDescriptor
- Returns:
- this type's descriptor.
-