@google-cloud/discoveryengine 2.2.0 → 2.4.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 +30 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
- package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -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 +18 -3
- 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 +14 -14
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
- package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -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/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +8 -14
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +8 -14
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
- package/build/protos/protos.d.ts +21218 -11675
- package/build/protos/protos.js +92642 -66407
- package/build/protos/protos.json +5854 -2801
- package/build/src/index.d.ts +16 -1
- package/build/src/index.js +12 -2
- package/build/src/v1/assistant_service_client.d.ts +2058 -0
- package/build/src/v1/assistant_service_client.js +2957 -0
- package/build/src/v1/assistant_service_client_config.json +43 -0
- package/build/src/v1/assistant_service_proto_list.json +48 -0
- package/build/src/v1/cmek_config_service_client.d.ts +2398 -0
- package/build/src/v1/cmek_config_service_client.js +3426 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +48 -0
- package/build/src/v1/completion_service_client.d.ts +345 -144
- package/build/src/v1/completion_service_client.js +482 -198
- package/build/src/v1/completion_service_proto_list.json +10 -1
- package/build/src/v1/control_service_client.d.ts +345 -144
- package/build/src/v1/control_service_client.js +498 -196
- package/build/src/v1/control_service_proto_list.json +10 -1
- package/build/src/v1/conversational_search_service_client.d.ts +392 -155
- package/build/src/v1/conversational_search_service_client.js +572 -204
- package/build/src/v1/conversational_search_service_proto_list.json +10 -1
- package/build/src/v1/data_store_service_client.d.ts +351 -144
- package/build/src/v1/data_store_service_client.js +488 -198
- package/build/src/v1/data_store_service_proto_list.json +10 -1
- package/build/src/v1/document_service_client.d.ts +345 -144
- package/build/src/v1/document_service_client.js +506 -198
- package/build/src/v1/document_service_proto_list.json +10 -1
- package/build/src/v1/engine_service_client.d.ts +345 -144
- package/build/src/v1/engine_service_client.js +488 -198
- package/build/src/v1/engine_service_proto_list.json +10 -1
- package/build/src/v1/gapic_metadata.json +270 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +345 -144
- package/build/src/v1/grounded_generation_service_client.js +486 -196
- package/build/src/v1/grounded_generation_service_proto_list.json +10 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2581 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3601 -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 +48 -0
- package/build/src/v1/index.d.ts +5 -0
- package/build/src/v1/index.js +11 -1
- package/build/src/v1/project_service_client.d.ts +345 -144
- package/build/src/v1/project_service_client.js +476 -198
- package/build/src/v1/project_service_proto_list.json +10 -1
- package/build/src/v1/rank_service_client.d.ts +345 -144
- package/build/src/v1/rank_service_client.js +480 -196
- package/build/src/v1/rank_service_proto_list.json +10 -1
- package/build/src/v1/recommendation_service_client.d.ts +345 -144
- package/build/src/v1/recommendation_service_client.js +480 -196
- package/build/src/v1/recommendation_service_proto_list.json +10 -1
- package/build/src/v1/schema_service_client.d.ts +345 -144
- package/build/src/v1/schema_service_client.js +482 -198
- package/build/src/v1/schema_service_proto_list.json +10 -1
- package/build/src/v1/search_service_client.d.ts +393 -228
- package/build/src/v1/search_service_client.js +506 -252
- package/build/src/v1/search_service_proto_list.json +10 -1
- package/build/src/v1/search_tuning_service_client.d.ts +345 -144
- package/build/src/v1/search_tuning_service_client.js +482 -198
- package/build/src/v1/search_tuning_service_proto_list.json +10 -1
- package/build/src/v1/serving_config_service_client.d.ts +345 -144
- package/build/src/v1/serving_config_service_client.js +480 -196
- package/build/src/v1/serving_config_service_proto_list.json +10 -1
- package/build/src/v1/session_service_client.d.ts +2326 -0
- package/build/src/v1/session_service_client.js +3218 -0
- package/build/src/v1/session_service_client_config.json +63 -0
- package/build/src/v1/session_service_proto_list.json +48 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +345 -144
- package/build/src/v1/site_search_engine_service_client.js +494 -198
- package/build/src/v1/site_search_engine_service_proto_list.json +10 -1
- package/build/src/v1/user_event_service_client.d.ts +345 -144
- package/build/src/v1/user_event_service_client.js +488 -198
- package/build/src/v1/user_event_service_proto_list.json +10 -1
- package/build/src/v1/user_license_service_client.d.ts +2367 -0
- package/build/src/v1/user_license_service_client.js +3346 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +48 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/acl_config_service_client.js +208 -196
- package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
- package/build/src/v1alpha/chunk_service_client.js +202 -196
- package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
- package/build/src/v1alpha/completion_service_client.d.ts +144 -144
- package/build/src/v1alpha/completion_service_client.js +203 -197
- package/build/src/v1alpha/completion_service_proto_list.json +1 -0
- package/build/src/v1alpha/control_service_client.d.ts +144 -144
- package/build/src/v1alpha/control_service_client.js +220 -196
- package/build/src/v1alpha/control_service_proto_list.json +1 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
- package/build/src/v1alpha/conversational_search_service_client.js +310 -210
- package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
- package/build/src/v1alpha/data_store_service_client.js +221 -197
- package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
- package/build/src/v1alpha/document_service_client.d.ts +144 -144
- package/build/src/v1alpha/document_service_client.js +233 -197
- package/build/src/v1alpha/document_service_proto_list.json +1 -0
- package/build/src/v1alpha/engine_service_client.d.ts +144 -144
- package/build/src/v1alpha/engine_service_client.js +221 -197
- package/build/src/v1alpha/engine_service_proto_list.json +1 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
- package/build/src/v1alpha/estimate_billing_service_client.js +197 -197
- package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
- package/build/src/v1alpha/evaluation_service_client.js +203 -197
- package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
- package/build/src/v1alpha/gapic_metadata.json +82 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
- package/build/src/v1alpha/grounded_generation_service_client.js +202 -196
- package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -0
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +144 -144
- package/build/src/v1alpha/project_service_client.js +209 -197
- package/build/src/v1alpha/project_service_proto_list.json +1 -0
- package/build/src/v1alpha/rank_service_client.d.ts +144 -144
- package/build/src/v1alpha/rank_service_client.js +202 -196
- package/build/src/v1alpha/rank_service_proto_list.json +1 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
- package/build/src/v1alpha/recommendation_service_client.js +202 -196
- package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
- package/build/src/v1alpha/sample_query_service_client.js +221 -197
- package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
- package/build/src/v1alpha/sample_query_set_service_client.js +220 -196
- package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
- package/build/src/v1alpha/schema_service_client.d.ts +144 -144
- package/build/src/v1alpha/schema_service_client.js +203 -197
- package/build/src/v1alpha/schema_service_proto_list.json +1 -0
- package/build/src/v1alpha/search_service_client.d.ts +168 -186
- package/build/src/v1alpha/search_service_client.js +212 -224
- package/build/src/v1alpha/search_service_proto_list.json +1 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
- package/build/src/v1alpha/search_tuning_service_client.js +203 -197
- package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
- package/build/src/v1alpha/serving_config_service_client.js +208 -196
- package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
- package/build/src/v1alpha/session_service_client.d.ts +2331 -0
- package/build/src/v1alpha/session_service_client.js +3161 -0
- package/build/src/v1alpha/session_service_client_config.json +68 -0
- package/build/src/v1alpha/session_service_proto_list.json +49 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
- package/build/src/v1alpha/site_search_engine_service_client.js +215 -197
- package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
- package/build/src/v1alpha/user_event_service_client.js +209 -197
- package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
- package/build/src/v1beta/completion_service_client.d.ts +144 -144
- package/build/src/v1beta/completion_service_client.js +209 -197
- package/build/src/v1beta/completion_service_proto_list.json +1 -0
- package/build/src/v1beta/control_service_client.d.ts +144 -144
- package/build/src/v1beta/control_service_client.js +220 -196
- package/build/src/v1beta/control_service_proto_list.json +1 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
- package/build/src/v1beta/conversational_search_service_client.js +308 -208
- package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
- package/build/src/v1beta/data_store_service_client.d.ts +144 -144
- package/build/src/v1beta/data_store_service_client.js +209 -197
- package/build/src/v1beta/data_store_service_proto_list.json +1 -0
- package/build/src/v1beta/document_service_client.d.ts +144 -144
- package/build/src/v1beta/document_service_client.js +227 -197
- package/build/src/v1beta/document_service_proto_list.json +1 -0
- package/build/src/v1beta/engine_service_client.d.ts +144 -144
- package/build/src/v1beta/engine_service_client.js +221 -197
- package/build/src/v1beta/engine_service_proto_list.json +1 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
- package/build/src/v1beta/evaluation_service_client.js +203 -197
- package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
- package/build/src/v1beta/gapic_metadata.json +68 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
- package/build/src/v1beta/grounded_generation_service_client.js +208 -196
- package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/project_service_client.d.ts +144 -144
- package/build/src/v1beta/project_service_client.js +197 -197
- package/build/src/v1beta/project_service_proto_list.json +1 -0
- package/build/src/v1beta/rank_service_client.d.ts +144 -144
- package/build/src/v1beta/rank_service_client.js +202 -196
- package/build/src/v1beta/rank_service_proto_list.json +1 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
- package/build/src/v1beta/recommendation_service_client.js +202 -196
- package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
- package/build/src/v1beta/sample_query_service_client.js +221 -197
- package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
- package/build/src/v1beta/sample_query_set_service_client.js +220 -196
- package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
- package/build/src/v1beta/schema_service_client.d.ts +144 -144
- package/build/src/v1beta/schema_service_client.js +203 -197
- package/build/src/v1beta/schema_service_proto_list.json +1 -0
- package/build/src/v1beta/search_service_client.d.ts +192 -228
- package/build/src/v1beta/search_service_client.js +228 -252
- package/build/src/v1beta/search_service_proto_list.json +1 -0
- package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
- package/build/src/v1beta/search_tuning_service_client.js +203 -197
- package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
- package/build/src/v1beta/serving_config_service_client.js +208 -196
- package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
- package/build/src/v1beta/session_service_client.d.ts +2266 -0
- package/build/src/v1beta/session_service_client.js +3136 -0
- package/build/src/v1beta/session_service_client_config.json +63 -0
- package/build/src/v1beta/session_service_proto_list.json +45 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
- package/build/src/v1beta/site_search_engine_service_client.js +215 -197
- package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
- package/build/src/v1beta/user_event_service_client.d.ts +144 -144
- package/build/src/v1beta/user_event_service_client.js +209 -197
- package/build/src/v1beta/user_event_service_proto_list.json +1 -0
- package/package.json +7 -7
- package/CHANGELOG.md +0 -274
@@ -0,0 +1,98 @@
|
|
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/field_behavior.proto";
|
20
|
+
import "google/api/resource.proto";
|
21
|
+
import "google/protobuf/timestamp.proto";
|
22
|
+
|
23
|
+
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1";
|
24
|
+
option go_package = "cloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb";
|
25
|
+
option java_multiple_files = true;
|
26
|
+
option java_outer_classname = "UserLicenseProto";
|
27
|
+
option java_package = "com.google.cloud.discoveryengine.v1";
|
28
|
+
option objc_class_prefix = "DISCOVERYENGINE";
|
29
|
+
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1";
|
30
|
+
option ruby_package = "Google::Cloud::DiscoveryEngine::V1";
|
31
|
+
|
32
|
+
// User License information assigned by the admin.
|
33
|
+
message UserLicense {
|
34
|
+
// License assignment state enumeration.
|
35
|
+
enum LicenseAssignmentState {
|
36
|
+
// Default value.
|
37
|
+
LICENSE_ASSIGNMENT_STATE_UNSPECIFIED = 0;
|
38
|
+
|
39
|
+
// License assigned to the user.
|
40
|
+
ASSIGNED = 1;
|
41
|
+
|
42
|
+
// No license assigned to the user.
|
43
|
+
// Deprecated, translated to NO_LICENSE.
|
44
|
+
UNASSIGNED = 2;
|
45
|
+
|
46
|
+
// No license assigned to the user.
|
47
|
+
NO_LICENSE = 3;
|
48
|
+
|
49
|
+
// User attempted to login but no license assigned to the user.
|
50
|
+
// This state is only used for no user first time login attempt but cannot
|
51
|
+
// get license assigned.
|
52
|
+
// Users already logged in but cannot get license assigned will be assigned
|
53
|
+
// NO_LICENSE state(License could be unassigned by admin).
|
54
|
+
NO_LICENSE_ATTEMPTED_LOGIN = 4;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Required. Immutable. The user principal of the User, could be email address
|
58
|
+
// or other prinical identifier. This field is immutable. Admin assign
|
59
|
+
// licenses based on the user principal.
|
60
|
+
string user_principal = 1 [
|
61
|
+
(google.api.field_behavior) = IMMUTABLE,
|
62
|
+
(google.api.field_behavior) = REQUIRED
|
63
|
+
];
|
64
|
+
|
65
|
+
// Optional. The user profile.
|
66
|
+
// We user user full name(First name + Last name) as user profile.
|
67
|
+
string user_profile = 3 [(google.api.field_behavior) = OPTIONAL];
|
68
|
+
|
69
|
+
// Output only. License assignment state of the user.
|
70
|
+
// If the user is assigned with a license config, the user loggin will be
|
71
|
+
// assigned with the license;
|
72
|
+
// If the user's license assignment state is unassigned or unspecified, no
|
73
|
+
// license config will be associated to the user;
|
74
|
+
LicenseAssignmentState license_assignment_state = 4
|
75
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
76
|
+
|
77
|
+
// Optional. The full resource name of the Subscription(LicenseConfig)
|
78
|
+
// assigned to the user.
|
79
|
+
string license_config = 5 [
|
80
|
+
(google.api.field_behavior) = OPTIONAL,
|
81
|
+
(google.api.resource_reference) = {
|
82
|
+
type: "discoveryengine.googleapis.com/LicenseConfig"
|
83
|
+
}
|
84
|
+
];
|
85
|
+
|
86
|
+
// Output only. User created timestamp.
|
87
|
+
google.protobuf.Timestamp create_time = 6
|
88
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
89
|
+
|
90
|
+
// Output only. User update timestamp.
|
91
|
+
google.protobuf.Timestamp update_time = 7
|
92
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
93
|
+
|
94
|
+
// Output only. User last logged in time.
|
95
|
+
// If the user has not logged in yet, this field will be empty.
|
96
|
+
google.protobuf.Timestamp last_login_time = 8
|
97
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
98
|
+
}
|
@@ -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
|
+
}
|
@@ -127,6 +127,21 @@ enum SearchAddOn {
|
|
127
127
|
SEARCH_ADD_ON_LLM = 1;
|
128
128
|
}
|
129
129
|
|
130
|
+
// The origin of the file.
|
131
|
+
enum FileOriginType {
|
132
|
+
// Default value.
|
133
|
+
FILE_ORIGIN_TYPE_UNSPECIFIED = 0;
|
134
|
+
|
135
|
+
// The file was provided by the user.
|
136
|
+
USER_PROVIDED = 1;
|
137
|
+
|
138
|
+
// The file was generated by an AI model.
|
139
|
+
AI_GENERATED = 2;
|
140
|
+
|
141
|
+
// The file was generated from other files by an internal process.
|
142
|
+
INTERNALLY_GENERATED = 3;
|
143
|
+
}
|
144
|
+
|
130
145
|
// A floating point interval.
|
131
146
|
message Interval {
|
132
147
|
// The lower bound of the interval. If neither of the min fields are
|
package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto
CHANGED
@@ -859,7 +859,7 @@ message GetAnswerRequest {
|
|
859
859
|
// Request for CreateSession method.
|
860
860
|
message CreateSessionRequest {
|
861
861
|
// Required. Full resource name of parent data store. Format:
|
862
|
-
// `projects/{
|
862
|
+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
|
863
863
|
string parent = 1 [
|
864
864
|
(google.api.field_behavior) = REQUIRED,
|
865
865
|
(google.api.resource_reference) = {
|
@@ -889,7 +889,7 @@ message UpdateSessionRequest {
|
|
889
889
|
// Request for DeleteSession method.
|
890
890
|
message DeleteSessionRequest {
|
891
891
|
// Required. The resource name of the Session to delete. Format:
|
892
|
-
// `projects/{
|
892
|
+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
|
893
893
|
string name = 1 [
|
894
894
|
(google.api.field_behavior) = REQUIRED,
|
895
895
|
(google.api.resource_reference) = {
|
@@ -901,19 +901,23 @@ message DeleteSessionRequest {
|
|
901
901
|
// Request for GetSession method.
|
902
902
|
message GetSessionRequest {
|
903
903
|
// Required. The resource name of the Session to get. Format:
|
904
|
-
// `projects/{
|
904
|
+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}`
|
905
905
|
string name = 1 [
|
906
906
|
(google.api.field_behavior) = REQUIRED,
|
907
907
|
(google.api.resource_reference) = {
|
908
908
|
type: "discoveryengine.googleapis.com/Session"
|
909
909
|
}
|
910
910
|
];
|
911
|
+
|
912
|
+
// Optional. If set to true, the full session including all answer details
|
913
|
+
// will be returned.
|
914
|
+
bool include_answer_details = 2 [(google.api.field_behavior) = OPTIONAL];
|
911
915
|
}
|
912
916
|
|
913
917
|
// Request for ListSessions method.
|
914
918
|
message ListSessionsRequest {
|
915
919
|
// Required. The data store resource name. Format:
|
916
|
-
// `projects/{
|
920
|
+
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
|
917
921
|
string parent = 1 [
|
918
922
|
(google.api.field_behavior) = REQUIRED,
|
919
923
|
(google.api.resource_reference) = {
|
@@ -929,23 +933,40 @@ message ListSessionsRequest {
|
|
929
933
|
// Provide this to retrieve the subsequent page.
|
930
934
|
string page_token = 3;
|
931
935
|
|
932
|
-
// A
|
933
|
-
//
|
936
|
+
// A comma-separated list of fields to filter by, in EBNF grammar.
|
937
|
+
// The supported fields are:
|
938
|
+
// * `user_pseudo_id`
|
939
|
+
// * `state`
|
940
|
+
// * `display_name`
|
941
|
+
// * `starred`
|
942
|
+
// * `is_pinned`
|
943
|
+
// * `labels`
|
944
|
+
// * `create_time`
|
945
|
+
// * `update_time`
|
934
946
|
//
|
935
|
-
//
|
947
|
+
// Examples:
|
936
948
|
// "user_pseudo_id = some_id"
|
949
|
+
// "display_name = \"some_name\""
|
950
|
+
// "starred = true"
|
951
|
+
// "is_pinned=true AND (NOT labels:hidden)"
|
952
|
+
// "create_time > \"1970-01-01T12:00:00Z\""
|
937
953
|
string filter = 4;
|
938
954
|
|
939
955
|
// A comma-separated list of fields to order by, sorted in ascending order.
|
940
956
|
// Use "desc" after a field name for descending.
|
941
957
|
// Supported fields:
|
958
|
+
//
|
942
959
|
// * `update_time`
|
943
960
|
// * `create_time`
|
944
961
|
// * `session_name`
|
962
|
+
// * `is_pinned`
|
945
963
|
//
|
946
964
|
// Example:
|
947
|
-
//
|
948
|
-
// "
|
965
|
+
//
|
966
|
+
// * "update_time desc"
|
967
|
+
// * "create_time"
|
968
|
+
// * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
|
969
|
+
// by update_time.
|
949
970
|
string order_by = 5;
|
950
971
|
}
|
951
972
|
|
@@ -1035,22 +1035,16 @@ message SearchRequest {
|
|
1035
1035
|
// between /search API calls and /answer API calls.
|
1036
1036
|
//
|
1037
1037
|
// Example #1 (multi-turn /search API calls):
|
1038
|
-
//
|
1039
|
-
//
|
1040
|
-
//
|
1041
|
-
//
|
1042
|
-
//
|
1043
|
-
// be interpreted as "How did Alphabet do in 2023?".
|
1038
|
+
// Call /search API with the session ID generated in the first call.
|
1039
|
+
// Here, the previous search query gets considered in query
|
1040
|
+
// standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
1041
|
+
// and the current query is "How about 2023?", the current query will
|
1042
|
+
// be interpreted as "How did Alphabet do in 2023?".
|
1044
1043
|
//
|
1045
1044
|
// Example #2 (coordination between /search API calls and /answer API calls):
|
1046
|
-
//
|
1047
|
-
//
|
1048
|
-
//
|
1049
|
-
// results from the first search call.
|
1050
|
-
//
|
1051
|
-
// Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
1052
|
-
// gets automatically created. Otherwise, users can use the create-session API
|
1053
|
-
// to create a session manually.
|
1045
|
+
// Call /answer API with the session ID generated in the first call.
|
1046
|
+
// Here, the answer generation happens in the context of the search
|
1047
|
+
// results from the first search call.
|
1054
1048
|
//
|
1055
1049
|
// Multi-turn Search feature is currently at private GA stage. Please use
|
1056
1050
|
// v1alpha or v1beta version instead before we launch this feature to public
|