@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 CompletionServiceClient {
|
|
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
|
};
|
@@ -1132,6 +1138,156 @@ class CompletionServiceClient {
|
|
1132
1138
|
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1133
1139
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1134
1140
|
}
|
1141
|
+
/**
|
1142
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1143
|
+
*
|
1144
|
+
* @param {string} project
|
1145
|
+
* @param {string} location
|
1146
|
+
* @param {string} collection
|
1147
|
+
* @param {string} data_store
|
1148
|
+
* @param {string} session
|
1149
|
+
* @returns {string} Resource name string.
|
1150
|
+
*/
|
1151
|
+
projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
|
1152
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
|
1153
|
+
project: project,
|
1154
|
+
location: location,
|
1155
|
+
collection: collection,
|
1156
|
+
data_store: dataStore,
|
1157
|
+
session: session,
|
1158
|
+
});
|
1159
|
+
}
|
1160
|
+
/**
|
1161
|
+
* Parse the project from ProjectLocationCollectionDataStoreSession resource.
|
1162
|
+
*
|
1163
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1164
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1165
|
+
* @returns {string} A string representing the project.
|
1166
|
+
*/
|
1167
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1168
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
|
1169
|
+
}
|
1170
|
+
/**
|
1171
|
+
* Parse the location from ProjectLocationCollectionDataStoreSession resource.
|
1172
|
+
*
|
1173
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1174
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1175
|
+
* @returns {string} A string representing the location.
|
1176
|
+
*/
|
1177
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1178
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
|
1179
|
+
}
|
1180
|
+
/**
|
1181
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSession resource.
|
1182
|
+
*
|
1183
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1184
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1185
|
+
* @returns {string} A string representing the collection.
|
1186
|
+
*/
|
1187
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1188
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
|
1189
|
+
}
|
1190
|
+
/**
|
1191
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
|
1192
|
+
*
|
1193
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1194
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1195
|
+
* @returns {string} A string representing the data_store.
|
1196
|
+
*/
|
1197
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1198
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
|
1199
|
+
}
|
1200
|
+
/**
|
1201
|
+
* Parse the session from ProjectLocationCollectionDataStoreSession resource.
|
1202
|
+
*
|
1203
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1204
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1205
|
+
* @returns {string} A string representing the session.
|
1206
|
+
*/
|
1207
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1208
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
|
1209
|
+
}
|
1210
|
+
/**
|
1211
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1212
|
+
*
|
1213
|
+
* @param {string} project
|
1214
|
+
* @param {string} location
|
1215
|
+
* @param {string} collection
|
1216
|
+
* @param {string} data_store
|
1217
|
+
* @param {string} session
|
1218
|
+
* @param {string} answer
|
1219
|
+
* @returns {string} Resource name string.
|
1220
|
+
*/
|
1221
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1222
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1223
|
+
project: project,
|
1224
|
+
location: location,
|
1225
|
+
collection: collection,
|
1226
|
+
data_store: dataStore,
|
1227
|
+
session: session,
|
1228
|
+
answer: answer,
|
1229
|
+
});
|
1230
|
+
}
|
1231
|
+
/**
|
1232
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1233
|
+
*
|
1234
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1235
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1236
|
+
* @returns {string} A string representing the project.
|
1237
|
+
*/
|
1238
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1239
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1240
|
+
}
|
1241
|
+
/**
|
1242
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1243
|
+
*
|
1244
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1245
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1246
|
+
* @returns {string} A string representing the location.
|
1247
|
+
*/
|
1248
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1249
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1250
|
+
}
|
1251
|
+
/**
|
1252
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1253
|
+
*
|
1254
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1255
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1256
|
+
* @returns {string} A string representing the collection.
|
1257
|
+
*/
|
1258
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1259
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1260
|
+
}
|
1261
|
+
/**
|
1262
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1263
|
+
*
|
1264
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1265
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1266
|
+
* @returns {string} A string representing the data_store.
|
1267
|
+
*/
|
1268
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1269
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1270
|
+
}
|
1271
|
+
/**
|
1272
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1273
|
+
*
|
1274
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1275
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1276
|
+
* @returns {string} A string representing the session.
|
1277
|
+
*/
|
1278
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1279
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1280
|
+
}
|
1281
|
+
/**
|
1282
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1283
|
+
*
|
1284
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1285
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1286
|
+
* @returns {string} A string representing the answer.
|
1287
|
+
*/
|
1288
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1289
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1290
|
+
}
|
1135
1291
|
/**
|
1136
1292
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1137
1293
|
*
|
@@ -1396,6 +1552,156 @@ class CompletionServiceClient {
|
|
1396
1552
|
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1397
1553
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1398
1554
|
}
|
1555
|
+
/**
|
1556
|
+
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1557
|
+
*
|
1558
|
+
* @param {string} project
|
1559
|
+
* @param {string} location
|
1560
|
+
* @param {string} collection
|
1561
|
+
* @param {string} engine
|
1562
|
+
* @param {string} session
|
1563
|
+
* @returns {string} Resource name string.
|
1564
|
+
*/
|
1565
|
+
projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
|
1566
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
|
1567
|
+
project: project,
|
1568
|
+
location: location,
|
1569
|
+
collection: collection,
|
1570
|
+
engine: engine,
|
1571
|
+
session: session,
|
1572
|
+
});
|
1573
|
+
}
|
1574
|
+
/**
|
1575
|
+
* Parse the project from ProjectLocationCollectionEngineSession resource.
|
1576
|
+
*
|
1577
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1578
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1579
|
+
* @returns {string} A string representing the project.
|
1580
|
+
*/
|
1581
|
+
matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1582
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
|
1583
|
+
}
|
1584
|
+
/**
|
1585
|
+
* Parse the location from ProjectLocationCollectionEngineSession resource.
|
1586
|
+
*
|
1587
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1588
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1589
|
+
* @returns {string} A string representing the location.
|
1590
|
+
*/
|
1591
|
+
matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1592
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
|
1593
|
+
}
|
1594
|
+
/**
|
1595
|
+
* Parse the collection from ProjectLocationCollectionEngineSession resource.
|
1596
|
+
*
|
1597
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1598
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1599
|
+
* @returns {string} A string representing the collection.
|
1600
|
+
*/
|
1601
|
+
matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1602
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
|
1603
|
+
}
|
1604
|
+
/**
|
1605
|
+
* Parse the engine from ProjectLocationCollectionEngineSession resource.
|
1606
|
+
*
|
1607
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1608
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1609
|
+
* @returns {string} A string representing the engine.
|
1610
|
+
*/
|
1611
|
+
matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1612
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
|
1613
|
+
}
|
1614
|
+
/**
|
1615
|
+
* Parse the session from ProjectLocationCollectionEngineSession resource.
|
1616
|
+
*
|
1617
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1618
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1619
|
+
* @returns {string} A string representing the session.
|
1620
|
+
*/
|
1621
|
+
matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1622
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
|
1623
|
+
}
|
1624
|
+
/**
|
1625
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1626
|
+
*
|
1627
|
+
* @param {string} project
|
1628
|
+
* @param {string} location
|
1629
|
+
* @param {string} collection
|
1630
|
+
* @param {string} engine
|
1631
|
+
* @param {string} session
|
1632
|
+
* @param {string} answer
|
1633
|
+
* @returns {string} Resource name string.
|
1634
|
+
*/
|
1635
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1636
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1637
|
+
project: project,
|
1638
|
+
location: location,
|
1639
|
+
collection: collection,
|
1640
|
+
engine: engine,
|
1641
|
+
session: session,
|
1642
|
+
answer: answer,
|
1643
|
+
});
|
1644
|
+
}
|
1645
|
+
/**
|
1646
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1647
|
+
*
|
1648
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1649
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1650
|
+
* @returns {string} A string representing the project.
|
1651
|
+
*/
|
1652
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1653
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1654
|
+
}
|
1655
|
+
/**
|
1656
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1657
|
+
*
|
1658
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1659
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1660
|
+
* @returns {string} A string representing the location.
|
1661
|
+
*/
|
1662
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1663
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1664
|
+
}
|
1665
|
+
/**
|
1666
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1667
|
+
*
|
1668
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1669
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1670
|
+
* @returns {string} A string representing the collection.
|
1671
|
+
*/
|
1672
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1673
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1674
|
+
}
|
1675
|
+
/**
|
1676
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
1677
|
+
*
|
1678
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1679
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1680
|
+
* @returns {string} A string representing the engine.
|
1681
|
+
*/
|
1682
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1683
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
1684
|
+
}
|
1685
|
+
/**
|
1686
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
1687
|
+
*
|
1688
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1689
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1690
|
+
* @returns {string} A string representing the session.
|
1691
|
+
*/
|
1692
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1693
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
1694
|
+
}
|
1695
|
+
/**
|
1696
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
1697
|
+
*
|
1698
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1699
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1700
|
+
* @returns {string} A string representing the answer.
|
1701
|
+
*/
|
1702
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1703
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
1704
|
+
}
|
1399
1705
|
/**
|
1400
1706
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1401
1707
|
*
|
@@ -1726,6 +2032,132 @@ class CompletionServiceClient {
|
|
1726
2032
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1727
2033
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1728
2034
|
}
|
2035
|
+
/**
|
2036
|
+
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2037
|
+
*
|
2038
|
+
* @param {string} project
|
2039
|
+
* @param {string} location
|
2040
|
+
* @param {string} data_store
|
2041
|
+
* @param {string} session
|
2042
|
+
* @returns {string} Resource name string.
|
2043
|
+
*/
|
2044
|
+
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2045
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2046
|
+
project: project,
|
2047
|
+
location: location,
|
2048
|
+
data_store: dataStore,
|
2049
|
+
session: session,
|
2050
|
+
});
|
2051
|
+
}
|
2052
|
+
/**
|
2053
|
+
* Parse the project from ProjectLocationDataStoreSession resource.
|
2054
|
+
*
|
2055
|
+
* @param {string} projectLocationDataStoreSessionName
|
2056
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2057
|
+
* @returns {string} A string representing the project.
|
2058
|
+
*/
|
2059
|
+
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2060
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2061
|
+
}
|
2062
|
+
/**
|
2063
|
+
* Parse the location from ProjectLocationDataStoreSession resource.
|
2064
|
+
*
|
2065
|
+
* @param {string} projectLocationDataStoreSessionName
|
2066
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2067
|
+
* @returns {string} A string representing the location.
|
2068
|
+
*/
|
2069
|
+
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2070
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2071
|
+
}
|
2072
|
+
/**
|
2073
|
+
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2074
|
+
*
|
2075
|
+
* @param {string} projectLocationDataStoreSessionName
|
2076
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2077
|
+
* @returns {string} A string representing the data_store.
|
2078
|
+
*/
|
2079
|
+
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2080
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2081
|
+
}
|
2082
|
+
/**
|
2083
|
+
* Parse the session from ProjectLocationDataStoreSession resource.
|
2084
|
+
*
|
2085
|
+
* @param {string} projectLocationDataStoreSessionName
|
2086
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2087
|
+
* @returns {string} A string representing the session.
|
2088
|
+
*/
|
2089
|
+
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2090
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2091
|
+
}
|
2092
|
+
/**
|
2093
|
+
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2094
|
+
*
|
2095
|
+
* @param {string} project
|
2096
|
+
* @param {string} location
|
2097
|
+
* @param {string} data_store
|
2098
|
+
* @param {string} session
|
2099
|
+
* @param {string} answer
|
2100
|
+
* @returns {string} Resource name string.
|
2101
|
+
*/
|
2102
|
+
projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
|
2103
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
|
2104
|
+
project: project,
|
2105
|
+
location: location,
|
2106
|
+
data_store: dataStore,
|
2107
|
+
session: session,
|
2108
|
+
answer: answer,
|
2109
|
+
});
|
2110
|
+
}
|
2111
|
+
/**
|
2112
|
+
* Parse the project from ProjectLocationDataStoreSessionAnswer resource.
|
2113
|
+
*
|
2114
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2115
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2116
|
+
* @returns {string} A string representing the project.
|
2117
|
+
*/
|
2118
|
+
matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2119
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
|
2120
|
+
}
|
2121
|
+
/**
|
2122
|
+
* Parse the location from ProjectLocationDataStoreSessionAnswer resource.
|
2123
|
+
*
|
2124
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2125
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2126
|
+
* @returns {string} A string representing the location.
|
2127
|
+
*/
|
2128
|
+
matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2129
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
|
2130
|
+
}
|
2131
|
+
/**
|
2132
|
+
* Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
|
2133
|
+
*
|
2134
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2135
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2136
|
+
* @returns {string} A string representing the data_store.
|
2137
|
+
*/
|
2138
|
+
matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2139
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
|
2140
|
+
}
|
2141
|
+
/**
|
2142
|
+
* Parse the session from ProjectLocationDataStoreSessionAnswer resource.
|
2143
|
+
*
|
2144
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2145
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2146
|
+
* @returns {string} A string representing the session.
|
2147
|
+
*/
|
2148
|
+
matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2149
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
|
2150
|
+
}
|
2151
|
+
/**
|
2152
|
+
* Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
|
2153
|
+
*
|
2154
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2155
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2156
|
+
* @returns {string} A string representing the answer.
|
2157
|
+
*/
|
2158
|
+
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2159
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2160
|
+
}
|
1729
2161
|
/**
|
1730
2162
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1731
2163
|
*
|