Constructs a new ConditionalTask.
Optionalproperties: IConditionalTaskProperties to set
A list of subtasks to process in an attempt to produce a valid numerical result.
A list of subtasks that will be run if attempt subtasks are unable to produce an acceptable
result.
Converts this ConditionalTask to JSON.
JSON object
StaticcreateCreates a new ConditionalTask instance using the specified properties.
Optionalproperties: IConditionalTaskProperties to set
ConditionalTask instance
StaticdecodeDecodes a ConditionalTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
ConditionalTask
StaticdecodeDecodes a ConditionalTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
ConditionalTask
StaticencodeEncodes the specified ConditionalTask message. Does not implicitly verify messages.
ConditionalTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified ConditionalTask message, length delimited. Does not implicitly verify messages.
ConditionalTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a ConditionalTask message from a plain object. Also converts values to their respective internal types.
Plain object
ConditionalTask
StaticgetGets the default type url for ConditionalTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a ConditionalTask message. Also converts values to other types if specified.
ConditionalTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a ConditionalTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
This task will run the
attempton the subtasks in an effort to produce a valid numerical result. Ifattempt. fails to produce an acceptable result,on_failuresubtasks will be run instead.Input: The current running numerical result output from a task.
Returns: A numerical result, else run
on_failuresubtasks.Example: Returns the numerical result from the conditionalTask's subtasks, else
on_failurereturns the numerical result from its subtasks.