Type
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Yerleşik türlerin aksine özel bir türün bildirimi. Türler, bir sahnedeki alanlara veya bir niyetin eğitim ifadelerinin parametrelerine atanabilir. Pratikte Türler, enum olarak düşünülebilir. Tür adının, dosya adında belirtildiğini unutmayın.
YAML temsili |
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 . |
Alanlar |
exclusions[] |
string
Türle eşleştirilmemesi gereken istisnai kelime/kelime öbeği kümesi. Not: Kelime/kelime öbeği türle eşleşiyorsa ancak hariç tutma olarak listeleniyorsa parametre ayıklama sonucunda döndürülmez. Bu alan yerelleştirilebilir.
|
Birleştirme alanı sub_type . Yapılacak eşleşmenin türüne göre alt tür seçimi. sub_type şunlardan yalnızca biri olabilir: |
synonym |
object (SynonymType )
Temelde bir numaralandırma olan eş anlamlılar türü.
|
regularExpression |
object (RegularExpressionType )
Normal ifade türü, normal ifade eşleşmesine olanak tanır.
|
freeText |
object (FreeTextType )
FreeText türü.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 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. |"]]