# Message

- [JSON representation](https://developers.google.com/wallet/reference/rest/v1/Message#SCHEMA_REPRESENTATION)
- [MessageType](https://developers.google.com/wallet/reference/rest/v1/Message#MessageType)

A message that will be displayed with a Valuable

| JSON representation |
|---|
| ``` { "kind": string, "header": string, "body": string, "displayInterval": { object (`https://developers.google.com/wallet/reference/rest/v1/TimeInterval`) }, "id": string, "messageType": enum (`https://developers.google.com/wallet/reference/rest/v1/Message#MessageType`), "localizedHeader": { object (`https://developers.google.com/wallet/reference/rest/v1/LocalizedString`) }, "localizedBody": { object (`https://developers.google.com/wallet/reference/rest/v1/LocalizedString`) } } ``` |

| Fields ||
|---|---|
| `kind (deprecated)` | `string` > [!WARNING] > This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `"walletobjects#walletObjectMessage"`. |
| `header` | `string` The message header. |
| `body` | `string` The message body. |
| `displayInterval` | ``object (`https://developers.google.com/wallet/reference/rest/v1/TimeInterval`)`` The period of time that the message will be displayed to users. You can define both a `startTime` and `endTime` for each message. A message is displayed immediately after a Wallet Object is inserted unless a `startTime` is set. The message will appear in a list of messages indefinitely if `endTime` is not provided. |
| `id` | `string` The ID associated with a message. This field is here to enable ease of management of messages. Notice ID values could possibly duplicate across multiple messages in the same class/instance, and care must be taken to select a reasonable ID for each message. |
| `messageType` | ``enum (`https://developers.google.com/wallet/reference/rest/v1/Message#MessageType`)`` The message type. |
| `localizedHeader` | ``object (`https://developers.google.com/wallet/reference/rest/v1/LocalizedString`)`` Translated strings for the message header. |
| `localizedBody` | ``object (`https://developers.google.com/wallet/reference/rest/v1/LocalizedString`)`` Translated strings for the message body. |

## MessageType

| Enums ||
|---|---|
| `MESSAGE_TYPE_UNSPECIFIED` |   |
| `TEXT` | Renders the message as text on the card details screen. This is the default message type. |
| `text` | Legacy alias for `TEXT`. Deprecated. > [!WARNING] > This item is deprecated! |
| `EXPIRATION_NOTIFICATION` | Note: This enum is currently not supported. |
| `expirationNotification` | Legacy alias for `EXPIRATION_NOTIFICATION`. Deprecated. > [!WARNING] > This item is deprecated! |
| `TEXT_AND_NOTIFY` | Renders the message as text on the card details screen and as an Android notification. |