@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.
Files changed (229) hide show
  1. package/CHANGELOG.md +16 -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 +34 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +1 -1
  6. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +1 -1
  7. package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -3
  10. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +570 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +5 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +3 -3
  13. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +7 -7
  16. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +5 -5
  17. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +1 -1
  18. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +5 -5
  21. package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
  23. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +21 -20
  26. package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
  27. package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +6 -6
  28. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +24 -19
  29. package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
  30. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +4 -1
  31. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +1 -1
  32. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +29 -4
  33. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +19 -3
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +1 -1
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +10 -1
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +8 -1
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +1 -1
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +17 -1
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +1 -1
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +1 -1
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -3
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +20 -4
  46. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
  47. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +1 -1
  48. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +3 -3
  49. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  50. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +2 -1
  51. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +13 -10
  52. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +5 -5
  53. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  54. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +1 -1
  55. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +31 -2
  56. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +4 -1
  57. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +5 -5
  58. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +2 -1
  59. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +3 -1
  60. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +1 -1
  61. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +20 -1
  62. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +21 -20
  63. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +38 -3
  64. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +7 -7
  65. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +29 -32
  66. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +40 -1
  67. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +1 -1
  68. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +1 -1
  69. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +4 -1
  70. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +4 -1
  71. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +1 -1
  72. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +30 -4
  73. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +19 -3
  74. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +11 -2
  75. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +17 -1
  76. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +1 -1
  77. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +1 -1
  78. package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
  79. package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
  80. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -3
  81. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +20 -4
  82. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
  83. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +1 -1
  84. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +3 -3
  85. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  86. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -1
  87. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +8 -9
  88. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +5 -5
  89. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +1 -1
  90. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +31 -2
  91. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +4 -1
  92. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +5 -5
  93. package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
  94. package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
  95. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +1 -1
  96. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +20 -1
  97. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +21 -20
  98. package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
  99. package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +6 -6
  100. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +31 -25
  101. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +40 -1
  102. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +1 -1
  103. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +1 -1
  104. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +5 -2
  105. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +4 -1
  106. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +1 -1
  107. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +29 -4
  108. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +19 -3
  109. package/build/protos/protos.d.ts +52350 -38733
  110. package/build/protos/protos.js +136479 -103212
  111. package/build/protos/protos.json +9460 -5916
  112. package/build/src/index.d.ts +13 -1
  113. package/build/src/index.js +13 -1
  114. package/build/src/v1/completion_service_client.d.ts +549 -0
  115. package/build/src/v1/completion_service_client.js +771 -0
  116. package/build/src/v1/control_service_client.d.ts +1623 -0
  117. package/build/src/v1/control_service_client.js +2218 -0
  118. package/build/src/v1/control_service_client_config.json +63 -0
  119. package/build/src/v1/conversational_search_service_client.d.ts +893 -0
  120. package/build/src/v1/conversational_search_service_client.js +1040 -14
  121. package/build/src/v1/conversational_search_service_client_config.json +35 -0
  122. package/build/src/v1/data_store_service_client.d.ts +555 -6
  123. package/build/src/v1/data_store_service_client.js +775 -4
  124. package/build/src/v1/document_service_client.d.ts +557 -8
  125. package/build/src/v1/document_service_client.js +773 -2
  126. package/build/src/v1/engine_service_client.d.ts +549 -0
  127. package/build/src/v1/engine_service_client.js +771 -0
  128. package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
  129. package/build/src/v1/grounded_generation_service_client.js +2036 -0
  130. package/build/src/v1/grounded_generation_service_client_config.json +43 -0
  131. package/build/src/v1/index.d.ts +4 -0
  132. package/build/src/v1/index.js +9 -1
  133. package/build/src/v1/project_service_client.d.ts +1533 -0
  134. package/build/src/v1/project_service_client.js +2255 -0
  135. package/build/src/v1/project_service_client_config.json +43 -0
  136. package/build/src/v1/rank_service_client.d.ts +1449 -0
  137. package/build/src/v1/rank_service_client.js +2037 -0
  138. package/build/src/v1/rank_service_client_config.json +43 -0
  139. package/build/src/v1/recommendation_service_client.d.ts +568 -18
  140. package/build/src/v1/recommendation_service_client.js +756 -0
  141. package/build/src/v1/schema_service_client.d.ts +558 -9
  142. package/build/src/v1/schema_service_client.js +775 -4
  143. package/build/src/v1/search_service_client.d.ts +579 -21
  144. package/build/src/v1/search_service_client.js +776 -14
  145. package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
  146. package/build/src/v1/site_search_engine_service_client.js +771 -0
  147. package/build/src/v1/user_event_service_client.d.ts +562 -2
  148. package/build/src/v1/user_event_service_client.js +771 -0
  149. package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
  150. package/build/src/v1alpha/acl_config_service_client.js +326 -0
  151. package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
  152. package/build/src/v1alpha/chunk_service_client.js +326 -0
  153. package/build/src/v1alpha/completion_service_client.d.ts +237 -0
  154. package/build/src/v1alpha/completion_service_client.js +340 -0
  155. package/build/src/v1alpha/control_service_client.d.ts +2013 -0
  156. package/build/src/v1alpha/control_service_client.js +2757 -0
  157. package/build/src/v1alpha/control_service_client_config.json +63 -0
  158. package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
  159. package/build/src/v1alpha/conversational_search_service_client.js +326 -0
  160. package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
  161. package/build/src/v1alpha/data_store_service_client.js +344 -4
  162. package/build/src/v1alpha/document_service_client.d.ts +246 -9
  163. package/build/src/v1alpha/document_service_client.js +342 -2
  164. package/build/src/v1alpha/engine_service_client.d.ts +237 -0
  165. package/build/src/v1alpha/engine_service_client.js +340 -0
  166. package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
  167. package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
  168. package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
  169. package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
  170. package/build/src/v1alpha/index.d.ts +1 -0
  171. package/build/src/v1alpha/index.js +3 -1
  172. package/build/src/v1alpha/project_service_client.d.ts +239 -0
  173. package/build/src/v1alpha/project_service_client.js +340 -0
  174. package/build/src/v1alpha/project_service_client_config.json +21 -6
  175. package/build/src/v1alpha/rank_service_client.d.ts +255 -0
  176. package/build/src/v1alpha/rank_service_client.js +326 -0
  177. package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
  178. package/build/src/v1alpha/recommendation_service_client.js +326 -0
  179. package/build/src/v1alpha/schema_service_client.d.ts +247 -10
  180. package/build/src/v1alpha/schema_service_client.js +344 -4
  181. package/build/src/v1alpha/search_service_client.d.ts +267 -21
  182. package/build/src/v1alpha/search_service_client.js +346 -14
  183. package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
  184. package/build/src/v1alpha/search_tuning_service_client.js +365 -1
  185. package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
  186. package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
  187. package/build/src/v1alpha/serving_config_service_client.js +326 -0
  188. package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
  189. package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
  190. package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
  191. package/build/src/v1alpha/user_event_service_client.js +340 -0
  192. package/build/src/v1beta/completion_service_client.d.ts +252 -0
  193. package/build/src/v1beta/completion_service_client.js +359 -0
  194. package/build/src/v1beta/control_service_client.d.ts +1860 -0
  195. package/build/src/v1beta/control_service_client.js +2545 -0
  196. package/build/src/v1beta/control_service_client_config.json +63 -0
  197. package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
  198. package/build/src/v1beta/conversational_search_service_client.js +348 -0
  199. package/build/src/v1beta/data_store_service_client.d.ts +258 -6
  200. package/build/src/v1beta/data_store_service_client.js +363 -4
  201. package/build/src/v1beta/document_service_client.d.ts +261 -10
  202. package/build/src/v1beta/document_service_client.js +361 -2
  203. package/build/src/v1beta/engine_service_client.d.ts +252 -0
  204. package/build/src/v1beta/engine_service_client.js +359 -0
  205. package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
  206. package/build/src/v1beta/grounded_generation_service_client.js +348 -0
  207. package/build/src/v1beta/index.d.ts +2 -0
  208. package/build/src/v1beta/index.js +5 -1
  209. package/build/src/v1beta/project_service_client.d.ts +1770 -0
  210. package/build/src/v1beta/project_service_client.js +2576 -0
  211. package/build/src/v1beta/project_service_client_config.json +43 -0
  212. package/build/src/v1beta/rank_service_client.d.ts +270 -0
  213. package/build/src/v1beta/rank_service_client.js +348 -0
  214. package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
  215. package/build/src/v1beta/recommendation_service_client.js +348 -0
  216. package/build/src/v1beta/schema_service_client.d.ts +261 -9
  217. package/build/src/v1beta/schema_service_client.js +363 -4
  218. package/build/src/v1beta/search_service_client.d.ts +282 -21
  219. package/build/src/v1beta/search_service_client.js +368 -14
  220. package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
  221. package/build/src/v1beta/search_tuning_service_client.js +384 -1
  222. package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
  223. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  224. package/build/src/v1beta/serving_config_service_client.js +326 -0
  225. package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
  226. package/build/src/v1beta/site_search_engine_service_client.js +359 -0
  227. package/build/src/v1beta/user_event_service_client.d.ts +265 -2
  228. package/build/src/v1beta/user_event_service_client.js +359 -0
  229. package/package.json +2 -2
