class ActionNotification

June 4, 2021 ยท View on GitHub

Member values

Member nameData typeDescription
action_eventuint32Action event type
handleActionHandleIdentifies the action for which this event occured
timestampTimestampEvent timestamp
user_handleUserProfileHandleUser that caused the action event
abort_detailsuint32Details if action_event is equal to ACTION_ABORT
connectionConnectionConnection that caused the action event
trajectory_infoTrajectoryInfoAdditional information from the current action

Member functions

Function nameReturn typeInput typeDescription
action_event() constuint32voidReturns the current value of action_event. If the action_event is not set, returns 0.
set_action_event()voiduint32Sets the value of action_event. After calling this, action_event() will return value.
clear_action_event()voidvoidClears the value of action_event. After calling this, action_event() will return the empty string/empty bytes.
has_handle() constboolvoidReturns true if handle is set.
handle()const ActionHandle&voidReturns the current value of handle. If handle is not set, returns a ActionHandle with none of its fields set (possibly handle::default_instance()).
mutable_handle()ActionHandle *voidReturns a pointer to the mutable ActionHandle object that stores the field's value. If the field was not set prior to the call, then the returned ActionHandle will have none of its fields set (i.e. it will be identical to a newly-allocated ActionHandle). After calling this, has_handle() will return true and handle() will return a reference to the same instance of ActionHandle.
clear_handle()voidvoidClears the value of the field. After calling this, has_handle() will return false and handle() will return the default value.
set_allocated_handle()voidActionHandle *Sets the ActionHandle object to the field and frees the previous field value if it exists. If the ActionHandle pointer is not NULL, the message takes ownership of the allocated ActionHandle object and has_ ActionHandle() will return true. Otherwise, if the handle is NULL, the behavior is the same as calling clear_handle().
release_handle()ActionHandle *voidReleases the ownership of the field and returns the pointer of the ActionHandle object. After calling this, caller takes the ownership of the allocated ActionHandle object, has_handle() will return false, and handle() will return the default value.
has_timestamp() constboolvoidReturns true if timestamp is set.
timestamp()const Timestamp&voidReturns the current value of timestamp. If timestamp is not set, returns a Timestamp with none of its fields set (possibly timestamp::default_instance()).
mutable_timestamp()Timestamp *voidReturns a pointer to the mutable Timestamp object that stores the field's value. If the field was not set prior to the call, then the returned Timestamp will have none of its fields set (i.e. it will be identical to a newly-allocated Timestamp). After calling this, has_timestamp() will return true and timestamp() will return a reference to the same instance of Timestamp.
clear_timestamp()voidvoidClears the value of the field. After calling this, has_timestamp() will return false and timestamp() will return the default value.
set_allocated_timestamp()voidTimestamp *Sets the Timestamp object to the field and frees the previous field value if it exists. If the Timestamp pointer is not NULL, the message takes ownership of the allocated Timestamp object and has_ Timestamp() will return true. Otherwise, if the timestamp is NULL, the behavior is the same as calling clear_timestamp().
release_timestamp()Timestamp *voidReleases the ownership of the field and returns the pointer of the Timestamp object. After calling this, caller takes the ownership of the allocated Timestamp object, has_timestamp() will return false, and timestamp() will return the default value.
has_user_handle() constboolvoidReturns true if user_handle is set.
user_handle()const UserProfileHandle&voidReturns the current value of user_handle. If user_handle is not set, returns a UserProfileHandle with none of its fields set (possibly user_handle::default_instance()).
mutable_user_handle()UserProfileHandle *voidReturns a pointer to the mutable UserProfileHandle object that stores the field's value. If the field was not set prior to the call, then the returned UserProfileHandle will have none of its fields set (i.e. it will be identical to a newly-allocated UserProfileHandle). After calling this, has_user_handle() will return true and user_handle() will return a reference to the same instance of UserProfileHandle.
clear_user_handle()voidvoidClears the value of the field. After calling this, has_user_handle() will return false and user_handle() will return the default value.
set_allocated_user_handle()voidUserProfileHandle *Sets the UserProfileHandle object to the field and frees the previous field value if it exists. If the UserProfileHandle pointer is not NULL, the message takes ownership of the allocated UserProfileHandle object and has_ UserProfileHandle() will return true. Otherwise, if the user_handle is NULL, the behavior is the same as calling clear_user_handle().
release_user_handle()UserProfileHandle *voidReleases the ownership of the field and returns the pointer of the UserProfileHandle object. After calling this, caller takes the ownership of the allocated UserProfileHandle object, has_user_handle() will return false, and user_handle() will return the default value.
abort_details() constuint32voidReturns the current value of abort_details. If the abort_details is not set, returns 0.
set_abort_details()voiduint32Sets the value of abort_details. After calling this, abort_details() will return value.
clear_abort_details()voidvoidClears the value of abort_details. After calling this, abort_details() will return the empty string/empty bytes.
has_connection() constboolvoidReturns true if connection is set.
connection()const Connection&voidReturns the current value of connection. If connection is not set, returns a Connection with none of its fields set (possibly connection::default_instance()).
mutable_connection()Connection *voidReturns a pointer to the mutable Connection object that stores the field's value. If the field was not set prior to the call, then the returned Connection will have none of its fields set (i.e. it will be identical to a newly-allocated Connection). After calling this, has_connection() will return true and connection() will return a reference to the same instance of Connection.
clear_connection()voidvoidClears the value of the field. After calling this, has_connection() will return false and connection() will return the default value.
set_allocated_connection()voidConnection *Sets the Connection object to the field and frees the previous field value if it exists. If the Connection pointer is not NULL, the message takes ownership of the allocated Connection object and has_ Connection() will return true. Otherwise, if the connection is NULL, the behavior is the same as calling clear_connection().
release_connection()Connection *voidReleases the ownership of the field and returns the pointer of the Connection object. After calling this, caller takes the ownership of the allocated Connection object, has_connection() will return false, and connection() will return the default value.
trajectory_info_size() constintvoidReturns the number of elements currently in the field.
trajectory_info() constconst TrajectoryInfoint indexReturns the element at the given zero-based index. Calling this method with index outside of [0, trajectory_info_size()) yields undefined behavior.
mutable_trajectory_info()TrajectoryInfo*int indexReturns a pointer to the mutable TrajectoryInfo object that stores the value of the element at the given zero-based index. Calling this method with index outside of [0, trajectory_info_size()) yields undefined behavior.
add_trajectory_info()TrajectoryInfo*voidAdds a new element and returns a pointer to it. The returned TrajectoryInfo is mutable and will have none of its fields set (i.e. it will be identical to a newly-allocated TrajectoryInfo).
clear_trajectory_info()voidvoidRemoves all elements from the field. After calling this, trajectory_info_size() will return zero.
trajectory_info() constconst RepeatedPtrField< TrajectoryInfo>&voidReturns the underlying RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.
mutable_trajectory_info()RepeatedPtrField< TrajectoryInfo>*voidReturns a pointer to the underlying mutable RepeatedPtrField that stores the field's elements. This container class provides STL-like iterators and other methods.

Parent topic: Base (C++)