content = $content; } /** * @return A2aV1Part[] */ public function getContent() { return $this->content; } /** * The context id of the message. This is optional and if set, the message * will be associated with the given context. * * @param string $contextId */ public function setContextId($contextId) { $this->contextId = $contextId; } /** * @return string */ public function getContextId() { return $this->contextId; } /** * The URIs of extensions that are present or contributed to this Message. * * @param string[] $extensions */ public function setExtensions($extensions) { $this->extensions = $extensions; } /** * @return string[] */ public function getExtensions() { return $this->extensions; } /** * The unique identifier (e.g. UUID)of the message. This is required and * created by the message creator. * * @param string $messageId */ public function setMessageId($messageId) { $this->messageId = $messageId; } /** * @return string */ public function getMessageId() { return $this->messageId; } /** * protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to * provide along with the message. * * @param array[] $metadata */ public function setMetadata($metadata) { $this->metadata = $metadata; } /** * @return array[] */ public function getMetadata() { return $this->metadata; } /** * A role for the message. * * Accepted values: ROLE_UNSPECIFIED, ROLE_USER, ROLE_AGENT * * @param self::ROLE_* $role */ public function setRole($role) { $this->role = $role; } /** * @return self::ROLE_* */ public function getRole() { return $this->role; } /** * The task id of the message. This is optional and if set, the message will * be associated with the given task. * * @param string $taskId */ public function setTaskId($taskId) { $this->taskId = $taskId; } /** * @return string */ public function getTaskId() { return $this->taskId; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(A2aV1Message::class, 'Google_Service_DiscoveryEngine_A2aV1Message');