# MessageEntry

- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/MessageEntry#SCHEMA_REPRESENTATION)
- [Role](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/MessageEntry#Role)

Represents a message entry of a conversation.

| JSON representation |
|---|
| ``` { "role": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/MessageEntry#Role`), "text": string, "languageCode": string, "createTime": string } ``` |

| Fields ||
|---|---|
| `role` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/MessageEntry#Role`)`` Optional. Participant role of the message. |
| `text` | `string` Optional. Transcript content of the message. |
| `languageCode` | `string` Optional. The language of the text. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. Create time of the message entry. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

## Role

Enumeration of the roles a participant can play in a conversation.

| Enums ||
|---|---|
| `ROLE_UNSPECIFIED` | Participant role not set. |
| `HUMAN_AGENT` | Participant is a human agent. |
| `AUTOMATED_AGENT` | Participant is an automated agent, such as a Dialogflow agent. |
| `END_USER` | Participant is an end user that has called or chatted with Dialogflow services. |