new_releases Güncellemeler: Yeni özellikler ve ürün güncellemeleri için
sürüm notlarına bakın.
REST Resource: phones.agentEvents
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Kaynak: AgentEvent
Aracının kullanıcıya gönderdiği bir etkinlik.
JSON gösterimi |
{
"name": string,
"eventType": enum (AgentEvent.EventType ),
"messageId": string,
"sendTime": string
} |
Alanlar |
name |
string
Bu alan, RBM platformu tarafından ayarlanır. Aracı etkinliği oluştururken bunu eklemeyin. Alan, "phones/{E.164}/agentEvents/{eventId}" değerini çözer. Burada {E.164}, kullanıcının E.164 biçimindeki telefon numarası, {eventId} ise aracı etkinliğinin aracı tarafından atanmış kimliğidir.
|
eventType |
enum (AgentEvent.EventType )
Aracı etkinliğinin türü.
|
messageId |
string
Aracı etkinliğinin ilgili olduğu kullanıcı mesajının kimliği. Bu alan yalnızca READ türündeki aracı etkinlikleri için geçerlidir.
|
sendTime |
string (Timestamp format)
Bu alan, RBM platformu tarafından ayarlanır. Aracı mesajı oluştururken bu bilgiyi eklemeyin. Bu alan, etkinliğin kullanıcıya gönderildiği zamanı gösterir. Oluşturulan çıkışın her zaman Z ile normalleştirildiği ve 0, 3, 6 veya 9 kesirli basamak kullandığı RFC 3339'u kullanır. "Z" dışındaki saat farkları da kabul edilir. Örnekler: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" veya "2014-10-02T15:01:23+05:30" .
|
AgentEvent.EventType
Sıralamalar |
TYPE_UNSPECIFIED |
Belirtilmedi. |
IS_TYPING |
Temsilci yazıyor. |
READ |
Kullanıcı tarafından gönderilen mesaj, temsilci tarafından okunmuştur. |
Yöntemler |
|
Aracıdan kullanıcıya etkinlik gönderir. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-22 UTC.
[null,null,["Son güncelleme tarihi: 2025-08-22 UTC."],[[["\u003cp\u003e\u003ccode\u003eAgentEvent\u003c/code\u003e represents an event sent from an agent to a user, containing details about the event's type and status.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eeventType\u003c/code\u003e field defines the type of agent event, which can include \u003ccode\u003eIS_TYPING\u003c/code\u003e or \u003ccode\u003eREAD\u003c/code\u003e, while \u003ccode\u003eTYPE_UNSPECIFIED\u003c/code\u003e means it was not specified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emessageId\u003c/code\u003e field indicates which user message the agent event corresponds to, and is specifically used for \u003ccode\u003eREAD\u003c/code\u003e type events.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esendTime\u003c/code\u003e field, formatted as a Timestamp, signifies when the event was dispatched to the user, accepting RFC 3339 formats.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecreate\u003c/code\u003e method within \u003ccode\u003ephones.agentEvents\u003c/code\u003e allows for the sending of an event from the agent to the user.\u003c/p\u003e\n"]]],[],null,["# REST Resource: phones.agentEvents\n\nResource: AgentEvent\n--------------------\n\nAn event from the agent to the user.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"eventType\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents#AgentEvent.EventType), \"messageId\": string, \"sendTime\": string } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` This field is set by the RBM platform. Do not include it when creating an agent event. The field resolves \"phones/{E.164}/agentEvents/{eventId}\", where {E.164} is the user's phone number in E.164 format and {eventId} is the agent-assigned ID of the agent event. |\n| `eventType` | `enum (`[AgentEvent.EventType](/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents#AgentEvent.EventType)`)` The type of the agent event. |\n| `messageId` | `string` The ID of the user message that the agent event pertains to. This field is only applicable for agent events of type READ. |\n| `sendTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves the time when the event is sent to the user. 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\nAgentEvent.EventType\n--------------------\n\nType of an agent event.\n\n| Enums ||\n|--------------------|--------------------------------------------------------|\n| `TYPE_UNSPECIFIED` | Not specified. |\n| `IS_TYPING` | The agent is typing. |\n| `READ` | The message sent by a user has been read by the agent. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------|------------------------------------------|\n| ### [create](/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents/create) | Sends an event from the agent to a user. |"]]