@google-cloud/discoveryengine 1.10.0 → 1.12.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 (129) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +33 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
  10. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +14 -0
  11. package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
  12. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
  13. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +31 -0
  14. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +38 -0
  15. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +29 -2
  16. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +7 -1
  17. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +23 -0
  18. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +10 -0
  19. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  20. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
  21. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +191 -0
  24. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +111 -0
  25. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
  26. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
  27. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +370 -8
  30. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
  31. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +24 -0
  32. package/build/protos/protos.d.ts +32735 -21073
  33. package/build/protos/protos.js +80768 -53241
  34. package/build/protos/protos.json +5309 -2481
  35. package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
  36. package/build/src/v1alpha/acl_config_service_client.js +157 -0
  37. package/build/src/v1alpha/chunk_service_client.d.ts +108 -0
  38. package/build/src/v1alpha/chunk_service_client.js +157 -0
  39. package/build/src/v1alpha/completion_service_client.d.ts +108 -0
  40. package/build/src/v1alpha/completion_service_client.js +157 -0
  41. package/build/src/v1alpha/control_service_client.d.ts +108 -0
  42. package/build/src/v1alpha/control_service_client.js +157 -0
  43. package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
  44. package/build/src/v1alpha/conversational_search_service_client.js +157 -0
  45. package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
  46. package/build/src/v1alpha/data_store_service_client.js +157 -0
  47. package/build/src/v1alpha/document_service_client.d.ts +108 -0
  48. package/build/src/v1alpha/document_service_client.js +157 -0
  49. package/build/src/v1alpha/engine_service_client.d.ts +108 -0
  50. package/build/src/v1alpha/engine_service_client.js +157 -0
  51. package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
  52. package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
  53. package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
  54. package/build/src/v1alpha/evaluation_service_client.js +3288 -0
  55. package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
  56. package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
  57. package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
  58. package/build/src/v1alpha/index.d.ts +3 -0
  59. package/build/src/v1alpha/index.js +7 -1
  60. package/build/src/v1alpha/project_service_client.d.ts +108 -0
  61. package/build/src/v1alpha/project_service_client.js +157 -0
  62. package/build/src/v1alpha/rank_service_client.d.ts +108 -0
  63. package/build/src/v1alpha/rank_service_client.js +157 -0
  64. package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
  65. package/build/src/v1alpha/recommendation_service_client.js +157 -0
  66. package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
  67. package/build/src/v1alpha/sample_query_service_client.js +3186 -0
  68. package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
  69. package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
  70. package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
  71. package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
  72. package/build/src/v1alpha/schema_service_client.d.ts +108 -0
  73. package/build/src/v1alpha/schema_service_client.js +157 -0
  74. package/build/src/v1alpha/search_service_client.d.ts +108 -0
  75. package/build/src/v1alpha/search_service_client.js +157 -0
  76. package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
  77. package/build/src/v1alpha/search_tuning_service_client.js +157 -0
  78. package/build/src/v1alpha/serving_config_service_client.d.ts +108 -0
  79. package/build/src/v1alpha/serving_config_service_client.js +157 -0
  80. package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
  81. package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
  82. package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
  83. package/build/src/v1alpha/user_event_service_client.js +157 -0
  84. package/build/src/v1beta/completion_service_client.d.ts +328 -0
  85. package/build/src/v1beta/completion_service_client.js +423 -0
  86. package/build/src/v1beta/completion_service_client_config.json +10 -0
  87. package/build/src/v1beta/control_service_client.d.ts +237 -0
  88. package/build/src/v1beta/control_service_client.js +333 -0
  89. package/build/src/v1beta/conversational_search_service_client.d.ts +255 -0
  90. package/build/src/v1beta/conversational_search_service_client.js +333 -0
  91. package/build/src/v1beta/data_store_service_client.d.ts +246 -0
  92. package/build/src/v1beta/data_store_service_client.js +339 -0
  93. package/build/src/v1beta/document_service_client.d.ts +239 -0
  94. package/build/src/v1beta/document_service_client.js +339 -0
  95. package/build/src/v1beta/engine_service_client.d.ts +237 -0
  96. package/build/src/v1beta/engine_service_client.js +339 -0
  97. package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
  98. package/build/src/v1beta/evaluation_service_client.js +3252 -0
  99. package/build/src/v1beta/evaluation_service_client_config.json +58 -0
  100. package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
  101. package/build/src/v1beta/grounded_generation_service_client.js +333 -0
  102. package/build/src/v1beta/index.d.ts +3 -0
  103. package/build/src/v1beta/index.js +7 -1
  104. package/build/src/v1beta/project_service_client.d.ts +237 -0
  105. package/build/src/v1beta/project_service_client.js +339 -0
  106. package/build/src/v1beta/rank_service_client.d.ts +237 -0
  107. package/build/src/v1beta/rank_service_client.js +333 -0
  108. package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
  109. package/build/src/v1beta/recommendation_service_client.js +333 -0
  110. package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
  111. package/build/src/v1beta/sample_query_service_client.js +3150 -0
  112. package/build/src/v1beta/sample_query_service_client_config.json +68 -0
  113. package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
  114. package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
  115. package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
  116. package/build/src/v1beta/schema_service_client.d.ts +237 -0
  117. package/build/src/v1beta/schema_service_client.js +339 -0
  118. package/build/src/v1beta/search_service_client.d.ts +414 -12
  119. package/build/src/v1beta/search_service_client.js +451 -8
  120. package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
  121. package/build/src/v1beta/search_tuning_service_client.js +339 -0
  122. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  123. package/build/src/v1beta/serving_config_service_client.js +333 -0
  124. package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
  125. package/build/src/v1beta/site_search_engine_service_client.js +339 -0
  126. package/build/src/v1beta/user_event_service_client.d.ts +312 -0
  127. package/build/src/v1beta/user_event_service_client.js +381 -0
  128. package/build/src/v1beta/user_event_service_client_config.json +5 -0
  129. package/package.json +1 -1
