@google-cloud/discoveryengine 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +24 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +13 -1
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +5 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +284 -22
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +228 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +125 -21
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +16 -11
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +328 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +7 -39
- package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +21 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +7 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +30 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +559 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +3 -6
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +93 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +283 -24
- package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +142 -22
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +7 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +1 -1
- package/build/protos/protos.d.ts +41126 -24558
- package/build/protos/protos.js +134286 -93661
- package/build/protos/protos.json +7598 -3744
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -1
- package/build/src/v1/conversational_search_service_client.d.ts +4 -0
- package/build/src/v1/document_service_client.d.ts +47 -19
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/recommendation_service_client.d.ts +1087 -0
- package/build/src/v1/recommendation_service_client.js +1432 -0
- package/build/src/v1/recommendation_service_client_config.json +43 -0
- package/build/src/v1/search_service_client.d.ts +27 -9
- package/build/src/v1/search_service_client.js +18 -6
- package/build/src/v1/search_service_client_config.json +5 -5
- package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
- package/build/src/v1alpha/acl_config_service_client.js +454 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
- package/build/src/v1alpha/chunk_service_client.js +454 -0
- package/build/src/v1alpha/completion_service_client.d.ts +330 -0
- package/build/src/v1alpha/completion_service_client.js +454 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
- package/build/src/v1alpha/conversational_search_service_client.js +724 -0
- package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
- package/build/src/v1alpha/data_store_service_client.js +454 -0
- package/build/src/v1alpha/document_service_client.d.ts +330 -0
- package/build/src/v1alpha/document_service_client.js +454 -0
- package/build/src/v1alpha/engine_service_client.d.ts +330 -0
- package/build/src/v1alpha/engine_service_client.js +454 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +454 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
- package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
- package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
- package/build/src/v1alpha/index.d.ts +2 -0
- package/build/src/v1alpha/index.js +5 -1
- package/build/src/v1alpha/project_service_client.d.ts +1756 -0
- package/build/src/v1alpha/project_service_client.js +2500 -0
- package/build/src/v1alpha/project_service_client_config.json +38 -0
- package/build/src/v1alpha/rank_service_client.d.ts +330 -0
- package/build/src/v1alpha/rank_service_client.js +454 -0
- package/build/src/v1alpha/rank_service_client_config.json +15 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
- package/build/src/v1alpha/recommendation_service_client.js +454 -0
- package/build/src/v1alpha/schema_service_client.d.ts +330 -0
- package/build/src/v1alpha/schema_service_client.js +454 -0
- package/build/src/v1alpha/search_service_client.d.ts +330 -0
- package/build/src/v1alpha/search_service_client.js +454 -0
- package/build/src/v1alpha/search_service_client_config.json +5 -5
- package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
- package/build/src/v1alpha/search_tuning_service_client.js +454 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +315 -0
- package/build/src/v1alpha/serving_config_service_client.js +432 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +454 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
- package/build/src/v1alpha/user_event_service_client.js +454 -0
- package/build/src/v1beta/completion_service_client.d.ts +315 -0
- package/build/src/v1beta/completion_service_client.js +432 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
- package/build/src/v1beta/conversational_search_service_client.js +702 -0
- package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
- package/build/src/v1beta/data_store_service_client.d.ts +315 -0
- package/build/src/v1beta/data_store_service_client.js +432 -0
- package/build/src/v1beta/document_service_client.d.ts +361 -21
- package/build/src/v1beta/document_service_client.js +432 -0
- package/build/src/v1beta/engine_service_client.d.ts +410 -0
- package/build/src/v1beta/engine_service_client.js +518 -0
- package/build/src/v1beta/engine_service_client_config.json +12 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
- package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
- package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
- package/build/src/v1beta/index.d.ts +2 -0
- package/build/src/v1beta/index.js +5 -1
- package/build/src/v1beta/rank_service_client.d.ts +1416 -0
- package/build/src/v1beta/rank_service_client.js +2015 -0
- package/build/src/v1beta/rank_service_client_config.json +43 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
- package/build/src/v1beta/recommendation_service_client.js +432 -0
- package/build/src/v1beta/schema_service_client.d.ts +315 -0
- package/build/src/v1beta/schema_service_client.js +432 -0
- package/build/src/v1beta/search_service_client.d.ts +342 -12
- package/build/src/v1beta/search_service_client.js +450 -8
- package/build/src/v1beta/search_service_client_config.json +5 -5
- package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
- package/build/src/v1beta/search_tuning_service_client.js +432 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
- package/build/src/v1beta/serving_config_service_client.js +432 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
- package/build/src/v1beta/site_search_engine_service_client.js +432 -0
- package/build/src/v1beta/user_event_service_client.d.ts +315 -0
- package/build/src/v1beta/user_event_service_client.js +432 -0
- package/package.json +1 -1
@@ -156,16 +156,22 @@ class SearchTuningServiceClient {
|
|
156
156
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
157
157
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
158
158
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
159
|
+
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
160
|
+
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
159
161
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
160
162
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
161
163
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
162
164
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
165
|
+
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
166
|
+
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
163
167
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
164
168
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
165
169
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
166
170
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
167
171
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
168
172
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
173
|
+
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
174
|
+
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
169
175
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
170
176
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
171
177
|
};
|
@@ -1066,6 +1072,156 @@ class SearchTuningServiceClient {
|
|
1066
1072
|
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1067
1073
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1068
1074
|
}
|
1075
|
+
/**
|
1076
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1077
|
+
*
|
1078
|
+
* @param {string} project
|
1079
|
+
* @param {string} location
|
1080
|
+
* @param {string} collection
|
1081
|
+
* @param {string} data_store
|
1082
|
+
* @param {string} session
|
1083
|
+
* @returns {string} Resource name string.
|
1084
|
+
*/
|
1085
|
+
projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
|
1086
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
|
1087
|
+
project: project,
|
1088
|
+
location: location,
|
1089
|
+
collection: collection,
|
1090
|
+
data_store: dataStore,
|
1091
|
+
session: session,
|
1092
|
+
});
|
1093
|
+
}
|
1094
|
+
/**
|
1095
|
+
* Parse the project from ProjectLocationCollectionDataStoreSession resource.
|
1096
|
+
*
|
1097
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1098
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1099
|
+
* @returns {string} A string representing the project.
|
1100
|
+
*/
|
1101
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1102
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
|
1103
|
+
}
|
1104
|
+
/**
|
1105
|
+
* Parse the location from ProjectLocationCollectionDataStoreSession resource.
|
1106
|
+
*
|
1107
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1108
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1109
|
+
* @returns {string} A string representing the location.
|
1110
|
+
*/
|
1111
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1112
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
|
1113
|
+
}
|
1114
|
+
/**
|
1115
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSession resource.
|
1116
|
+
*
|
1117
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1118
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1119
|
+
* @returns {string} A string representing the collection.
|
1120
|
+
*/
|
1121
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1122
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
|
1123
|
+
}
|
1124
|
+
/**
|
1125
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
|
1126
|
+
*
|
1127
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1128
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1129
|
+
* @returns {string} A string representing the data_store.
|
1130
|
+
*/
|
1131
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1132
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
|
1133
|
+
}
|
1134
|
+
/**
|
1135
|
+
* Parse the session from ProjectLocationCollectionDataStoreSession resource.
|
1136
|
+
*
|
1137
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1138
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1139
|
+
* @returns {string} A string representing the session.
|
1140
|
+
*/
|
1141
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1142
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
|
1143
|
+
}
|
1144
|
+
/**
|
1145
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1146
|
+
*
|
1147
|
+
* @param {string} project
|
1148
|
+
* @param {string} location
|
1149
|
+
* @param {string} collection
|
1150
|
+
* @param {string} data_store
|
1151
|
+
* @param {string} session
|
1152
|
+
* @param {string} answer
|
1153
|
+
* @returns {string} Resource name string.
|
1154
|
+
*/
|
1155
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1156
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1157
|
+
project: project,
|
1158
|
+
location: location,
|
1159
|
+
collection: collection,
|
1160
|
+
data_store: dataStore,
|
1161
|
+
session: session,
|
1162
|
+
answer: answer,
|
1163
|
+
});
|
1164
|
+
}
|
1165
|
+
/**
|
1166
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1167
|
+
*
|
1168
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1169
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1170
|
+
* @returns {string} A string representing the project.
|
1171
|
+
*/
|
1172
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1173
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1174
|
+
}
|
1175
|
+
/**
|
1176
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1177
|
+
*
|
1178
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1179
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1180
|
+
* @returns {string} A string representing the location.
|
1181
|
+
*/
|
1182
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1183
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1184
|
+
}
|
1185
|
+
/**
|
1186
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1187
|
+
*
|
1188
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1189
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1190
|
+
* @returns {string} A string representing the collection.
|
1191
|
+
*/
|
1192
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1193
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1194
|
+
}
|
1195
|
+
/**
|
1196
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1197
|
+
*
|
1198
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1199
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1200
|
+
* @returns {string} A string representing the data_store.
|
1201
|
+
*/
|
1202
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1203
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1204
|
+
}
|
1205
|
+
/**
|
1206
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1207
|
+
*
|
1208
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1209
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1210
|
+
* @returns {string} A string representing the session.
|
1211
|
+
*/
|
1212
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1213
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1214
|
+
}
|
1215
|
+
/**
|
1216
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1217
|
+
*
|
1218
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1219
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1220
|
+
* @returns {string} A string representing the answer.
|
1221
|
+
*/
|
1222
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1223
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1224
|
+
}
|
1069
1225
|
/**
|
1070
1226
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1071
1227
|
*
|
@@ -1330,6 +1486,156 @@ class SearchTuningServiceClient {
|
|
1330
1486
|
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1331
1487
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1332
1488
|
}
|
1489
|
+
/**
|
1490
|
+
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1491
|
+
*
|
1492
|
+
* @param {string} project
|
1493
|
+
* @param {string} location
|
1494
|
+
* @param {string} collection
|
1495
|
+
* @param {string} engine
|
1496
|
+
* @param {string} session
|
1497
|
+
* @returns {string} Resource name string.
|
1498
|
+
*/
|
1499
|
+
projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
|
1500
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
|
1501
|
+
project: project,
|
1502
|
+
location: location,
|
1503
|
+
collection: collection,
|
1504
|
+
engine: engine,
|
1505
|
+
session: session,
|
1506
|
+
});
|
1507
|
+
}
|
1508
|
+
/**
|
1509
|
+
* Parse the project from ProjectLocationCollectionEngineSession resource.
|
1510
|
+
*
|
1511
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1512
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1513
|
+
* @returns {string} A string representing the project.
|
1514
|
+
*/
|
1515
|
+
matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1516
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
|
1517
|
+
}
|
1518
|
+
/**
|
1519
|
+
* Parse the location from ProjectLocationCollectionEngineSession resource.
|
1520
|
+
*
|
1521
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1522
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1523
|
+
* @returns {string} A string representing the location.
|
1524
|
+
*/
|
1525
|
+
matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1526
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
|
1527
|
+
}
|
1528
|
+
/**
|
1529
|
+
* Parse the collection from ProjectLocationCollectionEngineSession resource.
|
1530
|
+
*
|
1531
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1532
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1533
|
+
* @returns {string} A string representing the collection.
|
1534
|
+
*/
|
1535
|
+
matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1536
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
|
1537
|
+
}
|
1538
|
+
/**
|
1539
|
+
* Parse the engine from ProjectLocationCollectionEngineSession resource.
|
1540
|
+
*
|
1541
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1542
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1543
|
+
* @returns {string} A string representing the engine.
|
1544
|
+
*/
|
1545
|
+
matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1546
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
|
1547
|
+
}
|
1548
|
+
/**
|
1549
|
+
* Parse the session from ProjectLocationCollectionEngineSession resource.
|
1550
|
+
*
|
1551
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1552
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1553
|
+
* @returns {string} A string representing the session.
|
1554
|
+
*/
|
1555
|
+
matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1556
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
|
1557
|
+
}
|
1558
|
+
/**
|
1559
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1560
|
+
*
|
1561
|
+
* @param {string} project
|
1562
|
+
* @param {string} location
|
1563
|
+
* @param {string} collection
|
1564
|
+
* @param {string} engine
|
1565
|
+
* @param {string} session
|
1566
|
+
* @param {string} answer
|
1567
|
+
* @returns {string} Resource name string.
|
1568
|
+
*/
|
1569
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1570
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1571
|
+
project: project,
|
1572
|
+
location: location,
|
1573
|
+
collection: collection,
|
1574
|
+
engine: engine,
|
1575
|
+
session: session,
|
1576
|
+
answer: answer,
|
1577
|
+
});
|
1578
|
+
}
|
1579
|
+
/**
|
1580
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1581
|
+
*
|
1582
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1583
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1584
|
+
* @returns {string} A string representing the project.
|
1585
|
+
*/
|
1586
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1587
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1588
|
+
}
|
1589
|
+
/**
|
1590
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1591
|
+
*
|
1592
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1593
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1594
|
+
* @returns {string} A string representing the location.
|
1595
|
+
*/
|
1596
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1597
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1598
|
+
}
|
1599
|
+
/**
|
1600
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1601
|
+
*
|
1602
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1603
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1604
|
+
* @returns {string} A string representing the collection.
|
1605
|
+
*/
|
1606
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1607
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1608
|
+
}
|
1609
|
+
/**
|
1610
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
1611
|
+
*
|
1612
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1613
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1614
|
+
* @returns {string} A string representing the engine.
|
1615
|
+
*/
|
1616
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1617
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
1618
|
+
}
|
1619
|
+
/**
|
1620
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
1621
|
+
*
|
1622
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1623
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1624
|
+
* @returns {string} A string representing the session.
|
1625
|
+
*/
|
1626
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1627
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
1628
|
+
}
|
1629
|
+
/**
|
1630
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
1631
|
+
*
|
1632
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1633
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1634
|
+
* @returns {string} A string representing the answer.
|
1635
|
+
*/
|
1636
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1637
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
1638
|
+
}
|
1333
1639
|
/**
|
1334
1640
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1335
1641
|
*
|
@@ -1660,6 +1966,132 @@ class SearchTuningServiceClient {
|
|
1660
1966
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1661
1967
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1662
1968
|
}
|
1969
|
+
/**
|
1970
|
+
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
1971
|
+
*
|
1972
|
+
* @param {string} project
|
1973
|
+
* @param {string} location
|
1974
|
+
* @param {string} data_store
|
1975
|
+
* @param {string} session
|
1976
|
+
* @returns {string} Resource name string.
|
1977
|
+
*/
|
1978
|
+
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
1979
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
1980
|
+
project: project,
|
1981
|
+
location: location,
|
1982
|
+
data_store: dataStore,
|
1983
|
+
session: session,
|
1984
|
+
});
|
1985
|
+
}
|
1986
|
+
/**
|
1987
|
+
* Parse the project from ProjectLocationDataStoreSession resource.
|
1988
|
+
*
|
1989
|
+
* @param {string} projectLocationDataStoreSessionName
|
1990
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
1991
|
+
* @returns {string} A string representing the project.
|
1992
|
+
*/
|
1993
|
+
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
1994
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
1995
|
+
}
|
1996
|
+
/**
|
1997
|
+
* Parse the location from ProjectLocationDataStoreSession resource.
|
1998
|
+
*
|
1999
|
+
* @param {string} projectLocationDataStoreSessionName
|
2000
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2001
|
+
* @returns {string} A string representing the location.
|
2002
|
+
*/
|
2003
|
+
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2004
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2005
|
+
}
|
2006
|
+
/**
|
2007
|
+
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2008
|
+
*
|
2009
|
+
* @param {string} projectLocationDataStoreSessionName
|
2010
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2011
|
+
* @returns {string} A string representing the data_store.
|
2012
|
+
*/
|
2013
|
+
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2014
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2015
|
+
}
|
2016
|
+
/**
|
2017
|
+
* Parse the session from ProjectLocationDataStoreSession resource.
|
2018
|
+
*
|
2019
|
+
* @param {string} projectLocationDataStoreSessionName
|
2020
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2021
|
+
* @returns {string} A string representing the session.
|
2022
|
+
*/
|
2023
|
+
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2024
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2025
|
+
}
|
2026
|
+
/**
|
2027
|
+
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2028
|
+
*
|
2029
|
+
* @param {string} project
|
2030
|
+
* @param {string} location
|
2031
|
+
* @param {string} data_store
|
2032
|
+
* @param {string} session
|
2033
|
+
* @param {string} answer
|
2034
|
+
* @returns {string} Resource name string.
|
2035
|
+
*/
|
2036
|
+
projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
|
2037
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
|
2038
|
+
project: project,
|
2039
|
+
location: location,
|
2040
|
+
data_store: dataStore,
|
2041
|
+
session: session,
|
2042
|
+
answer: answer,
|
2043
|
+
});
|
2044
|
+
}
|
2045
|
+
/**
|
2046
|
+
* Parse the project from ProjectLocationDataStoreSessionAnswer resource.
|
2047
|
+
*
|
2048
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2049
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2050
|
+
* @returns {string} A string representing the project.
|
2051
|
+
*/
|
2052
|
+
matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2053
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
|
2054
|
+
}
|
2055
|
+
/**
|
2056
|
+
* Parse the location from ProjectLocationDataStoreSessionAnswer resource.
|
2057
|
+
*
|
2058
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2059
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2060
|
+
* @returns {string} A string representing the location.
|
2061
|
+
*/
|
2062
|
+
matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2063
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
|
2064
|
+
}
|
2065
|
+
/**
|
2066
|
+
* Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
|
2067
|
+
*
|
2068
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2069
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2070
|
+
* @returns {string} A string representing the data_store.
|
2071
|
+
*/
|
2072
|
+
matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2073
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
|
2074
|
+
}
|
2075
|
+
/**
|
2076
|
+
* Parse the session from ProjectLocationDataStoreSessionAnswer resource.
|
2077
|
+
*
|
2078
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2079
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2080
|
+
* @returns {string} A string representing the session.
|
2081
|
+
*/
|
2082
|
+
matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2083
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
|
2084
|
+
}
|
2085
|
+
/**
|
2086
|
+
* Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
|
2087
|
+
*
|
2088
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2089
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2090
|
+
* @returns {string} A string representing the answer.
|
2091
|
+
*/
|
2092
|
+
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2093
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2094
|
+
}
|
1663
2095
|
/**
|
1664
2096
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1665
2097
|
*
|