Constructs a new MedianTask.
Optionalproperties: IMedianTaskProperties to set
A list of subjobs to process and produce a list of result values.
The maximum range between the minimum and maximum values before a successful median can be yielded.
The minimum number of values before a successful median can be yielded.
A list of subtasks to process and produce a list of result values.
Converts this MedianTask to JSON.
JSON object
StaticcreateCreates a new MedianTask instance using the specified properties.
Optionalproperties: IMedianTaskProperties to set
MedianTask instance
StaticdecodeDecodes a MedianTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
MedianTask
StaticdecodeDecodes a MedianTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
MedianTask
StaticencodeEncodes the specified MedianTask message. Does not implicitly verify messages.
MedianTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified MedianTask message, length delimited. Does not implicitly verify messages.
MedianTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a MedianTask message from a plain object. Also converts values to their respective internal types.
Plain object
MedianTask
StaticgetGets the default type url for MedianTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a MedianTask message. Also converts values to other types if specified.
MedianTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a MedianTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Returns the median (middle) of all the results returned by the provided subtasks and subjobs. Nested tasks must return a Number.
Input: None
Returns: A numerical result.
Example: Returns the median numerical result of 3 tasks.
Example: Returns the median numerical result of 3 jobs.