|
31 | 31 | manifest={ |
32 | 32 | "DataStore", |
33 | 33 | "AdvancedSiteSearchConfig", |
| 34 | + "NaturalLanguageQueryUnderstandingConfig", |
34 | 35 | "WorkspaceConfig", |
35 | 36 | }, |
36 | 37 | ) |
@@ -81,6 +82,9 @@ class DataStore(proto.Message): |
81 | 82 | advanced_site_search_config (google.cloud.discoveryengine_v1.types.AdvancedSiteSearchConfig): |
82 | 83 | Optional. Configuration for advanced site |
83 | 84 | search. |
| 85 | + natural_language_query_understanding_config (google.cloud.discoveryengine_v1.types.NaturalLanguageQueryUnderstandingConfig): |
| 86 | + Optional. Configuration for Natural Language |
| 87 | + Query Understanding. |
84 | 88 | kms_key_name (str): |
85 | 89 | Input only. The KMS key to be used to protect this DataStore |
86 | 90 | at creation time. |
@@ -265,6 +269,11 @@ class BillingEstimation(proto.Message): |
265 | 269 | number=12, |
266 | 270 | message="AdvancedSiteSearchConfig", |
267 | 271 | ) |
| 272 | + natural_language_query_understanding_config: "NaturalLanguageQueryUnderstandingConfig" = proto.Field( |
| 273 | + proto.MESSAGE, |
| 274 | + number=34, |
| 275 | + message="NaturalLanguageQueryUnderstandingConfig", |
| 276 | + ) |
268 | 277 | kms_key_name: str = proto.Field( |
269 | 278 | proto.STRING, |
270 | 279 | number=32, |
@@ -339,6 +348,45 @@ class AdvancedSiteSearchConfig(proto.Message): |
339 | 348 | ) |
340 | 349 |
|
341 | 350 |
|
| 351 | +class NaturalLanguageQueryUnderstandingConfig(proto.Message): |
| 352 | + r"""Configuration for Natural Language Query Understanding. |
| 353 | +
|
| 354 | + Attributes: |
| 355 | + mode (google.cloud.discoveryengine_v1.types.NaturalLanguageQueryUnderstandingConfig.Mode): |
| 356 | + Mode of Natural Language Query Understanding. If this field |
| 357 | + is unset, the behavior defaults to |
| 358 | + [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED]. |
| 359 | + """ |
| 360 | + |
| 361 | + class Mode(proto.Enum): |
| 362 | + r"""Mode of Natural Language Query Understanding. When the |
| 363 | + NaturalLanguageQueryUnderstandingConfig.Mode is ENABLED, the |
| 364 | + natural language understanding capabilities will be enabled for |
| 365 | + a search request if the |
| 366 | + NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition |
| 367 | + in the SearchRequest is ENABLED. |
| 368 | +
|
| 369 | + Values: |
| 370 | + MODE_UNSPECIFIED (0): |
| 371 | + Default value. |
| 372 | + DISABLED (1): |
| 373 | + Natural Language Query Understanding is |
| 374 | + disabled. |
| 375 | + ENABLED (2): |
| 376 | + Natural Language Query Understanding is |
| 377 | + enabled. |
| 378 | + """ |
| 379 | + MODE_UNSPECIFIED = 0 |
| 380 | + DISABLED = 1 |
| 381 | + ENABLED = 2 |
| 382 | + |
| 383 | + mode: Mode = proto.Field( |
| 384 | + proto.ENUM, |
| 385 | + number=1, |
| 386 | + enum=Mode, |
| 387 | + ) |
| 388 | + |
| 389 | + |
342 | 390 | class WorkspaceConfig(proto.Message): |
343 | 391 | r"""Config to store data store type configuration for workspace |
344 | 392 | data |
|
0 commit comments