We will be winding down Google Business Messages on July 31, 2024. Read more
here.
Message
Stay organized with collections
Save and categorize content based on your preferences.
The content of a message sent from a user to an agent.
JSON representation |
{
"messageId": string,
"name": string,
"createTime": string,
// Union field content can be only one of the following:
"text": string
// End of list of possible types for union field content .
} |
Fields |
messageId |
string
An unique identifier of the message.
|
name |
string
The name of the message, as set by Business Messages. Resolves to "conversations/{conversationId}/messages/{messageId}", where {conversationId} is the unique ID for the conversation and {messageId} is the unique ID for the message.
|
createTime |
string (Timestamp format)
The time that the user sent the message. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z" .
|
Union field content . The content of the message. content can be only one of the following: |
text |
string
Plain-text message content.
|
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 2024-11-14 UTC.
[null,null,["Last updated 2024-11-14 UTC."],[[["\u003cp\u003eThe message object contains an ID, name, creation timestamp, and content.\u003c/p\u003e\n"],["\u003cp\u003eThe content of the message is a union field and can be plain text.\u003c/p\u003e\n"],["\u003cp\u003eThe message name follows a specific format: "conversations/{conversationId}/messages/{messageId}".\u003c/p\u003e\n"],["\u003cp\u003eThe creation timestamp is in RFC3339 UTC "Zulu" format.\u003c/p\u003e\n"]]],[],null,["# Message\n\nThe content of a message sent from a user to an agent.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"messageId\": string, \"name\": string, \"createTime\": string, // Union field `content` can be only one of the following: \"text\": string // End of list of possible types for union field `content`. } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `messageId` | `string` An unique identifier of the message. |\n| `name` | `string` The name of the message, as set by Business Messages. Resolves to \"conversations/{conversationId}/messages/{messageId}\", where {conversationId} is the unique ID for the conversation and {messageId} is the unique ID for the message. |\n| `createTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` The time that the user sent the message. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| Union field `content`. The content of the message. `content` can be only one of the following: ||\n| `text` | `string` Plain-text message content. |"]]