Type
Stay organized with collections
Save and categorize content based on your preferences.
Declaration of a custom type, as opposed to built-in types. Types can be assigned to slots in a scene or parameters of an intent's training phrases. Practically, Types can be thought of as enums. Note, type name is specified in the name of the file.
YAML representation |
exclusions:
- string
# Union field sub_type can be only one of the following:
synonym:
object (SynonymType )
regularExpression:
object (RegularExpressionType )
freeText:
object (FreeTextType )
# End of list of possible types for union field sub_type . |
Fields |
exclusions[] |
string
Set of exceptional words/phrases that shouldn't be matched by type. Note: If word/phrase is matched by the type but listed as an exclusion it won't be returned in parameter extraction result. This field is localizable.
|
Union field sub_type . Selection of sub type based on the type of matching to be done. sub_type can be only one of the following: |
synonym |
object (SynonymType )
Synonyms type, which is essentially an enum.
|
regularExpression |
object (RegularExpressionType )
Regex type, allows regular expression matching.
|
freeText |
object (FreeTextType )
FreeText type.
|
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."],[[["Custom types, similar to enums, are declared in YAML and used for slots and intent parameters."],["Types can utilize synonyms, regular expressions, or free text for matching, with exclusions for specific words or phrases."],["The `exclusions` field is localizable, allowing for language-specific variations in excluded terms."],["Each custom type definition is stored in a separate file where the file name defines the type name."]]],[]]