new_releases 更新:查看
版本说明,了解新功能和产品动态。
UserFile
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis document details the structure of a file sent from a user to an agent, as represented in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eThe file structure includes a \u003ccode\u003ecategory\u003c/code\u003e field specifying the file type, drawn from the \u003ccode\u003eFileCategory\u003c/code\u003e enum.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003ethumbnail\u003c/code\u003e field, detailed as a \u003ccode\u003eFileInfo\u003c/code\u003e object, may be present to represent the file, particularly for images and videos.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epayload\u003c/code\u003e field, which is a \u003ccode\u003eFileInfo\u003c/code\u003e object, contains the actual file data.\u003c/p\u003e\n"]]],[],null,["# UserFile\n\nA file sent from a user to the agent.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"category\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/FileCategory), \"thumbnail\": { object (/business-communications/rcs-business-messaging/reference/rest/v1/FileInfo) }, \"payload\": { object (/business-communications/rcs-business-messaging/reference/rest/v1/FileInfo) } } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `category` | `enum (`[FileCategory](/business-communications/rcs-business-messaging/reference/rest/v1/FileCategory)`)` The category the file belongs to. |\n| `thumbnail` | `object (`[FileInfo](/business-communications/rcs-business-messaging/reference/rest/v1/FileInfo)`)` (Optional) A thumbnail representing the file. Usually sent alongside image and video files. |\n| `payload` | `object (`[FileInfo](/business-communications/rcs-business-messaging/reference/rest/v1/FileInfo)`)` The file. |"]]