RegularExpressionType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
YAML 表示法 |
entities:
string: object (Entity ) |
字段 |
entities |
map (key: string, value: object (Entity ))
必需。实体的命名映射,每个实体都包含正则表达式字符串。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
实体
YAML 表示法 |
display:
object (EntityDisplay )
regularExpressions:
- string |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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) |"]]