@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
@@ -151,6 +151,7 @@ class CompletionServiceClient {
|
|
151
151
|
this.pathTemplates = {
|
152
152
|
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
153
153
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
154
|
+
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
154
155
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
155
156
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
156
157
|
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -158,10 +159,14 @@ class CompletionServiceClient {
|
|
158
159
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
159
160
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
160
161
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
162
|
+
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
163
|
+
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
161
164
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
162
165
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
163
166
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
164
167
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
168
|
+
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
169
|
+
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
165
170
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
166
171
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
167
172
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -169,6 +174,8 @@ class CompletionServiceClient {
|
|
169
174
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
170
175
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
171
176
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
177
|
+
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
178
|
+
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
172
179
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
173
180
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
174
181
|
};
|
@@ -771,6 +778,27 @@ class CompletionServiceClient {
|
|
771
778
|
matchEngineFromEngineName(engineName) {
|
772
779
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
773
780
|
}
|
781
|
+
/**
|
782
|
+
* Return a fully-qualified project resource name string.
|
783
|
+
*
|
784
|
+
* @param {string} project
|
785
|
+
* @returns {string} Resource name string.
|
786
|
+
*/
|
787
|
+
projectPath(project) {
|
788
|
+
return this.pathTemplates.projectPathTemplate.render({
|
789
|
+
project: project,
|
790
|
+
});
|
791
|
+
}
|
792
|
+
/**
|
793
|
+
* Parse the project from Project resource.
|
794
|
+
*
|
795
|
+
* @param {string} projectName
|
796
|
+
* A fully-qualified path representing Project resource.
|
797
|
+
* @returns {string} A string representing the project.
|
798
|
+
*/
|
799
|
+
matchProjectFromProjectName(projectName) {
|
800
|
+
return this.pathTemplates.projectPathTemplate.match(projectName).project;
|
801
|
+
}
|
774
802
|
/**
|
775
803
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
776
804
|
*
|
@@ -1266,6 +1294,156 @@ class CompletionServiceClient {
|
|
1266
1294
|
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1267
1295
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1268
1296
|
}
|
1297
|
+
/**
|
1298
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1299
|
+
*
|
1300
|
+
* @param {string} project
|
1301
|
+
* @param {string} location
|
1302
|
+
* @param {string} collection
|
1303
|
+
* @param {string} data_store
|
1304
|
+
* @param {string} session
|
1305
|
+
* @returns {string} Resource name string.
|
1306
|
+
*/
|
1307
|
+
projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
|
1308
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
|
1309
|
+
project: project,
|
1310
|
+
location: location,
|
1311
|
+
collection: collection,
|
1312
|
+
data_store: dataStore,
|
1313
|
+
session: session,
|
1314
|
+
});
|
1315
|
+
}
|
1316
|
+
/**
|
1317
|
+
* Parse the project from ProjectLocationCollectionDataStoreSession resource.
|
1318
|
+
*
|
1319
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1320
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1321
|
+
* @returns {string} A string representing the project.
|
1322
|
+
*/
|
1323
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1324
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
|
1325
|
+
}
|
1326
|
+
/**
|
1327
|
+
* Parse the location from ProjectLocationCollectionDataStoreSession resource.
|
1328
|
+
*
|
1329
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1330
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1331
|
+
* @returns {string} A string representing the location.
|
1332
|
+
*/
|
1333
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1334
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
|
1335
|
+
}
|
1336
|
+
/**
|
1337
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSession resource.
|
1338
|
+
*
|
1339
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1340
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1341
|
+
* @returns {string} A string representing the collection.
|
1342
|
+
*/
|
1343
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1344
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
|
1345
|
+
}
|
1346
|
+
/**
|
1347
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
|
1348
|
+
*
|
1349
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1350
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1351
|
+
* @returns {string} A string representing the data_store.
|
1352
|
+
*/
|
1353
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1354
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
|
1355
|
+
}
|
1356
|
+
/**
|
1357
|
+
* Parse the session from ProjectLocationCollectionDataStoreSession resource.
|
1358
|
+
*
|
1359
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1360
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1361
|
+
* @returns {string} A string representing the session.
|
1362
|
+
*/
|
1363
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1364
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
|
1365
|
+
}
|
1366
|
+
/**
|
1367
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1368
|
+
*
|
1369
|
+
* @param {string} project
|
1370
|
+
* @param {string} location
|
1371
|
+
* @param {string} collection
|
1372
|
+
* @param {string} data_store
|
1373
|
+
* @param {string} session
|
1374
|
+
* @param {string} answer
|
1375
|
+
* @returns {string} Resource name string.
|
1376
|
+
*/
|
1377
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1378
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1379
|
+
project: project,
|
1380
|
+
location: location,
|
1381
|
+
collection: collection,
|
1382
|
+
data_store: dataStore,
|
1383
|
+
session: session,
|
1384
|
+
answer: answer,
|
1385
|
+
});
|
1386
|
+
}
|
1387
|
+
/**
|
1388
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1389
|
+
*
|
1390
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1391
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1392
|
+
* @returns {string} A string representing the project.
|
1393
|
+
*/
|
1394
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1395
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1396
|
+
}
|
1397
|
+
/**
|
1398
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1399
|
+
*
|
1400
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1401
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1402
|
+
* @returns {string} A string representing the location.
|
1403
|
+
*/
|
1404
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1405
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1406
|
+
}
|
1407
|
+
/**
|
1408
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1409
|
+
*
|
1410
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1411
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1412
|
+
* @returns {string} A string representing the collection.
|
1413
|
+
*/
|
1414
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1415
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1416
|
+
}
|
1417
|
+
/**
|
1418
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1419
|
+
*
|
1420
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1421
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1422
|
+
* @returns {string} A string representing the data_store.
|
1423
|
+
*/
|
1424
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1425
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1426
|
+
}
|
1427
|
+
/**
|
1428
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1429
|
+
*
|
1430
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1431
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1432
|
+
* @returns {string} A string representing the session.
|
1433
|
+
*/
|
1434
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1435
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1436
|
+
}
|
1437
|
+
/**
|
1438
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1439
|
+
*
|
1440
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1441
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1442
|
+
* @returns {string} A string representing the answer.
|
1443
|
+
*/
|
1444
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1445
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1446
|
+
}
|
1269
1447
|
/**
|
1270
1448
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1271
1449
|
*
|
@@ -1530,6 +1708,156 @@ class CompletionServiceClient {
|
|
1530
1708
|
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1531
1709
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1532
1710
|
}
|
1711
|
+
/**
|
1712
|
+
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1713
|
+
*
|
1714
|
+
* @param {string} project
|
1715
|
+
* @param {string} location
|
1716
|
+
* @param {string} collection
|
1717
|
+
* @param {string} engine
|
1718
|
+
* @param {string} session
|
1719
|
+
* @returns {string} Resource name string.
|
1720
|
+
*/
|
1721
|
+
projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
|
1722
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
|
1723
|
+
project: project,
|
1724
|
+
location: location,
|
1725
|
+
collection: collection,
|
1726
|
+
engine: engine,
|
1727
|
+
session: session,
|
1728
|
+
});
|
1729
|
+
}
|
1730
|
+
/**
|
1731
|
+
* Parse the project from ProjectLocationCollectionEngineSession resource.
|
1732
|
+
*
|
1733
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1734
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1735
|
+
* @returns {string} A string representing the project.
|
1736
|
+
*/
|
1737
|
+
matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1738
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
|
1739
|
+
}
|
1740
|
+
/**
|
1741
|
+
* Parse the location from ProjectLocationCollectionEngineSession resource.
|
1742
|
+
*
|
1743
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1744
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1745
|
+
* @returns {string} A string representing the location.
|
1746
|
+
*/
|
1747
|
+
matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1748
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
|
1749
|
+
}
|
1750
|
+
/**
|
1751
|
+
* Parse the collection from ProjectLocationCollectionEngineSession resource.
|
1752
|
+
*
|
1753
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1754
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1755
|
+
* @returns {string} A string representing the collection.
|
1756
|
+
*/
|
1757
|
+
matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1758
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
|
1759
|
+
}
|
1760
|
+
/**
|
1761
|
+
* Parse the engine from ProjectLocationCollectionEngineSession resource.
|
1762
|
+
*
|
1763
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1764
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1765
|
+
* @returns {string} A string representing the engine.
|
1766
|
+
*/
|
1767
|
+
matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1768
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
|
1769
|
+
}
|
1770
|
+
/**
|
1771
|
+
* Parse the session from ProjectLocationCollectionEngineSession resource.
|
1772
|
+
*
|
1773
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1774
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1775
|
+
* @returns {string} A string representing the session.
|
1776
|
+
*/
|
1777
|
+
matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1778
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
|
1779
|
+
}
|
1780
|
+
/**
|
1781
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1782
|
+
*
|
1783
|
+
* @param {string} project
|
1784
|
+
* @param {string} location
|
1785
|
+
* @param {string} collection
|
1786
|
+
* @param {string} engine
|
1787
|
+
* @param {string} session
|
1788
|
+
* @param {string} answer
|
1789
|
+
* @returns {string} Resource name string.
|
1790
|
+
*/
|
1791
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1792
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1793
|
+
project: project,
|
1794
|
+
location: location,
|
1795
|
+
collection: collection,
|
1796
|
+
engine: engine,
|
1797
|
+
session: session,
|
1798
|
+
answer: answer,
|
1799
|
+
});
|
1800
|
+
}
|
1801
|
+
/**
|
1802
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1803
|
+
*
|
1804
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1805
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1806
|
+
* @returns {string} A string representing the project.
|
1807
|
+
*/
|
1808
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1809
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1810
|
+
}
|
1811
|
+
/**
|
1812
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1813
|
+
*
|
1814
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1815
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1816
|
+
* @returns {string} A string representing the location.
|
1817
|
+
*/
|
1818
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1819
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1820
|
+
}
|
1821
|
+
/**
|
1822
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1823
|
+
*
|
1824
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1825
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1826
|
+
* @returns {string} A string representing the collection.
|
1827
|
+
*/
|
1828
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1829
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1830
|
+
}
|
1831
|
+
/**
|
1832
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
1833
|
+
*
|
1834
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1835
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1836
|
+
* @returns {string} A string representing the engine.
|
1837
|
+
*/
|
1838
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1839
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
1840
|
+
}
|
1841
|
+
/**
|
1842
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
1843
|
+
*
|
1844
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1845
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1846
|
+
* @returns {string} A string representing the session.
|
1847
|
+
*/
|
1848
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1849
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
1850
|
+
}
|
1851
|
+
/**
|
1852
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
1853
|
+
*
|
1854
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1855
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1856
|
+
* @returns {string} A string representing the answer.
|
1857
|
+
*/
|
1858
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1859
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
1860
|
+
}
|
1533
1861
|
/**
|
1534
1862
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1535
1863
|
*
|
@@ -1941,6 +2269,132 @@ class CompletionServiceClient {
|
|
1941
2269
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1942
2270
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1943
2271
|
}
|
2272
|
+
/**
|
2273
|
+
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2274
|
+
*
|
2275
|
+
* @param {string} project
|
2276
|
+
* @param {string} location
|
2277
|
+
* @param {string} data_store
|
2278
|
+
* @param {string} session
|
2279
|
+
* @returns {string} Resource name string.
|
2280
|
+
*/
|
2281
|
+
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2282
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2283
|
+
project: project,
|
2284
|
+
location: location,
|
2285
|
+
data_store: dataStore,
|
2286
|
+
session: session,
|
2287
|
+
});
|
2288
|
+
}
|
2289
|
+
/**
|
2290
|
+
* Parse the project from ProjectLocationDataStoreSession resource.
|
2291
|
+
*
|
2292
|
+
* @param {string} projectLocationDataStoreSessionName
|
2293
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2294
|
+
* @returns {string} A string representing the project.
|
2295
|
+
*/
|
2296
|
+
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2297
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2298
|
+
}
|
2299
|
+
/**
|
2300
|
+
* Parse the location from ProjectLocationDataStoreSession resource.
|
2301
|
+
*
|
2302
|
+
* @param {string} projectLocationDataStoreSessionName
|
2303
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2304
|
+
* @returns {string} A string representing the location.
|
2305
|
+
*/
|
2306
|
+
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2307
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2308
|
+
}
|
2309
|
+
/**
|
2310
|
+
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2311
|
+
*
|
2312
|
+
* @param {string} projectLocationDataStoreSessionName
|
2313
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2314
|
+
* @returns {string} A string representing the data_store.
|
2315
|
+
*/
|
2316
|
+
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2317
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2318
|
+
}
|
2319
|
+
/**
|
2320
|
+
* Parse the session from ProjectLocationDataStoreSession resource.
|
2321
|
+
*
|
2322
|
+
* @param {string} projectLocationDataStoreSessionName
|
2323
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2324
|
+
* @returns {string} A string representing the session.
|
2325
|
+
*/
|
2326
|
+
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2327
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2328
|
+
}
|
2329
|
+
/**
|
2330
|
+
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2331
|
+
*
|
2332
|
+
* @param {string} project
|
2333
|
+
* @param {string} location
|
2334
|
+
* @param {string} data_store
|
2335
|
+
* @param {string} session
|
2336
|
+
* @param {string} answer
|
2337
|
+
* @returns {string} Resource name string.
|
2338
|
+
*/
|
2339
|
+
projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
|
2340
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
|
2341
|
+
project: project,
|
2342
|
+
location: location,
|
2343
|
+
data_store: dataStore,
|
2344
|
+
session: session,
|
2345
|
+
answer: answer,
|
2346
|
+
});
|
2347
|
+
}
|
2348
|
+
/**
|
2349
|
+
* Parse the project from ProjectLocationDataStoreSessionAnswer resource.
|
2350
|
+
*
|
2351
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2352
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2353
|
+
* @returns {string} A string representing the project.
|
2354
|
+
*/
|
2355
|
+
matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2356
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
|
2357
|
+
}
|
2358
|
+
/**
|
2359
|
+
* Parse the location from ProjectLocationDataStoreSessionAnswer resource.
|
2360
|
+
*
|
2361
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2362
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2363
|
+
* @returns {string} A string representing the location.
|
2364
|
+
*/
|
2365
|
+
matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2366
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
|
2367
|
+
}
|
2368
|
+
/**
|
2369
|
+
* Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
|
2370
|
+
*
|
2371
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2372
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2373
|
+
* @returns {string} A string representing the data_store.
|
2374
|
+
*/
|
2375
|
+
matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2376
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
|
2377
|
+
}
|
2378
|
+
/**
|
2379
|
+
* Parse the session from ProjectLocationDataStoreSessionAnswer resource.
|
2380
|
+
*
|
2381
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2382
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2383
|
+
* @returns {string} A string representing the session.
|
2384
|
+
*/
|
2385
|
+
matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2386
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
|
2387
|
+
}
|
2388
|
+
/**
|
2389
|
+
* Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
|
2390
|
+
*
|
2391
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2392
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2393
|
+
* @returns {string} A string representing the answer.
|
2394
|
+
*/
|
2395
|
+
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2396
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2397
|
+
}
|
1944
2398
|
/**
|
1945
2399
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1946
2400
|
*
|