Message
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি বার্তা যা একটি মূল্যবান সঙ্গে প্রদর্শিত হবে
ক্ষেত্র |
---|
kind (deprecated) | string এই সম্পদ কি ধরনের সনাক্ত. মান: নির্দিষ্ট স্ট্রিং "walletobjects#walletObjectMessage" । |
body | string মেসেজ বডি। |
displayInterval | object ( TimeInterval ) ব্যবহারকারীদের কাছে বার্তাটি প্রদর্শিত হওয়ার সময়কাল। আপনি প্রতিটি বার্তার জন্য একটি startTime এবং endTime উভয়ই সংজ্ঞায়িত করতে পারেন। একটি ওয়ালেট অবজেক্ট সন্নিবেশিত হওয়ার সাথে সাথে একটি বার্তা প্রদর্শিত হয় যদি না একটি startTime সেট করা হয়৷ বার্তাটি অনির্দিষ্টকালের জন্য বার্তাগুলির একটি তালিকায় উপস্থিত হবে যদি endTime প্রদান না করা হয়৷ |
id | string একটি বার্তার সাথে যুক্ত আইডি। এই ক্ষেত্রটি এখানে বার্তা পরিচালনার সহজতা সক্ষম করতে। নোটিশ আইডি মান সম্ভবত একই শ্রেণী/উদাহরণে একাধিক বার্তা জুড়ে সদৃশ হতে পারে, এবং প্রতিটি বার্তার জন্য একটি যুক্তিসঙ্গত আইডি নির্বাচন করার জন্য যত্ন নেওয়া আবশ্যক। |
messageType | enum ( MessageType ) বার্তার ধরন। |
localizedBody | object ( LocalizedString ) বার্তার মূল অংশের জন্য অনুবাদিত স্ট্রিং। |
মেসেজ টাইপ
এনামস |
---|
MESSAGE_TYPE_UNSPECIFIED | |
TEXT | কার্ডের বিবরণ স্ক্রিনে পাঠ্য হিসাবে বার্তা রেন্ডার করে। এটি ডিফল্ট বার্তা প্রকার। |
text | TEXT এর জন্য উত্তরাধিকার উপনাম৷ অবচয়। |
EXPIRATION_NOTIFICATION | দ্রষ্টব্য: এই enum বর্তমানে সমর্থিত নয়। |
expirationNotification | EXPIRATION_NOTIFICATION এর জন্য উত্তরাধিকার উপনাম৷ অবচয়। |
TEXT_AND_NOTIFY | কার্ডের বিবরণ স্ক্রিনে পাঠ্য হিসাবে এবং একটি Android বিজ্ঞপ্তি হিসাবে বার্তাটিকে রেন্ডার করে৷ |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল 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. |"]]