Type
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
बिल्ट-इन टाइप के उलट, पसंद के मुताबिक टाइप का एलान. टाइप को सीन में स्लॉट या किसी इंटेंट के ट्रेनिंग वाक्यांशों के पैरामीटर में असाइन किया जा सकता है. आम तौर पर, टाइप को ईनम माना जा सकता है. ध्यान दें, फ़ाइल के नाम में टाइप का नाम मौजूद है.
YAML प्रतिनिधि |
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 . |
फ़ील्ड |
exclusions[] |
string
ऐसे असाधारण शब्दों/वाक्यांशों का सेट जो टाइप के हिसाब से मेल नहीं खाने चाहिए. ध्यान दें: अगर शब्द/वाक्यांश टाइप के हिसाब से मैच करता है, लेकिन उसे शामिल नहीं किया गया है, तो पैरामीटर को एक्सट्रैक्ट करने के नतीजे में नहीं दिखाया जाएगा. इस फ़ील्ड को स्थानीय भाषा में लिखा जा सकता है.
|
यूनियन फ़ील्ड sub_type . किए जाने वाले मिलान के प्रकार के आधार पर उप प्रकार का चुनाव. sub_type इनमें से सिर्फ़ एक हो सकता है: |
synonym |
object (SynonymType )
समानार्थी शब्द का टाइप, जो खास तौर पर एक ईनम होता है.
|
regularExpression |
object (RegularExpressionType )
रेगुलर एक्सप्रेशन मिलान की अनुमति देता है.
|
freeText |
object (FreeTextType )
FreeText प्रकार.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eCustom types, similar to enums, are declared in YAML and used for slots and intent parameters.\u003c/p\u003e\n"],["\u003cp\u003eTypes can utilize synonyms, regular expressions, or free text for matching, with exclusions for specific words or phrases.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eexclusions\u003c/code\u003e field is localizable, allowing for language-specific variations in excluded terms.\u003c/p\u003e\n"],["\u003cp\u003eEach custom type definition is stored in a separate file where the file name defines the type name.\u003c/p\u003e\n"]]],[],null,["# Type\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n\nDeclaration 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.\n\n| YAML representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` exclusions: - string # Union field `sub_type` can be only one of the following: synonym: object (/assistant/actionssdk/reference/rest/Shared.Types/SynonymType) regularExpression: object (/assistant/actionssdk/reference/rest/Shared.Types/RegularExpressionType) freeText: object (/assistant/actionssdk/reference/rest/Shared.Types/FreeTextType) # End of list of possible types for union field `sub_type`. ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `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.** |\n| 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: |||\n| `synonym` | `object (`[SynonymType](/assistant/actionssdk/reference/rest/Shared.Types/SynonymType)`)` Synonyms type, which is essentially an enum. |\n| `regularExpression` | `object (`[RegularExpressionType](/assistant/actionssdk/reference/rest/Shared.Types/RegularExpressionType)`)` Regex type, allows regular expression matching. |\n| `freeText` | `object (`[FreeTextType](/assistant/actionssdk/reference/rest/Shared.Types/FreeTextType)`)` FreeText type. |"]]