RegularExpressionType
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Metni normal ifadelerle eşleştiren tür. Bu mesaj yerelleştirilebilir.
YAML temsili |
entities:
string: object (Entity ) |
Alanlar |
entities |
map (key: string, value: object (Entity ))
Zorunlu. Her biri normal ifade dizeleri içeren varlıkların adlandırılmış eşlemesi. "key": value çiftlerinin listesini içeren bir nesne. Örnek: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
Varlık
Karşılaştırma için kullanılan normal ifadeyi içeren bir varlık nesnesini temsil eder.
YAML temsili |
display:
object (EntityDisplay )
regularExpressions:
- string |
Alanlar |
display |
object (EntityDisplay )
İsteğe bağlı. Sorgudan bir varlık çıkarıldığında tuvalde gösterilecek öğeler. Yalnızca tuval özellikli uygulamalar için geçerlidir.
|
regularExpressions[] |
string
Zorunlu. RE2 normal ifade söz dizimini kullanır (Daha fazla ayrıntı için https://github.com/google/re2/wiki/Syntax adresine bakın)
|
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\u003eRegularExpressionType defines entities using regular expressions for text matching.\u003c/p\u003e\n"],["\u003cp\u003eEach entity within RegularExpressionType is represented by an \u003ccode\u003eEntity\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEntity\u003c/code\u003e objects contain regular expressions for matching and optional display elements for canvas apps.\u003c/p\u003e\n"],["\u003cp\u003eEntities are defined within a map using string keys and \u003ccode\u003eEntity\u003c/code\u003e object values.\u003c/p\u003e\n"]]],[],null,["# RegularExpressionType\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n- [Entity](#Entity)\n - [YAML representation](#Entity.SCHEMA_REPRESENTATION)\n\nType that matches text by regular expressions. **This message is localizable.**\n\n| YAML representation ||\n|-----------------------------------------------------------------------------------------------------------|---|\n| entities: string: object (/assistant/actionssdk/reference/rest/Shared.Types/RegularExpressionType#Entity) |\n\n| Fields ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entities` | `map (key: string, value: object (`[Entity](/assistant/actionssdk/reference/rest/Shared.Types/RegularExpressionType#Entity)`))` Required. Named map of entities which each contain Regex strings. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n\nEntity\n------\n\nRepresents an entity object that contains the regular expression that is used for comparison.\n\n| YAML representation ||\n|------------------------------------------------------------------------------------------------------------------------|---|\n| ``` display: object (/assistant/actionssdk/reference/rest/Shared.Types/EntityDisplay) regularExpressions: - string ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `display` | `object (`[EntityDisplay](/assistant/actionssdk/reference/rest/Shared.Types/EntityDisplay)`)` Optional. Elements that will be displayed on the canvas once an entity is extracted from a query. Only relevant for canvas enabled apps. |\n| `regularExpressions[]` | `string` Required. Uses RE2 regex syntax (See \u003chttps://github.com/google/re2/wiki/Syntax\u003e for more details) |"]]