DeliveryAddressValueSpec
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Passato dall'app come input per actions.intent.DELIVERY_ADDRESS
.
Rappresentazione JSON |
{
"addressOptions": {
object (AddressOptions )
}
} |
Campi |
addressOptions |
object (AddressOptions )
Configurazione della finestra di dialogo dell'indirizzo di consegna.
|
AddressOptions
Opzioni disponibili quando viene richiesto un indirizzo di consegna.
Rappresentazione JSON |
{
"reason": string
} |
Campi |
reason |
string
L'app può facoltativamente trasmettere un breve testo che fornisce all'utente un suggerimento sul motivo per cui viene richiesto l'indirizzo di consegna. Ad esempio, "Grubhub richiede il tuo indirizzo per [determinare l'area coperta dal servizio].", il testo in [] è la sintesi vocale personalizzata che deve essere compilata qui.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]