DeliveryAddressValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
由应用作为 actions.intent.DELIVERY_ADDRESS
的输入传递。
AddressOptions
JSON 表示法 |
{
"reason": string
} |
字段 |
reason |
string
应用可以选择传递简短文本,让用户知道为何请求配送地址。例如,“Grubhub 正在请求您的地址以 [确定服务区域]”。[] 中的文本就是应在此处填充的自定义 TTS。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.DELIVERY_ADDRESS\u003c/code\u003e intent uses the \u003ccode\u003eDeliveryAddressValueSpec\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDeliveryAddressValueSpec\u003c/code\u003e requires an \u003ccode\u003eAddressOptions\u003c/code\u003e object for configuration.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAddressOptions\u003c/code\u003e includes an optional \u003ccode\u003ereason\u003c/code\u003e field to explain why the address is needed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field allows custom text-to-speech to provide context to the user.\u003c/p\u003e\n"]]],["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"],null,["# DeliveryAddressValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AddressOptions](#AddressOptions)\n - [JSON representation](#AddressOptions.SCHEMA_REPRESENTATION)\n\nPassed by the app as input for `actions.intent.DELIVERY_ADDRESS`.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"addressOptions\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/DeliveryAddressValueSpec#AddressOptions) } } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `addressOptions` | `object (`[AddressOptions](/assistant/df-asdk/reference/webhook/rest/Shared.Types/DeliveryAddressValueSpec#AddressOptions)`)` Configuration for delivery address dialog. |\n\nAddressOptions\n--------------\n\nOptions when asking for a delivery address.\n\n| JSON representation ||\n|------------------------------|---|\n| ``` { \"reason\": string } ``` |\n\n| Fields ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `reason` | `string` App can optionally pass a short text giving user a hint why delivery address is requested. For example, \"Grubhub is asking your address for \\[determining the service area\\].\", the text in `[]` is the custom TTS that should be populated here. |"]]