PlaceDialogSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
AskForPlace 的语音配置。请注意,这些配置更像是位置对话框提示,而不是绝对值。位置信息对话框有几种其他类型的响应,此配置未涵盖这些响应类型。即使响应可通过此输入进行配置,位置信息对话框也可能会选择添加其他信息以覆盖这些提示。例如:如果未能收到用户的“请求位置信息”输入,位置信息对话框可能会响应:“抱歉;$request_location”。
JSON 表示法 |
{
"requestPrompt": string,
"permissionContext": string
} |
字段 |
requestPrompt |
string
这是 AskForPlace 子对话框的初始提示。例如,“你想在哪个地方?”
|
permissionContext |
string
如果用户在“家”“单位”等子对话框中提示输入个人位置信息,那么此上下文用于请求访问各种用户相关数据的权限或“爸爸的房子”例如,“*为了帮你查找果汁店*,我需要查看一下你的位置。我可以从 Google 获取这项信息吗?”。此权限提示的第一部分可配置。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eSpeech configurations in AskForPlace act as hints to the location dialog, not absolute values.\u003c/p\u003e\n"],["\u003cp\u003eThe location dialog may add information or override the configurations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003erequestPrompt\u003c/code\u003e configures the initial prompt for asking the user's desired place.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003epermissionContext\u003c/code\u003e configures the prompt for seeking permission to access user location data when personal locations are requested.\u003c/p\u003e\n"]]],["The provided content details configurations for the \"AskForPlace\" location dialog. It defines two key fields: `requestPrompt`, which is the initial prompt to the user (e.g., \"What place do you want?\"), and `permissionContext`, which provides context when requesting location access (e.g., \"To help you find juice stores...\"). These configurations serve as hints rather than absolute directives for the location dialog, which may add or override them. These settings support user interactions for location.\n"],null,["# PlaceDialogSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nSpeech configurations for AskForPlace. Please note that these configurations act more like a hint to location dialog than absolute value. The location dialog has several other types of responses that are not covered in this config. Even in case of responses that are configurable with this input, location dialog may choose to add additional info to override these hints. For example: In case of failure in receiving input from user for \"request location\", the location dialog might respond: \"Sorry; $request_location\".\n\n| JSON representation ||\n|------------------------------------------------------------------|---|\n| ``` { \"requestPrompt\": string, \"permissionContext\": string } ``` |\n\n| Fields ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestPrompt` | `string` This is the initial prompt by AskForPlace sub-dialog. For example \"What place do you want?\" |\n| `permissionContext` | `string` This is the context for seeking permission to access various user related data if the user prompts for personal location during the sub-dialog like \"Home\", \"Work\" or \"Dad's house\". For example \"\\*To help you find juice stores\\*, I just need to check your location. Can I get that from Google?\". The first part of this permission prompt is configurable. |"]]