@google-cloud/discoveryengine 1.3.1 → 1.4.1
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 +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
- package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
- package/build/protos/protos.d.ts +48530 -23682
- package/build/protos/protos.js +122429 -63306
- package/build/protos/protos.json +13438 -7286
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +10 -1
- package/build/src/v1/completion_service_client.d.ts +489 -7
- package/build/src/v1/completion_service_client.js +715 -11
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -3
- package/build/src/v1/conversational_search_service_client.js +466 -9
- package/build/src/v1/data_store_service_client.d.ts +1286 -0
- package/build/src/v1/data_store_service_client.js +1768 -0
- package/build/src/v1/data_store_service_client_config.json +46 -0
- package/build/src/v1/document_service_client.d.ts +347 -2
- package/build/src/v1/document_service_client.js +506 -9
- package/build/src/v1/engine_service_client.d.ts +1211 -0
- package/build/src/v1/engine_service_client.js +1731 -0
- package/build/src/v1/engine_service_client_config.json +46 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/schema_service_client.d.ts +272 -2
- package/build/src/v1/schema_service_client.js +402 -9
- package/build/src/v1/search_service_client.d.ts +515 -11
- package/build/src/v1/search_service_client.js +648 -15
- package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
- package/build/src/v1/site_search_engine_service_client.js +2075 -0
- package/build/src/v1/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1/user_event_service_client.d.ts +272 -2
- package/build/src/v1/user_event_service_client.js +402 -9
- package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1765 -0
- package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
- package/build/src/v1alpha/chunk_service_client.js +1886 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +599 -5
- package/build/src/v1alpha/completion_service_client.js +868 -12
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
- package/build/src/v1alpha/conversational_search_service_client.js +353 -10
- package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
- package/build/src/v1alpha/data_store_service_client.js +599 -12
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +393 -2
- package/build/src/v1alpha/document_service_client.js +551 -10
- package/build/src/v1alpha/engine_service_client.d.ts +386 -4
- package/build/src/v1alpha/engine_service_client.js +551 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +4 -0
- package/build/src/v1alpha/index.js +10 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
- package/build/src/v1alpha/recommendation_service_client.js +353 -10
- package/build/src/v1alpha/schema_service_client.d.ts +383 -2
- package/build/src/v1alpha/schema_service_client.js +551 -10
- package/build/src/v1alpha/search_service_client.d.ts +269 -17
- package/build/src/v1alpha/search_service_client.js +373 -20
- package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
- package/build/src/v1alpha/search_tuning_service_client.js +551 -10
- package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
- package/build/src/v1alpha/serving_config_service_client.js +1935 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
- package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
- package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
- package/build/src/v1alpha/user_event_service_client.js +551 -10
- package/build/src/v1beta/completion_service_client.d.ts +708 -7
- package/build/src/v1beta/completion_service_client.js +1015 -11
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
- package/build/src/v1beta/conversational_search_service_client.js +570 -9
- package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
- package/build/src/v1beta/data_store_service_client.js +2070 -0
- package/build/src/v1beta/data_store_service_client_config.json +46 -0
- package/build/src/v1beta/document_service_client.d.ts +566 -2
- package/build/src/v1beta/document_service_client.js +810 -11
- package/build/src/v1beta/engine_service_client.d.ts +1432 -0
- package/build/src/v1beta/engine_service_client.js +2032 -0
- package/build/src/v1beta/engine_service_client_config.json +46 -0
- package/build/src/v1beta/index.d.ts +5 -0
- package/build/src/v1beta/index.js +11 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
- package/build/src/v1beta/recommendation_service_client.js +674 -9
- package/build/src/v1beta/schema_service_client.d.ts +491 -2
- package/build/src/v1beta/schema_service_client.js +706 -11
- package/build/src/v1beta/search_service_client.d.ts +620 -29
- package/build/src/v1beta/search_service_client.js +772 -27
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1781 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
- package/build/src/v1beta/serving_config_service_client.js +1724 -0
- package/build/src/v1beta/serving_config_service_client_config.json +38 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
- package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
- package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1beta/user_event_service_client.d.ts +491 -2
- package/build/src/v1beta/user_event_service_client.js +706 -11
- package/package.json +3 -3
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
// Copyright 2022 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/cloud/discoveryengine/v1beta/common.proto";
|
|
22
|
+
import "google/cloud/discoveryengine/v1beta/document_processing_config.proto";
|
|
23
|
+
import "google/cloud/discoveryengine/v1beta/schema.proto";
|
|
24
|
+
import "google/protobuf/timestamp.proto";
|
|
25
|
+
|
|
26
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
|
27
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
|
28
|
+
option java_multiple_files = true;
|
|
29
|
+
option java_outer_classname = "DataStoreProto";
|
|
30
|
+
option java_package = "com.google.cloud.discoveryengine.v1beta";
|
|
31
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
|
32
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
|
|
33
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
|
|
34
|
+
|
|
35
|
+
// DataStore captures global settings and configs at the DataStore level.
|
|
36
|
+
message DataStore {
|
|
37
|
+
option (google.api.resource) = {
|
|
38
|
+
type: "discoveryengine.googleapis.com/DataStore"
|
|
39
|
+
pattern: "projects/{project}/locations/{location}/dataStores/{data_store}"
|
|
40
|
+
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}"
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// Content config of the data store.
|
|
44
|
+
enum ContentConfig {
|
|
45
|
+
// Default value.
|
|
46
|
+
CONTENT_CONFIG_UNSPECIFIED = 0;
|
|
47
|
+
|
|
48
|
+
// Only contains documents without any
|
|
49
|
+
// [Document.content][google.cloud.discoveryengine.v1beta.Document.content].
|
|
50
|
+
NO_CONTENT = 1;
|
|
51
|
+
|
|
52
|
+
// Only contains documents with
|
|
53
|
+
// [Document.content][google.cloud.discoveryengine.v1beta.Document.content].
|
|
54
|
+
CONTENT_REQUIRED = 2;
|
|
55
|
+
|
|
56
|
+
// The data store is used for public website search.
|
|
57
|
+
PUBLIC_WEBSITE = 3;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Immutable. The full resource name of the data store.
|
|
61
|
+
// Format:
|
|
62
|
+
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
|
|
63
|
+
//
|
|
64
|
+
// This field must be a UTF-8 encoded string with a length limit of 1024
|
|
65
|
+
// characters.
|
|
66
|
+
string name = 1 [(google.api.field_behavior) = IMMUTABLE];
|
|
67
|
+
|
|
68
|
+
// Required. The data store display name.
|
|
69
|
+
//
|
|
70
|
+
// This field must be a UTF-8 encoded string with a length limit of 128
|
|
71
|
+
// characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
|
72
|
+
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
|
|
73
|
+
|
|
74
|
+
// Immutable. The industry vertical that the data store registers.
|
|
75
|
+
IndustryVertical industry_vertical = 3
|
|
76
|
+
[(google.api.field_behavior) = IMMUTABLE];
|
|
77
|
+
|
|
78
|
+
// The solutions that the data store enrolls. Available solutions for each
|
|
79
|
+
// [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
|
|
80
|
+
//
|
|
81
|
+
// * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
|
|
82
|
+
// * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
|
|
83
|
+
// solutions cannot be enrolled.
|
|
84
|
+
repeated SolutionType solution_types = 5;
|
|
85
|
+
|
|
86
|
+
// Output only. The id of the default
|
|
87
|
+
// [Schema][google.cloud.discoveryengine.v1beta.Schema] asscociated to this
|
|
88
|
+
// data store.
|
|
89
|
+
string default_schema_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
90
|
+
|
|
91
|
+
// Immutable. The content config of the data store. If this field is unset,
|
|
92
|
+
// the server behavior defaults to
|
|
93
|
+
// [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
|
|
94
|
+
ContentConfig content_config = 6 [(google.api.field_behavior) = IMMUTABLE];
|
|
95
|
+
|
|
96
|
+
// Output only. Timestamp the
|
|
97
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
|
|
98
|
+
google.protobuf.Timestamp create_time = 4
|
|
99
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
100
|
+
|
|
101
|
+
// Configuration for Document understanding and enrichment.
|
|
102
|
+
DocumentProcessingConfig document_processing_config = 27;
|
|
103
|
+
|
|
104
|
+
// The start schema to use for this
|
|
105
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
|
|
106
|
+
// provisioning it. If unset, a default vertical specialized schema will be
|
|
107
|
+
// used.
|
|
108
|
+
//
|
|
109
|
+
// This field is only used by [CreateDataStore][] API, and will be ignored if
|
|
110
|
+
// used in other APIs. This field will be omitted from all API responses
|
|
111
|
+
// including [CreateDataStore][] API. To retrieve a schema of a
|
|
112
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
|
|
113
|
+
// [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
|
|
114
|
+
// API instead.
|
|
115
|
+
//
|
|
116
|
+
// The provided schema will be validated against certain rules on schema.
|
|
117
|
+
// Learn more from [this
|
|
118
|
+
// doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
|
|
119
|
+
Schema starting_schema = 28;
|
|
120
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
// Copyright 2022 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/data_store.proto";
|
|
24
|
+
import "google/longrunning/operations.proto";
|
|
25
|
+
import "google/protobuf/empty.proto";
|
|
26
|
+
import "google/protobuf/field_mask.proto";
|
|
27
|
+
import "google/protobuf/timestamp.proto";
|
|
28
|
+
|
|
29
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
|
30
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
|
31
|
+
option java_multiple_files = true;
|
|
32
|
+
option java_outer_classname = "DataStoreServiceProto";
|
|
33
|
+
option java_package = "com.google.cloud.discoveryengine.v1beta";
|
|
34
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
|
35
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
|
|
36
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
|
|
37
|
+
|
|
38
|
+
// Service for managing
|
|
39
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] configuration.
|
|
40
|
+
service DataStoreService {
|
|
41
|
+
option (google.api.default_host) = "discoveryengine.googleapis.com";
|
|
42
|
+
option (google.api.oauth_scopes) =
|
|
43
|
+
"https://www.googleapis.com/auth/cloud-platform";
|
|
44
|
+
|
|
45
|
+
// Creates a [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
|
|
46
|
+
//
|
|
47
|
+
// DataStore is for storing
|
|
48
|
+
// [Documents][google.cloud.discoveryengine.v1beta.Document]. To serve these
|
|
49
|
+
// documents for Search, or Recommendation use case, an
|
|
50
|
+
// [Engine][google.cloud.discoveryengine.v1beta.Engine] needs to be created
|
|
51
|
+
// separately.
|
|
52
|
+
rpc CreateDataStore(CreateDataStoreRequest)
|
|
53
|
+
returns (google.longrunning.Operation) {
|
|
54
|
+
option (google.api.http) = {
|
|
55
|
+
post: "/v1beta/{parent=projects/*/locations/*}/dataStores"
|
|
56
|
+
body: "data_store"
|
|
57
|
+
additional_bindings {
|
|
58
|
+
post: "/v1beta/{parent=projects/*/locations/*/collections/*}/dataStores"
|
|
59
|
+
body: "data_store"
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
option (google.api.method_signature) = "parent,data_store,data_store_id";
|
|
63
|
+
option (google.longrunning.operation_info) = {
|
|
64
|
+
response_type: "google.cloud.discoveryengine.v1beta.DataStore"
|
|
65
|
+
metadata_type: "google.cloud.discoveryengine.v1beta.CreateDataStoreMetadata"
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Gets a [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
|
|
70
|
+
rpc GetDataStore(GetDataStoreRequest) returns (DataStore) {
|
|
71
|
+
option (google.api.http) = {
|
|
72
|
+
get: "/v1beta/{name=projects/*/locations/*/dataStores/*}"
|
|
73
|
+
additional_bindings {
|
|
74
|
+
get: "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
option (google.api.method_signature) = "name";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Lists all the [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s
|
|
81
|
+
// associated with the project.
|
|
82
|
+
rpc ListDataStores(ListDataStoresRequest) returns (ListDataStoresResponse) {
|
|
83
|
+
option (google.api.http) = {
|
|
84
|
+
get: "/v1beta/{parent=projects/*/locations/*}/dataStores"
|
|
85
|
+
additional_bindings {
|
|
86
|
+
get: "/v1beta/{parent=projects/*/locations/*/collections/*}/dataStores"
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
option (google.api.method_signature) = "parent";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Deletes a [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
|
|
93
|
+
rpc DeleteDataStore(DeleteDataStoreRequest)
|
|
94
|
+
returns (google.longrunning.Operation) {
|
|
95
|
+
option (google.api.http) = {
|
|
96
|
+
delete: "/v1beta/{name=projects/*/locations/*/dataStores/*}"
|
|
97
|
+
additional_bindings {
|
|
98
|
+
delete: "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}"
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
option (google.api.method_signature) = "name";
|
|
102
|
+
option (google.longrunning.operation_info) = {
|
|
103
|
+
response_type: "google.protobuf.Empty"
|
|
104
|
+
metadata_type: "google.cloud.discoveryengine.v1beta.DeleteDataStoreMetadata"
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Updates a [DataStore][google.cloud.discoveryengine.v1beta.DataStore]
|
|
109
|
+
rpc UpdateDataStore(UpdateDataStoreRequest) returns (DataStore) {
|
|
110
|
+
option (google.api.http) = {
|
|
111
|
+
patch: "/v1beta/{data_store.name=projects/*/locations/*/dataStores/*}"
|
|
112
|
+
body: "data_store"
|
|
113
|
+
additional_bindings {
|
|
114
|
+
patch: "/v1beta/{data_store.name=projects/*/locations/*/collections/*/dataStores/*}"
|
|
115
|
+
body: "data_store"
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
option (google.api.method_signature) = "data_store,update_mask";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Request for
|
|
123
|
+
// [DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
|
|
124
|
+
// method.
|
|
125
|
+
message CreateDataStoreRequest {
|
|
126
|
+
// Required. The parent resource name, such as
|
|
127
|
+
// `projects/{project}/locations/{location}/collections/{collection}`.
|
|
128
|
+
string parent = 1 [
|
|
129
|
+
(google.api.field_behavior) = REQUIRED,
|
|
130
|
+
(google.api.resource_reference) = {
|
|
131
|
+
type: "discoveryengine.googleapis.com/Collection"
|
|
132
|
+
}
|
|
133
|
+
];
|
|
134
|
+
|
|
135
|
+
// Required. The [DataStore][google.cloud.discoveryengine.v1beta.DataStore] to
|
|
136
|
+
// create.
|
|
137
|
+
DataStore data_store = 2 [(google.api.field_behavior) = REQUIRED];
|
|
138
|
+
|
|
139
|
+
// Required. The ID to use for the
|
|
140
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], which will
|
|
141
|
+
// become the final component of the
|
|
142
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]'s resource name.
|
|
143
|
+
//
|
|
144
|
+
// This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
|
|
145
|
+
// standard with a length limit of 63 characters. Otherwise, an
|
|
146
|
+
// INVALID_ARGUMENT error is returned.
|
|
147
|
+
string data_store_id = 3 [(google.api.field_behavior) = REQUIRED];
|
|
148
|
+
|
|
149
|
+
// A boolean flag indicating whether user want to directly create an advanced
|
|
150
|
+
// data store for site search.
|
|
151
|
+
// If the data store is not configured as site
|
|
152
|
+
// search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
|
|
153
|
+
// be ignored.
|
|
154
|
+
bool create_advanced_site_search = 4;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Request message for
|
|
158
|
+
// [DataStoreService.GetDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.GetDataStore]
|
|
159
|
+
// method.
|
|
160
|
+
message GetDataStoreRequest {
|
|
161
|
+
// Required. Full resource name of
|
|
162
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
|
|
163
|
+
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
|
|
164
|
+
//
|
|
165
|
+
// If the caller does not have permission to access the
|
|
166
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], regardless of
|
|
167
|
+
// whether or not it exists, a PERMISSION_DENIED error is returned.
|
|
168
|
+
//
|
|
169
|
+
// If the requested [DataStore][google.cloud.discoveryengine.v1beta.DataStore]
|
|
170
|
+
// does not exist, a NOT_FOUND error is returned.
|
|
171
|
+
string name = 1 [
|
|
172
|
+
(google.api.field_behavior) = REQUIRED,
|
|
173
|
+
(google.api.resource_reference) = {
|
|
174
|
+
type: "discoveryengine.googleapis.com/DataStore"
|
|
175
|
+
}
|
|
176
|
+
];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Metadata related to the progress of the
|
|
180
|
+
// [DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
|
|
181
|
+
// operation. This will be returned by the google.longrunning.Operation.metadata
|
|
182
|
+
// field.
|
|
183
|
+
message CreateDataStoreMetadata {
|
|
184
|
+
// Operation create time.
|
|
185
|
+
google.protobuf.Timestamp create_time = 1;
|
|
186
|
+
|
|
187
|
+
// Operation last update time. If the operation is done, this is also the
|
|
188
|
+
// finish time.
|
|
189
|
+
google.protobuf.Timestamp update_time = 2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Request message for
|
|
193
|
+
// [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1beta.DataStoreService.ListDataStores]
|
|
194
|
+
// method.
|
|
195
|
+
message ListDataStoresRequest {
|
|
196
|
+
// Required. The parent branch resource name, such as
|
|
197
|
+
// `projects/{project}/locations/{location}/collections/{collection_id}`.
|
|
198
|
+
//
|
|
199
|
+
// If the caller does not have permission to list
|
|
200
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s under this
|
|
201
|
+
// location, regardless of whether or not this data store exists, a
|
|
202
|
+
// PERMISSION_DENIED error is returned.
|
|
203
|
+
string parent = 1 [
|
|
204
|
+
(google.api.field_behavior) = REQUIRED,
|
|
205
|
+
(google.api.resource_reference) = {
|
|
206
|
+
type: "discoveryengine.googleapis.com/Collection"
|
|
207
|
+
}
|
|
208
|
+
];
|
|
209
|
+
|
|
210
|
+
// Maximum number of
|
|
211
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to return. If
|
|
212
|
+
// unspecified, defaults to 10. The maximum allowed value is 50. Values above
|
|
213
|
+
// 50 will be coerced to 50.
|
|
214
|
+
//
|
|
215
|
+
// If this field is negative, an INVALID_ARGUMENT is returned.
|
|
216
|
+
int32 page_size = 2;
|
|
217
|
+
|
|
218
|
+
// A page token
|
|
219
|
+
// [ListDataStoresResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListDataStoresResponse.next_page_token],
|
|
220
|
+
// received from a previous
|
|
221
|
+
// [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1beta.DataStoreService.ListDataStores]
|
|
222
|
+
// call. Provide this to retrieve the subsequent page.
|
|
223
|
+
//
|
|
224
|
+
// When paginating, all other parameters provided to
|
|
225
|
+
// [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1beta.DataStoreService.ListDataStores]
|
|
226
|
+
// must match the call that provided the page token. Otherwise, an
|
|
227
|
+
// INVALID_ARGUMENT error is returned.
|
|
228
|
+
string page_token = 3;
|
|
229
|
+
|
|
230
|
+
// Filter by solution type. For example: filter =
|
|
231
|
+
// 'solution_type:SOLUTION_TYPE_SEARCH'
|
|
232
|
+
string filter = 4;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Response message for
|
|
236
|
+
// [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1beta.DataStoreService.ListDataStores]
|
|
237
|
+
// method.
|
|
238
|
+
message ListDataStoresResponse {
|
|
239
|
+
// All the customer's
|
|
240
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s.
|
|
241
|
+
repeated DataStore data_stores = 1;
|
|
242
|
+
|
|
243
|
+
// A token that can be sent as
|
|
244
|
+
// [ListDataStoresRequest.page_token][google.cloud.discoveryengine.v1beta.ListDataStoresRequest.page_token]
|
|
245
|
+
// to retrieve the next page. If this field is omitted, there are no
|
|
246
|
+
// subsequent pages.
|
|
247
|
+
string next_page_token = 2;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Request message for
|
|
251
|
+
// [DataStoreService.DeleteDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.DeleteDataStore]
|
|
252
|
+
// method.
|
|
253
|
+
message DeleteDataStoreRequest {
|
|
254
|
+
// Required. Full resource name of
|
|
255
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
|
|
256
|
+
// `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
|
|
257
|
+
//
|
|
258
|
+
// If the caller does not have permission to delete the
|
|
259
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], regardless of
|
|
260
|
+
// whether or not it exists, a PERMISSION_DENIED error is returned.
|
|
261
|
+
//
|
|
262
|
+
// If the [DataStore][google.cloud.discoveryengine.v1beta.DataStore] to delete
|
|
263
|
+
// does not exist, a NOT_FOUND error is returned.
|
|
264
|
+
string name = 1 [
|
|
265
|
+
(google.api.field_behavior) = REQUIRED,
|
|
266
|
+
(google.api.resource_reference) = {
|
|
267
|
+
type: "discoveryengine.googleapis.com/DataStore"
|
|
268
|
+
}
|
|
269
|
+
];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// Request message for
|
|
273
|
+
// [DataStoreService.UpdateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.UpdateDataStore]
|
|
274
|
+
// method.
|
|
275
|
+
message UpdateDataStoreRequest {
|
|
276
|
+
// Required. The [DataStore][google.cloud.discoveryengine.v1beta.DataStore] to
|
|
277
|
+
// update.
|
|
278
|
+
//
|
|
279
|
+
// If the caller does not have permission to update the
|
|
280
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore], regardless of
|
|
281
|
+
// whether or not it exists, a PERMISSION_DENIED error is returned.
|
|
282
|
+
//
|
|
283
|
+
// If the [DataStore][google.cloud.discoveryengine.v1beta.DataStore] to update
|
|
284
|
+
// does not exist, a NOT_FOUND error is returned.
|
|
285
|
+
DataStore data_store = 1 [(google.api.field_behavior) = REQUIRED];
|
|
286
|
+
|
|
287
|
+
// Indicates which fields in the provided
|
|
288
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] to update.
|
|
289
|
+
//
|
|
290
|
+
// If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
|
|
291
|
+
// is returned.
|
|
292
|
+
google.protobuf.FieldMask update_mask = 2;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// Metadata related to the progress of the
|
|
296
|
+
// [DataStoreService.DeleteDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.DeleteDataStore]
|
|
297
|
+
// operation. This will be returned by the google.longrunning.Operation.metadata
|
|
298
|
+
// field.
|
|
299
|
+
message DeleteDataStoreMetadata {
|
|
300
|
+
// Operation create time.
|
|
301
|
+
google.protobuf.Timestamp create_time = 1;
|
|
302
|
+
|
|
303
|
+
// Operation last update time. If the operation is done, this is also the
|
|
304
|
+
// finish time.
|
|
305
|
+
google.protobuf.Timestamp update_time = 2;
|
|
306
|
+
}
|
|
@@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1beta;
|
|
|
19
19
|
import "google/api/field_behavior.proto";
|
|
20
20
|
import "google/api/resource.proto";
|
|
21
21
|
import "google/protobuf/struct.proto";
|
|
22
|
+
import "google/protobuf/timestamp.proto";
|
|
22
23
|
|
|
23
24
|
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
|
24
25
|
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
|
@@ -53,7 +54,7 @@ message Document {
|
|
|
53
54
|
|
|
54
55
|
// The URI of the content. Only Cloud Storage URIs (e.g.
|
|
55
56
|
// `gs://bucket-name/path/to/file`) are supported. The maximum file size
|
|
56
|
-
// is 100 MB.
|
|
57
|
+
// is 2.5 MB for text-based formats, 100 MB for other formats.
|
|
57
58
|
string uri = 3;
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -118,4 +119,12 @@ message Document {
|
|
|
118
119
|
// It contains derived data that are not in the original input document.
|
|
119
120
|
google.protobuf.Struct derived_struct_data = 6
|
|
120
121
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
122
|
+
|
|
123
|
+
// Output only. The last time the document was indexed. If this field is set,
|
|
124
|
+
// the document could be returned in search results.
|
|
125
|
+
//
|
|
126
|
+
// This field is OUTPUT_ONLY. If this field is not populated, it means the
|
|
127
|
+
// document has never been indexed.
|
|
128
|
+
google.protobuf.Timestamp index_time = 13
|
|
129
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
121
130
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Copyright 2022 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
|
+
|
|
22
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta";
|
|
23
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "DocumentProcessingConfigProto";
|
|
26
|
+
option java_package = "com.google.cloud.discoveryengine.v1beta";
|
|
27
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
|
28
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta";
|
|
29
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta";
|
|
30
|
+
|
|
31
|
+
// A singleton resource of
|
|
32
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. It's empty when
|
|
33
|
+
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is created, which
|
|
34
|
+
// defaults to digital parser. The first call to
|
|
35
|
+
// [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize
|
|
36
|
+
// the config.
|
|
37
|
+
message DocumentProcessingConfig {
|
|
38
|
+
option (google.api.resource) = {
|
|
39
|
+
type: "discoveryengine.googleapis.com/DocumentProcessingConfig"
|
|
40
|
+
pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig"
|
|
41
|
+
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig"
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// Related configurations applied to a specific type of document parser.
|
|
45
|
+
message ParsingConfig {
|
|
46
|
+
// The digital parsing configurations for documents.
|
|
47
|
+
message DigitalParsingConfig {}
|
|
48
|
+
|
|
49
|
+
// The OCR parsing configurations for documents.
|
|
50
|
+
message OcrParsingConfig {
|
|
51
|
+
// Apply additional enhanced OCR processing to a list of document
|
|
52
|
+
// elements.
|
|
53
|
+
//
|
|
54
|
+
// Supported values:
|
|
55
|
+
// * `table`: advanced table parsing model.
|
|
56
|
+
repeated string enhanced_document_elements = 1;
|
|
57
|
+
|
|
58
|
+
// If true, will use native text instead of OCR text on pages containing
|
|
59
|
+
// native text.
|
|
60
|
+
bool use_native_text = 2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Configs for document processing types.
|
|
64
|
+
oneof type_dedicated_config {
|
|
65
|
+
// Configurations applied to digital parser.
|
|
66
|
+
DigitalParsingConfig digital_parsing_config = 1;
|
|
67
|
+
|
|
68
|
+
// Configurations applied to OCR parser. Currently it only applies to
|
|
69
|
+
// PDFs.
|
|
70
|
+
OcrParsingConfig ocr_parsing_config = 2;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// The full resource name of the Document Processing Config.
|
|
75
|
+
// Format:
|
|
76
|
+
// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
|
|
77
|
+
string name = 1;
|
|
78
|
+
|
|
79
|
+
// Configurations for default Document parser.
|
|
80
|
+
// If not specified, we will configure it as default DigitalParsingConfig, and
|
|
81
|
+
// the default parsing config will be applied to all file types for Document
|
|
82
|
+
// parsing.
|
|
83
|
+
ParsingConfig default_parsing_config = 4;
|
|
84
|
+
|
|
85
|
+
// Map from file type to override the default parsing configuration based on
|
|
86
|
+
// the file type. Supported keys:
|
|
87
|
+
// * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
|
|
88
|
+
// parsing or layout parsing is supported.
|
|
89
|
+
// * `html`: Override parsing config for HTML files, only digital parsing and
|
|
90
|
+
// or layout parsing are supported.
|
|
91
|
+
// * `docx`: Override parsing config for DOCX files, only digital parsing and
|
|
92
|
+
// or layout parsing are supported.
|
|
93
|
+
map<string, ParsingConfig> parsing_config_overrides = 5;
|
|
94
|
+
}
|