@google-cloud/discoveryengine 2.2.0 → 2.3.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/README.md +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
- package/build/protos/protos.d.ts +5387 -265
- package/build/protos/protos.js +77991 -63105
- package/build/protos/protos.json +1512 -91
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +8 -2
- package/build/src/v1/cmek_config_service_client.d.ts +2287 -0
- package/build/src/v1/cmek_config_service_client.js +3274 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +44 -0
- package/build/src/v1/completion_service_client.d.ts +90 -0
- package/build/src/v1/completion_service_client.js +134 -2
- package/build/src/v1/completion_service_proto_list.json +6 -1
- package/build/src/v1/control_service_client.d.ts +90 -0
- package/build/src/v1/control_service_client.js +150 -0
- package/build/src/v1/control_service_proto_list.json +6 -1
- package/build/src/v1/conversational_search_service_client.d.ts +90 -0
- package/build/src/v1/conversational_search_service_client.js +192 -0
- package/build/src/v1/conversational_search_service_proto_list.json +6 -1
- package/build/src/v1/data_store_service_client.d.ts +96 -0
- package/build/src/v1/data_store_service_client.js +140 -2
- package/build/src/v1/data_store_service_proto_list.json +6 -1
- package/build/src/v1/document_service_client.d.ts +90 -0
- package/build/src/v1/document_service_client.js +158 -2
- package/build/src/v1/document_service_proto_list.json +6 -1
- package/build/src/v1/engine_service_client.d.ts +90 -0
- package/build/src/v1/engine_service_client.js +140 -2
- package/build/src/v1/engine_service_proto_list.json +6 -1
- package/build/src/v1/gapic_metadata.json +184 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +90 -0
- package/build/src/v1/grounded_generation_service_client.js +138 -0
- package/build/src/v1/grounded_generation_service_proto_list.json +6 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2470 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3449 -0
- package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
- package/build/src/v1/identity_mapping_store_service_proto_list.json +44 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/project_service_client.d.ts +90 -0
- package/build/src/v1/project_service_client.js +128 -2
- package/build/src/v1/project_service_proto_list.json +6 -1
- package/build/src/v1/rank_service_client.d.ts +90 -0
- package/build/src/v1/rank_service_client.js +132 -0
- package/build/src/v1/rank_service_proto_list.json +6 -1
- package/build/src/v1/recommendation_service_client.d.ts +90 -0
- package/build/src/v1/recommendation_service_client.js +132 -0
- package/build/src/v1/recommendation_service_proto_list.json +6 -1
- package/build/src/v1/schema_service_client.d.ts +90 -0
- package/build/src/v1/schema_service_client.js +134 -2
- package/build/src/v1/schema_service_proto_list.json +6 -1
- package/build/src/v1/search_service_client.d.ts +90 -0
- package/build/src/v1/search_service_client.js +126 -0
- package/build/src/v1/search_service_proto_list.json +6 -1
- package/build/src/v1/search_tuning_service_client.d.ts +90 -0
- package/build/src/v1/search_tuning_service_client.js +134 -2
- package/build/src/v1/search_tuning_service_proto_list.json +6 -1
- package/build/src/v1/serving_config_service_client.d.ts +90 -0
- package/build/src/v1/serving_config_service_client.js +132 -0
- package/build/src/v1/serving_config_service_proto_list.json +6 -1
- package/build/src/v1/site_search_engine_service_client.d.ts +90 -0
- package/build/src/v1/site_search_engine_service_client.js +146 -2
- package/build/src/v1/site_search_engine_service_proto_list.json +6 -1
- package/build/src/v1/user_event_service_client.d.ts +90 -0
- package/build/src/v1/user_event_service_client.js +140 -2
- package/build/src/v1/user_event_service_proto_list.json +6 -1
- package/build/src/v1/user_license_service_client.d.ts +2256 -0
- package/build/src/v1/user_license_service_client.js +3194 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +44 -0
- package/build/src/v1alpha/acl_config_service_client.js +12 -0
- package/build/src/v1alpha/chunk_service_client.js +6 -0
- package/build/src/v1alpha/completion_service_client.js +7 -1
- package/build/src/v1alpha/control_service_client.js +24 -0
- package/build/src/v1alpha/conversational_search_service_client.js +66 -0
- package/build/src/v1alpha/data_store_service_client.js +25 -1
- package/build/src/v1alpha/document_service_client.js +37 -1
- package/build/src/v1alpha/engine_service_client.js +25 -1
- package/build/src/v1alpha/estimate_billing_service_client.js +1 -1
- package/build/src/v1alpha/evaluation_service_client.js +7 -1
- package/build/src/v1alpha/grounded_generation_service_client.js +6 -0
- package/build/src/v1alpha/project_service_client.js +13 -1
- package/build/src/v1alpha/rank_service_client.js +6 -0
- package/build/src/v1alpha/recommendation_service_client.js +6 -0
- package/build/src/v1alpha/sample_query_service_client.js +25 -1
- package/build/src/v1alpha/sample_query_set_service_client.js +24 -0
- package/build/src/v1alpha/schema_service_client.js +7 -1
- package/build/src/v1alpha/search_tuning_service_client.js +7 -1
- package/build/src/v1alpha/serving_config_service_client.js +12 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +19 -1
- package/build/src/v1alpha/user_event_service_client.js +13 -1
- package/build/src/v1beta/completion_service_client.js +13 -1
- package/build/src/v1beta/control_service_client.js +24 -0
- package/build/src/v1beta/conversational_search_service_client.js +66 -0
- package/build/src/v1beta/data_store_service_client.js +13 -1
- package/build/src/v1beta/document_service_client.js +31 -1
- package/build/src/v1beta/engine_service_client.js +25 -1
- package/build/src/v1beta/evaluation_service_client.js +7 -1
- package/build/src/v1beta/grounded_generation_service_client.js +12 -0
- package/build/src/v1beta/project_service_client.js +1 -1
- package/build/src/v1beta/rank_service_client.js +6 -0
- package/build/src/v1beta/recommendation_service_client.js +6 -0
- package/build/src/v1beta/sample_query_service_client.js +25 -1
- package/build/src/v1beta/sample_query_set_service_client.js +24 -0
- package/build/src/v1beta/schema_service_client.js +7 -1
- package/build/src/v1beta/search_tuning_service_client.js +7 -1
- package/build/src/v1beta/serving_config_service_client.js +12 -0
- package/build/src/v1beta/site_search_engine_service_client.js +19 -1
- package/build/src/v1beta/user_event_service_client.js +13 -1
- package/package.json +7 -7
- package/CHANGELOG.md +0 -274
@@ -0,0 +1,191 @@
|
|
1
|
+
// Copyright 2025 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.v1;
|
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/v1/user_license.proto";
|
24
|
+
import "google/longrunning/operations.proto";
|
25
|
+
import "google/protobuf/field_mask.proto";
|
26
|
+
import "google/protobuf/timestamp.proto";
|
27
|
+
import "google/rpc/status.proto";
|
28
|
+
|
29
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
|
30
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb";
|
31
|
+
option java_multiple_files = true;
|
32
|
+
option java_outer_classname = "UserLicenseServiceProto";
|
33
|
+
option java_package = "com.google.cloud.discoveryengine.v1";
|
34
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
35
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1";
|
36
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1";
|
37
|
+
|
38
|
+
// Service for managing User Licenses.
|
39
|
+
service UserLicenseService {
|
40
|
+
option (google.api.default_host) = "discoveryengine.googleapis.com";
|
41
|
+
option (google.api.oauth_scopes) =
|
42
|
+
"https://www.googleapis.com/auth/cloud-platform";
|
43
|
+
|
44
|
+
// Lists the User Licenses.
|
45
|
+
rpc ListUserLicenses(ListUserLicensesRequest)
|
46
|
+
returns (ListUserLicensesResponse) {
|
47
|
+
option (google.api.http) = {
|
48
|
+
get: "/v1/{parent=projects/*/locations/*/userStores/*}/userLicenses"
|
49
|
+
};
|
50
|
+
option (google.api.method_signature) = "parent";
|
51
|
+
}
|
52
|
+
|
53
|
+
// Updates the User License.
|
54
|
+
// This method is used for batch assign/unassign licenses to users.
|
55
|
+
rpc BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest)
|
56
|
+
returns (google.longrunning.Operation) {
|
57
|
+
option (google.api.http) = {
|
58
|
+
post: "/v1/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses"
|
59
|
+
body: "*"
|
60
|
+
};
|
61
|
+
option (google.longrunning.operation_info) = {
|
62
|
+
response_type: "google.cloud.discoveryengine.v1.BatchUpdateUserLicensesResponse"
|
63
|
+
metadata_type: "google.cloud.discoveryengine.v1.BatchUpdateUserLicensesMetadata"
|
64
|
+
};
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Request message for
|
69
|
+
// [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses].
|
70
|
+
message ListUserLicensesRequest {
|
71
|
+
// Required. The parent [UserStore][] resource name, format:
|
72
|
+
// `projects/{project}/locations/{location}/userStores/{user_store_id}`.
|
73
|
+
string parent = 1 [
|
74
|
+
(google.api.field_behavior) = REQUIRED,
|
75
|
+
(google.api.resource_reference) = {
|
76
|
+
type: "discoveryengine.googleapis.com/UserStore"
|
77
|
+
}
|
78
|
+
];
|
79
|
+
|
80
|
+
// Optional. Requested page size. Server may return fewer items than
|
81
|
+
// requested. If unspecified, defaults to 10. The maximum value is 50; values
|
82
|
+
// above 50 will be coerced to 50.
|
83
|
+
//
|
84
|
+
// If this field is negative, an INVALID_ARGUMENT error is returned.
|
85
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
86
|
+
|
87
|
+
// Optional. A page token, received from a previous `ListUserLicenses` call.
|
88
|
+
// Provide this to retrieve the subsequent page.
|
89
|
+
//
|
90
|
+
// When paginating, all other parameters provided to `ListUserLicenses`
|
91
|
+
// must match the call that provided the page token.
|
92
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
93
|
+
|
94
|
+
// Optional. Filter for the list request.
|
95
|
+
//
|
96
|
+
// Supported fields:
|
97
|
+
//
|
98
|
+
// * `license_assignment_state`
|
99
|
+
//
|
100
|
+
// Examples:
|
101
|
+
//
|
102
|
+
// * `license_assignment_state = ASSIGNED` to list assigned user licenses.
|
103
|
+
// * `license_assignment_state = NO_LICENSE` to list not licensed users.
|
104
|
+
// * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
|
105
|
+
// who attempted login but no license assigned.
|
106
|
+
// * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
|
107
|
+
// out users who attempted login but no license assigned.
|
108
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
109
|
+
}
|
110
|
+
|
111
|
+
// Response message for
|
112
|
+
// [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses].
|
113
|
+
message ListUserLicensesResponse {
|
114
|
+
// All the customer's
|
115
|
+
// [UserLicense][google.cloud.discoveryengine.v1.UserLicense]s.
|
116
|
+
repeated UserLicense user_licenses = 1;
|
117
|
+
|
118
|
+
// A token, which can be sent as `page_token` to retrieve the next page. If
|
119
|
+
// this field is omitted, there are no subsequent pages.
|
120
|
+
string next_page_token = 2;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Request message for
|
124
|
+
// [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses]
|
125
|
+
// method.
|
126
|
+
message BatchUpdateUserLicensesRequest {
|
127
|
+
// The inline source for the input config for BatchUpdateUserLicenses
|
128
|
+
// method.
|
129
|
+
message InlineSource {
|
130
|
+
// Required. A list of user licenses to update. Each user license
|
131
|
+
// must have a valid
|
132
|
+
// [UserLicense.user_principal][google.cloud.discoveryengine.v1.UserLicense.user_principal].
|
133
|
+
repeated UserLicense user_licenses = 1
|
134
|
+
[(google.api.field_behavior) = REQUIRED];
|
135
|
+
|
136
|
+
// Optional. The list of fields to update.
|
137
|
+
google.protobuf.FieldMask update_mask = 2
|
138
|
+
[(google.api.field_behavior) = OPTIONAL];
|
139
|
+
}
|
140
|
+
|
141
|
+
// Required. The source of the input.
|
142
|
+
oneof source {
|
143
|
+
// The inline source for the input content for document embeddings.
|
144
|
+
InlineSource inline_source = 2;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Required. The parent [UserStore][] resource name, format:
|
148
|
+
// `projects/{project}/locations/{location}/userStores/{user_store_id}`.
|
149
|
+
string parent = 1 [
|
150
|
+
(google.api.field_behavior) = REQUIRED,
|
151
|
+
(google.api.resource_reference) = {
|
152
|
+
type: "discoveryengine.googleapis.com/UserStore"
|
153
|
+
}
|
154
|
+
];
|
155
|
+
|
156
|
+
// Optional. If true, if user licenses removed associated license config, the
|
157
|
+
// user license will be deleted. By default which is false, the user license
|
158
|
+
// will be updated to unassigned state.
|
159
|
+
bool delete_unassigned_user_licenses = 4
|
160
|
+
[(google.api.field_behavior) = OPTIONAL];
|
161
|
+
}
|
162
|
+
|
163
|
+
// Metadata related to the progress of the
|
164
|
+
// [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses]
|
165
|
+
// operation. This will be returned by the google.longrunning.Operation.metadata
|
166
|
+
// field.
|
167
|
+
message BatchUpdateUserLicensesMetadata {
|
168
|
+
// Operation create time.
|
169
|
+
google.protobuf.Timestamp create_time = 1;
|
170
|
+
|
171
|
+
// Operation last update time. If the operation is done, this is also the
|
172
|
+
// finish time.
|
173
|
+
google.protobuf.Timestamp update_time = 2;
|
174
|
+
|
175
|
+
// Count of user licenses successfully updated.
|
176
|
+
int64 success_count = 3;
|
177
|
+
|
178
|
+
// Count of user licenses that failed to be updated.
|
179
|
+
int64 failure_count = 4;
|
180
|
+
}
|
181
|
+
|
182
|
+
// Response message for
|
183
|
+
// [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses]
|
184
|
+
// method.
|
185
|
+
message BatchUpdateUserLicensesResponse {
|
186
|
+
// UserLicenses successfully updated.
|
187
|
+
repeated UserLicense user_licenses = 1;
|
188
|
+
|
189
|
+
// A sample of errors encountered while processing the request.
|
190
|
+
repeated google.rpc.Status error_samples = 2;
|
191
|
+
}
|