@google-cloud/discoveryengine 1.8.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.
Files changed (199) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +33 -4
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/common.proto +33 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +2 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +569 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +4 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +2 -2
  11. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -6
  13. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +4 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
  16. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +4 -4
  17. package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +20 -19
  21. package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +5 -5
  22. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +23 -18
  23. package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
  24. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +3 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +28 -3
  26. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +18 -2
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +9 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +7 -0
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +16 -0
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +2 -2
  33. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +19 -3
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +2 -2
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +1 -0
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +12 -9
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +4 -4
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +30 -1
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +3 -0
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +4 -4
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +1 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +2 -0
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +19 -0
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +20 -19
  46. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +37 -2
  47. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +6 -6
  48. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +28 -31
  49. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +39 -0
  50. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +3 -0
  51. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +3 -0
  52. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +29 -3
  53. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +18 -2
  54. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +10 -1
  55. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +16 -0
  56. package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
  57. package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
  58. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +2 -2
  59. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +19 -3
  60. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
  61. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +2 -2
  62. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +1 -0
  63. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +7 -8
  64. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +4 -4
  65. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +30 -1
  66. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +3 -0
  67. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +4 -4
  68. package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
  69. package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
  70. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +19 -0
  71. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +20 -19
  72. package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +5 -5
  73. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +30 -24
  74. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +39 -0
  75. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +4 -1
  76. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +3 -0
  77. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +28 -3
  78. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +18 -2
  79. package/build/protos/protos.d.ts +52350 -38733
  80. package/build/protos/protos.js +136479 -103212
  81. package/build/protos/protos.json +9460 -5916
  82. package/build/src/index.d.ts +13 -1
  83. package/build/src/index.js +13 -1
  84. package/build/src/v1/completion_service_client.d.ts +549 -0
  85. package/build/src/v1/completion_service_client.js +771 -0
  86. package/build/src/v1/control_service_client.d.ts +1623 -0
  87. package/build/src/v1/control_service_client.js +2218 -0
  88. package/build/src/v1/control_service_client_config.json +63 -0
  89. package/build/src/v1/conversational_search_service_client.d.ts +893 -0
  90. package/build/src/v1/conversational_search_service_client.js +1040 -14
  91. package/build/src/v1/conversational_search_service_client_config.json +35 -0
  92. package/build/src/v1/data_store_service_client.d.ts +555 -6
  93. package/build/src/v1/data_store_service_client.js +775 -4
  94. package/build/src/v1/document_service_client.d.ts +557 -8
  95. package/build/src/v1/document_service_client.js +773 -2
  96. package/build/src/v1/engine_service_client.d.ts +549 -0
  97. package/build/src/v1/engine_service_client.js +771 -0
  98. package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
  99. package/build/src/v1/grounded_generation_service_client.js +2036 -0
  100. package/build/src/v1/grounded_generation_service_client_config.json +43 -0
  101. package/build/src/v1/index.d.ts +4 -0
  102. package/build/src/v1/index.js +9 -1
  103. package/build/src/v1/project_service_client.d.ts +1533 -0
  104. package/build/src/v1/project_service_client.js +2255 -0
  105. package/build/src/v1/project_service_client_config.json +43 -0
  106. package/build/src/v1/rank_service_client.d.ts +1449 -0
  107. package/build/src/v1/rank_service_client.js +2037 -0
  108. package/build/src/v1/rank_service_client_config.json +43 -0
  109. package/build/src/v1/recommendation_service_client.d.ts +568 -18
  110. package/build/src/v1/recommendation_service_client.js +756 -0
  111. package/build/src/v1/schema_service_client.d.ts +558 -9
  112. package/build/src/v1/schema_service_client.js +775 -4
  113. package/build/src/v1/search_service_client.d.ts +579 -21
  114. package/build/src/v1/search_service_client.js +776 -14
  115. package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
  116. package/build/src/v1/site_search_engine_service_client.js +771 -0
  117. package/build/src/v1/user_event_service_client.d.ts +562 -2
  118. package/build/src/v1/user_event_service_client.js +771 -0
  119. package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
  120. package/build/src/v1alpha/acl_config_service_client.js +326 -0
  121. package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
  122. package/build/src/v1alpha/chunk_service_client.js +326 -0
  123. package/build/src/v1alpha/completion_service_client.d.ts +237 -0
  124. package/build/src/v1alpha/completion_service_client.js +340 -0
  125. package/build/src/v1alpha/control_service_client.d.ts +2013 -0
  126. package/build/src/v1alpha/control_service_client.js +2757 -0
  127. package/build/src/v1alpha/control_service_client_config.json +63 -0
  128. package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
  129. package/build/src/v1alpha/conversational_search_service_client.js +326 -0
  130. package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
  131. package/build/src/v1alpha/data_store_service_client.js +344 -4
  132. package/build/src/v1alpha/document_service_client.d.ts +246 -9
  133. package/build/src/v1alpha/document_service_client.js +342 -2
  134. package/build/src/v1alpha/engine_service_client.d.ts +237 -0
  135. package/build/src/v1alpha/engine_service_client.js +340 -0
  136. package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
  137. package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
  138. package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
  139. package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
  140. package/build/src/v1alpha/index.d.ts +1 -0
  141. package/build/src/v1alpha/index.js +3 -1
  142. package/build/src/v1alpha/project_service_client.d.ts +239 -0
  143. package/build/src/v1alpha/project_service_client.js +340 -0
  144. package/build/src/v1alpha/project_service_client_config.json +21 -6
  145. package/build/src/v1alpha/rank_service_client.d.ts +255 -0
  146. package/build/src/v1alpha/rank_service_client.js +326 -0
  147. package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
  148. package/build/src/v1alpha/recommendation_service_client.js +326 -0
  149. package/build/src/v1alpha/schema_service_client.d.ts +247 -10
  150. package/build/src/v1alpha/schema_service_client.js +344 -4
  151. package/build/src/v1alpha/search_service_client.d.ts +267 -21
  152. package/build/src/v1alpha/search_service_client.js +346 -14
  153. package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
  154. package/build/src/v1alpha/search_tuning_service_client.js +365 -1
  155. package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
  156. package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
  157. package/build/src/v1alpha/serving_config_service_client.js +326 -0
  158. package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
  159. package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
  160. package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
  161. package/build/src/v1alpha/user_event_service_client.js +340 -0
  162. package/build/src/v1beta/completion_service_client.d.ts +252 -0
  163. package/build/src/v1beta/completion_service_client.js +359 -0
  164. package/build/src/v1beta/control_service_client.d.ts +1860 -0
  165. package/build/src/v1beta/control_service_client.js +2545 -0
  166. package/build/src/v1beta/control_service_client_config.json +63 -0
  167. package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
  168. package/build/src/v1beta/conversational_search_service_client.js +348 -0
  169. package/build/src/v1beta/data_store_service_client.d.ts +258 -6
  170. package/build/src/v1beta/data_store_service_client.js +363 -4
  171. package/build/src/v1beta/document_service_client.d.ts +261 -10
  172. package/build/src/v1beta/document_service_client.js +361 -2
  173. package/build/src/v1beta/engine_service_client.d.ts +252 -0
  174. package/build/src/v1beta/engine_service_client.js +359 -0
  175. package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
  176. package/build/src/v1beta/grounded_generation_service_client.js +348 -0
  177. package/build/src/v1beta/index.d.ts +2 -0
  178. package/build/src/v1beta/index.js +5 -1
  179. package/build/src/v1beta/project_service_client.d.ts +1770 -0
  180. package/build/src/v1beta/project_service_client.js +2576 -0
  181. package/build/src/v1beta/project_service_client_config.json +43 -0
  182. package/build/src/v1beta/rank_service_client.d.ts +270 -0
  183. package/build/src/v1beta/rank_service_client.js +348 -0
  184. package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
  185. package/build/src/v1beta/recommendation_service_client.js +348 -0
  186. package/build/src/v1beta/schema_service_client.d.ts +261 -9
  187. package/build/src/v1beta/schema_service_client.js +363 -4
  188. package/build/src/v1beta/search_service_client.d.ts +282 -21
  189. package/build/src/v1beta/search_service_client.js +368 -14
  190. package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
  191. package/build/src/v1beta/search_tuning_service_client.js +384 -1
  192. package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
  193. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  194. package/build/src/v1beta/serving_config_service_client.js +326 -0
  195. package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
  196. package/build/src/v1beta/site_search_engine_service_client.js +359 -0
  197. package/build/src/v1beta/user_event_service_client.d.ts +265 -2
  198. package/build/src/v1beta/user_event_service_client.js +359 -0
  199. package/package.json +2 -2
