new_releases Mises à jour : Consultez les
notes de version pour découvrir les nouvelles fonctionnalités et les mises à jour du produit.
AgentLaunchEvent
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Événement qui s'est produit lorsque l'état de lancement d'un agent a été modifié.
L'événement AgentLaunchEvent apparaît dans le champ "data" de l'objet "message" que l'agent reçoit de son abonnement Pub/Sub. Le champ "data" est une chaîne encodée en base64 que l'agent doit décoder pour correspondre à la structure PartnerEvent.
Représentation 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
} |
Champs |
eventId |
string
ID unique attribué à l'instance d'événement.
|
agentId |
string
Identifiant unique de l'agent. Défini par RCS Business Messaging.
|
botDisplayName |
string
Nom à afficher de l'agent.
|
brandId |
string
Identifiant unique de la marque.
|
brandDisplayName |
string
Nom à afficher de la marque.
|
regionId |
string
Identifiant de la région où le lancement de l'agent est modifié. Format : "/v1/regions/{regionId}". Par exemple, "/v1/regions/fi-rcs".
|
oldLaunchState |
enum (AgentLaunchEvent.LaunchState )
Uniquement en sortie. Nouveau type d'état de lancement.
|
newLaunchState |
enum (AgentLaunchEvent.LaunchState )
Uniquement en sortie. Type actuel de l'état de lancement.
|
actingParty |
string
Partie agissante.
|
sendTime |
string (Timestamp format)
Uniquement en sortie. Heure à laquelle le serveur envoie l'événement. Utilise la norme RFC 3339, où la sortie générée utilise le format UTC (indiqué par "Z" pour le temps universel coordonné) avec des secondes fractionnaires de 0, 3, 6 ou 9 chiffres décimaux. Des décalages horaires autres que "Z" (UTC) sont également acceptés. Exemples : "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" ou "2014-10-02T15:01:23+05:30" .
|
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/22 (UTC).
[null,null,["Dernière mise à jour le 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\"`. |"]]