DeliveryAddressValueSpec
由应用作为 actions.intent.DELIVERY_ADDRESS
的输入传递。
AddressOptions
JSON 表示法 |
{
"reason": string
} |
字段 |
reason |
string
应用可以选择传递简短文本,让用户知道为何请求配送地址。例如,“Grubhub 正在请求您的地址以 [确定服务区域]”。[] 中的文本就是应在此处填充的自定义 TTS。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-09。
[null,null,["最后更新时间 (UTC):2024-09-09。"],[[["The `actions.intent.DELIVERY_ADDRESS` intent uses the `DeliveryAddressValueSpec` object."],["`DeliveryAddressValueSpec` requires an `AddressOptions` object for configuration."],["`AddressOptions` includes an optional `reason` field to explain why the address is needed."],["The `reason` field allows custom text-to-speech to provide context to the user."]]],["The core content describes the JSON structure for requesting a delivery address. The input for `actions.intent.DELIVERY_ADDRESS` is a JSON object containing `addressOptions`. This `addressOptions` object, in turn, contains a `reason` field, which is a string. This string provides context to the user about why their delivery address is being requested, with an example provided. This field is optional for the app to use.\n"]]