Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
PresentationOptions
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"actionDisplayName": string
} |
字段 |
actionDisplayName |
string
actionDisplayName 可以是以下值之一: PLACE_ORDER :用于下单。PAY :用于付款。BUY :用于购买交易。SEND :用于转账。BOOK :用于预订。RESERVE :用于预留。SCHEDULE :用于安排预约。SUBSCRIBE :用于订阅。
actionDisplayName 是指最符合该顺序的操作名称。在向用户建议订单时,会在提示、建议内容信息卡等各种位置使用此信息。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eJSON representation is used to customize how an order is presented to the user.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eactionDisplayName\u003c/code\u003e is a string field that categorizes the order's primary action (e.g., placing an order, making a payment).\u003c/p\u003e\n"],["\u003cp\u003eThis categorization influences how the order is presented to the user, such as in prompts or suggestion chips.\u003c/p\u003e\n"],["\u003cp\u003ePossible values for \u003ccode\u003eactionDisplayName\u003c/code\u003e include: \u003ccode\u003ePLACE_ORDER\u003c/code\u003e, \u003ccode\u003ePAY\u003c/code\u003e, \u003ccode\u003eBUY\u003c/code\u003e, \u003ccode\u003eSEND\u003c/code\u003e, \u003ccode\u003eBOOK\u003c/code\u003e, \u003ccode\u003eRESERVE\u003c/code\u003e, \u003ccode\u003eSCHEDULE\u003c/code\u003e, and \u003ccode\u003eSUBSCRIBE\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines a JSON representation for customizing order presentation. The key element is `actionDisplayName`, a string field specifying the action type. Possible values include `PLACE_ORDER`, `PAY`, `BUY`, `SEND`, `BOOK`, `RESERVE`, `SCHEDULE`, and `SUBSCRIBE`. This field determines how the order is displayed and proposed to the user in prompts and suggestions, using a specific name to describe the action.\n"],null,["# PresentationOptions\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nOptions used to customize the order presentation to the user.\n\n| JSON representation ||\n|-----------------------------------------|---|\n| ``` { \"actionDisplayName\": string } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `actionDisplayName` | `string` actionDisplayName can be one of the following values: `PLACE_ORDER`: Used for placing an order. `PAY`: Used for a payment. `BUY`: Used for a purchase. `SEND`: Used for a money transfer. `BOOK`: Used for a booking. `RESERVE`: Used for reservation. `SCHEDULE`: Used for scheduling an appointment. `SUBSCRIBE`: Used for subscription. actionDisplayName refers to the name of the action which best describes this order. This will be used in various places like prompt, suggestion chip etc while proposing the order to the user. \u003cbr /\u003e |"]]