new_releases Updates : ознакомьтесь с
примечаниями к выпуску, чтобы узнать о новых функциях и обновлениях продукта.
UserFile
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Файл, отправленный пользователем агенту.
Поля |
---|
category | enum ( FileCategory ) Категория, к которой принадлежит файл. |
thumbnail | object ( FileInfo ) (Необязательно) Миниатюра, представляющая файл. Обычно отправляется вместе с изображениями и видеофайлами. |
payload | object ( FileInfo ) Файл. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\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. |"]]