class SequenceTask

February 26, 2020 ยท View on GitHub

Member values

Member nameData typeDescription
group_identifieruint32This field is deprecated and unused. Use task_index in the SequenceTaskHandle instead.
actionActionSpecifies the action to execute
application_datastringApplication data (reserved for use by Web App)

Member functions

Function nameReturn typeInput typeDescription
group_identifier()uint32voidReturns the current value of group_identifier. If the group_identifier is not set, returns 0.
set_group_identifier()voiduint32Sets the value of group_identifier. After calling this, group_identifier() will return value.
clear_group_identifier()voidvoidClears the value of group_identifier. After calling this, group_identifier() will return 0.
has_action() constboolvoidReturns true if action is set.
action()const Action&voidReturns the current value of action. If action is not set, returns a Action with none of its fields set (possibly action::default_instance()).
mutable_action()Action *voidReturns a pointer to the mutable Action object that stores the field's value. If the field was not set prior to the call, then the returned Action will have none of its fields set (i.e. it will be identical to a newly-allocated Action). After calling this, has_action() will return true and action() will return a reference to the same instance of Action.
clear_action()voidvoidClears the value of the field. After calling this, has_action() will return false and action() will return the default value.
set_allocated_action()voidAction *Sets the Action object to the field and frees the previous field value if it exists. If the Action pointer is not NULL, the message takes ownership of the allocated Action object and has_ Action() will return true. Otherwise, if the action is NULL, the behavior is the same as calling clear_action().
release_action()Action *voidReleases the ownership of the field and returns the pointer of the Action object. After calling this, caller takes the ownership of the allocated Action object, has_action() will return false, and action() will return the default value.
application_data()const string&voidReturns the current value of application_data. If application_data is not set, returns the empty string/empty bytes.
set_application_data()voidconst string&Sets the value of application_data. After calling this, application_data() will return a copy of value.
set_application_data()voidstring&&(C++11 and beyond): Sets the value of application_data, moving from the passed string. After calling this, application_data() will return a copy of value.
set_application_data()voidconst char*Sets the value of application_data using a C-style null-terminated string. After calling this, application_data() will return a copy of value.
mutable_application_data()string *voidReturns a pointer to the mutable string object that stores application_data's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, application_data() will return whatever value is written into the given string.
clear_application_data()voidvoidClears the value of application_data. After calling this, application_data() will return the empty string/empty bytes.
set_allocated_application_data()voidstring*Sets the string object to the field and frees the previous field value if it exists. If the string pointer is not NULL, the message takes ownership of the allocated string object. The message is free to delete the allocated string object at any time, so references to the object may be invalidated. Otherwise, if the value is NULL, the behavior is the same as calling clear_application_data().
release_application_data()string *voidReleases the ownership of application_data and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and application_data() will return the empty string/empty bytes.

Parent topic: Base (C++)