@@ -0,0 +1,252 @@
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.v1beta;
18
+
19
+ import "google/api/annotations.proto";
20
+ import "google/api/client.proto";
21
+ import "google/api/field_behavior.proto";
22
+ import "google/api/resource.proto";
23
+ import "google/cloud/discoveryengine/v1beta/evaluation.proto";
24
+ import "google/cloud/discoveryengine/v1beta/sample_query.proto";
25
+ import "google/longrunning/operations.proto";
26
+
27
+ option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
28
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
29
+ option java_multiple_files = true;
30
+ option java_outer_classname = "EvaluationServiceProto";
31
+ option java_package = "com.google.cloud.discoveryengine.v1beta";
32
+ option objc_class_prefix = "DISCOVERYENGINE";
33
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
34
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
35
+
36
+ // Service for managing
37
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s,
38
+ service EvaluationService {
39
+ option (google.api.default_host) = "discoveryengine.googleapis.com";
40
+ option (google.api.oauth_scopes) =
41
+ "https://www.googleapis.com/auth/cloud-platform";
42
+
43
+ // Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
44
+ rpc GetEvaluation(GetEvaluationRequest) returns (Evaluation) {
45
+ option (google.api.http) = {
46
+ get: "/v1beta/{name=projects/*/locations/*/evaluations/*}"
47
+ };
48
+ option (google.api.method_signature) = "name";
49
+ }
50
+
51
+ // Gets a list of
52
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
53
+ rpc ListEvaluations(ListEvaluationsRequest)
54
+ returns (ListEvaluationsResponse) {
55
+ option (google.api.http) = {
56
+ get: "/v1beta/{parent=projects/*/locations/*}/evaluations"
57
+ };
58
+ option (google.api.method_signature) = "parent";
59
+ }
60
+
61
+ // Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
62
+ //
63
+ // Upon creation, the evaluation will be automatically triggered and begin
64
+ // execution.
65
+ rpc CreateEvaluation(CreateEvaluationRequest)
66
+ returns (google.longrunning.Operation) {
67
+ option (google.api.http) = {
68
+ post: "/v1beta/{parent=projects/*/locations/*}/evaluations"
69
+ body: "evaluation"
70
+ };
71
+ option (google.api.method_signature) = "parent,evaluation";
72
+ option (google.longrunning.operation_info) = {
73
+ response_type: "google.cloud.discoveryengine.v1beta.Evaluation"
74
+ metadata_type: "google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata"
75
+ };
76
+ }
77
+
78
+ // Gets a list of results for a given a
79
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].
80
+ rpc ListEvaluationResults(ListEvaluationResultsRequest)
81
+ returns (ListEvaluationResultsResponse) {
82
+ option (google.api.http) = {
83
+ get: "/v1beta/{evaluation=projects/*/locations/*/evaluations/*}:listResults"
84
+ };
85
+ option (google.api.method_signature) = "evaluation";
86
+ }
87
+ }
88
+
89
+ // Request message for
90
+ // [EvaluationService.GetEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.GetEvaluation]
91
+ // method.
92
+ message GetEvaluationRequest {
93
+ // Required. Full resource name of
94
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], such as
95
+ // `projects/{project}/locations/{location}/evaluations/{evaluation}`.
96
+ //
97
+ // If the caller does not have permission to access the
98
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation], regardless of
99
+ // whether or not it exists, a PERMISSION_DENIED error is returned.
100
+ //
101
+ // If the requested
102
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation] does not
103
+ // exist, a NOT_FOUND error is returned.
104
+ string name = 1 [
105
+ (google.api.field_behavior) = REQUIRED,
106
+ (google.api.resource_reference) = {
107
+ type: "discoveryengine.googleapis.com/Evaluation"
108
+ }
109
+ ];
110
+ }
111
+
112
+ // Request message for
113
+ // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
114
+ // method.
115
+ message ListEvaluationsRequest {
116
+ // Required. The parent location resource name, such as
117
+ // `projects/{project}/locations/{location}`.
118
+ //
119
+ // If the caller does not have permission to list
120
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s under this
121
+ // location, regardless of whether or not this location exists, a
122
+ // `PERMISSION_DENIED` error is returned.
123
+ string parent = 1 [
124
+ (google.api.field_behavior) = REQUIRED,
125
+ (google.api.resource_reference) = {
126
+ type: "discoveryengine.googleapis.com/Location"
127
+ }
128
+ ];
129
+
130
+ // Maximum number of
131
+ // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
132
+ // unspecified, defaults to 100. The maximum allowed value is 1000. Values
133
+ // above 1000 will be coerced to 1000.
134
+ //
135
+ // If this field is negative, an `INVALID_ARGUMENT` error is returned.
136
+ int32 page_size = 2;
137
+
138
+ // A page token
139
+ // [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
140
+ // received from a previous
141
+ // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
142
+ // call. Provide this to retrieve the subsequent page.
143
+ //
144
+ // When paginating, all other parameters provided to
145
+ // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
146
+ // must match the call that provided the page token. Otherwise, an
147
+ // `INVALID_ARGUMENT` error is returned.
148
+ string page_token = 3;
149
+ }
150
+
151
+ // Response message for
152
+ // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
153
+ // method.
154
+ message ListEvaluationsResponse {
155
+ // The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.
156
+ repeated Evaluation evaluations = 1;
157
+
158
+ // A token that can be sent as
159
+ // [ListEvaluationsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsRequest.page_token]
160
+ // to retrieve the next page. If this field is omitted, there are no
161
+ // subsequent pages.
162
+ string next_page_token = 2;
163
+ }
164
+
165
+ // Request message for
166
+ // [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation]
167
+ // method.
168
+ message CreateEvaluationRequest {
169
+ // Required. The parent resource name, such as
170
+ // `projects/{project}/locations/{location}`.
171
+ string parent = 1 [
172
+ (google.api.field_behavior) = REQUIRED,
173
+ (google.api.resource_reference) = {
174
+ type: "discoveryengine.googleapis.com/Location"
175
+ }
176
+ ];
177
+
178
+ // Required. The [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]
179
+ // to create.
180
+ Evaluation evaluation = 2 [(google.api.field_behavior) = REQUIRED];
181
+ }
182
+
183
+ // Metadata for
184
+ // [EvaluationService.CreateEvaluation][google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation]
185
+ // method.
186
+ message CreateEvaluationMetadata {}
187
+
188
+ // Request message for
189
+ // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
190
+ // method.
191
+ message ListEvaluationResultsRequest {
192
+ // Required. The evaluation resource name, such as
193
+ // `projects/{project}/locations/{location}/evaluations/{evaluation}`.
194
+ //
195
+ // If the caller does not have permission to list [EvaluationResult][]
196
+ // under this evaluation, regardless of whether or not this evaluation
197
+ // set exists, a `PERMISSION_DENIED` error is returned.
198
+ string evaluation = 1 [
199
+ (google.api.field_behavior) = REQUIRED,
200
+ (google.api.resource_reference) = {
201
+ type: "discoveryengine.googleapis.com/Evaluation"
202
+ }
203
+ ];
204
+
205
+ // Maximum number of [EvaluationResult][] to return. If unspecified,
206
+ // defaults to 100. The maximum allowed value is 1000. Values above 1000 will
207
+ // be coerced to 1000.
208
+ //
209
+ // If this field is negative, an `INVALID_ARGUMENT` error is returned.
210
+ int32 page_size = 2;
211
+
212
+ // A page token
213
+ // [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
214
+ // received from a previous
215
+ // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
216
+ // call. Provide this to retrieve the subsequent page.
217
+ //
218
+ // When paginating, all other parameters provided to
219
+ // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
220
+ // must match the call that provided the page token. Otherwise, an
221
+ // `INVALID_ARGUMENT` error is returned.
222
+ string page_token = 3;
223
+ }
224
+
225
+ // Response message for
226
+ // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
227
+ // method.
228
+ message ListEvaluationResultsResponse {
229
+ // Represents the results of an evaluation for a single
230
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
231
+ message EvaluationResult {
232
+ // Output only. The
233
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] that was
234
+ // evaluated.
235
+ SampleQuery sample_query = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
236
+
237
+ // Output only. The metrics produced by the evaluation, for a given
238
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].
239
+ QualityMetrics quality_metrics = 2
240
+ [(google.api.field_behavior) = OUTPUT_ONLY];
241
+ }
242
+
243
+ // The
244
+ // [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
245
+ repeated EvaluationResult evaluation_results = 1;
246
+
247
+ // A token that can be sent as
248
+ // [ListEvaluationResultsRequest.page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest.page_token]
249
+ // to retrieve the next page. If this field is omitted, there are no
250
+ // subsequent pages.
251
+ string next_page_token = 2;
252
+ }
@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
20
20
  import "google/api/resource.proto";
