DeliveryAddressValueSpec
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Ứng dụng đã truyền dưới dạng dữ liệu đầu vào cho actions.intent.DELIVERY_ADDRESS
.
Biểu diễn dưới dạng JSON |
{
"addressOptions": {
object (AddressOptions )
}
} |
Trường |
addressOptions |
object (AddressOptions )
Cấu hình cho hộp thoại địa chỉ giao hàng.
|
AddressOptions
Các lựa chọn khi yêu cầu địa chỉ giao hàng.
Biểu diễn dưới dạng JSON |
{
"reason": string
} |
Trường |
reason |
string
Ứng dụng có thể tuỳ ý chuyển một văn bản ngắn để gợi ý cho người dùng về lý do yêu cầu địa chỉ giao hàng. Ví dụ: "Grubhub đang yêu cầu địa chỉ của bạn cho việc [xác định khu vực kinh doanh].", văn bản trong [] là TTS tuỳ chỉnh cần được điền vào đây.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eDeliveryAddressValueSpec is used for providing delivery address information to the app.\u003c/p\u003e\n"],["\u003cp\u003eIt includes AddressOptions for configuring the delivery address dialog.\u003c/p\u003e\n"],["\u003cp\u003eAddressOptions can include a reason to explain to the user why their address is needed.\u003c/p\u003e\n"],["\u003cp\u003eThe reason can be customized with text-to-speech for a more natural interaction.\u003c/p\u003e\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/actionssdk/reference/rest/Shared.Types/DeliveryAddressValueSpec#AddressOptions) } } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `addressOptions` | `object (`[AddressOptions](/assistant/actionssdk/reference/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. |"]]