@@ -142,9 +142,9 @@ message ListSchemasRequest {
142
142
  // to return. The service may return fewer than this value.
143
143
  //
144
144
  // If unspecified, at most 100
145
- // [Schema][google.cloud.discoveryengine.v1beta.Schema]s will be returned.
145
+ // [Schema][google.cloud.discoveryengine.v1beta.Schema]s are returned.
146
146
  //
147
- // The maximum value is 1000; values above 1000 will be coerced to 1000.
147
+ // The maximum value is 1000; values above 1000 are set to 1000.
148
148
  int32 page_size = 2;
149
149
 
150
150
  // A page token, received from a previous
@@ -189,7 +189,7 @@ message CreateSchemaRequest {
189
189
  Schema schema = 2 [(google.api.field_behavior) = REQUIRED];
190
190
 
191
191
  // Required. The ID to use for the
192
- // [Schema][google.cloud.discoveryengine.v1beta.Schema], which will become the
192
+ // [Schema][google.cloud.discoveryengine.v1beta.Schema], which becomes the
193
193
  // final component of the
194
194
  // [Schema.name][google.cloud.discoveryengine.v1beta.Schema.name].
195
195
  //
@@ -209,8 +209,8 @@ message UpdateSchemaRequest {
209
209
 
210
210
  // If set to true, and the
211
211
  // [Schema][google.cloud.discoveryengine.v1beta.Schema] is not found, a new
212
- // [Schema][google.cloud.discoveryengine.v1beta.Schema] will be created. In
213
- // this situation, `update_mask` is ignored.
212
+ // [Schema][google.cloud.discoveryengine.v1beta.Schema] is created. In this
213
+ // situation, `update_mask` is ignored.
214
214
  bool allow_missing = 3;
215
215
  }
216
216
 
@@ -69,7 +69,9 @@ message SearchRequest {
69
69
  }
70
70
  }
71
71
 
72
- // A struct to define data stores to filter on in a search call.
72
+ // A struct to define data stores to filter on in a search call and
73
+ // configurations for those data stores. A maximum of 1 DataStoreSpec per
74
+ // data_store is allowed. Otherwise, an `INVALID_ARGUMENT` error is returned.
73
75
  message DataStoreSpec {
74
76
  // Required. Full resource name of
75
77
  // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
@@ -111,7 +113,7 @@ message SearchRequest {
111
113
  // Only supported on textual fields. Maximum is 10.
112
114
  repeated string prefixes = 4;
113
115
 
114
- // Only get facet values that contains the given strings. For example,
116
+ // Only get facet values that contain the given strings. For example,
115
117
  // suppose "category" has three values "Action > 2022",
116
118
  // "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the
117
119
  // "category" facet only contains "Action > 2022" and "Sci-Fi > 2022".
@@ -145,7 +147,7 @@ message SearchRequest {
145
147
  // Required. The facet key specification.
146
148
  FacetKey facet_key = 1 [(google.api.field_behavior) = REQUIRED];
147
149
 
148
- // Maximum of facet values that should be returned for this facet. If
150
+ // Maximum facet values that are returned for this facet. If
149
151
  // unspecified, defaults to 20. The maximum allowed value is 300. Values
150
152
  // above 300 are coerced to 300.
151
153
  //
@@ -255,7 +257,7 @@ message SearchRequest {
255
257
  // specified. The value must be formatted as an XSD `dayTimeDuration`
256
258
  // value (a restricted subset of an ISO 8601 duration value). The
257
259
  // pattern for this is: `[nD][T[nH][nM][nS]]`.
258
- // E.g. `5D`, `3DT12H30M`, `T24H`.
260
+ // For example, `5D`, `3DT12H30M`, `T24H`.
259
261
  FRESHNESS = 2;
260
262
  }
261
263
 
@@ -374,10 +376,10 @@ message SearchRequest {
374
376
  // [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
375
377
  MODE_UNSPECIFIED = 0;
376
378
 
377
- // Search API will try to find a spell suggestion if there
378
- // is any and put in the
379
+ // Search API tries to find a spelling suggestion. If a suggestion is
380
+ // found, it is put in the
379
381
  // [SearchResponse.corrected_query][google.cloud.discoveryengine.v1beta.SearchResponse.corrected_query].
380
- // The spell suggestion will not be used as the search query.
382
+ // The spelling suggestion won't be used as the search query.
381
383
  SUGGESTION_ONLY = 1;
382
384
 
383
385
  // Automatic spell correction built by the Search API. Search will
@@ -385,8 +387,8 @@ message SearchRequest {
385
387
  AUTO = 2;
386
388
  }
387
389
 
388
- // The mode under which spell correction should take effect to
389
- // replace the original search query. Default to
390
+ // The mode under which spell correction
391
+ // replaces the original search query. Defaults to
390
392
  // [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
391
393
  Mode mode = 1;
392
394
  }
@@ -441,7 +443,10 @@ message SearchRequest {
441
443
  // of results returned is less than `summaryResultCount`, the summary is
442
444
  // generated from all of the results.
443
445
  //
444
- // At most 10 results can be used to generate a summary.
446
+ // At most 10 results for documents mode, or 50 for chunks mode, can be
447
+ // used to generate a summary. The chunks mode is used when
448
+ // [SearchRequest.ContentSearchSpec.search_result_mode][] is set to
449
+ // [CHUNKS][SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
445
450
  int32 summary_result_count = 1;
446
451
 
447
452
  // Specifies whether to include citations in the summary. The default
@@ -652,7 +657,10 @@ message SearchRequest {
652
657
  // If this field is negative, an `INVALID_ARGUMENT` is returned.
653
658
  int32 offset = 6;
654
659
 
655
- // A list of data store specs to apply on a search call.
660
+ // Specs defining dataStores to filter on in a search call and configurations
661
+ // for those dataStores. This is only considered for engines with multiple
662
+ // dataStores use case. For single dataStore within an engine, they should
663
+ // use the specs at the top level.
656
664
  repeated DataStoreSpec data_store_specs = 32;
657
665
 
658
666
  // The filter syntax consists of an expression language for constructing a
@@ -689,7 +697,9 @@ message SearchRequest {
689
697
  // The order in which documents are returned. Documents can be ordered by
690
698
  // a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
691
699
  // object. Leave it unset if ordered by relevance. `order_by` expression is
692
- // case-sensitive. For more information on ordering, see
700
+ // case-sensitive.
701
+ //
702
+ // For more information on ordering for retail search, see
693
703
  // [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
694
704
  //
695
705
  // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
@@ -709,7 +719,7 @@ message SearchRequest {
709
719
 
710
720
  // Boost specification to boost certain documents.
711
721
  // For more information on boosting, see
712
- // [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
722
+ // [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
713
723
  BoostSpec boost_spec = 10;
714
724
 
715
725
  // Additional search parameters.
@@ -718,8 +728,7 @@ message SearchRequest {
718
728
  //
719
729
  // * `user_country_code`: string. Default empty. If set to non-empty, results
720
730
  // are restricted or boosted based on the location provided.
721
- // Example:
722
- // user_country_code: "au"
731
+ // For example, `user_country_code: "au"`
723
732
  //
724
733
  // For available codes see [Country
725
734
  // Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
@@ -727,8 +736,7 @@ message SearchRequest {
727
736
  // * `search_type`: double. Default empty. Enables non-webpage searching
728
737
  // depending on the value. The only valid non-default value is 1,
729
738
  // which enables image searching.
730
- // Example:
731
- // search_type: 1
739
+ // For example, `search_type: 1`
732
740
  map<string, google.protobuf.Value> params = 11;
733
741
 
734
742
  // The query expansion specification that specifies the conditions under which
@@ -827,7 +835,7 @@ message SearchResponse {
827
835
  string id = 1;
828
836
 
829
837
  // The document data snippet in the search response. Only fields that are
830
- // marked as retrievable are populated.
838
+ // marked as `retrievable` are populated.
831
839
  Document document = 2;
832
840
 
833
841
  // Google provided available scores.
@@ -853,7 +861,7 @@ message SearchResponse {
853
861
  int64 count = 3;
854
862
  }
855
863
 
856
- // The key for this facet. E.g., "colors" or "price". It matches
864
+ // The key for this facet. For example, `"colors"` or `"price"`. It matches
857
865
  // [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key].
858
866
  string key = 1;
859
867
 
@@ -869,10 +877,10 @@ message SearchResponse {
869
877
  message GuidedSearchResult {
870
878
  // Useful attribute for search result refinements.
871
879
  message RefinementAttribute {
872
- // Attribute key used to refine the results e.g. 'movie_type'.
880
+ // Attribute key used to refine the results. For example, `"movie_type"`.
873
881
  string attribute_key = 1;
874
882
 
875
- // Attribute value used to refine the results e.g. 'drama'.
883
+ // Attribute value used to refine the results. For example, `"drama"`.
876
884
  string attribute_value = 2;
877
885
  }
878
886
 
@@ -883,7 +891,7 @@ message SearchResponse {
883
891
  repeated string follow_up_questions = 2;
884
892
  }
885
893
 
886
- // Summary of the top N search result specified by the summary spec.
894
+ // Summary of the top N search results specified by the summary spec.
887
895
  message Summary {
888
896
  // Safety Attribute categories and their associated confidence scores.
889
897
  message SafetyAttributes {
@@ -1094,8 +1102,6 @@ message SearchResponse {
1094
1102
  // Controls applied as part of the Control service.
1095
1103
  repeated string applied_controls = 10;
1096
1104
 
1097
- // Debug information specifically related to forward geocoding issues arising
1098
- // from Geolocation Search.
1099
1105
  repeated GeoSearchDebugInfo geo_search_debug_info = 16;
1100
1106
 
1101
1107
  // Query expansion information for the returned results.
@@ -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/v1beta/custom_tuning_model.proto";
23
24
  import "google/cloud/discoveryengine/v1beta/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.v1beta.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: "/v1beta/{data_store=projects/*/locations/*/collections/*/dataStores/*}/customModels"
62
+ };
63
+ }
64
+ }
65
+
66
+ // Request message for
67
+ // [SearchTuningService.ListCustomModels][google.cloud.discoveryengine.v1beta.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.v1beta.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
@@ -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
  }];
@@ -60,7 +63,7 @@ message Session {
60
63
  }
61
64
 
62
65
  // Immutable. Fully qualified name
63
- // `project/*/locations/global/collections/{collection}/engines/{engine}/sessions/*`
66
+ // `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*`
64
67
  string name = 1 [(google.api.field_behavior) = IMMUTABLE];
65
68
 
66
69
  // The state of the session.
@@ -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];
@@ -32,7 +32,7 @@ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
32
32
  option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
33
33
 
34
34
  // UserEvent captures all metadata information Discovery Engine API needs to
35
- // know about how end users interact with customers' website.
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,31 @@ 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.v1beta.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.v1beta.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.v1beta.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.v1beta.UserEvent.engine] or
95
+ // [UserEvent.documents][google.cloud.discoveryengine.v1beta.UserEvent.documents].
96
+ // If data store is set in the parent of write/import/collect user event
97
+ // requests, this field can be omitted.
98
+ string data_store = 20 [(google.api.resource_reference) = {
99
+ type: "discoveryengine.googleapis.com/DataStore"
100
+ }];
101
+
77
102
  // Only required for
78
103
  // [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents]
79
104
  // method. Timestamp of when the user event happened.
@@ -196,7 +221,7 @@ message UserEvent {
196
221
 
197
222
  // A list of identifiers for the independent experiment groups this user event
198
223
  // belongs to. This is used to distinguish between user events associated with
199
- // different experiment setups on the customer end.
224
+ // different experiment setups.
200
225
  repeated string tag_ids = 15;
201
226
 
202
227
  // The promotion IDs if this is an event associated with promotions.
@@ -419,7 +444,7 @@ message DocumentInfo {
419
444
 
420
445
  // Quantity of the Document associated with the user event. Defaults to 1.
421
446
  //
422
- // For example, this field will be 2 if two quantities of the same Document
447
+ // For example, this field is 2 if two quantities of the same Document
423
448
  // are involved in a `add-to-cart` event.
424
449
  //
425
450
  // Required for events of the following event types:
@@ -49,6 +49,10 @@ service UserEventService {
49
49
  post: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write"
50
50
  body: "user_event"
51
51
  }
52
+ additional_bindings {
53
+ post: "/v1beta/{parent=projects/*/locations/*}/userEvents:write"
54
+ body: "user_event"
55
+ }
52
56
  };
53
57
  }
54
58
 
@@ -66,7 +70,7 @@ service UserEventService {
66
70
  };
67
71
  }
68
72
 
69
- // Bulk import of User events. Request processing might be
73
+ // Bulk import of user events. Request processing might be
70
74
  // synchronous. Events that already exist are skipped.
71
75
  // Use this method for backfilling historical user events.
72
76
  //
@@ -92,8 +96,16 @@ service UserEventService {
92
96
 
93
97
  // Request message for WriteUserEvent method.
94
98
  message WriteUserEventRequest {
95
- // Required. The parent DataStore resource name, such as
99
+ // Required. The parent resource name.
100
+ // If the write user event action is applied in
101
+ // [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
102
+ // format is:
96
103
  // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
104
+ // If the write user event action is applied in [Location][] level, for
105
+ // example, the event with
106
+ // [Document][google.cloud.discoveryengine.v1beta.Document] across multiple
107
+ // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is:
108
+ // `projects/{project}/locations/{location}`.
97
109
  string parent = 1 [
98
110
  (google.api.field_behavior) = REQUIRED,
99
111
  (google.api.resource_reference) = {
@@ -103,6 +115,10 @@ message WriteUserEventRequest {
103
115
 
104
116
  // Required. User event to write.
105
117
  optional UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
118
+
119
+ // If set to true, the user event is written asynchronously after
120
+ // validation, and the API responds without waiting for the write.
121
+ bool write_async = 3;
106
122
  }
107
123
 
108
124
  // Request message for CollectUserEvent method.