Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b483e92

Browse filesBrowse files
authored
chore: librarian generate pull request: 20260211T172749Z (#15560)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: add output-only field SemanticState to SearchResponse. PiperOrigin-RevId: 868345232 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@56bc1b49](googleapis/googleapis@56bc1b49) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: update documentation for search and data store NLQ features PiperOrigin-RevId: 868345232 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@56bc1b49](googleapis/googleapis@56bc1b49) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: other misc documentation updates Clients can specify Natural Language Query Understanding-related fields, as well as CrowdingSpec. These features are available in the V1 APIs. PiperOrigin-RevId: 868345232 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@56bc1b49](googleapis/googleapis@56bc1b49) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages PiperOrigin-RevId: 868345232 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@56bc1b49](googleapis/googleapis@56bc1b49) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: add CrowdingSpec to SearchRequest to set crowding settings PiperOrigin-RevId: 868345232 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@56bc1b49](googleapis/googleapis@56bc1b49) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@c288189b](googleapis/googleapis@c288189) (exclusive) and [googleapis/googleapis@56bc1b49](googleapis/googleapis@56bc1b4) (inclusive). Librarian Version: v0.7.0 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:f5426423676c75008c2135037e7b98f78cbb99f78b3c46fe043b6897be92d836
1 parent 5371e8e commit b483e92
Copy full SHA for b483e92

7 files changed

+785-136Lines changed: 785 additions & 136 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.librarian/state.yaml‎

Copy file name to clipboardExpand all lines: .librarian/state.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ libraries:
14141414
tag_format: '{id}-v{version}'
14151415
- id: google-cloud-discoveryengine
14161416
version: 0.16.0
1417-
last_generated_commit: c288189b43c016dd3cf1ec73ce3cadee8b732f07
1417+
last_generated_commit: f248ed087ef9b822834de74c962d9ba67bb737d3
14181418
apis:
14191419
- path: google/cloud/discoveryengine/v1
14201420
service_config: discoveryengine_v1.yaml
Collapse file

‎packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/__init__.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/__init__.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,12 @@
164164
UpdateSessionRequest,
165165
)
166166
from .types.custom_tuning_model import CustomTuningModel
167-
from .types.data_store import AdvancedSiteSearchConfig, DataStore, WorkspaceConfig
167+
from .types.data_store import (
168+
AdvancedSiteSearchConfig,
169+
DataStore,
170+
NaturalLanguageQueryUnderstandingConfig,
171+
WorkspaceConfig,
172+
)
168173
from .types.data_store_service import (
169174
CreateDataStoreMetadata,
170175
CreateDataStoreRequest,
@@ -638,6 +643,7 @@ def _get_version(dependency_name):
638643
"ListUserLicensesRequest",
639644
"ListUserLicensesResponse",
640645
"MediaInfo",
646+
"NaturalLanguageQueryUnderstandingConfig",
641647
"PageInfo",
642648
"PanelInfo",
643649
"Principal",
Collapse file

‎packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/types/__init__.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/types/__init__.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@
8585
UpdateSessionRequest,
8686
)
8787
from .custom_tuning_model import CustomTuningModel
88-
from .data_store import AdvancedSiteSearchConfig, DataStore, WorkspaceConfig
88+
from .data_store import (
89+
AdvancedSiteSearchConfig,
90+
DataStore,
91+
NaturalLanguageQueryUnderstandingConfig,
92+
WorkspaceConfig,
93+
)
8994
from .data_store_service import (
9095
CreateDataStoreMetadata,
9196
CreateDataStoreRequest,
@@ -339,6 +344,7 @@
339344
"CustomTuningModel",
340345
"AdvancedSiteSearchConfig",
341346
"DataStore",
347+
"NaturalLanguageQueryUnderstandingConfig",
342348
"WorkspaceConfig",
343349
"CreateDataStoreMetadata",
344350
"CreateDataStoreRequest",
Collapse file

‎packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/types/data_store.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/types/data_store.py
+48Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
manifest={
3232
"DataStore",
3333
"AdvancedSiteSearchConfig",
34+
"NaturalLanguageQueryUnderstandingConfig",
3435
"WorkspaceConfig",
3536
},
3637
)
@@ -81,6 +82,9 @@ class DataStore(proto.Message):
8182
advanced_site_search_config (google.cloud.discoveryengine_v1.types.AdvancedSiteSearchConfig):
8283
Optional. Configuration for advanced site
8384
search.
85+
natural_language_query_understanding_config (google.cloud.discoveryengine_v1.types.NaturalLanguageQueryUnderstandingConfig):
86+
Optional. Configuration for Natural Language
87+
Query Understanding.
8488
kms_key_name (str):
8589
Input only. The KMS key to be used to protect this DataStore
8690
at creation time.
@@ -265,6 +269,11 @@ class BillingEstimation(proto.Message):
265269
number=12,
266270
message="AdvancedSiteSearchConfig",
267271
)
272+
natural_language_query_understanding_config: "NaturalLanguageQueryUnderstandingConfig" = proto.Field(
273+
proto.MESSAGE,
274+
number=34,
275+
message="NaturalLanguageQueryUnderstandingConfig",
276+
)
268277
kms_key_name: str = proto.Field(
269278
proto.STRING,
270279
number=32,
@@ -339,6 +348,45 @@ class AdvancedSiteSearchConfig(proto.Message):
339348
)
340349

341350

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+
342390
class WorkspaceConfig(proto.Message):
343391
r"""Config to store data store type configuration for workspace
344392
data

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.