UserMessage は、エージェントが Google Pub/Sub サブスクリプションから受け取る「message」オブジェクトの「data」フィールドに表示されます。data フィールドは Base64 でエンコードされた文字列で、エージェントは UserMessage 構造と一致するようにデコードする必要があります。
JSON 表現
{"senderPhoneNumber": string,"messageId": string,"sendTime": string,"agentId": string,// Union field content can be only one of the following:"text": string,"userFile": {object (UserFile)},"location": {object (LatLng)},"suggestionResponse": {object (SuggestionResponse)}// End of list of possible types for union field content.}
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-04-27 UTC。"],[[["UserMessage data is received by the agent in a base64-encoded string within the \"data\" field of the \"message\" object, which must be decoded."],["The UserMessage includes fields such as `senderPhoneNumber`, `messageId`, `sendTime`, and `agentId`, providing details about the sender and message metadata."],["The `content` field of a UserMessage can represent various types of user input, including `text`, `userFile`, `location`, or `suggestionResponse`."],["`sendTime` follows RFC 3339 format, which supports fractional digits and time offsets, ensuring precise time information."],["The `senderPhoneNumber` is the user's number in E.164 format, and `messageId` is a unique identifier assigned to the message by the user's RCS client."]]],[]]