21
21
  import "google/cloud/discoveryengine/v1beta/completion.proto";
22
22
  import "google/cloud/discoveryengine/v1beta/document.proto";
23
+ import "google/cloud/discoveryengine/v1beta/sample_query.proto";
23
24
  import "google/cloud/discoveryengine/v1beta/user_event.proto";
24
25
  import "google/protobuf/field_mask.proto";
25
26
  import "google/protobuf/timestamp.proto";
@@ -326,6 +327,38 @@ message CloudSqlSource {
326
327
  bool offload = 6;
327
328
  }
328
329
 
330
+ // AlloyDB source import data from.
331
+ message AlloyDbSource {
332
+ // The project ID that the AlloyDB source is in
333
+ // with a length limit of 128 characters. If not specified, inherits the
334
+ // project ID from the parent request.
335
+ string project_id = 1;
336
+
337
+ // Required. The AlloyDB location to copy the data from with a length limit of
338
+ // 256 characters.
339
+ string location_id = 2 [(google.api.field_behavior) = REQUIRED];
340
+
341
+ // Required. The AlloyDB cluster to copy the data from with a length limit of
342
+ // 256 characters.
343
+ string cluster_id = 3 [(google.api.field_behavior) = REQUIRED];
344
+
345
+ // Required. The AlloyDB database to copy the data from with a length limit of
346
+ // 256 characters.
347
+ string database_id = 4 [(google.api.field_behavior) = REQUIRED];
348
+
349
+ // Required. The AlloyDB table to copy the data from with a length limit of
350
+ // 256 characters.
351
+ string table_id = 5 [(google.api.field_behavior) = REQUIRED];
352
+
353
+ // Intermediate Cloud Storage directory used for the import with a length
354
+ // limit of 2,000 characters. Can be specified if one wants to have the
355
+ // AlloyDB export to a specific Cloud Storage directory.
356
+ //
357
+ // Ensure that the AlloyDB service account has the necessary Cloud
358
+ // Storage Admin permissions to access the specified Cloud Storage directory.
359
+ string gcs_staging_dir = 6;
360
+ }
361
+
329
362
  // Firestore source import data from.
