message = $message; } /** * @return Message */ public function getMessage() { return $this->message; } /** * The current state of this task * * Accepted values: TASK_STATE_UNSPECIFIED, TASK_STATE_SUBMITTED, * TASK_STATE_WORKING, TASK_STATE_COMPLETED, TASK_STATE_FAILED, * TASK_STATE_CANCELLED, TASK_STATE_INPUT_REQUIRED, TASK_STATE_REJECTED, * TASK_STATE_AUTH_REQUIRED * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * Timestamp when the status was recorded. Example: "2023-10-27T10:00:00Z" * * @param string $timestamp */ public function setTimestamp($timestamp) { $this->timestamp = $timestamp; } /** * @return string */ public function getTimestamp() { return $this->timestamp; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(TaskStatus::class, 'Google_Service_WorkspaceEvents_TaskStatus');