@google-cloud/discoveryengine 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +10 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +49 -5
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +6 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +9 -9
- package/build/protos/google/cloud/discoveryengine/v1/custom_tuning_model.proto +96 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +10 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +20 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +2 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +110 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +13 -7
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +117 -0
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +40 -16
- package/build/protos/google/cloud/discoveryengine/v1/search_tuning_service.proto +196 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +4 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +21 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +61 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +28 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +71 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +11 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +24 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +6 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +108 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +119 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +58 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +5 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +428 -12
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +14 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +126 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +47 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +20 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +114 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +13 -7
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +101 -6
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -0
- package/build/protos/protos.d.ts +24137 -16126
- package/build/protos/protos.js +78286 -58223
- package/build/protos/protos.json +1954 -105
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -1
- package/build/src/v1/completion_service_client.d.ts +93 -0
- package/build/src/v1/completion_service_client.js +134 -0
- package/build/src/v1/control_service_client.d.ts +93 -0
- package/build/src/v1/control_service_client.js +128 -0
- package/build/src/v1/conversational_search_service_client.d.ts +93 -0
- package/build/src/v1/conversational_search_service_client.js +128 -0
- package/build/src/v1/data_store_service_client.d.ts +102 -0
- package/build/src/v1/data_store_service_client.js +134 -0
- package/build/src/v1/document_service_client.d.ts +131 -0
- package/build/src/v1/document_service_client.js +156 -0
- package/build/src/v1/document_service_client_config.json +5 -0
- package/build/src/v1/engine_service_client.d.ts +93 -0
- package/build/src/v1/engine_service_client.js +134 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +93 -0
- package/build/src/v1/grounded_generation_service_client.js +128 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +93 -0
- package/build/src/v1/project_service_client.js +134 -0
- package/build/src/v1/rank_service_client.d.ts +93 -0
- package/build/src/v1/rank_service_client.js +128 -0
- package/build/src/v1/recommendation_service_client.d.ts +95 -1
- package/build/src/v1/recommendation_service_client.js +128 -0
- package/build/src/v1/schema_service_client.d.ts +93 -0
- package/build/src/v1/schema_service_client.js +134 -0
- package/build/src/v1/search_service_client.d.ts +111 -9
- package/build/src/v1/search_service_client.js +140 -6
- package/build/src/v1/search_tuning_service_client.d.ts +1776 -0
- package/build/src/v1/search_tuning_service_client.js +2589 -0
- package/build/src/v1/search_tuning_service_client_config.json +34 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +93 -0
- package/build/src/v1/site_search_engine_service_client.js +134 -0
- package/build/src/v1/user_event_service_client.d.ts +168 -0
- package/build/src/v1/user_event_service_client.js +176 -0
- package/build/src/v1/user_event_service_client_config.json +5 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +1 -1
- package/build/src/v1alpha/completion_service_client.d.ts +91 -0
- package/build/src/v1alpha/completion_service_client.js +90 -0
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +18 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +12 -3
- package/build/src/v1alpha/data_store_service_client.js +8 -2
- package/build/src/v1alpha/document_service_client.d.ts +33 -0
- package/build/src/v1alpha/document_service_client.js +28 -0
- package/build/src/v1alpha/document_service_client_config.json +5 -0
- package/build/src/v1alpha/engine_service_client.js +6 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +6 -0
- package/build/src/v1alpha/evaluation_service_client.js +6 -0
- package/build/src/v1alpha/project_service_client.js +6 -0
- package/build/src/v1alpha/sample_query_service_client.js +6 -0
- package/build/src/v1alpha/schema_service_client.js +6 -0
- package/build/src/v1alpha/search_service_client.d.ts +219 -21
- package/build/src/v1alpha/search_service_client.js +146 -14
- package/build/src/v1alpha/search_tuning_service_client.js +6 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +101 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +70 -0
- package/build/src/v1alpha/site_search_engine_service_client_config.json +8 -0
- package/build/src/v1alpha/user_event_service_client.js +6 -0
- package/build/src/v1beta/document_service_client.d.ts +38 -0
- package/build/src/v1beta/document_service_client.js +22 -0
- package/build/src/v1beta/document_service_client_config.json +5 -0
- package/build/src/v1beta/search_service_client.d.ts +36 -9
- package/build/src/v1beta/search_service_client.js +24 -6
- package/package.json +2 -2
@@ -23,6 +23,7 @@ import "google/api/resource.proto";
|
|
23
23
|
import "google/cloud/discoveryengine/v1alpha/site_search_engine.proto";
|
24
24
|
import "google/longrunning/operations.proto";
|
25
25
|
import "google/protobuf/empty.proto";
|
26
|
+
import "google/protobuf/struct.proto";
|
26
27
|
import "google/protobuf/timestamp.proto";
|
27
28
|
|
28
29
|
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
|
@@ -221,6 +222,29 @@ service SiteSearchEngineService {
|
|
221
222
|
get: "/v1alpha/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:fetchDomainVerificationStatus"
|
222
223
|
};
|
223
224
|
}
|
225
|
+
|
226
|
+
// Sets the URI Pattern to Document data mapping for an Advanced Site Search
|
227
|
+
// DataStore.
|
228
|
+
rpc SetUriPatternDocumentData(SetUriPatternDocumentDataRequest)
|
229
|
+
returns (google.longrunning.Operation) {
|
230
|
+
option (google.api.http) = {
|
231
|
+
post: "/v1alpha/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:setUriPatternDocumentData"
|
232
|
+
body: "*"
|
233
|
+
};
|
234
|
+
option (google.longrunning.operation_info) = {
|
235
|
+
response_type: "google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataResponse"
|
236
|
+
metadata_type: "google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataMetadata"
|
237
|
+
};
|
238
|
+
}
|
239
|
+
|
240
|
+
// Gets the URI Pattern to Document data mapping for an Advanced Site Search
|
241
|
+
// DataStore.
|
242
|
+
rpc GetUriPatternDocumentData(GetUriPatternDocumentDataRequest)
|
243
|
+
returns (GetUriPatternDocumentDataResponse) {
|
244
|
+
option (google.api.http) = {
|
245
|
+
get: "/v1alpha/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:getUriPatternDocumentData"
|
246
|
+
};
|
247
|
+
}
|
224
248
|
}
|
225
249
|
|
226
250
|
// Request message for
|
@@ -693,3 +717,105 @@ message FetchDomainVerificationStatusResponse {
|
|
693
717
|
// This will always be populated in the response.
|
694
718
|
int32 total_size = 3;
|
695
719
|
}
|
720
|
+
|
721
|
+
// Request message for
|
722
|
+
// [SiteSearchEngineService.SetUriPatternDocumentData][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.SetUriPatternDocumentData]
|
723
|
+
// method.
|
724
|
+
message SetUriPatternDocumentDataRequest {
|
725
|
+
// Required. Full resource name of the
|
726
|
+
// [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
|
727
|
+
// such as
|
728
|
+
// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
|
729
|
+
string site_search_engine = 1 [
|
730
|
+
(google.api.field_behavior) = REQUIRED,
|
731
|
+
(google.api.resource_reference) = {
|
732
|
+
type: "discoveryengine.googleapis.com/SiteSearchEngine"
|
733
|
+
}
|
734
|
+
];
|
735
|
+
|
736
|
+
// Document data keyed by URI pattern. Each entry must be consistent with
|
737
|
+
// the [Schema][google.cloud.discoveryengine.v1alpha.Schema]. For example:
|
738
|
+
// [Schema][google.cloud.discoveryengine.v1alpha.Schema] = {
|
739
|
+
// "type": "object",
|
740
|
+
// "properties": {
|
741
|
+
// "Categories": {
|
742
|
+
// "type": "array",
|
743
|
+
// "items": {
|
744
|
+
// "retrievable": true,
|
745
|
+
// "type": "string"
|
746
|
+
// }
|
747
|
+
// }
|
748
|
+
// }
|
749
|
+
//
|
750
|
+
// document_data_map = {
|
751
|
+
// "www.url1.com/*": {
|
752
|
+
// "Categories": ["category1", "category2"]
|
753
|
+
// },
|
754
|
+
// "www.url2.com/*": {
|
755
|
+
// "Categories": ["category3"]
|
756
|
+
// }
|
757
|
+
// }
|
758
|
+
map<string, google.protobuf.Struct> document_data_map = 2;
|
759
|
+
|
760
|
+
// If true, clears the document data map. If true,
|
761
|
+
// [SetUriPatternDocumentDataRequest.document_data_map][google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataRequest.document_data_map]
|
762
|
+
// must be empty.
|
763
|
+
bool empty_document_data_map = 4;
|
764
|
+
|
765
|
+
// Optional. If not provided, the current
|
766
|
+
// [Schema][google.cloud.discoveryengine.v1alpha.Schema] is used. If provided,
|
767
|
+
// validates and updates the
|
768
|
+
// [Schema][google.cloud.discoveryengine.v1alpha.Schema]. If validation fails,
|
769
|
+
// an error is returned.
|
770
|
+
google.protobuf.Struct schema = 3;
|
771
|
+
}
|
772
|
+
|
773
|
+
// Response message for
|
774
|
+
// [SiteSearchEngineService.SetUriPatternDocumentData][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.SetUriPatternDocumentData]
|
775
|
+
// method.
|
776
|
+
message SetUriPatternDocumentDataResponse {}
|
777
|
+
|
778
|
+
// Metadata related to the progress of the
|
779
|
+
// [SiteSearchEngineService.SetUriPatternDocumentData][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.SetUriPatternDocumentData]
|
780
|
+
// operation. This will be returned by the google.longrunning.Operation.metadata
|
781
|
+
// field.
|
782
|
+
message SetUriPatternDocumentDataMetadata {
|
783
|
+
// Operation create time.
|
784
|
+
google.protobuf.Timestamp create_time = 1;
|
785
|
+
|
786
|
+
// Operation last update time. If the operation is done, this is also the
|
787
|
+
// finish time.
|
788
|
+
google.protobuf.Timestamp update_time = 2;
|
789
|
+
}
|
790
|
+
|
791
|
+
// Request message for
|
792
|
+
// [SiteSearchEngineService.GetUriPatternDocumentData][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetUriPatternDocumentData]
|
793
|
+
// method.
|
794
|
+
message GetUriPatternDocumentDataRequest {
|
795
|
+
// Required. Full resource name of the
|
796
|
+
// [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
|
797
|
+
// such as
|
798
|
+
// `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
|
799
|
+
string site_search_engine = 1 [
|
800
|
+
(google.api.field_behavior) = REQUIRED,
|
801
|
+
(google.api.resource_reference) = {
|
802
|
+
type: "discoveryengine.googleapis.com/SiteSearchEngine"
|
803
|
+
}
|
804
|
+
];
|
805
|
+
}
|
806
|
+
|
807
|
+
// Response message for
|
808
|
+
// [SiteSearchEngineService.GetUriPatternDocumentData][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetUriPatternDocumentData]
|
809
|
+
// method.
|
810
|
+
message GetUriPatternDocumentDataResponse {
|
811
|
+
// Document data keyed by URI pattern. For example:
|
812
|
+
// document_data_map = {
|
813
|
+
// "www.url1.com/*": {
|
814
|
+
// "Categories": ["category1", "category2"]
|
815
|
+
// },
|
816
|
+
// "www.url2.com/*": {
|
817
|
+
// "Categories": ["category3"]
|
818
|
+
// }
|
819
|
+
// }
|
820
|
+
map<string, google.protobuf.Struct> document_data_map = 1;
|
821
|
+
}
|
@@ -458,6 +458,10 @@ message DocumentInfo {
|
|
458
458
|
// The promotion IDs associated with this Document.
|
459
459
|
// Currently, this field is restricted to at most one ID.
|
460
460
|
repeated string promotion_ids = 4;
|
461
|
+
|
462
|
+
// Output only. Whether the referenced Document can be found in the data
|
463
|
+
// store.
|
464
|
+
bool joined = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
|
461
465
|
}
|
462
466
|
|
463
467
|
// Detailed panel information associated with a user event.
|
@@ -68,6 +68,9 @@ service UserEventService {
|
|
68
68
|
additional_bindings {
|
69
69
|
get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect"
|
70
70
|
}
|
71
|
+
additional_bindings {
|
72
|
+
get: "/v1alpha/{parent=projects/*/locations/*}/userEvents:collect"
|
73
|
+
}
|
71
74
|
};
|
72
75
|
}
|
73
76
|
|
@@ -69,6 +69,13 @@ message Answer {
|
|
69
69
|
|
70
70
|
// Page identifier.
|
71
71
|
string page_identifier = 2;
|
72
|
+
|
73
|
+
// The relevance of the chunk for a given query. Values range from 0.0
|
74
|
+
// (completely irrelevant) to 1.0 (completely relevant).
|
75
|
+
// This value is for informational purpose only. It may change for
|
76
|
+
// the same query and chunk at any time due to a model retraining or
|
77
|
+
// change in implementation.
|
78
|
+
optional float relevance_score = 3;
|
72
79
|
}
|
73
80
|
|
74
81
|
// Document resource name.
|
@@ -121,13 +128,28 @@ message Answer {
|
|
121
128
|
// Chunk textual content.
|
122
129
|
string content = 2;
|
123
130
|
|
124
|
-
//
|
131
|
+
// The relevance of the chunk for a given query. Values range from 0.0
|
132
|
+
// (completely irrelevant) to 1.0 (completely relevant).
|
133
|
+
// This value is for informational purpose only. It may change for
|
134
|
+
// the same query and chunk at any time due to a model retraining or
|
135
|
+
// change in implementation.
|
125
136
|
optional float relevance_score = 3;
|
126
137
|
|
127
138
|
// Document metadata.
|
128
139
|
DocumentMetadata document_metadata = 4;
|
129
140
|
}
|
130
141
|
|
142
|
+
// Structured search information.
|
143
|
+
message StructuredDocumentInfo {
|
144
|
+
// Document resource name.
|
145
|
+
string document = 1 [(google.api.resource_reference) = {
|
146
|
+
type: "discoveryengine.googleapis.com/Document"
|
147
|
+
}];
|
148
|
+
|
149
|
+
// Structured search data.
|
150
|
+
google.protobuf.Struct struct_data = 2;
|
151
|
+
}
|
152
|
+
|
131
153
|
// Search result content.
|
132
154
|
oneof content {
|
133
155
|
// Unstructured document information.
|
@@ -135,6 +157,9 @@ message Answer {
|
|
135
157
|
|
136
158
|
// Chunk information.
|
137
159
|
ChunkInfo chunk_info = 2;
|
160
|
+
|
161
|
+
// Structured document information.
|
162
|
+
StructuredDocumentInfo structured_document_info = 3;
|
138
163
|
}
|
139
164
|
}
|
140
165
|
|
@@ -168,7 +193,11 @@ message Answer {
|
|
168
193
|
// Chunk textual content.
|
169
194
|
string content = 2;
|
170
195
|
|
171
|
-
//
|
196
|
+
// The relevance of the chunk for a given query. Values range from
|
197
|
+
// 0.0 (completely irrelevant) to 1.0 (completely relevant).
|
198
|
+
// This value is for informational purpose only. It may change for
|
199
|
+
// the same query and chunk at any time due to a model retraining or
|
200
|
+
// change in implementation.
|
172
201
|
optional float relevance_score = 3;
|
173
202
|
}
|
174
203
|
|
@@ -255,6 +284,9 @@ message Answer {
|
|
255
284
|
|
256
285
|
// Non-answer-seeking query classification type.
|
257
286
|
NON_ANSWER_SEEKING_QUERY = 2;
|
287
|
+
|
288
|
+
// Jail-breaking query classification type.
|
289
|
+
JAIL_BREAKING_QUERY = 3;
|
258
290
|
}
|
259
291
|
|
260
292
|
// Query classification type.
|
@@ -310,6 +342,19 @@ message Answer {
|
|
310
342
|
// Google skips the answer if there is no relevant content in the
|
311
343
|
// retrieved search results.
|
312
344
|
NO_RELEVANT_CONTENT = 5;
|
345
|
+
|
346
|
+
// The jail-breaking query ignored case.
|
347
|
+
//
|
348
|
+
// For example, "Reply in the tone of a competing company's CEO".
|
349
|
+
// Google skips the answer if the query is classified as a jail-breaking
|
350
|
+
// query.
|
351
|
+
JAIL_BREAKING_QUERY_IGNORED = 6;
|
352
|
+
|
353
|
+
// The customer policy violation case.
|
354
|
+
//
|
355
|
+
// Google skips the summary if there is a customer policy violation
|
356
|
+
// detected. The policy is defined by the customer.
|
357
|
+
CUSTOMER_POLICY_VIOLATION = 7;
|
313
358
|
}
|
314
359
|
|
315
360
|
// Immutable. Fully qualified name
|
@@ -184,7 +184,7 @@ message Control {
|
|
184
184
|
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
|
185
185
|
|
186
186
|
// Output only. List of all
|
187
|
-
// [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]
|
187
|
+
// [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig] IDs this
|
188
188
|
// control is attached to. May take up to 10 minutes to update after changes.
|
189
189
|
repeated string associated_serving_config_ids = 3
|
190
190
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto
CHANGED
@@ -706,6 +706,9 @@ message AnswerQueryRequest {
|
|
706
706
|
|
707
707
|
// Non-answer-seeking query classification type.
|
708
708
|
NON_ANSWER_SEEKING_QUERY = 2;
|
709
|
+
|
710
|
+
// Jail-breaking query classification type.
|
711
|
+
JAIL_BREAKING_QUERY = 3;
|
709
712
|
}
|
710
713
|
|
711
714
|
// Enabled query classification types.
|
@@ -59,6 +59,9 @@ message CustomTuningModel {
|
|
59
59
|
|
60
60
|
// The model training finished successfully but metrics did not improve.
|
61
61
|
NO_IMPROVEMENT = 6;
|
62
|
+
|
63
|
+
// Input data validation failed. Model training didn't start.
|
64
|
+
INPUT_VALIDATION_FAILED = 7;
|
62
65
|
}
|
63
66
|
|
64
67
|
// Required. The fully qualified resource name of the model.
|
@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
|
|
20
20
|
import "google/api/resource.proto";
|
21
21
|
import "google/protobuf/struct.proto";
|
22
22
|
import "google/protobuf/timestamp.proto";
|
23
|
+
import "google/rpc/status.proto";
|
23
24
|
|
24
25
|
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
25
26
|
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
@@ -70,6 +71,17 @@ message Document {
|
|
70
71
|
string mime_type = 1;
|
71
72
|
}
|
72
73
|
|
74
|
+
// Index status of the document.
|
75
|
+
message IndexStatus {
|
76
|
+
// The time when the document was indexed.
|
77
|
+
// If this field is populated, it means the document has been indexed.
|
78
|
+
google.protobuf.Timestamp index_time = 1;
|
79
|
+
|
80
|
+
// A sample of errors encountered while indexing the document.
|
81
|
+
// If this field is populated, the document is not indexed due to errors.
|
82
|
+
repeated google.rpc.Status error_samples = 2;
|
83
|
+
}
|
84
|
+
|
73
85
|
// Data representation. One of
|
74
86
|
// [struct_data][google.cloud.discoveryengine.v1beta.Document.struct_data] or
|
75
87
|
// [json_data][google.cloud.discoveryengine.v1beta.Document.json_data] should
|
@@ -127,4 +139,12 @@ message Document {
|
|
127
139
|
// document has never been indexed.
|
128
140
|
google.protobuf.Timestamp index_time = 13
|
129
141
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
142
|
+
|
143
|
+
// Output only. The index status of the document.
|
144
|
+
//
|
145
|
+
// * If document is indexed successfully, the index_time field is populated.
|
146
|
+
// * Otherwise, if document is not indexed due to errors, the error_samples
|
147
|
+
// field is populated.
|
148
|
+
// * Otherwise, index_status is unset.
|
149
|
+
IndexStatus index_status = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
|
130
150
|
}
|
@@ -123,5 +123,7 @@ message DocumentProcessingConfig {
|
|
123
123
|
// layout parsing are supported.
|
124
124
|
// * `pptx`: Override parsing config for PPTX files, only digital parsing and
|
125
125
|
// layout parsing are supported.
|
126
|
+
// * `xlsx`: Override parsing config for XLSX files, only digital parsing and
|
127
|
+
// layout parsing are supported.
|
126
128
|
map<string, ParsingConfig> parsing_config_overrides = 5;
|
127
129
|
}
|
@@ -26,6 +26,7 @@ import "google/cloud/discoveryengine/v1beta/purge_config.proto";
|
|
26
26
|
import "google/longrunning/operations.proto";
|
27
27
|
import "google/protobuf/empty.proto";
|
28
28
|
import "google/protobuf/field_mask.proto";
|
29
|
+
import "google/protobuf/timestamp.proto";
|
29
30
|
|
30
31
|
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
31
32
|
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
@@ -158,6 +159,20 @@ service DocumentService {
|
|
158
159
|
metadata_type: "google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata"
|
159
160
|
};
|
160
161
|
}
|
162
|
+
|
163
|
+
// Gets index freshness metadata for
|
164
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document]s. Supported for
|
165
|
+
// website search only.
|
166
|
+
rpc BatchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest)
|
167
|
+
returns (BatchGetDocumentsMetadataResponse) {
|
168
|
+
option (google.api.http) = {
|
169
|
+
get: "/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/batchGetDocumentsMetadata"
|
170
|
+
additional_bindings {
|
171
|
+
get: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/batchGetDocumentsMetadata"
|
172
|
+
}
|
173
|
+
};
|
174
|
+
option (google.api.method_signature) = "parent";
|
175
|
+
}
|
161
176
|
}
|
162
177
|
|
163
178
|
// Request message for
|
@@ -320,3 +335,102 @@ message DeleteDocumentRequest {
|
|
320
335
|
}
|
321
336
|
];
|
322
337
|
}
|
338
|
+
|
339
|
+
// Request message for
|
340
|
+
// [DocumentService.BatchGetDocumentsMetadata][google.cloud.discoveryengine.v1beta.DocumentService.BatchGetDocumentsMetadata]
|
341
|
+
// method.
|
342
|
+
message BatchGetDocumentsMetadataRequest {
|
343
|
+
// Matcher for the [Document][google.cloud.discoveryengine.v1beta.Document]s
|
344
|
+
// by exact uris.
|
345
|
+
message UrisMatcher {
|
346
|
+
// The exact URIs to match by.
|
347
|
+
repeated string uris = 1;
|
348
|
+
}
|
349
|
+
|
350
|
+
// Matcher for the [Document][google.cloud.discoveryengine.v1beta.Document]s.
|
351
|
+
// Currently supports matching by exact URIs.
|
352
|
+
message Matcher {
|
353
|
+
// Matcher for the
|
354
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document]s.
|
355
|
+
oneof matcher {
|
356
|
+
// Matcher by exact URIs.
|
357
|
+
UrisMatcher uris_matcher = 1;
|
358
|
+
}
|
359
|
+
}
|
360
|
+
|
361
|
+
// Required. The parent branch resource name, such as
|
362
|
+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
|
363
|
+
string parent = 1 [
|
364
|
+
(google.api.field_behavior) = REQUIRED,
|
365
|
+
(google.api.resource_reference) = {
|
366
|
+
type: "discoveryengine.googleapis.com/Branch"
|
367
|
+
}
|
368
|
+
];
|
369
|
+
|
370
|
+
// Required. Matcher for the
|
371
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document]s.
|
372
|
+
Matcher matcher = 2 [(google.api.field_behavior) = REQUIRED];
|
373
|
+
}
|
374
|
+
|
375
|
+
// Response message for
|
376
|
+
// [DocumentService.BatchGetDocumentsMetadata][google.cloud.discoveryengine.v1beta.DocumentService.BatchGetDocumentsMetadata]
|
377
|
+
// method.
|
378
|
+
message BatchGetDocumentsMetadataResponse {
|
379
|
+
// The metadata of a [Document][google.cloud.discoveryengine.v1beta.Document].
|
380
|
+
message DocumentMetadata {
|
381
|
+
// The value of the matcher that was used to match the
|
382
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document].
|
383
|
+
message MatcherValue {
|
384
|
+
// The value of the matcher that was used to match the
|
385
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document].
|
386
|
+
oneof matcher_value {
|
387
|
+
// If match by URI, the URI of the
|
388
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document].
|
389
|
+
string uri = 1;
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
393
|
+
// The value of the matcher that was used to match the
|
394
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document].
|
395
|
+
MatcherValue matcher_value = 2;
|
396
|
+
|
397
|
+
// The state of the document.
|
398
|
+
State state = 3;
|
399
|
+
|
400
|
+
// The timestamp of the last time the
|
401
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document] was last
|
402
|
+
// indexed.
|
403
|
+
google.protobuf.Timestamp last_refreshed_time = 4;
|
404
|
+
|
405
|
+
// The data ingestion source of the
|
406
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document].
|
407
|
+
//
|
408
|
+
// Allowed values are:
|
409
|
+
//
|
410
|
+
// * `batch`: Data ingested via Batch API, e.g., ImportDocuments.
|
411
|
+
// * `streaming` Data ingested via Streaming API, e.g., FHIR streaming.
|
412
|
+
string data_ingestion_source = 5;
|
413
|
+
}
|
414
|
+
|
415
|
+
// The state of the [Document][google.cloud.discoveryengine.v1beta.Document].
|
416
|
+
enum State {
|
417
|
+
// Should never be set.
|
418
|
+
STATE_UNSPECIFIED = 0;
|
419
|
+
|
420
|
+
// The [Document][google.cloud.discoveryengine.v1beta.Document] is indexed.
|
421
|
+
INDEXED = 1;
|
422
|
+
|
423
|
+
// The [Document][google.cloud.discoveryengine.v1beta.Document] is not
|
424
|
+
// indexed because its URI is not in the
|
425
|
+
// [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite].
|
426
|
+
NOT_IN_TARGET_SITE = 2;
|
427
|
+
|
428
|
+
// The [Document][google.cloud.discoveryengine.v1beta.Document] is not
|
429
|
+
// indexed.
|
430
|
+
NOT_IN_INDEX = 3;
|
431
|
+
}
|
432
|
+
|
433
|
+
// The metadata of the
|
434
|
+
// [Document][google.cloud.discoveryengine.v1beta.Document]s.
|
435
|
+
repeated DocumentMetadata documents_metadata = 1;
|
436
|
+
}
|
@@ -129,8 +129,9 @@ message CheckGroundingResponse {
|
|
129
129
|
// field will be set to false. In that case, no grounding check was done for
|
130
130
|
// the claim and therefore
|
131
131
|
// [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices],
|
132
|
+
// [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices],
|
132
133
|
// and
|
133
|
-
// [
|
134
|
+
// [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score]
|
134
135
|
// should not be returned.
|
135
136
|
optional bool grounding_check_required = 6;
|
136
137
|
}
|
@@ -84,7 +84,7 @@ message BigQuerySource {
|
|
84
84
|
google.type.Date partition_date = 5;
|
85
85
|
}
|
86
86
|
|
87
|
-
// The project ID
|
87
|
+
// The project ID or the project number that contains the BigQuery source. Has
|
88
88
|
// a length limit of 128 characters. If not specified, inherits the project
|
89
89
|
// ID from the parent request.
|
90
90
|
string project_id = 1;
|
@@ -126,7 +126,7 @@ message BigQuerySource {
|
|
126
126
|
|
127
127
|
// The Spanner source for importing data
|
128
128
|
message SpannerSource {
|
129
|
-
// The project ID that the Spanner source
|
129
|
+
// The project ID that contains the Spanner source. Has a length limit of 128
|
130
130
|
// characters. If not specified, inherits the project ID from the parent
|
131
131
|
// request.
|
132
132
|
string project_id = 1;
|
@@ -260,7 +260,7 @@ message BigtableOptions {
|
|
260
260
|
|
261
261
|
// The Cloud Bigtable source for importing data.
|
262
262
|
message BigtableSource {
|
263
|
-
// The project ID that the Bigtable source
|
263
|
+
// The project ID that contains the Bigtable source. Has a length limit of 128
|
264
264
|
// characters. If not specified, inherits the project ID from the parent
|
265
265
|
// request.
|
266
266
|
string project_id = 1;
|
@@ -292,12 +292,18 @@ message FhirStoreSource {
|
|
292
292
|
// limit of 2,000 characters. Can be specified if one wants to have the
|
293
293
|
// FhirStore export to a specific Cloud Storage directory.
|
294
294
|
string gcs_staging_dir = 2;
|
295
|
+
|
296
|
+
// The FHIR resource types to import. The resource types should be a subset of
|
297
|
+
// all [supported FHIR resource
|
298
|
+
// types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification).
|
299
|
+
// Default to all supported FHIR resource types if empty.
|
300
|
+
repeated string resource_types = 3;
|
295
301
|
}
|
296
302
|
|
297
303
|
// Cloud SQL source import data from.
|
298
304
|
message CloudSqlSource {
|
299
|
-
// The project ID that the Cloud SQL source
|
300
|
-
// characters. If not specified, inherits the project ID from the parent
|
305
|
+
// The project ID that contains the Cloud SQL source. Has a length limit of
|
306
|
+
// 128 characters. If not specified, inherits the project ID from the parent
|
301
307
|
// request.
|
302
308
|
string project_id = 1;
|
303
309
|
|
@@ -329,8 +335,8 @@ message CloudSqlSource {
|
|
329
335
|
|
330
336
|
// AlloyDB source import data from.
|
331
337
|
message AlloyDbSource {
|
332
|
-
// The project ID that the AlloyDB source
|
333
|
-
//
|
338
|
+
// The project ID that contains the AlloyDB source.
|
339
|
+
// Has a length limit of 128 characters. If not specified, inherits the
|
334
340
|
// project ID from the parent request.
|
335
341
|
string project_id = 1;
|
336
342
|
|
@@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1beta;
|
|
18
18
|
|
19
19
|
import "google/api/field_behavior.proto";
|
20
20
|
import "google/api/resource.proto";
|
21
|
+
import "google/cloud/discoveryengine/v1beta/import_config.proto";
|
21
22
|
import "google/protobuf/timestamp.proto";
|
22
23
|
import "google/rpc/status.proto";
|
23
24
|
|
@@ -103,10 +104,50 @@ message PurgeUserEventsMetadata {
|
|
103
104
|
int64 failure_count = 4;
|
104
105
|
}
|
105
106
|
|
107
|
+
// Configuration of destination for Purge related errors.
|
108
|
+
message PurgeErrorConfig {
|
109
|
+
// Required. Errors destination.
|
110
|
+
oneof destination {
|
111
|
+
// Cloud Storage prefix for purge errors. This must be an empty,
|
112
|
+
// existing Cloud Storage directory. Purge errors are written to
|
113
|
+
// sharded files in this directory, one per line, as a JSON-encoded
|
114
|
+
// `google.rpc.Status` message.
|
115
|
+
string gcs_prefix = 1;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
106
119
|
// Request message for
|
107
120
|
// [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
|
108
121
|
// method.
|
109
122
|
message PurgeDocumentsRequest {
|
123
|
+
// The inline source for the input config for
|
124
|
+
// [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments]
|
125
|
+
// method.
|
126
|
+
message InlineSource {
|
127
|
+
// Required. A list of full resource name of documents to purge. In the
|
128
|
+
// format
|
129
|
+
// `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
|
130
|
+
// Recommended max of 100 items.
|
131
|
+
repeated string documents = 1 [
|
132
|
+
(google.api.field_behavior) = REQUIRED,
|
133
|
+
(google.api.resource_reference) = {
|
134
|
+
type: "discoveryengine.googleapis.com/Document"
|
135
|
+
}
|
136
|
+
];
|
137
|
+
}
|
138
|
+
|
139
|
+
// The desired input source for the purging documents based on document IDs.
|
140
|
+
oneof source {
|
141
|
+
// Cloud Storage location for the input content.
|
142
|
+
// Supported `data_schema`:
|
143
|
+
// * `document_id`: One valid
|
144
|
+
// [Document.id][google.cloud.discoveryengine.v1beta.Document.id] per line.
|
145
|
+
GcsSource gcs_source = 5;
|
146
|
+
|
147
|
+
// Inline source for the input content for purge.
|
148
|
+
InlineSource inline_source = 6;
|
149
|
+
}
|
150
|
+
|
110
151
|
// Required. The parent resource name, such as
|
111
152
|
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
|
112
153
|
string parent = 1 [
|
@@ -121,6 +162,9 @@ message PurgeDocumentsRequest {
|
|
121
162
|
// `*` (all items).
|
122
163
|
string filter = 2 [(google.api.field_behavior) = REQUIRED];
|
123
164
|
|
165
|
+
// The desired location of errors incurred during the purge.
|
166
|
+
PurgeErrorConfig error_config = 7;
|
167
|
+
|
124
168
|
// Actually performs the purge. If `force` is set to false, return the
|
125
169
|
// expected purge count without deleting any documents.
|
126
170
|
bool force = 3;
|