Message
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
필드 |
kind (deprecated) |
string
리소스의 종류를 식별합니다. 값은 고정 문자열 "walletobjects#walletObjectMessage" 입니다.
|
body |
string
메시지 본문입니다.
|
displayInterval |
object (TimeInterval )
메시지가 사용자에게 표시되는 기간입니다. 각 메시지에 startTime 와 endTime 를 모두 정의할 수 있습니다. startTime 를 설정하지 않으면 월렛 객체가 삽입된 직후에 메시지가 표시됩니다. endTime 를 입력하지 않으면 메시지가 메시지 목록에 무기한 표시됩니다.
|
id |
string
메시지와 연결된 ID입니다. 이 필드는 메시지를 쉽게 관리하기 위해 사용됩니다. 알림 ID 값은 같은 클래스/인스턴스의 여러 메시지에서 중복될 수 있으므로 각 메시지에 적절한 ID를 선택하도록 주의해야 합니다.
|
messageType |
enum (MessageType )
메시지 유형입니다.
|
localizedBody |
object (LocalizedString )
메시지 본문의 번역된 문자열입니다.
|
MessageType
열거형 |
MESSAGE_TYPE_UNSPECIFIED |
|
TEXT |
메시지를 카드 세부정보 화면에 텍스트로 렌더링합니다. 기본 메시지 유형입니다. |
text |
TEXT 의 기존 별칭입니다. 지원 중단되었습니다.
|
EXPIRATION_NOTIFICATION |
참고: 이 enum은 현재 지원되지 않습니다. |
expirationNotification |
EXPIRATION_NOTIFICATION 의 기존 별칭입니다. 지원 중단되었습니다.
|
TEXT_AND_NOTIFY |
메시지를 카드 세부정보 화면에 텍스트 및 Android 알림으로 렌더링합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eWallet Object Messages can be displayed to users with valuable content, including a header, body, and display interval.\u003c/p\u003e\n"],["\u003cp\u003eMessages can be customized with localized headers and bodies for different languages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessageType\u003c/code\u003e determines how the message is rendered, with options for text display and Android notifications.\u003c/p\u003e\n"],["\u003cp\u003eEach message has a unique ID for management purposes, and a display interval can be set to control when it is shown.\u003c/p\u003e\n"]]],["The document outlines the structure of a message to be displayed, represented in JSON. Key fields include `header` and `body` for the message content, `displayInterval` to control visibility duration, and `id` for message management. `messageType` specifies how the message is displayed, with options like `TEXT` (default), or `TEXT_AND_NOTIFY`. Localized versions of the `header` and `body` are also supported.\n"],null,["# Message\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [MessageType](#MessageType)\n\nA message that will be displayed with a Valuable\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"header\": string, \"body\": string, \"displayInterval\": { object (/wallet/reference/rest/v1/TimeInterval) }, \"id\": string, \"messageType\": enum (/wallet/reference/rest/v1/Message#MessageType), \"localizedHeader\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"localizedBody\": { object (/wallet/reference/rest/v1/LocalizedString) } } ``` |\n\n| Fields ||\n|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` **(deprecated)** | `string` | This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#walletObjectMessage\"`. |\n| `header` | `string` The message header. |\n| `body` | `string` The message body. |\n| `displayInterval` | `object (`[TimeInterval](/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. |\n| `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. |\n| `messageType` | `enum (`[MessageType](/wallet/reference/rest/v1/Message#MessageType)`)` The message type. |\n| `localizedHeader` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Translated strings for the message header. |\n| `localizedBody` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Translated strings for the message body. |\n\nMessageType\n-----------\n\n| Enums ||\n|----------------------------|-------------------------------------------------------------------------------------------|\n| `MESSAGE_TYPE_UNSPECIFIED` | |\n| `TEXT` | Renders the message as text on the card details screen. This is the default message type. |\n| `text` | Legacy alias for `TEXT`. Deprecated. | This item is deprecated! |\n| `EXPIRATION_NOTIFICATION` | Note: This enum is currently not supported. |\n| `expirationNotification` | Legacy alias for `EXPIRATION_NOTIFICATION`. Deprecated. | This item is deprecated! |\n| `TEXT_AND_NOTIFY` | Renders the message as text on the card details screen and as an Android notification. |"]]