new_releases আপডেট : নতুন বৈশিষ্ট্য এবং পণ্য আপডেটের জন্য
রিলিজ নোট চেক করুন।
UserEvent
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি ইভেন্ট যা ব্যবহারকারীর RCS ক্লায়েন্টে ঘটেছে এবং এজেন্টের সাথে কথোপকথনের সাথে সম্পর্কিত।
উদাহরণস্বরূপ, একটি ইভেন্ট নির্দেশ করতে পারে যে ব্যবহারকারী টাইপ করছেন বা এজেন্টের একটি পূর্ববর্তী বার্তা ব্যবহারকারী পড়েছেন।
UserEvent "বার্তা" অবজেক্টের "ডেটা" ক্ষেত্রে প্রদর্শিত হয় যা এজেন্ট তার Google পাব/সাবস্ক্রিপশন থেকে গ্রহণ করে। "ডেটা" ক্ষেত্র হল একটি বেস64-এনকোডেড স্ট্রিং যা এজেন্টকে অবশ্যই UserEvent কাঠামোর সাথে মেলে ডিকোড করতে হবে।
JSON প্রতিনিধিত্ব |
---|
{
"senderPhoneNumber": string,
"eventType": enum (UserEvent.EventType ),
"eventId": string,
"messageId": string,
"sendTime": string,
"agentId": string
} |
ক্ষেত্র |
---|
senderPhoneNumber | string ইভেন্টে জড়িত ব্যবহারকারীর ফোন নম্বর (E.164 ফর্ম্যাটে)। |
eventType | enum ( UserEvent.EventType ) অনুষ্ঠানের ধরন। |
eventId | string একটি অনন্য ইভেন্ট আইডি, পাঠানো ব্যবহারকারীর RCS ক্লায়েন্ট দ্বারা নির্ধারিত। |
messageId | string ইভেন্টের সাথে যুক্ত মেসেজের আইডি। উদাহরণস্বরূপ, একটি বার্তা যা ব্যবহারকারীর RCS ক্লায়েন্টের কাছে বিতরণ করা হয়েছে বা ব্যবহারকারীর দ্বারা পড়েছে। এই ক্ষেত্রটি বিতরণ করা এবং পড়ার ঘটনাগুলির জন্য জনবহুল। |
sendTime | string ( Timestamp format) যে সময়ে RCS ক্লায়েন্ট ইভেন্ট পাঠায়। RFC 3339 ব্যবহার করে, যেখানে উৎপন্ন আউটপুট সর্বদা Z-সাধারণ করা হবে এবং 0, 3, 6 বা 9 ভগ্নাংশ সংখ্যা ব্যবহার করবে। "Z" ব্যতীত অন্যান্য অফসেটগুলিও গ্রহণ করা হয়। উদাহরণ: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" বা "2014-10-02T15:01:23+05:30" |
agentId | string এজেন্টের অনন্য শনাক্তকারী। RCS বিজনেস মেসেজিং দ্বারা সেট করা হয়েছে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-22 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-22 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eUserEvents indicate user actions within an RCS conversation with an agent, such as typing or reading a message.\u003c/p\u003e\n"],["\u003cp\u003eThese events are transmitted to the agent within the base64-encoded "data" field of the "message" object from Google Pub/Sub.\u003c/p\u003e\n"],["\u003cp\u003eThe UserEvent structure includes details like \u003ccode\u003esenderPhoneNumber\u003c/code\u003e, \u003ccode\u003eeventType\u003c/code\u003e, \u003ccode\u003eeventId\u003c/code\u003e, \u003ccode\u003emessageId\u003c/code\u003e, \u003ccode\u003esendTime\u003c/code\u003e, and \u003ccode\u003eagentId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emessageId\u003c/code\u003e specifies the message associated with the event, which is only populated for DELIVERED and READ event types.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esendTime\u003c/code\u003e field details when the event occurred, formatted according to RFC 3339.\u003c/p\u003e\n"]]],[],null,["# UserEvent\n\nAn event that occurred on the user's RCS client and was related to a conversation with the agent.\n\nFor instance, an event can indicate that the user is typing or that an earlier message from the agent was read by the user.\n\nThe UserEvent appears in the \"data\" field of the \"message\" object that the agent receives from its Google Pub/Sub subscription. The \"data\" field is a base64-encoded string that the agent must decode to match the UserEvent structure.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"senderPhoneNumber\": string, \"eventType\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/UserEvent.EventType), \"eventId\": string, \"messageId\": string, \"sendTime\": string, \"agentId\": string } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `senderPhoneNumber` | `string` Phone number (in E.164 format) of the user involved in the event. |\n| `eventType` | `enum (`[UserEvent.EventType](/business-communications/rcs-business-messaging/reference/rest/v1/UserEvent.EventType)`)` Type of the event. |\n| `eventId` | `string` A unique event ID, assigned by the sending user's RCS client. |\n| `messageId` | `string` The ID of the message that is associated with the event. For example, a message that was delivered to the user's RCS client or read by the user. This field is populated for DELIVERED and READ events. |\n| `sendTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Time at which RCS client sends the event. 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-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `agentId` | `string` The agent's unique identifier. Set by RCS Business Messaging. |"]]