new_releases Aktualizacje: sprawdź
informacje o wersji, aby poznać nowe funkcje i aktualizacje.
AgentLaunchEvent
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zdarzenie, które wystąpiło, gdy zmienił się stan uruchomienia agenta.
Wydarzenie AgentLaunchEvent pojawia się w polu „data” obiektu „message”, który agent otrzymuje w ramach subskrypcji Pub/Sub. Pole „data” to ciąg znaków zakodowany w formacie base64, który agent musi zdekodować, aby dopasować go do struktury PartnerEvent.
Zapis JSON |
{
"eventId": string,
"agentId": string,
"botDisplayName": string,
"brandId": string,
"brandDisplayName": string,
"regionId": string,
"oldLaunchState": enum (AgentLaunchEvent.LaunchState ),
"newLaunchState": enum (AgentLaunchEvent.LaunchState ),
"actingParty": string,
"comment": string,
"sendTime": string
} |
Pola |
eventId |
string
Unikalny identyfikator zdarzenia przypisany do instancji zdarzenia.
|
agentId |
string
Unikalny identyfikator agenta. Ustawione przez RCS Business Messaging.
|
botDisplayName |
string
Wyświetlana nazwa agenta.
|
brandId |
string
Unikalny identyfikator marki.
|
brandDisplayName |
string
Wyświetlana nazwa marki.
|
regionId |
string
Identyfikator regionu, w którym zmieniono uruchomienie agenta. Format: „/v1/regions/{regionId}”. Na przykład „/v1/regions/fi-rcs”.
|
oldLaunchState |
enum (AgentLaunchEvent.LaunchState )
Tylko dane wyjściowe. Nowy typ stanu uruchomienia.
|
newLaunchState |
enum (AgentLaunchEvent.LaunchState )
Tylko dane wyjściowe. Bieżący typ stanu uruchomienia.
|
actingParty |
string
Strona działająca.
|
sendTime |
string (Timestamp format)
Tylko dane wyjściowe. Czas wysłania zdarzenia przez serwer. Korzysta ze standardu RFC 3339, w którym wygenerowane dane wyjściowe są zawsze znormalizowane do formatu Z i używają 0, 3, 6 lub 9 cyfr ułamkowych. Akceptowane są też przesunięcia inne niż „Z”. Przykłady: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" lub "2014-10-02T15:01:23+05:30" .
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-22 UTC."],[],[],null,["# AgentLaunchEvent\n\nAn event that occurred when an agent's launch status is changed.\n\nThe AgentLaunchEvent appears in the \"data\" field of the \"message\" object that the agent receives from its Pub/Sub subscription. The \"data\" field is a base64-encoded string that the agent must decode to match the PartnerEvent structure.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"eventId\": string, \"agentId\": string, \"botDisplayName\": string, \"brandId\": string, \"brandDisplayName\": string, \"regionId\": string, \"oldLaunchState\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/AgentLaunchEvent.LaunchState), \"newLaunchState\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/AgentLaunchEvent.LaunchState), \"actingParty\": string, \"comment\": string, \"sendTime\": string } ``` |\n\n| Fields ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `eventId` | `string` A unique event ID assigned for the event instance. |\n| `agentId` | `string` The agent's unique identifier. Set by RCS Business Messaging. |\n| `botDisplayName` | `string` The agent's display name. |\n| `brandId` | `string` The brand's unique identifier. |\n| `brandDisplayName` | `string` The brand's display name. |\n| `regionId` | `string` The identifier for the region where the agent's launch is changed. Format: \"/v1/regions/{regionId}\". For example, \"/v1/regions/fi-rcs\". |\n| `oldLaunchState` | `enum (`[AgentLaunchEvent.LaunchState](/business-communications/rcs-business-messaging/reference/rest/v1/AgentLaunchEvent.LaunchState)`)` Output only. New type of the launch state. |\n| `newLaunchState` | `enum (`[AgentLaunchEvent.LaunchState](/business-communications/rcs-business-messaging/reference/rest/v1/AgentLaunchEvent.LaunchState)`)` Output only. Current type of the launch state. |\n| `actingParty` | `string` Acting party. |\n| `comment` | `string` Change comment. |\n| `sendTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time at which the server 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\"`. |"]]