ConfirmationValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ConfirmationDialogSpec
确认对话框的语音配置。请注意,这些配置更像是确认对话框,而不是绝对值。例如:如果未能收到用户的“请求确认”输入,确认对话框可能会响应:Sorry, $requestConfirmationText
。
JSON 表示法 |
{
"requestConfirmationText": string
} |
字段 |
requestConfirmationText |
string
这是确认子对话框提出的问题。例如,“您确定吗?”
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eInput for \u003ccode\u003eAskForConfirmation\u003c/code\u003e requires a \u003ccode\u003edialogSpec\u003c/code\u003e object, which configures the confirmation dialog.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConfirmationDialogSpec\u003c/code\u003e provides speech configurations, acting as guidance for the dialog's behavior, like using \u003ccode\u003erequestConfirmationText\u003c/code\u003e for prompting the user.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erequestConfirmationText\u003c/code\u003e field within \u003ccode\u003eConfirmationDialogSpec\u003c/code\u003e defines the question posed to the user during confirmation, such as "Are you sure about that?".\u003c/p\u003e\n"]]],["The core content details a JSON structure for configuring a confirmation dialog. It involves a `dialogSpec` object which utilizes `ConfirmationDialogSpec`. This specification includes `requestConfirmationText`, a string field defining the question presented in the confirmation dialog, such as \"Are you sure about that?\". This structure provides a way to define the confirmation question that is asked to the user. The configurations serve as a suggestion to the confirmation dialog.\n"],null,["# ConfirmationValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ConfirmationDialogSpec](#ConfirmationDialogSpec)\n - [JSON representation](#ConfirmationDialogSpec.SCHEMA_REPRESENTATION)\n\nInput for AskForConfirmation\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"dialogSpec\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/ConfirmationValueSpec#ConfirmationDialogSpec) } } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dialogSpec` | `object (`[ConfirmationDialogSpec](/assistant/df-asdk/reference/webhook/rest/Shared.Types/ConfirmationValueSpec#ConfirmationDialogSpec)`)` Configures dialog that asks for confirmation. |\n\nConfirmationDialogSpec\n----------------------\n\nSpeech configurations for confirmation dialog. Please note that these configurations act more like a hint to confirmation dialog than absolute value. For example: In case of failure in receiving input from user for \"request for confirmation\", the confirmation dialog may respond: `Sorry, $requestConfirmationText`.\n\n| JSON representation ||\n|-----------------------------------------------|---|\n| ``` { \"requestConfirmationText\": string } ``` |\n\n| Fields ||\n|---------------------------|--------------------------------------------------------------------------------------------------------|\n| `requestConfirmationText` | `string` This is the question asked by confirmation sub-dialog. For example \"Are you sure about that?\" |"]]