- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/SendMessageResponse#SCHEMA_REPRESENTATION)

Represents the response for the `message.send` method.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "task": { object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Task`) }, "message": { object (`Message`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The payload of the response. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `task` | ``object (`https://docs.cloud.google.com/gemini-enterprise-cx/cx-agent-studio/reference/rest/v1beta/Task`)`` The task created or updated by the message. |
| `message` | ``object (`Message`)`` A message from the agent. |
| End of mutually exclusive fields. ||