@@ -0,0 +1,87 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.cloud.discoveryengine.v1alpha;
18
+
19
+ import "google/api/field_behavior.proto";
20
+ import "google/api/resource.proto";
21
+ import "google/protobuf/timestamp.proto";
22
+
23
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
24
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb";
25
+ option java_multiple_files = true;
26
+ option java_outer_classname = "CustomTuningModelProto";
27
+ option java_package = "com.google.cloud.discoveryengine.v1alpha";
28
+ option objc_class_prefix = "DISCOVERYENGINE";
29
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
30
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
31
+
32
+ // Metadata that describes a custom tuned model.
33
+ message CustomTuningModel {
34
+ option (google.api.resource) = {
35
+ type: "discoveryengine.googleapis.com/CustomTuningModel"
36
+ pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}"
37
+ pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}"
38
+ };
39
+
40
+ // The state of the model.
41
+ enum ModelState {
42
+ // Default value.
43
+ MODEL_STATE_UNSPECIFIED = 0;
44
+
45
+ // The model is in a paused training state.
46
+ TRAINING_PAUSED = 1;
47
+
48
+ // The model is currently training.
49
+ TRAINING = 2;
50
+
51
+ // The model has successfully completed training.
52
+ TRAINING_COMPLETE = 3;
53
+
54
+ // The model is ready for serving.
55
+ READY_FOR_SERVING = 4;
56
+
57
+ // The model training failed.
58
+ TRAINING_FAILED = 5;
59
+ }
60
+
61
+ // Required. The fully qualified resource name of the model.
62
+ //
63
+ // Format:
64
+ // `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`
65
+ // model must be an alpha-numerical string with limit of 40 characters.
66
+ string name = 1 [
67
+ (google.api.field_behavior) = REQUIRED,
68
+ (google.api.resource_reference) = {
69
+ type: "discoveryengine.googleapis.com/CustomTuningModel"
70
+ }
71
+ ];
72
+
73
+ // The display name of the model.
74
+ string display_name = 2;
75
+
76
+ // The version of the model.
77
+ int64 model_version = 3;
78
+
79
+ // The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
80
+ ModelState model_state = 4;
81
+
82
+ // Timestamp the Model was created at.
83
+ google.protobuf.Timestamp create_time = 5;
84
+
85
+ // Timestamp the model training was initiated.
86
+ google.protobuf.Timestamp training_start_time = 6;
87
+ }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -265,8 +265,8 @@ message ListDataStoresRequest {
265
265
  // INVALID_ARGUMENT error is returned.
266
266
  string page_token = 3;
267
267
 
268
- // Filter by solution type. For example: filter =
269
- // 'solution_type:SOLUTION_TYPE_SEARCH'
268
+ // Filter by solution type.
269
+ // For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
270
270
  string filter = 4;
271
271
  }
