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 4b400fa

Browse filesBrowse files
authored
chore: librarian generate pull request: 20260325T142358Z (#16166)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: Update DataStoreSpec and add BoostSpec to SearchService PiperOrigin-RevId: 886697454 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@7439b698](googleapis/googleapis@7439b698) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: Clarify project number requirement for data_store field PiperOrigin-RevId: 886697454 Library-IDs: google-cloud-discoveryengine Source-link: [googleapis/googleapis@7439b698](googleapis/googleapis@7439b698) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@256b575f](googleapis/googleapis@256b575) (exclusive) and [googleapis/googleapis@7439b698](googleapis/googleapis@7439b69) (inclusive). Librarian Version: v1.0.2-0.20260309131826-42ac5c451239 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c5699d10addd7c32f45569a3eddc624bf68731095922cf9db0fda5352f849bf5
1 parent 64582e8 commit 4b400fa
Copy full SHA for 4b400fa

3 files changed

+36-21Lines changed: 36 additions & 21 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
@@ -1567,7 +1567,7 @@ libraries:
15671567
tag_format: '{id}-v{version}'
15681568
- id: google-cloud-discoveryengine
15691569
version: 0.17.0
1570-
last_generated_commit: 256b575f6915282b20795c13414b21f2c0af65db
1570+
last_generated_commit: 59d5f2b46924714af627ac29ea6de78641a00835
15711571
apis:
15721572
- path: google/cloud/discoveryengine/v1
15731573
service_config: discoveryengine_v1.yaml
Collapse file

‎packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1beta/types/search_service.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1beta/types/search_service.py
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,17 @@ class DataStoreSpec(proto.Message):
503503
[DataStore][google.cloud.discoveryengine.v1beta.DataStore],
504504
such as
505505
``projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}``.
506+
The path must include the project number, project id is not
507+
supported for this field.
506508
filter (str):
507509
Optional. Filter specification to filter documents in the
508510
data store specified by data_store field. For more
509511
information on filtering, see
510512
`Filtering <https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata>`__
513+
boost_spec (google.cloud.discoveryengine_v1beta.types.SearchRequest.BoostSpec):
514+
Optional. Boost specification to boost certain documents.
515+
For more information on boosting, see
516+
`Boosting <https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results>`__
511517
"""
512518

513519
data_store: str = proto.Field(
@@ -518,6 +524,11 @@ class DataStoreSpec(proto.Message):
518524
proto.STRING,
519525
number=5,
520526
)
527+
boost_spec: "SearchRequest.BoostSpec" = proto.Field(
528+
proto.MESSAGE,
529+
number=6,
530+
message="SearchRequest.BoostSpec",
531+
)
521532

522533
class FacetSpec(proto.Message):
523534
r"""A facet specification to perform faceted search.
Collapse file

‎packages/google-cloud-discoveryengine/tests/unit/gapic/discoveryengine_v1beta/test_evaluation_service.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-discoveryengine/tests/unit/gapic/discoveryengine_v1beta/test_evaluation_service.py
+24-20Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4677,7 +4677,29 @@ def test_create_evaluation_rest_call_success(request_type):
46774677
"offset": 647,
46784678
"one_box_page_size": 1792,
46794679
"data_store_specs": [
4680-
{"data_store": "data_store_value", "filter": "filter_value"}
4680+
{
4681+
"data_store": "data_store_value",
4682+
"filter": "filter_value",
4683+
"boost_spec": {
4684+
"condition_boost_specs": [
4685+
{
4686+
"condition": "condition_value",
4687+
"boost": 0.551,
4688+
"boost_control_spec": {
4689+
"field_name": "field_name_value",
4690+
"attribute_type": 1,
4691+
"interpolation_type": 1,
4692+
"control_points": [
4693+
{
4694+
"attribute_value": "attribute_value_value",
4695+
"boost_amount": 0.1306,
4696+
}
4697+
],
4698+
},
4699+
}
4700+
]
4701+
},
4702+
}
46814703
],
46824704
"filter": "filter_value",
46834705
"canonical_filter": "canonical_filter_value",
@@ -4717,25 +4739,7 @@ def test_create_evaluation_rest_call_success(request_type):
47174739
"enable_dynamic_position": True,
47184740
}
47194741
],
4720-
"boost_spec": {
4721-
"condition_boost_specs": [
4722-
{
4723-
"condition": "condition_value",
4724-
"boost": 0.551,
4725-
"boost_control_spec": {
4726-
"field_name": "field_name_value",
4727-
"attribute_type": 1,
4728-
"interpolation_type": 1,
4729-
"control_points": [
4730-
{
4731-
"attribute_value": "attribute_value_value",
4732-
"boost_amount": 0.1306,
4733-
}
4734-
],
4735-
},
4736-
}
4737-
]
4738-
},
4742+
"boost_spec": {},
47394743
"params": {},
47404744
"query_expansion_spec": {
47414745
"condition": 1,

0 commit comments

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