TransactionDecisionValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
作为 actions.intent.TRANSACTION_DECISION
的输入从应用传递。
PresentationOptions
已弃用:请改用 V3 Proto。用于自定义向用户显示的订单呈现方式的选项。
JSON 表示法 |
{
"callToAction": string
} |
字段 |
callToAction |
string
callToAction 可以是以下值之一: PLACE_ORDER :用于下单。PAY :用于付款。BUY :用于购买交易。SEND :用于转账。BOOK :用于预订。RESERVE :用于预留。SCHEDULE :用于安排预约。SUBSCRIBE :用于订阅。
callToAction 是指最能准确描述此顺序的操作动词。在向用户建议订单时,会在提示、建议内容信息卡等各种位置使用此信息。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eTransactionDecisionValueSpec\u003c/code\u003e is used to pass input for \u003ccode\u003eactions.intent.TRANSACTION_DECISION\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details like \u003ccode\u003eproposedOrder\u003c/code\u003e, \u003ccode\u003eorderOptions\u003c/code\u003e, \u003ccode\u003epaymentOptions\u003c/code\u003e, and \u003ccode\u003epresentationOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003epresentationOptions\u003c/code\u003e is deprecated and suggests using V3 Proto instead.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecallToAction\u003c/code\u003e within \u003ccode\u003epresentationOptions\u003c/code\u003e helps tailor the user experience with appropriate action verbs.\u003c/p\u003e\n"]]],["The core content details the structure and fields for presenting a transaction decision to a user, passed as input for `actions.intent.TRANSACTION_DECISION`. It includes `proposedOrder`, `orderOptions`, `paymentOptions`, and `presentationOptions`. `presentationOptions` offers a `callToAction` field, which specifies the action verb for the order (e.g., `PLACE_ORDER`, `PAY`, `BUY`). This helps customize how the order is presented and the prompt to the user.\n"],null,["# TransactionDecisionValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [PresentationOptions](#PresentationOptions)\n - [JSON representation](#PresentationOptions.SCHEMA_REPRESENTATION)\n\nPassed from the app as input for `actions.intent.TRANSACTION_DECISION`.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"proposedOrder\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/ProposedOrder) }, \"orderOptions\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderOptions) }, \"paymentOptions\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/PaymentOptions) }, \"presentationOptions\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/TransactionDecisionValueSpec#PresentationOptions) } } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `proposedOrder` | `object (`[ProposedOrder](/assistant/df-asdk/reference/webhook/rest/Shared.Types/ProposedOrder)`)` The proposed order that's ready for user to approve. |\n| `orderOptions` | `object (`[OrderOptions](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderOptions)`)` Options associated with the order. |\n| `paymentOptions` | `object (`[PaymentOptions](/assistant/df-asdk/reference/webhook/rest/Shared.Types/PaymentOptions)`)` Payment options for this order, or empty if no payment is associated with the order. |\n| `presentationOptions` | `object (`[PresentationOptions](/assistant/df-asdk/reference/webhook/rest/Shared.Types/TransactionDecisionValueSpec#PresentationOptions)`)` Options used to customize order presentation to the user. |\n\nPresentationOptions\n-------------------\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. Options used to customize the order presentation to the user.\n\n| JSON representation ||\n|------------------------------------|---|\n| ``` { \"callToAction\": string } ``` |\n\n| Fields ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `callToAction` | `string` callToAction 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. callToAction refers to the action verb which best describes this order. This will be used in various places like prompt, suggestion chip etc while proposing the order to the user. |"]]