272
272
 
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -114,6 +114,7 @@ message DocumentProcessingConfig {
114
114
 
115
115
  // Map from file type to override the default parsing configuration based on
116
116
  // the file type. Supported keys:
117
+ //
117
118
  // * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
118
119
  // parsing or layout parsing is supported.
119
120
  // * `html`: Override parsing config for HTML files, only digital parsing and
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -105,7 +105,7 @@ service DocumentService {
105
105
 
106
106
  // Bulk import of multiple
107
107
  // [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request
108
- // processing may be synchronous. Non-existing items will be created.
108
+ // processing may be synchronous. Non-existing items are created.
109
109
  //
110
110
  // Note: It is possible for a subset of the
111
111
  // [Document][google.cloud.discoveryengine.v1alpha.Document]s to be
@@ -218,7 +218,7 @@ message ListDocumentsRequest {
218
218
  // Maximum number of
219
219
  // [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
220
220
  // unspecified, defaults to 100. The maximum allowed value is 1000. Values
221
- // above 1000 will be coerced to 1000.
221
+ // above 1000 are set to 1000.
222
222
  //
223
223
  // If this field is negative, an `INVALID_ARGUMENT` error is returned.
224
224
  int32 page_size = 2;
@@ -268,8 +268,8 @@ message CreateDocumentRequest {
268
268
  Document document = 2 [(google.api.field_behavior) = REQUIRED];
269
269
 
270
270
  // Required. The ID to use for the
271
- // [Document][google.cloud.discoveryengine.v1alpha.Document], which will
272
- // become the final component of the
271
+ // [Document][google.cloud.discoveryengine.v1alpha.Document], which becomes
272
+ // the final component of the
273
273
  // [Document.name][google.cloud.discoveryengine.v1alpha.Document.name].
274
274
  //
275
275
  // If the caller does not have permission to create the
@@ -303,14 +303,14 @@ message UpdateDocumentRequest {
303
303
  // is not set, a `NOT_FOUND` error is returned.
304
304
  Document document = 1 [(google.api.field_behavior) = REQUIRED];
305
305
 
306
- // If set to true, and the
306
+ // If set to `true` and the
307
307
  // [Document][google.cloud.discoveryengine.v1alpha.Document] is not found, a
308
- // new [Document][google.cloud.discoveryengine.v1alpha.Document] will be
308
+ // new [Document][google.cloud.discoveryengine.v1alpha.Document] is be
309
309
  // created.
310
310
  bool allow_missing = 2;
311
311
 
312
312
  // Indicates which fields in the provided imported 'document' to update. If
313
- // not set, will by default update all fields.
313
+ // not set, by default updates all fields.
314
314
  google.protobuf.FieldMask update_mask = 3;
315
315
  }
316
316
 
@@ -348,8 +348,11 @@ message GetProcessedDocumentRequest {
348
348
  // Available for all data store parsing configs.
349
349
  PARSED_DOCUMENT = 1;
350
350
 
351
- // Only available if ChunkingConfig is enabeld on the data store.
351
+ // Only available if ChunkingConfig is enabled on the data store.
352
352
  CHUNKED_DOCUMENT = 2;
353
+
354
+ // Returns the converted PNG Image bytes if available.
355
+ PNG_CONVERTED_DOCUMENT = 3;
353
356
  }
354
357
 
355
358
  // The format of the returned processed document. If unspecified, defaults to
@@ -358,7 +361,7 @@ message GetProcessedDocumentRequest {
358
361
  // Default value.
359
362
  PROCESSED_DOCUMENT_FORMAT_UNSPECIFIED = 0;
360
363
 
361
- // output format will be a JSON string representation of processed document.
364
+ // Output format is a JSON string representation of processed document.
362
365
  JSON = 1;
363
366
  }
364
367
 
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -193,9 +193,9 @@ message Engine {
193
193
 
194
194
  // Common configurations for an Engine.
195
195
  message CommonConfig {
196
- // Immutable. The name of the company, business or entity that is associated
197
- // with the engine. Setting this may help improve LLM related features.
198
- string company_name = 1 [(google.api.field_behavior) = IMMUTABLE];
196
+ // The name of the company, business or entity that is associated with the
197
+ // engine. Setting this may help improve LLM related features.
198
+ string company_name = 1;
199
199
  }
200
200
 
201
201
  // Additional information of a recommendation engine.
@@ -367,7 +367,7 @@ message Engine {
367
367
  // The restriction of the Engine industry vertical is based on
368
368
  // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]: If
369
369
  // unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
370
- // of the DataStore liniked to the engine.
370
+ // of the DataStore linked to the engine.
371
371
  IndustryVertical industry_vertical = 16;
372
372
 
373
373
  // Common config spec that specifies the metadata of the engine.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -69,7 +69,7 @@ message CheckGroundingRequest {
69
69
  }
70
70
  ];
71
71
 
72
- // Answer candidate to check.
72
+ // Answer candidate to check. Can have a maximum length of 1024 characters.
73
73
  string answer_candidate = 2;
74
74
 
75
75
  // List of facts for the grounding check.
@@ -78,6 +78,25 @@ message CheckGroundingRequest {
78
78
 
79
79
  // Configuration of the grounding check.
80
80
  CheckGroundingSpec grounding_spec = 4;
81
+
82
+ // The user labels applied to a resource must meet the following requirements:
83
+ //
84
+ // * Each resource can have multiple labels, up to a maximum of 64.
85
+ // * Each label must be a key-value pair.
86
+ // * Keys have a minimum length of 1 character and a maximum length of 63
87
+ // characters and cannot be empty. Values can be empty and have a maximum
88
+ // length of 63 characters.
89
+ // * Keys and values can contain only lowercase letters, numeric characters,
90
+ // underscores, and dashes. All characters must use UTF-8 encoding, and
91
+ // international characters are allowed.
92
+ // * The key portion of a label must be unique. However, you can use the same
93
+ // key with multiple resources.
94
+ // * Keys must start with a lowercase letter or international character.
95
+ //
96
+ // See [Google Cloud
97
+ // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
98
+ // for more details.
99
+ map<string, string> user_labels = 5;
81
100
  }
82
101
 
83
102
  // Response message for the
@@ -104,6 +123,16 @@ message CheckGroundingResponse {
104
123
  // supporting for the claim. A citation to a fact indicates that the claim
105
124
  // is supported by the fact.
106
125
  repeated int32 citation_indices = 4;
126
+
127
+ // Indicates that this claim required grounding check. When the system
128
+ // decided this claim doesn't require attribution/grounding check, this
129
+ // field will be set to false. In that case, no grounding check was done for
130
+ // the claim and therefore
131
+ // [citation_indices][google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim.citation_indices],
132
+ // and
133
+ // [anti_citation_indices][google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim.anti_citation_indices]
134
+ // should not be returned.
135
+ optional bool grounding_check_required = 6;
107
136
  }
108
137
 
109
138
  // The support score for the input answer candidate.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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,9 @@ message FactChunk {
50
50
  // retrieved.
51
51
  string source = 2;
52
52
 
53
+ // The index of this chunk. Currently, only used for the streaming mode.
54
+ int32 index = 4;
55
+
53
56
  // More fine-grained information for the source reference.
54
57
  map<string, string> source_metadata = 3;
55
58
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -37,7 +37,7 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
37
37
 
38
38
  // Cloud Storage location for input content.
39
39
  message GcsSource {
40
- // Required. Cloud Storage URIs to input files. URI can be up to
40
+ // Required. Cloud Storage URIs to input files. Each URI can be up to
41
41
  // 2000 characters long. URIs can match the full object path (for example,
42
42
  // `gs://bucket/directory/object.json`) or a pattern matching one or more
43
43
  // files, such as `gs://bucket/directory/*.json`.
@@ -67,7 +67,7 @@ message GcsSource {
67
67
  // data store. Each entry after the header is imported as a Document.
68
68
  // This can only be used by the GENERIC Data Store vertical.
69
69
  //
70
- // Supported values for user even imports:
70
+ // Supported values for user event imports:
71
71
  //
72
72
  // * `user_event` (default): One JSON
73
73
  // [UserEvent][google.cloud.discoveryengine.v1alpha.UserEvent] per line.
@@ -338,8 +338,8 @@ message FirestoreSource {
338
338
  // of 256 characters.
339
339
  string database_id = 2 [(google.api.field_behavior) = REQUIRED];
340
340
 
341
- // Required. The Firestore collection to copy the data from with a length
342
- // limit of 1,500 characters.
341
+ // Required. The Firestore collection (or entity) to copy the data from with a
342
+ // length limit of 1,500 characters.
343
343
  string collection_id = 3 [(google.api.field_behavior) = REQUIRED];
344
344
 
345
345
  // Intermediate Cloud Storage directory used for the import with a length
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -55,6 +55,7 @@ message Project {
55
55
 
56
56
  // The unique identifier of this terms of service.
57
57
  // Available terms:
58
+ //
58
59
  // * `GA_DATA_USE_TERMS`: [Terms for data
59
60
  // use](https://cloud.google.com/retail/data-use-terms). When using this as
60
61
  // `id`, the acceptable
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -72,6 +72,7 @@ service ProjectService {
72
72
  // This method can be used to retroactively accept the latest terms.
73
73
  //
74
74
  // Terms available for update:
75
+ //
75
76
  // * [Terms for data use](https://cloud.google.com/retail/data-use-terms)
76
77
  rpc ReportConsentChange(ReportConsentChangeRequest) returns (Project) {
77
78
  option (google.api.http) = {
@@ -159,6 +160,7 @@ message ReportConsentChangeRequest {
159
160
 
160
161
  // Required. The unique identifier of the terms of service to update.
161
162
  // Available term ids:
163
+ //
162
164
  // * `GA_DATA_USE_TERMS`: [Terms for data
163
165
  // use](https://cloud.google.com/retail/data-use-terms). When using this
164
166
  // service term id, the acceptable
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -104,6 +104,25 @@ message RankRequest {
104
104
  // If true, the response will contain only record ID and score. By default, it
105
105
  // is false, the response will contain record details.
106
106
  bool ignore_record_details_in_response = 6;
107
+
108
+ // The user labels applied to a resource must meet the following requirements:
109
+ //
110
+ // * Each resource can have multiple labels, up to a maximum of 64.
111
+ // * Each label must be a key-value pair.
112
+ // * Keys have a minimum length of 1 character and a maximum length of 63
113
+ // characters and cannot be empty. Values can be empty and have a maximum
114
+ // length of 63 characters.
115
+ // * Keys and values can contain only lowercase letters, numeric characters,
116
+ // underscores, and dashes. All characters must use UTF-8 encoding, and
117
+ // international characters are allowed.
118
+ // * The key portion of a label must be unique. However, you can use the same
119
+ // key with multiple resources.
120
+ // * Keys must start with a lowercase letter or international character.
121
+ //
122
+ // See [Google Cloud
123
+ // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
124
+ // for more details.
125
+ map<string, string> user_labels = 7;
107
126
  }
108
127
 
109
128
  // Response message for
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -64,7 +64,7 @@ message RecommendRequest {
64
64
  // `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
65
65
  //
66
66
  // One default serving config is created along with your recommendation engine
67
- // creation. The engine ID will be used as the ID of the default serving
67
+ // creation. The engine ID is used as the ID of the default serving
68
68
  // config. For example, for Engine
69
69
  // `projects/*/locations/global/collections/*/engines/my-engine`, you can use
70
70
  // `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine`
@@ -97,9 +97,9 @@ message RecommendRequest {
97
97
  UserEvent user_event = 2 [(google.api.field_behavior) = REQUIRED];
98
98
 
99
99
  // Maximum number of results to return. Set this property
100
- // to the number of recommendation results needed. If zero, the service will
101
- // choose a reasonable default. The maximum allowed value is 100. Values
102
- // above 100 will be coerced to 100.
100
+ // to the number of recommendation results needed. If zero, the service
101
+ // chooses a reasonable default. The maximum allowed value is 100. Values
102
+ // above 100 are set to 100.
103
103
  int32 page_size = 3;
104
104
 
105
105
  // Filter for restricting recommendation results with a length limit of 5,000
@@ -120,19 +120,19 @@ message RecommendRequest {
120
120
  // * (available: true) AND
121
121
  // (launguage: ANY("en", "es")) OR (categories: ANY("Movie"))
122
122
  //
123
- // If your filter blocks all results, the API will return generic
123
+ // If your filter blocks all results, the API returns generic
124
124
  // (unfiltered) popular Documents. If you only want results strictly matching
125
- // the filters, set `strictFiltering` to True in
125
+ // the filters, set `strictFiltering` to `true` in
126
126
  // [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params]
127
127
  // to receive empty results instead.
128
128
  //
129
- // Note that the API will never return
129
+ // Note that the API never returns
130
130
  // [Document][google.cloud.discoveryengine.v1alpha.Document]s with
131
- // `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
131
+ // `storageStatus` as `EXPIRED` or `DELETED` regardless of filter choices.
132
132
  string filter = 4;
133
133
 
134
- // Use validate only mode for this recommendation query. If set to true, a
135
- // fake model will be used that returns arbitrary Document IDs.
134
+ // Use validate only mode for this recommendation query. If set to `true`, a
135
+ // fake model is used that returns arbitrary Document IDs.
136
136
  // Note that the validate only mode should only be used for testing the API,
137
137
  // or if the model is not ready.
138
138
  bool validate_only = 5;
@@ -141,16 +141,17 @@ message RecommendRequest {
141
141
  //
142
142
  // Allowed values:
143
143
  //
144
- // * `returnDocument`: Boolean. If set to true, the associated Document
145
- // object will be returned in
144
+ // * `returnDocument`: Boolean. If set to `true`, the associated Document
145
+ // object is returned in
146
146
  // [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.document].
147
- // * `returnScore`: Boolean. If set to true, the recommendation 'score'
148
- // corresponding to each returned Document will be set in
147
+ // * `returnScore`: Boolean. If set to true, the recommendation score
148
+ // corresponding to each returned Document is set in
149
149
  // [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1alpha.RecommendResponse.RecommendationResult.metadata].
150
- // The given 'score' indicates the probability of a Document conversion
151
- // given the user's context and history.
152
- // * `strictFiltering`: Boolean. True by default. If set to false, the service
153
- // will return generic (unfiltered) popular Documents instead of empty if
150
+ // The given score indicates the probability of a Document conversion given
151
+ // the user's context and history.
152
+ // * `strictFiltering`: Boolean. True by default. If set to `false`, the
153
+ // service
154
+ // returns generic (unfiltered) popular Documents instead of empty if
154
155
  // your filter blocks all recommendation results.
155
156
  // * `diversityLevel`: String. Default empty. If set to be non-empty, then
156
157
  // it needs to be one of:
@@ -198,7 +199,7 @@ message RecommendResponse {
198
199
  // [RecommendRequest.params][google.cloud.discoveryengine.v1alpha.RecommendRequest.params].
199
200
  Document document = 2;
200
201
 
201
- // Additional Document metadata / annotations.
202
+ // Additional Document metadata or annotations.
202
203
  //
203
204
  // Possible values:
204
205
  //
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -84,10 +84,28 @@ message FieldConfig {
84
84
  // Field value type is Boolean.
85
85
  BOOLEAN = 5;
86
86
 
87
- // Field value type is Geolocation.
87
+ // Field value type is Geolocation. Geolocation is expressed as an object
88
+ // with the following keys:
89
+ //
90
+ // * `id`: a string representing the location id
91
+ // * `longitude`: a number representing the longitude coordinate of the
92
+ // location
93
+ // * `latitude`: a number repesenting the latitude coordinate of the
94
+ // location
95
+ // * `address`: a string representing the full address of the location
96
+ //
97
+ // `latitude` and `longitude` must always be provided together. At least one
98
+ // of a) `address` or b) `latitude`-`longitude` pair must be provided.
88
99
  GEOLOCATION = 6;
89
100
 
90
- // Field value type is Datetime.
101
+ // Field value type is Datetime. Datetime can be expressed as either:
102
+ //
103
+ // * a number representing milliseconds-since-the-epoch
104
+ // * a string representing milliseconds-since-the-epoch. e.g.
105
+ // `"1420070400001"`
106
+ // * a string representing the [ISO
107
+ // 8601](https://en.wikipedia.org/wiki/ISO_8601) date or date and time. e.g.
108
+ // `"2015-01-01"` or `"2015-01-01T12:10:30Z"`
91
109
  DATETIME = 7;
92
110
  }
93
111
 
@@ -173,6 +191,9 @@ message FieldConfig {
173
191
 
174
192
  // Retrieve value from page map.
175
193
  PAGEMAP = 2;
194
+
195
+ // Retrieve value from schema.org data.
196
+ SCHEMA_ORG = 4;
176
197
  }
177
198
 
178
199
  // Required. Field path of the schema field.
@@ -333,4 +354,18 @@ message FieldConfig {
333
354
  // if this enum is set to METATAGS, we will only index `<author, a>`;
334
355
  // if this enum is not set, we will merge them and index `<author, [a, b]>`.
335
356
  repeated AdvancedSiteSearchDataSource advanced_site_search_data_sources = 10;
357
+
358
+ // Field paths for indexing custom attribute from schema.org data. More
359
+ // details of schema.org and its defined types can be found at
360
+ // [schema.org](https://schema.org).
361
+ //
362
+ // It is only used on advanced site search schema.
363
+ //
364
+ // Currently only support full path from root. The full path to a field is
365
+ // constructed by concatenating field names, starting from `_root`, with
366
+ // a period `.` as the delimiter. Examples:
367
+ //
368
+ // * Publish date of the root: _root.datePublished
369
+ // * Publish date of the reviews: _root.review.datePublished
370
+ repeated string schema_org_paths = 11;
336
371
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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.
@@ -143,9 +143,9 @@ message ListSchemasRequest {
143
143
  // service may return fewer than this value.
144
144
  //
145
145
  // If unspecified, at most 100
146
- // [Schema][google.cloud.discoveryengine.v1alpha.Schema]s will be returned.
146
+ // [Schema][google.cloud.discoveryengine.v1alpha.Schema]s are returned.
147
147
  //
148
- // The maximum value is 1000; values above 1000 will be coerced to 1000.
148
+ // The maximum value is 1000; values above 1000 are set to 1000.
149
149
  int32 page_size = 2;
150
150
 
151
151
  // A page token, received from a previous
@@ -190,8 +190,8 @@ message CreateSchemaRequest {
190
190
  Schema schema = 2 [(google.api.field_behavior) = REQUIRED];
191
191
 
192
192
  // Required. The ID to use for the
193
- // [Schema][google.cloud.discoveryengine.v1alpha.Schema], which will become
194
- // the final component of the
193
+ // [Schema][google.cloud.discoveryengine.v1alpha.Schema], which becomes the
194
+ // final component of the
195
195
  // [Schema.name][google.cloud.discoveryengine.v1alpha.Schema.name].
196
196
  //
197
197
  // This field should conform to
@@ -210,8 +210,8 @@ message UpdateSchemaRequest {
210
210
 
211
211
  // If set to true, and the
212
212
  // [Schema][google.cloud.discoveryengine.v1alpha.Schema] is not found, a new
213
- // [Schema][google.cloud.discoveryengine.v1alpha.Schema] will be created. In
214
- // this situation, `update_mask` is ignored.
213
+ // [Schema][google.cloud.discoveryengine.v1alpha.Schema] is created. In this
214
+ // situation, `update_mask` is ignored.
215
215
  bool allow_missing = 3;
216
216
  }
217
217