DateTimeValueSpec
Stay organized with collections
Save and categorize content based on your preferences.
Spec to control asking the user for a datetime.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\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? |"]]