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 |
फ़ील्ड |
display |
object (EntityDisplay )
ज़रूरी नहीं. किसी क्वेरी से इकाई को निकालने के बाद, कैनवस पर दिखाए जाने वाले एलिमेंट. यह सिर्फ़ कैनवस की सुविधा वाले ऐप्लिकेशन के लिए काम का है.
|
regularExpressions[] |
string
ज़रूरी है. RE2 रेगुलर एक्सप्रेशन सिंटैक्स का इस्तेमाल करता है (ज़्यादा जानकारी के लिए https://github.com/google/re2/wiki/Syntax देखें)
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\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) |"]]