330
363
  message FirestoreSource {
331
364
  // The project ID that the Cloud SQL source is in with a length limit of 128
@@ -499,6 +532,9 @@ message ImportDocumentsRequest {
499
532
  // Firestore input source.
500
533
  FirestoreSource firestore_source = 13;
501
534
 
535
+ // AlloyDB input source.
536
+ AlloyDbSource alloy_db_source = 14;
537
+
502
538
  // Cloud Bigtable input source.
503
539
  BigtableSource bigtable_source = 15;
504
540
  }
@@ -663,3 +699,158 @@ message ImportSuggestionDenyListEntriesMetadata {
663
699
  // finish time.
664
700
  google.protobuf.Timestamp update_time = 2;
665
701
  }
702
+
703
+ // Request message for
704
+ // [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
705
+ // method.
706
+ message ImportCompletionSuggestionsRequest {
707
+ // The inline source for CompletionSuggestions.
708
+ message InlineSource {
709
+ // Required. A list of all denylist entries to import. Max of 1000 items.
710
+ repeated CompletionSuggestion suggestions = 1
711
+ [(google.api.field_behavior) = REQUIRED];
712
+ }
713
+
714
+ // The source of the autocomplete suggestions.
715
+ oneof source {
716
+ // The Inline source for suggestion entries.
717
+ InlineSource inline_source = 2;
718
+
719
+ // Cloud Storage location for the input content.
720
+ GcsSource gcs_source = 3;
721
+
722
+ // BigQuery input source.
723
+ BigQuerySource bigquery_source = 4;
724
+ }
725
+
726
+ // Required. The parent data store resource name for which to import customer
727
+ // autocomplete suggestions.
728
+ //
729
+ // Follows pattern `projects/*/locations/*/collections/*/dataStores/*`
730
+ string parent = 1 [
731
+ (google.api.field_behavior) = REQUIRED,
732
+ (google.api.resource_reference) = {
733
+ type: "discoveryengine.googleapis.com/DataStore"
734
+ }
735
+ ];
736
+
737
+ // The desired location of errors incurred during the Import.
738
+ ImportErrorConfig error_config = 5;
739
+ }
740
+
741
+ // Response of the
742
+ // [CompletionService.ImportCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions]
743
+ // method. If the long running operation is done, this message is returned by
744
+ // the google.longrunning.Operations.response field if the operation is
745
+ // successful.
746
+ message ImportCompletionSuggestionsResponse {
747
+ // A sample of errors encountered while processing the request.
748
+ repeated google.rpc.Status error_samples = 1;
749
+
750
+ // The desired location of errors incurred during the Import.
751
+ ImportErrorConfig error_config = 2;
752
+ }
753
+
754
+ // Metadata related to the progress of the ImportCompletionSuggestions
755
+ // operation. This will be returned by the google.longrunning.Operation.metadata
756
+ // field.
757
+ message ImportCompletionSuggestionsMetadata {
758
+ // Operation create time.
759
+ google.protobuf.Timestamp create_time = 1;
760
+
761
+ // Operation last update time. If the operation is done, this is also the
762
+ // finish time.
763
+ google.protobuf.Timestamp update_time = 2;
764
+
765
+ // Count of
766
+ // [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
767
+ // successfully imported.
768
+ int64 success_count = 3;
769
+
770
+ // Count of
771
+ // [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
772
+ // that failed to be imported.
773
+ int64 failure_count = 4;
774
+ }
775
+
776
+ // Request message for
777
+ // [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
778
+ // method.
779
+ message ImportSampleQueriesRequest {
780
+ // The inline source for
781
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
782
+ message InlineSource {
783
+ // Required. A list of
784
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to
785
+ // import. Max of 1000 items.
786
+ repeated SampleQuery sample_queries = 1
787
+ [(google.api.field_behavior) = REQUIRED];
788
+ }
789
+
790
+ // The source of the sample queries.
791
+ oneof source {
792
+ // The Inline source for sample query entries.
793
+ InlineSource inline_source = 2;
794
+
795
+ // Cloud Storage location for the input content.
796
+ GcsSource gcs_source = 3;
797
+
798
+ // BigQuery input source.
799
+ BigQuerySource bigquery_source = 4;
800
+ }
801
+
802
+ // Required. The parent sample query set resource name, such as
803
+ // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
804
+ //
805
+ // If the caller does not have permission to list
806
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s under this
807
+ // sample query set, regardless of whether or not this sample query set
808
+ // exists, a `PERMISSION_DENIED` error is returned.
809
+ string parent = 1 [
810
+ (google.api.field_behavior) = REQUIRED,
811
+ (google.api.resource_reference) = {
812
+ type: "discoveryengine.googleapis.com/SampleQuerySet"
813
+ }
814
+ ];
815
+
816
+ // The desired location of errors incurred during the Import.
817
+ ImportErrorConfig error_config = 5;
818
+ }
819
+
820
+ // Response of the
821
+ // [SampleQueryService.ImportSampleQueries][google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries]
822
+ // method. If the long running operation is done, this message is returned by
823
+ // the google.longrunning.Operations.response field if the operation is
824
+ // successful.
825
+ message ImportSampleQueriesResponse {
826
+ // A sample of errors encountered while processing the request.
827
+ repeated google.rpc.Status error_samples = 1;
828
+
829
+ // The desired location of errors incurred during the Import.
830
+ ImportErrorConfig error_config = 2;
831
+ }
832
+
833
+ // Metadata related to the progress of the ImportSampleQueries
834
+ // operation. This will be returned by the google.longrunning.Operation.metadata
835
+ // field.
836
+ message ImportSampleQueriesMetadata {
837
+ // ImportSampleQueries operation create time.
838
+ google.protobuf.Timestamp create_time = 1;
839
+
840
+ // ImportSampleQueries operation last update time. If the operation is done,
841
+ // this is also the finish time.
842
+ google.protobuf.Timestamp update_time = 2;
843
+
844
+ // Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
845
+ // successfully imported.
846
+ int64 success_count = 3;
847
+
848
+ // Count of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s
849
+ // that failed to be imported.
850
+ int64 failure_count = 4;
851
+
852
+ // Total count of
853
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s that were
854
+ // processed.
855
+ int64 total_count = 5;
856
+ }
@@ -30,6 +30,79 @@ option objc_class_prefix = "DISCOVERYENGINE";
30
30
  option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
31
31
  option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
32
32
 
33
+ // Request message for PurgeUserEvents method.
34
+ message PurgeUserEventsRequest {
35
+ // Required. The resource name of the catalog under which the events are
36
+ // created. The format is
37
+ // `projects/${projectId}/locations/global/collections/{$collectionId}/dataStores/${dataStoreId}`
38
+ string parent = 1 [
39
+ (google.api.field_behavior) = REQUIRED,
40
+ (google.api.resource_reference) = {
41
+ type: "discoveryengine.googleapis.com/DataStore"
42
+ }
43
+ ];
44
+
45
+ // Required. The filter string to specify the events to be deleted with a
46
+ // length limit of 5,000 characters. The eligible fields for filtering are:
47
+ //
48
+ // * `eventType`: Double quoted
49
+ // [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
50
+ // string.
51
+ // * `eventTime`: in ISO 8601 "zulu" format.
52
+ // * `userPseudoId`: Double quoted string. Specifying this will delete all
53
+ // events associated with a visitor.
54
+ // * `userId`: Double quoted string. Specifying this will delete all events
55
+ // associated with a user.
56
+ //
57
+ // Examples:
58
+ //
59
+ // * Deleting all events in a time range:
60
+ // `eventTime > "2012-04-23T18:25:43.511Z"
61
+ // eventTime < "2012-04-23T18:30:43.511Z"`
62
+ // * Deleting specific eventType:
63
+ // `eventType = "search"`
64
+ // * Deleting all events for a specific visitor:
65
+ // `userPseudoId = "visitor1024"`
66
+ // * Deleting all events inside a DataStore:
67
+ // `*`
68
+ //
69
+ // The filtering fields are assumed to have an implicit AND.
70
+ string filter = 2 [(google.api.field_behavior) = REQUIRED];
71
+
72
+ // The `force` field is currently not supported. Purge user event requests
73
+ // will permanently delete all purgeable events. Once the development is
74
+ // complete:
75
+ // If `force` is set to false, the method will return the expected
76
+ // purge count without deleting any user events. This field will default to
77
+ // false if not included in the request.
78
+ bool force = 3;
79
+ }
80
+
81
+ // Response of the PurgeUserEventsRequest. If the long running operation is
82
+ // successfully done, then this message is returned by the
83
+ // google.longrunning.Operations.response field.
84
+ message PurgeUserEventsResponse {
85
+ // The total count of events purged as a result of the operation.
86
+ int64 purge_count = 1;
87
+ }
88
+
89
+ // Metadata related to the progress of the PurgeUserEvents operation.
90
+ // This will be returned by the google.longrunning.Operation.metadata field.
91
+ message PurgeUserEventsMetadata {
92
+ // Operation create time.
93
+ google.protobuf.Timestamp create_time = 1;
94
+
95
+ // Operation last update time. If the operation is done, this is also the
96
+ // finish time.
97
+ google.protobuf.Timestamp update_time = 2;
98
+
99
+ // Count of entries that were deleted successfully.
100
+ int64 success_count = 3;
101
+
102
+ // Count of entries that encountered errors while processing.
103
+ int64 failure_count = 4;
104
+ }
105
+
33
106
  // Request message for
34
107
  // [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
35
108
  // method.
@@ -125,3 +198,41 @@ message PurgeSuggestionDenyListEntriesMetadata {
125
198
  // finish time.
126
199
  google.protobuf.Timestamp update_time = 2;
127
200
  }
201
+
202
+ // Request message for
203
+ // [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions]
204
+ // method.
205
+ message PurgeCompletionSuggestionsRequest {
206
+ // Required. The parent data store resource name for which to purge completion
207
+ // suggestions. Follows pattern
208
+ // projects/*/locations/*/collections/*/dataStores/*.
209
+ string parent = 1 [
210
+ (google.api.field_behavior) = REQUIRED,
211
+ (google.api.resource_reference) = {
212
+ type: "discoveryengine.googleapis.com/DataStore"
213
+ }
214
+ ];
215
+ }
216
+
217
+ // Response message for
218
+ // [CompletionService.PurgeCompletionSuggestions][google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions]
219
+ // method.
220
+ message PurgeCompletionSuggestionsResponse {
221
+ // Whether the completion suggestions were successfully purged.
222
+ bool purge_succeeded = 1;
223
+
224
+ // A sample of errors encountered while processing the request.
225
+ repeated google.rpc.Status error_samples = 2;
226
+ }
227
+
228
+ // Metadata related to the progress of the PurgeCompletionSuggestions
229
+ // operation. This is returned by the google.longrunning.Operation.metadata
230
+ // field.
231
+ message PurgeCompletionSuggestionsMetadata {
232
+ // Operation create time.
233
+ google.protobuf.Timestamp create_time = 1;
234
+
235
+ // Operation last update time. If the operation is done, this is also the
236
+ // finish time.
237
+ google.protobuf.Timestamp update_time = 2;
238
+ }
@@ -0,0 +1,86 @@
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.v1beta;
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.V1Beta";
24
+ option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
25
+ option java_multiple_files = true;
26
+ option java_outer_classname = "SampleQueryProto";
27
+ option java_package = "com.google.cloud.discoveryengine.v1beta";
28
+ option objc_class_prefix = "DISCOVERYENGINE";
29
+ option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
30
+ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
31
+
32
+ // Sample Query captures metadata to be used for evaluation.
33
+ message SampleQuery {
34
+ option (google.api.resource) = {
35
+ type: "discoveryengine.googleapis.com/SampleQuery"
36
+ pattern: "projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}"
37
+ };
38
+
39
+ // Query Entry captures metadata to be used for search evaluation.
40
+ message QueryEntry {
41
+ // Defines the parameters of the query's expected outcome.
42
+ message Target {
43
+ // Expected uri of the target.
44
+ //
45
+ // This field must be a UTF-8 encoded string with a length limit of 2048
46
+ // characters.
47
+ //
48
+ // Example of valid uris: `https://example.com/abc`,
49
+ // `gcs://example/example.pdf`.
50
+ string uri = 1;
51
+
52
+ // Expected page numbers of the target.
53
+ //
54
+ // Each page number must be non negative.
55
+ repeated int32 page_numbers = 2;
56
+
57
+ // Relevance score of the target.
58
+ optional double score = 3;
59
+ }
60
+
61
+ // Required. The query.
62
+ string query = 1 [(google.api.field_behavior) = REQUIRED];
63
+
64
+ // List of targets for the query.
65
+ repeated Target targets = 3;
66
+ }
67
+
68
+ // The content of the sample query.
69
+ oneof content {
70
+ // The query entry.
71
+ QueryEntry query_entry = 2;
72
+ }
73
+
74
+ // Identifier. The full resource name of the sample query, in the format of
75
+ // `projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}`.
76
+ //
77
+ // This field must be a UTF-8 encoded string with a length limit of 1024
78
+ // characters.
79
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
80
+
81
+ // Output only. Timestamp the
82
+ // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery] was created
83
+ // at.
84
+ google.protobuf.Timestamp create_time = 3
85
+ [(google.api.field_behavior) = OUTPUT_ONLY];
86
+ }