MessageEntry

Represents a message entry of a conversation.

JSON representation
{
 "role": enum (Role ),
 "text": string,
 "languageCode": string,
 "createTime": string
}
Fields
role

enum (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 for a list of the currently supported language codes.

createTime

string (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月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15: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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年09月10日 UTC.