DateTimeValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe DateTimeDialogSpec is used to control prompts when asking a user for a date and/or time.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes specific fields like \u003ccode\u003erequestDatetimeText\u003c/code\u003e, \u003ccode\u003erequestDateText\u003c/code\u003e, and \u003ccode\u003erequestTimeText\u003c/code\u003e to customize the prompts for requesting the date and time, date only, or time only, respectively.\u003c/p\u003e\n"],["\u003cp\u003eWhile these fields offer guidance for generating prompts, the system may adjust phrasing based on user interactions, such as using a fallback prompt like "Sorry; $request_(datetime/date/time)_text" if the initial prompt fails to elicit a valid response.\u003c/p\u003e\n"]]],[],null,["# DateTimeValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DateTimeDialogSpec](#DateTimeDialogSpec)\n - [JSON representation](#DateTimeDialogSpec.SCHEMA_REPRESENTATION)\n\nSpec to control asking the user for a datetime.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"dialogSpec\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/DateTimeValueSpec#DateTimeDialogSpec) } } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dialogSpec` | `object (`[DateTimeDialogSpec](/assistant/df-asdk/reference/webhook/rest/Shared.Types/DateTimeValueSpec#DateTimeDialogSpec)`)` Control datetime prompts. |\n\nDateTimeDialogSpec\n------------------\n\nSpeech configurations for asking for datetime. The fields in the dialogSpec are used to create prompt for the datetime dialog. Please note that these configurations act more like a hint than absolute value. For example: In case of failure in receiving input from user for datetime the prompt might be: \"Sorry; $request_(datetime/date/time)_text\".\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------|---|\n| ``` { \"requestDatetimeText\": string, \"requestDateText\": string, \"requestTimeText\": string } ``` |\n\n| Fields ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------|\n| `requestDatetimeText` | `string` This is used to create initial prompt by datetime sub-dialog. Example question: \"What date and time do you want?\" |\n| `requestDateText` | `string` This is used to create prompt to ask for date only. For example: What date are you looking for? |\n| `requestTimeText` | `string` This is used to create prompt to ask for time only. For example: What time? |"]]