@google-cloud/discoveryengine 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +33 -4
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +34 -1
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
- package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +570 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +5 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +7 -7
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
- package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +21 -20
- package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +6 -6
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +24 -19
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +29 -4
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +19 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +8 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +17 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +20 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +13 -10
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +31 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +21 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +38 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +7 -7
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +29 -32
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +30 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +19 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +11 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +17 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +20 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +8 -9
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +31 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +5 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +21 -20
- package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +6 -6
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +31 -25
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +5 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +29 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +19 -3
- package/build/protos/protos.d.ts +52350 -38733
- package/build/protos/protos.js +136479 -103212
- package/build/protos/protos.json +9460 -5916
- package/build/src/index.d.ts +13 -1
- package/build/src/index.js +13 -1
- package/build/src/v1/completion_service_client.d.ts +549 -0
- package/build/src/v1/completion_service_client.js +771 -0
- package/build/src/v1/control_service_client.d.ts +1623 -0
- package/build/src/v1/control_service_client.js +2218 -0
- package/build/src/v1/control_service_client_config.json +63 -0
- package/build/src/v1/conversational_search_service_client.d.ts +893 -0
- package/build/src/v1/conversational_search_service_client.js +1040 -14
- package/build/src/v1/conversational_search_service_client_config.json +35 -0
- package/build/src/v1/data_store_service_client.d.ts +555 -6
- package/build/src/v1/data_store_service_client.js +775 -4
- package/build/src/v1/document_service_client.d.ts +557 -8
- package/build/src/v1/document_service_client.js +773 -2
- package/build/src/v1/engine_service_client.d.ts +549 -0
- package/build/src/v1/engine_service_client.js +771 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
- package/build/src/v1/grounded_generation_service_client.js +2036 -0
- package/build/src/v1/grounded_generation_service_client_config.json +43 -0
- package/build/src/v1/index.d.ts +4 -0
- package/build/src/v1/index.js +9 -1
- package/build/src/v1/project_service_client.d.ts +1533 -0
- package/build/src/v1/project_service_client.js +2255 -0
- package/build/src/v1/project_service_client_config.json +43 -0
- package/build/src/v1/rank_service_client.d.ts +1449 -0
- package/build/src/v1/rank_service_client.js +2037 -0
- package/build/src/v1/rank_service_client_config.json +43 -0
- package/build/src/v1/recommendation_service_client.d.ts +568 -18
- package/build/src/v1/recommendation_service_client.js +756 -0
- package/build/src/v1/schema_service_client.d.ts +558 -9
- package/build/src/v1/schema_service_client.js +775 -4
- package/build/src/v1/search_service_client.d.ts +579 -21
- package/build/src/v1/search_service_client.js +776 -14
- package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
- package/build/src/v1/site_search_engine_service_client.js +771 -0
- package/build/src/v1/user_event_service_client.d.ts +562 -2
- package/build/src/v1/user_event_service_client.js +771 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
- package/build/src/v1alpha/acl_config_service_client.js +326 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
- package/build/src/v1alpha/chunk_service_client.js +326 -0
- package/build/src/v1alpha/completion_service_client.d.ts +237 -0
- package/build/src/v1alpha/completion_service_client.js +340 -0
- package/build/src/v1alpha/control_service_client.d.ts +2013 -0
- package/build/src/v1alpha/control_service_client.js +2757 -0
- package/build/src/v1alpha/control_service_client_config.json +63 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
- package/build/src/v1alpha/conversational_search_service_client.js +326 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
- package/build/src/v1alpha/data_store_service_client.js +344 -4
- package/build/src/v1alpha/document_service_client.d.ts +246 -9
- package/build/src/v1alpha/document_service_client.js +342 -2
- package/build/src/v1alpha/engine_service_client.d.ts +237 -0
- package/build/src/v1alpha/engine_service_client.js +340 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
- package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +239 -0
- package/build/src/v1alpha/project_service_client.js +340 -0
- package/build/src/v1alpha/project_service_client_config.json +21 -6
- package/build/src/v1alpha/rank_service_client.d.ts +255 -0
- package/build/src/v1alpha/rank_service_client.js +326 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
- package/build/src/v1alpha/recommendation_service_client.js +326 -0
- package/build/src/v1alpha/schema_service_client.d.ts +247 -10
- package/build/src/v1alpha/schema_service_client.js +344 -4
- package/build/src/v1alpha/search_service_client.d.ts +267 -21
- package/build/src/v1alpha/search_service_client.js +346 -14
- package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
- package/build/src/v1alpha/search_tuning_service_client.js +365 -1
- package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
- package/build/src/v1alpha/serving_config_service_client.js +326 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
- package/build/src/v1alpha/user_event_service_client.js +340 -0
- package/build/src/v1beta/completion_service_client.d.ts +252 -0
- package/build/src/v1beta/completion_service_client.js +359 -0
- package/build/src/v1beta/control_service_client.d.ts +1860 -0
- package/build/src/v1beta/control_service_client.js +2545 -0
- package/build/src/v1beta/control_service_client_config.json +63 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
- package/build/src/v1beta/conversational_search_service_client.js +348 -0
- package/build/src/v1beta/data_store_service_client.d.ts +258 -6
- package/build/src/v1beta/data_store_service_client.js +363 -4
- package/build/src/v1beta/document_service_client.d.ts +261 -10
- package/build/src/v1beta/document_service_client.js +361 -2
- package/build/src/v1beta/engine_service_client.d.ts +252 -0
- package/build/src/v1beta/engine_service_client.js +359 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
- package/build/src/v1beta/grounded_generation_service_client.js +348 -0
- package/build/src/v1beta/index.d.ts +2 -0
- package/build/src/v1beta/index.js +5 -1
- package/build/src/v1beta/project_service_client.d.ts +1770 -0
- package/build/src/v1beta/project_service_client.js +2576 -0
- package/build/src/v1beta/project_service_client_config.json +43 -0
- package/build/src/v1beta/rank_service_client.d.ts +270 -0
- package/build/src/v1beta/rank_service_client.js +348 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
- package/build/src/v1beta/recommendation_service_client.js +348 -0
- package/build/src/v1beta/schema_service_client.d.ts +261 -9
- package/build/src/v1beta/schema_service_client.js +363 -4
- package/build/src/v1beta/search_service_client.d.ts +282 -21
- package/build/src/v1beta/search_service_client.js +368 -14
- package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
- package/build/src/v1beta/search_tuning_service_client.js +384 -1
- package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
- package/build/src/v1beta/serving_config_service_client.js +326 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
- package/build/src/v1beta/site_search_engine_service_client.js +359 -0
- package/build/src/v1beta/user_event_service_client.d.ts +265 -2
- package/build/src/v1beta/user_event_service_client.js +359 -0
- package/package.json +2 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -70,7 +70,9 @@ message SearchRequest {
|
|
70
70
|
}
|
71
71
|
}
|
72
72
|
|
73
|
-
// A struct to define data stores to filter on in a search call
|
73
|
+
// A struct to define data stores to filter on in a search call and
|
74
|
+
// configurations for those data stores. A maximum of 1 DataStoreSpec per
|
75
|
+
// data_store is allowed. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
74
76
|
message DataStoreSpec {
|
75
77
|
// Required. Full resource name of
|
76
78
|
// [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
|
@@ -112,7 +114,7 @@ message SearchRequest {
|
|
112
114
|
// Only supported on textual fields. Maximum is 10.
|
113
115
|
repeated string prefixes = 4;
|
114
116
|
|
115
|
-
// Only get facet values that
|
117
|
+
// Only get facet values that contain the given strings. For example,
|
116
118
|
// suppose "category" has three values "Action > 2022",
|
117
119
|
// "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
|
118
120
|
// "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
|
@@ -146,7 +148,7 @@ message SearchRequest {
|
|
146
148
|
// Required. The facet key specification.
|
147
149
|
FacetKey facet_key = 1 [(google.api.field_behavior) = REQUIRED];
|
148
150
|
|
149
|
-
// Maximum
|
151
|
+
// Maximum facet values that are returned for this facet. If
|
150
152
|
// unspecified, defaults to 20. The maximum allowed value is 300. Values
|
151
153
|
// above 300 are coerced to 300.
|
152
154
|
//
|
@@ -256,7 +258,7 @@ message SearchRequest {
|
|
256
258
|
// specified. The value must be formatted as an XSD `dayTimeDuration`
|
257
259
|
// value (a restricted subset of an ISO 8601 duration value). The
|
258
260
|
// pattern for this is: `[nD][T[nH][nM][nS]]`.
|
259
|
-
//
|
261
|
+
// For example, `5D`, `3DT12H30M`, `T24H`.
|
260
262
|
FRESHNESS = 2;
|
261
263
|
}
|
262
264
|
|
@@ -375,10 +377,10 @@ message SearchRequest {
|
|
375
377
|
// [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
|
376
378
|
MODE_UNSPECIFIED = 0;
|
377
379
|
|
378
|
-
// Search API
|
379
|
-
//
|
380
|
+
// Search API tries to find a spelling suggestion. If a suggestion is
|
381
|
+
// found, it is put in the
|
380
382
|
// [SearchResponse.corrected_query][google.cloud.discoveryengine.v1alpha.SearchResponse.corrected_query].
|
381
|
-
// The
|
383
|
+
// The spelling suggestion won't be used as the search query.
|
382
384
|
SUGGESTION_ONLY = 1;
|
383
385
|
|
384
386
|
// Automatic spell correction built by the Search API. Search will
|
@@ -386,8 +388,8 @@ message SearchRequest {
|
|
386
388
|
AUTO = 2;
|
387
389
|
}
|
388
390
|
|
389
|
-
// The mode under which spell correction
|
390
|
-
//
|
391
|
+
// The mode under which spell correction
|
392
|
+
// replaces the original search query. Defaults to
|
391
393
|
// [Mode.AUTO][google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
|
392
394
|
Mode mode = 1;
|
393
395
|
}
|
@@ -587,11 +589,7 @@ message SearchRequest {
|
|
587
589
|
}
|
588
590
|
|
589
591
|
// Specifies the search result mode. If unspecified, the
|
590
|
-
// search result mode
|
591
|
-
// [DataStore.DocumentProcessingConfig.chunking_config][]:
|
592
|
-
// * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
|
593
|
-
// it defaults to `CHUNKS`.
|
594
|
-
// * Otherwise, it defaults to `DOCUMENTS`.
|
592
|
+
// search result mode defaults to `DOCUMENTS`.
|
595
593
|
enum SearchResultMode {
|
596
594
|
// Default value.
|
597
595
|
SEARCH_RESULT_MODE_UNSPECIFIED = 0;
|
@@ -617,11 +615,7 @@ message SearchRequest {
|
|
617
615
|
ExtractiveContentSpec extractive_content_spec = 3;
|
618
616
|
|
619
617
|
// Specifies the search result mode. If unspecified, the
|
620
|
-
// search result mode
|
621
|
-
// [DataStore.DocumentProcessingConfig.chunking_config][]:
|
622
|
-
// * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
|
623
|
-
// it defaults to `CHUNKS`.
|
624
|
-
// * Otherwise, it defaults to `DOCUMENTS`.
|
618
|
+
// search result mode defaults to `DOCUMENTS`.
|
625
619
|
SearchResultMode search_result_mode = 4;
|
626
620
|
|
627
621
|
// Specifies the chunk spec to be returned from the search response.
|
@@ -708,7 +702,10 @@ message SearchRequest {
|
|
708
702
|
// If this field is negative, an `INVALID_ARGUMENT` is returned.
|
709
703
|
int32 offset = 6;
|
710
704
|
|
711
|
-
//
|
705
|
+
// Specs defining dataStores to filter on in a search call and configurations
|
706
|
+
// for those dataStores. This is only considered for engines with multiple
|
707
|
+
// dataStores use case. For single dataStore within an engine, they should
|
708
|
+
// use the specs at the top level.
|
712
709
|
repeated DataStoreSpec data_store_specs = 32;
|
713
710
|
|
714
711
|
// The filter syntax consists of an expression language for constructing a
|
@@ -745,7 +742,9 @@ message SearchRequest {
|
|
745
742
|
// The order in which documents are returned. Documents can be ordered by
|
746
743
|
// a field in an [Document][google.cloud.discoveryengine.v1alpha.Document]
|
747
744
|
// object. Leave it unset if ordered by relevance. `order_by` expression is
|
748
|
-
// case-sensitive.
|
745
|
+
// case-sensitive.
|
746
|
+
//
|
747
|
+
// For more information on ordering for retail search, see
|
749
748
|
// [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
750
749
|
//
|
751
750
|
// If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -765,7 +764,7 @@ message SearchRequest {
|
|
765
764
|
|
766
765
|
// Boost specification to boost certain documents.
|
767
766
|
// For more information on boosting, see
|
768
|
-
// [Boosting](https://cloud.google.com/
|
767
|
+
// [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
769
768
|
BoostSpec boost_spec = 10;
|
770
769
|
|
771
770
|
// Additional search parameters.
|
@@ -774,8 +773,7 @@ message SearchRequest {
|
|
774
773
|
//
|
775
774
|
// * `user_country_code`: string. Default empty. If set to non-empty, results
|
776
775
|
// are restricted or boosted based on the location provided.
|
777
|
-
//
|
778
|
-
// user_country_code: "au"
|
776
|
+
// For example, `user_country_code: "au"`
|
779
777
|
//
|
780
778
|
// For available codes see [Country
|
781
779
|
// Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -783,8 +781,7 @@ message SearchRequest {
|
|
783
781
|
// * `search_type`: double. Default empty. Enables non-webpage searching
|
784
782
|
// depending on the value. The only valid non-default value is 1,
|
785
783
|
// which enables image searching.
|
786
|
-
//
|
787
|
-
// search_type: 1
|
784
|
+
// For example, `search_type: 1`
|
788
785
|
map<string, google.protobuf.Value> params = 11;
|
789
786
|
|
790
787
|
// The query expansion specification that specifies the conditions under which
|
@@ -886,7 +883,7 @@ message SearchResponse {
|
|
886
883
|
string id = 1;
|
887
884
|
|
888
885
|
// The document data snippet in the search response. Only fields that are
|
889
|
-
// marked as retrievable are populated.
|
886
|
+
// marked as `retrievable` are populated.
|
890
887
|
Document document = 2;
|
891
888
|
|
892
889
|
// The chunk data in the search response if the
|
@@ -918,7 +915,7 @@ message SearchResponse {
|
|
918
915
|
int64 count = 3;
|
919
916
|
}
|
920
917
|
|
921
|
-
// The key for this facet.
|
918
|
+
// The key for this facet. For example, `"colors"` or `"price"`. It matches
|
922
919
|
// [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key].
|
923
920
|
string key = 1;
|
924
921
|
|
@@ -934,10 +931,10 @@ message SearchResponse {
|
|
934
931
|
message GuidedSearchResult {
|
935
932
|
// Useful attribute for search result refinements.
|
936
933
|
message RefinementAttribute {
|
937
|
-
// Attribute key used to refine the results
|
934
|
+
// Attribute key used to refine the results. For example, `"movie_type"`.
|
938
935
|
string attribute_key = 1;
|
939
936
|
|
940
|
-
// Attribute value used to refine the results
|
937
|
+
// Attribute value used to refine the results. For example, `"drama"`.
|
941
938
|
string attribute_value = 2;
|
942
939
|
}
|
943
940
|
|
@@ -948,7 +945,7 @@ message SearchResponse {
|
|
948
945
|
repeated string follow_up_questions = 2;
|
949
946
|
}
|
950
947
|
|
951
|
-
// Summary of the top N search
|
948
|
+
// Summary of the top N search results specified by the summary spec.
|
952
949
|
message Summary {
|
953
950
|
// Safety Attribute categories and their associated confidence scores.
|
954
951
|
message SafetyAttributes {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
|
|
20
20
|
import "google/api/client.proto";
|
21
21
|
import "google/api/field_behavior.proto";
|
22
22
|
import "google/api/resource.proto";
|
23
|
+
import "google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto";
|
23
24
|
import "google/cloud/discoveryengine/v1alpha/import_config.proto";
|
24
25
|
import "google/longrunning/operations.proto";
|
25
26
|
import "google/protobuf/timestamp.proto";
|
@@ -52,6 +53,38 @@ service SearchTuningService {
|
|
52
53
|
metadata_type: "google.cloud.discoveryengine.v1alpha.TrainCustomModelMetadata"
|
53
54
|
};
|
54
55
|
}
|
56
|
+
|
57
|
+
// Gets a list of all the custom models.
|
58
|
+
rpc ListCustomModels(ListCustomModelsRequest)
|
59
|
+
returns (ListCustomModelsResponse) {
|
60
|
+
option (google.api.http) = {
|
61
|
+
get: "/v1alpha/{data_store=projects/*/locations/*/collections/*/dataStores/*}/customModels"
|
62
|
+
};
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
// Request message for
|
67
|
+
// [SearchTuningService.ListCustomModels][google.cloud.discoveryengine.v1alpha.SearchTuningService.ListCustomModels]
|
68
|
+
// method.
|
69
|
+
message ListCustomModelsRequest {
|
70
|
+
// Required. The resource name of the parent Data Store, such as
|
71
|
+
// `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
|
72
|
+
// This field is used to identify the data store where to fetch the models
|
73
|
+
// from.
|
74
|
+
string data_store = 1 [
|
75
|
+
(google.api.field_behavior) = REQUIRED,
|
76
|
+
(google.api.resource_reference) = {
|
77
|
+
type: "discoveryengine.googleapis.com/DataStore"
|
78
|
+
}
|
79
|
+
];
|
80
|
+
}
|
81
|
+
|
82
|
+
// Response message for
|
83
|
+
// [SearchTuningService.ListCustomModels][google.cloud.discoveryengine.v1alpha.SearchTuningService.ListCustomModels]
|
84
|
+
// method.
|
85
|
+
message ListCustomModelsResponse {
|
86
|
+
// List of custom tuning models.
|
87
|
+
repeated CustomTuningModel models = 1;
|
55
88
|
}
|
56
89
|
|
57
90
|
// Request message for
|
@@ -118,6 +151,9 @@ message TrainCustomModelRequest {
|
|
118
151
|
// The desired location of errors incurred during the data ingestion and
|
119
152
|
// training.
|
120
153
|
ImportErrorConfig error_config = 4;
|
154
|
+
|
155
|
+
// If not provided, a UUID will be generated.
|
156
|
+
string model_id = 5;
|
121
157
|
}
|
122
158
|
|
123
159
|
// Response of the
|
@@ -143,6 +179,9 @@ message TrainCustomModelResponse {
|
|
143
179
|
|
144
180
|
// The metrics of the trained model.
|
145
181
|
map<string, double> metrics = 4;
|
182
|
+
|
183
|
+
// Fully qualified name of the CustomTuningModel.
|
184
|
+
string model_name = 5;
|
146
185
|
}
|
147
186
|
|
148
187
|
// Metadata related to the progress of the TrainCustomModel operation. This is
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -45,6 +45,9 @@ message Session {
|
|
45
45
|
Query query = 1;
|
46
46
|
|
47
47
|
// The resource name of the answer to the user query.
|
48
|
+
//
|
49
|
+
// Only set if the answer generation (/answer API call) happened in this
|
50
|
+
// turn.
|
48
51
|
string answer = 2 [(google.api.resource_reference) = {
|
49
52
|
type: "discoveryengine.googleapis.com/Answer"
|
50
53
|
}];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -129,6 +129,9 @@ message TargetSite {
|
|
129
129
|
// Output only. This is system-generated based on the provided_uri_pattern.
|
130
130
|
string generated_uri_pattern = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
|
131
131
|
|
132
|
+
// Output only. Root domain of the provided_uri_pattern.
|
133
|
+
string root_domain_uri = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
|
134
|
+
|
132
135
|
// Output only. Site ownership and validity verification status.
|
133
136
|
SiteVerificationInfo site_verification_info = 7
|
134
137
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -32,7 +32,7 @@ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
|
|
32
32
|
option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
|
33
33
|
|
34
34
|
// UserEvent captures all metadata information Discovery Engine API needs to
|
35
|
-
// know about how end users interact with
|
35
|
+
// know about how end users interact with your website.
|
36
36
|
message UserEvent {
|
37
37
|
// Required. User event type. Allowed values are:
|
38
38
|
//
|
@@ -74,6 +74,32 @@ message UserEvent {
|
|
74
74
|
// for this field.
|
75
75
|
string user_pseudo_id = 2 [(google.api.field_behavior) = REQUIRED];
|
76
76
|
|
77
|
+
// The [Engine][google.cloud.discoveryengine.v1alpha.Engine] resource name, in
|
78
|
+
// the form of
|
79
|
+
// `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
|
80
|
+
//
|
81
|
+
// Optional. Only required for
|
82
|
+
// [Engine][google.cloud.discoveryengine.v1alpha.Engine] produced user events.
|
83
|
+
// For example, user events from blended search.
|
84
|
+
string engine = 19 [(google.api.resource_reference) = {
|
85
|
+
type: "discoveryengine.googleapis.com/Engine"
|
86
|
+
}];
|
87
|
+
|
88
|
+
// The [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] resource
|
89
|
+
// full name, of the form
|
90
|
+
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
|
91
|
+
//
|
92
|
+
// Optional. Only required for user events whose data store can't by
|
93
|
+
// determined by
|
94
|
+
// [UserEvent.engine][google.cloud.discoveryengine.v1alpha.UserEvent.engine]
|
95
|
+
// or
|
96
|
+
// [UserEvent.documents][google.cloud.discoveryengine.v1alpha.UserEvent.documents].
|
97
|
+
// If data store is set in the parent of write/import/collect user event
|
98
|
+
// requests, this field can be omitted.
|
99
|
+
string data_store = 20 [(google.api.resource_reference) = {
|
100
|
+
type: "discoveryengine.googleapis.com/DataStore"
|
101
|
+
}];
|
102
|
+
|
77
103
|
// Only required for
|
78
104
|
// [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents]
|
79
105
|
// method. Timestamp of when the user event happened.
|
@@ -196,7 +222,7 @@ message UserEvent {
|
|
196
222
|
|
197
223
|
// A list of identifiers for the independent experiment groups this user event
|
198
224
|
// belongs to. This is used to distinguish between user events associated with
|
199
|
-
// different experiment setups
|
225
|
+
// different experiment setups.
|
200
226
|
repeated string tag_ids = 15;
|
201
227
|
|
202
228
|
// The promotion IDs if this is an event associated with promotions.
|
@@ -420,7 +446,7 @@ message DocumentInfo {
|
|
420
446
|
|
421
447
|
// Quantity of the Document associated with the user event. Defaults to 1.
|
422
448
|
//
|
423
|
-
// For example, this field
|
449
|
+
// For example, this field is 2 if two quantities of the same Document
|
424
450
|
// are involved in a `add-to-cart` event.
|
425
451
|
//
|
426
452
|
// Required for events of the following event types:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -50,6 +50,10 @@ service UserEventService {
|
|
50
50
|
post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write"
|
51
51
|
body: "user_event"
|
52
52
|
}
|
53
|
+
additional_bindings {
|
54
|
+
post: "/v1alpha/{parent=projects/*/locations/*}/userEvents:write"
|
55
|
+
body: "user_event"
|
56
|
+
}
|
53
57
|
};
|
54
58
|
}
|
55
59
|
|
@@ -87,7 +91,7 @@ service UserEventService {
|
|
87
91
|
};
|
88
92
|
}
|
89
93
|
|
90
|
-
// Bulk import of
|
94
|
+
// Bulk import of user events. Request processing might be
|
91
95
|
// synchronous. Events that already exist are skipped.
|
92
96
|
// Use this method for backfilling historical user events.
|
93
97
|
//
|
@@ -113,8 +117,16 @@ service UserEventService {
|
|
113
117
|
|
114
118
|
// Request message for WriteUserEvent method.
|
115
119
|
message WriteUserEventRequest {
|
116
|
-
// Required. The parent
|
120
|
+
// Required. The parent resource name.
|
121
|
+
// If the write user event action is applied in
|
122
|
+
// [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] level, the
|
123
|
+
// format is:
|
117
124
|
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
|
125
|
+
// If the write user event action is applied in [Location][] level, for
|
126
|
+
// example, the event with
|
127
|
+
// [Document][google.cloud.discoveryengine.v1alpha.Document] across multiple
|
128
|
+
// [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], the format is:
|
129
|
+
// `projects/{project}/locations/{location}`.
|
118
130
|
string parent = 1 [
|
119
131
|
(google.api.field_behavior) = REQUIRED,
|
120
132
|
(google.api.resource_reference) = {
|
@@ -124,6 +136,10 @@ message WriteUserEventRequest {
|
|
124
136
|
|
125
137
|
// Required. User event to write.
|
126
138
|
optional UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
|
139
|
+
|
140
|
+
// If set to true, the user event is written asynchronously after
|
141
|
+
// validation, and the API responds without waiting for the write.
|
142
|
+
bool write_async = 3;
|
127
143
|
}
|
128
144
|
|
129
145
|
// Request message for CollectUserEvent method.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1beta;
|
|
18
18
|
|
19
19
|
import "google/api/field_behavior.proto";
|
20
20
|
import "google/api/resource.proto";
|
21
|
+
import "google/protobuf/struct.proto";
|
21
22
|
import "google/protobuf/timestamp.proto";
|
22
23
|
|
23
24
|
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
@@ -83,6 +84,10 @@ message Answer {
|
|
83
84
|
|
84
85
|
// List of cited chunk contents derived from document content.
|
85
86
|
repeated ChunkContent chunk_contents = 4;
|
87
|
+
|
88
|
+
// The structured JSON metadata for the document.
|
89
|
+
// It is populated from the struct data from the Chunk in search result.
|
90
|
+
google.protobuf.Struct struct_data = 5;
|
86
91
|
}
|
87
92
|
|
88
93
|
// Chunk information.
|
@@ -102,6 +107,10 @@ message Answer {
|
|
102
107
|
|
103
108
|
// Page identifier.
|
104
109
|
string page_identifier = 4;
|
110
|
+
|
111
|
+
// The structured JSON metadata for the document.
|
112
|
+
// It is populated from the struct data from the Chunk in search result.
|
113
|
+
google.protobuf.Struct struct_data = 5;
|
105
114
|
}
|
106
115
|
|
107
116
|
// Chunk resource name.
|
@@ -290,7 +299,7 @@ message Answer {
|
|
290
299
|
}
|
291
300
|
|
292
301
|
// Immutable. Fully qualified name
|
293
|
-
// `project
|
302
|
+
// `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
|
294
303
|
string name = 1 [(google.api.field_behavior) = IMMUTABLE];
|
295
304
|
|
296
305
|
// The state of the answer generation.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
1
|
+
// Copyright 2024 Google LLC
|
2
2
|
//
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
// you may not use this file except in compliance with the License.
|
@@ -94,6 +94,22 @@ enum SolutionType {
|
|
94
94
|
SOLUTION_TYPE_GENERATIVE_CHAT = 4;
|
95
95
|
}
|
96
96
|
|
97
|
+
// Defines a further subdivision of `SolutionType`.
|
98
|
+
// Specifically applies to
|
99
|
+
// [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
|
100
|
+
enum SearchUseCase {
|
101
|
+
// Value used when unset. Will not occur in CSS.
|
102
|
+
SEARCH_USE_CASE_UNSPECIFIED = 0;
|
103
|
+
|
104
|
+
// Search use case. Expects the traffic has a non-empty
|
105
|
+
// [query][google.cloud.discoveryengine.v1beta.SearchRequest.query].
|
106
|
+
SEARCH_USE_CASE_SEARCH = 1;
|
107
|
+
|
108
|
+
// Browse use case. Expects the traffic has an empty
|
109
|
+
// [query][google.cloud.discoveryengine.v1beta.SearchRequest.query].
|
110
|
+
SEARCH_USE_CASE_BROWSE = 2;
|
111
|
+
}
|
112
|
+
|
97
113
|
// Tiers of search features. Different tiers might have different
|
98
114
|
// pricing. To learn more, check the pricing documentation.
|
99
115
|
enum SearchTier {
|