@google-cloud/discoveryengine 1.6.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 +7 -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 +41 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +21 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +64 -0
- 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 +283 -24
- 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 +158 -24
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +2 -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 +44799 -26093
- package/build/protos/protos.js +120465 -74222
- package/build/protos/protos.json +8911 -4556
- 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 +457 -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 +457 -0
- package/build/src/v1alpha/document_service_client.d.ts +410 -21
- package/build/src/v1alpha/document_service_client.js +479 -0
- package/build/src/v1alpha/document_service_client_config.json +5 -0
- package/build/src/v1alpha/engine_service_client.d.ts +330 -0
- package/build/src/v1alpha/engine_service_client.js +457 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +457 -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 +3 -1
- package/build/src/v1alpha/index.js +7 -3
- 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 +457 -0
- package/build/src/v1alpha/search_service_client.d.ts +360 -15
- package/build/src/v1alpha/search_service_client.js +474 -10
- 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 +457 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +317 -1
- package/build/src/v1alpha/serving_config_service_client.js +434 -1
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +457 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
- package/build/src/v1alpha/user_event_service_client.js +457 -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
@@ -157,16 +157,22 @@ class ConversationalSearchServiceClient {
|
|
157
157
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
158
158
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
159
159
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
160
|
+
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
161
|
+
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
160
162
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
161
163
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
162
164
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
163
165
|
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
166
|
+
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
167
|
+
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
164
168
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
165
169
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
166
170
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
167
171
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
168
172
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
169
173
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
174
|
+
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
175
|
+
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
170
176
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
171
177
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
172
178
|
};
|
@@ -175,6 +181,7 @@ class ConversationalSearchServiceClient {
|
|
175
181
|
// pages). Denote the keys used for pagination and results.
|
176
182
|
this.descriptors.page = {
|
177
183
|
listConversations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversations'),
|
184
|
+
listSessions: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'sessions'),
|
178
185
|
};
|
179
186
|
// Put together the default options sent with requests.
|
180
187
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.ConversationalSearchService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -217,6 +224,13 @@ class ConversationalSearchServiceClient {
|
|
217
224
|
'updateConversation',
|
218
225
|
'getConversation',
|
219
226
|
'listConversations',
|
227
|
+
'answerQuery',
|
228
|
+
'getAnswer',
|
229
|
+
'createSession',
|
230
|
+
'deleteSession',
|
231
|
+
'updateSession',
|
232
|
+
'getSession',
|
233
|
+
'listSessions',
|
220
234
|
];
|
221
235
|
for (const methodName of conversationalSearchServiceStubMethods) {
|
222
236
|
const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
|
@@ -399,6 +413,132 @@ class ConversationalSearchServiceClient {
|
|
399
413
|
this.initialize();
|
400
414
|
return this.innerApiCalls.getConversation(request, options, callback);
|
401
415
|
}
|
416
|
+
answerQuery(request, optionsOrCallback, callback) {
|
417
|
+
var _a;
|
418
|
+
request = request || {};
|
419
|
+
let options;
|
420
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
421
|
+
callback = optionsOrCallback;
|
422
|
+
options = {};
|
423
|
+
}
|
424
|
+
else {
|
425
|
+
options = optionsOrCallback;
|
426
|
+
}
|
427
|
+
options = options || {};
|
428
|
+
options.otherArgs = options.otherArgs || {};
|
429
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
430
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
431
|
+
this._gaxModule.routingHeader.fromParams({
|
432
|
+
serving_config: (_a = request.servingConfig) !== null && _a !== void 0 ? _a : '',
|
433
|
+
});
|
434
|
+
this.initialize();
|
435
|
+
return this.innerApiCalls.answerQuery(request, options, callback);
|
436
|
+
}
|
437
|
+
getAnswer(request, optionsOrCallback, callback) {
|
438
|
+
var _a;
|
439
|
+
request = request || {};
|
440
|
+
let options;
|
441
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
442
|
+
callback = optionsOrCallback;
|
443
|
+
options = {};
|
444
|
+
}
|
445
|
+
else {
|
446
|
+
options = optionsOrCallback;
|
447
|
+
}
|
448
|
+
options = options || {};
|
449
|
+
options.otherArgs = options.otherArgs || {};
|
450
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
451
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
452
|
+
this._gaxModule.routingHeader.fromParams({
|
453
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
454
|
+
});
|
455
|
+
this.initialize();
|
456
|
+
return this.innerApiCalls.getAnswer(request, options, callback);
|
457
|
+
}
|
458
|
+
createSession(request, optionsOrCallback, callback) {
|
459
|
+
var _a;
|
460
|
+
request = request || {};
|
461
|
+
let options;
|
462
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
463
|
+
callback = optionsOrCallback;
|
464
|
+
options = {};
|
465
|
+
}
|
466
|
+
else {
|
467
|
+
options = optionsOrCallback;
|
468
|
+
}
|
469
|
+
options = options || {};
|
470
|
+
options.otherArgs = options.otherArgs || {};
|
471
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
472
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
473
|
+
this._gaxModule.routingHeader.fromParams({
|
474
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
475
|
+
});
|
476
|
+
this.initialize();
|
477
|
+
return this.innerApiCalls.createSession(request, options, callback);
|
478
|
+
}
|
479
|
+
deleteSession(request, optionsOrCallback, callback) {
|
480
|
+
var _a;
|
481
|
+
request = request || {};
|
482
|
+
let options;
|
483
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
484
|
+
callback = optionsOrCallback;
|
485
|
+
options = {};
|
486
|
+
}
|
487
|
+
else {
|
488
|
+
options = optionsOrCallback;
|
489
|
+
}
|
490
|
+
options = options || {};
|
491
|
+
options.otherArgs = options.otherArgs || {};
|
492
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
493
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
494
|
+
this._gaxModule.routingHeader.fromParams({
|
495
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
496
|
+
});
|
497
|
+
this.initialize();
|
498
|
+
return this.innerApiCalls.deleteSession(request, options, callback);
|
499
|
+
}
|
500
|
+
updateSession(request, optionsOrCallback, callback) {
|
501
|
+
var _a;
|
502
|
+
request = request || {};
|
503
|
+
let options;
|
504
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
505
|
+
callback = optionsOrCallback;
|
506
|
+
options = {};
|
507
|
+
}
|
508
|
+
else {
|
509
|
+
options = optionsOrCallback;
|
510
|
+
}
|
511
|
+
options = options || {};
|
512
|
+
options.otherArgs = options.otherArgs || {};
|
513
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
514
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
515
|
+
this._gaxModule.routingHeader.fromParams({
|
516
|
+
'session.name': (_a = request.session.name) !== null && _a !== void 0 ? _a : '',
|
517
|
+
});
|
518
|
+
this.initialize();
|
519
|
+
return this.innerApiCalls.updateSession(request, options, callback);
|
520
|
+
}
|
521
|
+
getSession(request, optionsOrCallback, callback) {
|
522
|
+
var _a;
|
523
|
+
request = request || {};
|
524
|
+
let options;
|
525
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
526
|
+
callback = optionsOrCallback;
|
527
|
+
options = {};
|
528
|
+
}
|
529
|
+
else {
|
530
|
+
options = optionsOrCallback;
|
531
|
+
}
|
532
|
+
options = options || {};
|
533
|
+
options.otherArgs = options.otherArgs || {};
|
534
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
535
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
536
|
+
this._gaxModule.routingHeader.fromParams({
|
537
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
538
|
+
});
|
539
|
+
this.initialize();
|
540
|
+
return this.innerApiCalls.getSession(request, options, callback);
|
541
|
+
}
|
402
542
|
listConversations(request, optionsOrCallback, callback) {
|
403
543
|
var _a;
|
404
544
|
request = request || {};
|
@@ -535,6 +675,142 @@ class ConversationalSearchServiceClient {
|
|
535
675
|
this.initialize();
|
536
676
|
return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
|
537
677
|
}
|
678
|
+
listSessions(request, optionsOrCallback, callback) {
|
679
|
+
var _a;
|
680
|
+
request = request || {};
|
681
|
+
let options;
|
682
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
683
|
+
callback = optionsOrCallback;
|
684
|
+
options = {};
|
685
|
+
}
|
686
|
+
else {
|
687
|
+
options = optionsOrCallback;
|
688
|
+
}
|
689
|
+
options = options || {};
|
690
|
+
options.otherArgs = options.otherArgs || {};
|
691
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
692
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
693
|
+
this._gaxModule.routingHeader.fromParams({
|
694
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
695
|
+
});
|
696
|
+
this.initialize();
|
697
|
+
return this.innerApiCalls.listSessions(request, options, callback);
|
698
|
+
}
|
699
|
+
/**
|
700
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
701
|
+
* @param {Object} request
|
702
|
+
* The request object that will be sent.
|
703
|
+
* @param {string} request.parent
|
704
|
+
* Required. The data store resource name. Format:
|
705
|
+
* `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
|
706
|
+
* @param {number} request.pageSize
|
707
|
+
* Maximum number of results to return. If unspecified, defaults
|
708
|
+
* to 50. Max allowed value is 1000.
|
709
|
+
* @param {string} request.pageToken
|
710
|
+
* A page token, received from a previous `ListSessions` call.
|
711
|
+
* Provide this to retrieve the subsequent page.
|
712
|
+
* @param {string} request.filter
|
713
|
+
* A filter to apply on the list results. The supported features are:
|
714
|
+
* user_pseudo_id, state.
|
715
|
+
*
|
716
|
+
* Example:
|
717
|
+
* "user_pseudo_id = some_id"
|
718
|
+
* @param {string} request.orderBy
|
719
|
+
* A comma-separated list of fields to order by, sorted in ascending order.
|
720
|
+
* Use "desc" after a field name for descending.
|
721
|
+
* Supported fields:
|
722
|
+
* * `update_time`
|
723
|
+
* * `create_time`
|
724
|
+
* * `session_name`
|
725
|
+
*
|
726
|
+
* Example:
|
727
|
+
* "update_time desc"
|
728
|
+
* "create_time"
|
729
|
+
* @param {object} [options]
|
730
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
731
|
+
* @returns {Stream}
|
732
|
+
* An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1beta.Session|Session} on 'data' event.
|
733
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
734
|
+
* times as needed. Note that it can affect your quota.
|
735
|
+
* We recommend using `listSessionsAsync()`
|
736
|
+
* method described below for async iteration which you can stop as needed.
|
737
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
738
|
+
* for more details and examples.
|
739
|
+
*/
|
740
|
+
listSessionsStream(request, options) {
|
741
|
+
var _a;
|
742
|
+
request = request || {};
|
743
|
+
options = options || {};
|
744
|
+
options.otherArgs = options.otherArgs || {};
|
745
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
746
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
747
|
+
this._gaxModule.routingHeader.fromParams({
|
748
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
749
|
+
});
|
750
|
+
const defaultCallSettings = this._defaults['listSessions'];
|
751
|
+
const callSettings = defaultCallSettings.merge(options);
|
752
|
+
this.initialize();
|
753
|
+
return this.descriptors.page.listSessions.createStream(this.innerApiCalls.listSessions, request, callSettings);
|
754
|
+
}
|
755
|
+
/**
|
756
|
+
* Equivalent to `listSessions`, but returns an iterable object.
|
757
|
+
*
|
758
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
759
|
+
* @param {Object} request
|
760
|
+
* The request object that will be sent.
|
761
|
+
* @param {string} request.parent
|
762
|
+
* Required. The data store resource name. Format:
|
763
|
+
* `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
|
764
|
+
* @param {number} request.pageSize
|
765
|
+
* Maximum number of results to return. If unspecified, defaults
|
766
|
+
* to 50. Max allowed value is 1000.
|
767
|
+
* @param {string} request.pageToken
|
768
|
+
* A page token, received from a previous `ListSessions` call.
|
769
|
+
* Provide this to retrieve the subsequent page.
|
770
|
+
* @param {string} request.filter
|
771
|
+
* A filter to apply on the list results. The supported features are:
|
772
|
+
* user_pseudo_id, state.
|
773
|
+
*
|
774
|
+
* Example:
|
775
|
+
* "user_pseudo_id = some_id"
|
776
|
+
* @param {string} request.orderBy
|
777
|
+
* A comma-separated list of fields to order by, sorted in ascending order.
|
778
|
+
* Use "desc" after a field name for descending.
|
779
|
+
* Supported fields:
|
780
|
+
* * `update_time`
|
781
|
+
* * `create_time`
|
782
|
+
* * `session_name`
|
783
|
+
*
|
784
|
+
* Example:
|
785
|
+
* "update_time desc"
|
786
|
+
* "create_time"
|
787
|
+
* @param {object} [options]
|
788
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
789
|
+
* @returns {Object}
|
790
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
791
|
+
* When you iterate the returned iterable, each element will be an object representing
|
792
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.Session|Session}. The API will be called under the hood as needed, once per the page,
|
793
|
+
* so you can stop the iteration when you don't need more results.
|
794
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
795
|
+
* for more details and examples.
|
796
|
+
* @example <caption>include:samples/generated/v1beta/conversational_search_service.list_sessions.js</caption>
|
797
|
+
* region_tag:discoveryengine_v1beta_generated_ConversationalSearchService_ListSessions_async
|
798
|
+
*/
|
799
|
+
listSessionsAsync(request, options) {
|
800
|
+
var _a;
|
801
|
+
request = request || {};
|
802
|
+
options = options || {};
|
803
|
+
options.otherArgs = options.otherArgs || {};
|
804
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
805
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
806
|
+
this._gaxModule.routingHeader.fromParams({
|
807
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
808
|
+
});
|
809
|
+
const defaultCallSettings = this._defaults['listSessions'];
|
810
|
+
const callSettings = defaultCallSettings.merge(options);
|
811
|
+
this.initialize();
|
812
|
+
return this.descriptors.page.listSessions.asyncIterate(this.innerApiCalls['listSessions'], request, callSettings);
|
813
|
+
}
|
538
814
|
/**
|
539
815
|
* Gets information about a location.
|
540
816
|
*
|
@@ -1052,6 +1328,156 @@ class ConversationalSearchServiceClient {
|
|
1052
1328
|
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1053
1329
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1054
1330
|
}
|
1331
|
+
/**
|
1332
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1333
|
+
*
|
1334
|
+
* @param {string} project
|
1335
|
+
* @param {string} location
|
1336
|
+
* @param {string} collection
|
1337
|
+
* @param {string} data_store
|
1338
|
+
* @param {string} session
|
1339
|
+
* @returns {string} Resource name string.
|
1340
|
+
*/
|
1341
|
+
projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
|
1342
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
|
1343
|
+
project: project,
|
1344
|
+
location: location,
|
1345
|
+
collection: collection,
|
1346
|
+
data_store: dataStore,
|
1347
|
+
session: session,
|
1348
|
+
});
|
1349
|
+
}
|
1350
|
+
/**
|
1351
|
+
* Parse the project from ProjectLocationCollectionDataStoreSession resource.
|
1352
|
+
*
|
1353
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1354
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1355
|
+
* @returns {string} A string representing the project.
|
1356
|
+
*/
|
1357
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1358
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
|
1359
|
+
}
|
1360
|
+
/**
|
1361
|
+
* Parse the location from ProjectLocationCollectionDataStoreSession resource.
|
1362
|
+
*
|
1363
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1364
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1365
|
+
* @returns {string} A string representing the location.
|
1366
|
+
*/
|
1367
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1368
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
|
1369
|
+
}
|
1370
|
+
/**
|
1371
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSession resource.
|
1372
|
+
*
|
1373
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1374
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1375
|
+
* @returns {string} A string representing the collection.
|
1376
|
+
*/
|
1377
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1378
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
|
1379
|
+
}
|
1380
|
+
/**
|
1381
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
|
1382
|
+
*
|
1383
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1384
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1385
|
+
* @returns {string} A string representing the data_store.
|
1386
|
+
*/
|
1387
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1388
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
|
1389
|
+
}
|
1390
|
+
/**
|
1391
|
+
* Parse the session from ProjectLocationCollectionDataStoreSession resource.
|
1392
|
+
*
|
1393
|
+
* @param {string} projectLocationCollectionDataStoreSessionName
|
1394
|
+
* A fully-qualified path representing project_location_collection_data_store_session resource.
|
1395
|
+
* @returns {string} A string representing the session.
|
1396
|
+
*/
|
1397
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
|
1398
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
|
1399
|
+
}
|
1400
|
+
/**
|
1401
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
|
1402
|
+
*
|
1403
|
+
* @param {string} project
|
1404
|
+
* @param {string} location
|
1405
|
+
* @param {string} collection
|
1406
|
+
* @param {string} data_store
|
1407
|
+
* @param {string} session
|
1408
|
+
* @param {string} answer
|
1409
|
+
* @returns {string} Resource name string.
|
1410
|
+
*/
|
1411
|
+
projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
|
1412
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
|
1413
|
+
project: project,
|
1414
|
+
location: location,
|
1415
|
+
collection: collection,
|
1416
|
+
data_store: dataStore,
|
1417
|
+
session: session,
|
1418
|
+
answer: answer,
|
1419
|
+
});
|
1420
|
+
}
|
1421
|
+
/**
|
1422
|
+
* Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1423
|
+
*
|
1424
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1425
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1426
|
+
* @returns {string} A string representing the project.
|
1427
|
+
*/
|
1428
|
+
matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1429
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
|
1430
|
+
}
|
1431
|
+
/**
|
1432
|
+
* Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1433
|
+
*
|
1434
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1435
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1436
|
+
* @returns {string} A string representing the location.
|
1437
|
+
*/
|
1438
|
+
matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1439
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
|
1440
|
+
}
|
1441
|
+
/**
|
1442
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1443
|
+
*
|
1444
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1445
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1446
|
+
* @returns {string} A string representing the collection.
|
1447
|
+
*/
|
1448
|
+
matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1449
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
|
1450
|
+
}
|
1451
|
+
/**
|
1452
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1453
|
+
*
|
1454
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1455
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1456
|
+
* @returns {string} A string representing the data_store.
|
1457
|
+
*/
|
1458
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1459
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
|
1460
|
+
}
|
1461
|
+
/**
|
1462
|
+
* Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1463
|
+
*
|
1464
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1465
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1466
|
+
* @returns {string} A string representing the session.
|
1467
|
+
*/
|
1468
|
+
matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1469
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
|
1470
|
+
}
|
1471
|
+
/**
|
1472
|
+
* Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
|
1473
|
+
*
|
1474
|
+
* @param {string} projectLocationCollectionDataStoreSessionAnswerName
|
1475
|
+
* A fully-qualified path representing project_location_collection_data_store_session_answer resource.
|
1476
|
+
* @returns {string} A string representing the answer.
|
1477
|
+
*/
|
1478
|
+
matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
|
1479
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
|
1480
|
+
}
|
1055
1481
|
/**
|
1056
1482
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1057
1483
|
*
|
@@ -1316,6 +1742,156 @@ class ConversationalSearchServiceClient {
|
|
1316
1742
|
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1317
1743
|
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1318
1744
|
}
|
1745
|
+
/**
|
1746
|
+
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1747
|
+
*
|
1748
|
+
* @param {string} project
|
1749
|
+
* @param {string} location
|
1750
|
+
* @param {string} collection
|
1751
|
+
* @param {string} engine
|
1752
|
+
* @param {string} session
|
1753
|
+
* @returns {string} Resource name string.
|
1754
|
+
*/
|
1755
|
+
projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
|
1756
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
|
1757
|
+
project: project,
|
1758
|
+
location: location,
|
1759
|
+
collection: collection,
|
1760
|
+
engine: engine,
|
1761
|
+
session: session,
|
1762
|
+
});
|
1763
|
+
}
|
1764
|
+
/**
|
1765
|
+
* Parse the project from ProjectLocationCollectionEngineSession resource.
|
1766
|
+
*
|
1767
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1768
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1769
|
+
* @returns {string} A string representing the project.
|
1770
|
+
*/
|
1771
|
+
matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1772
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
|
1773
|
+
}
|
1774
|
+
/**
|
1775
|
+
* Parse the location from ProjectLocationCollectionEngineSession resource.
|
1776
|
+
*
|
1777
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1778
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1779
|
+
* @returns {string} A string representing the location.
|
1780
|
+
*/
|
1781
|
+
matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1782
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
|
1783
|
+
}
|
1784
|
+
/**
|
1785
|
+
* Parse the collection from ProjectLocationCollectionEngineSession resource.
|
1786
|
+
*
|
1787
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1788
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1789
|
+
* @returns {string} A string representing the collection.
|
1790
|
+
*/
|
1791
|
+
matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1792
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
|
1793
|
+
}
|
1794
|
+
/**
|
1795
|
+
* Parse the engine from ProjectLocationCollectionEngineSession resource.
|
1796
|
+
*
|
1797
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1798
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1799
|
+
* @returns {string} A string representing the engine.
|
1800
|
+
*/
|
1801
|
+
matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1802
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
|
1803
|
+
}
|
1804
|
+
/**
|
1805
|
+
* Parse the session from ProjectLocationCollectionEngineSession resource.
|
1806
|
+
*
|
1807
|
+
* @param {string} projectLocationCollectionEngineSessionName
|
1808
|
+
* A fully-qualified path representing project_location_collection_engine_session resource.
|
1809
|
+
* @returns {string} A string representing the session.
|
1810
|
+
*/
|
1811
|
+
matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
|
1812
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
|
1813
|
+
}
|
1814
|
+
/**
|
1815
|
+
* Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
|
1816
|
+
*
|
1817
|
+
* @param {string} project
|
1818
|
+
* @param {string} location
|
1819
|
+
* @param {string} collection
|
1820
|
+
* @param {string} engine
|
1821
|
+
* @param {string} session
|
1822
|
+
* @param {string} answer
|
1823
|
+
* @returns {string} Resource name string.
|
1824
|
+
*/
|
1825
|
+
projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
|
1826
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
|
1827
|
+
project: project,
|
1828
|
+
location: location,
|
1829
|
+
collection: collection,
|
1830
|
+
engine: engine,
|
1831
|
+
session: session,
|
1832
|
+
answer: answer,
|
1833
|
+
});
|
1834
|
+
}
|
1835
|
+
/**
|
1836
|
+
* Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
|
1837
|
+
*
|
1838
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1839
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1840
|
+
* @returns {string} A string representing the project.
|
1841
|
+
*/
|
1842
|
+
matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1843
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
|
1844
|
+
}
|
1845
|
+
/**
|
1846
|
+
* Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
|
1847
|
+
*
|
1848
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1849
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1850
|
+
* @returns {string} A string representing the location.
|
1851
|
+
*/
|
1852
|
+
matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1853
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
|
1854
|
+
}
|
1855
|
+
/**
|
1856
|
+
* Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
|
1857
|
+
*
|
1858
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1859
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1860
|
+
* @returns {string} A string representing the collection.
|
1861
|
+
*/
|
1862
|
+
matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1863
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
|
1864
|
+
}
|
1865
|
+
/**
|
1866
|
+
* Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
|
1867
|
+
*
|
1868
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1869
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1870
|
+
* @returns {string} A string representing the engine.
|
1871
|
+
*/
|
1872
|
+
matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1873
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
|
1874
|
+
}
|
1875
|
+
/**
|
1876
|
+
* Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
|
1877
|
+
*
|
1878
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1879
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1880
|
+
* @returns {string} A string representing the session.
|
1881
|
+
*/
|
1882
|
+
matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1883
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
|
1884
|
+
}
|
1885
|
+
/**
|
1886
|
+
* Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
|
1887
|
+
*
|
1888
|
+
* @param {string} projectLocationCollectionEngineSessionAnswerName
|
1889
|
+
* A fully-qualified path representing project_location_collection_engine_session_answer resource.
|
1890
|
+
* @returns {string} A string representing the answer.
|
1891
|
+
*/
|
1892
|
+
matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
|
1893
|
+
return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
|
1894
|
+
}
|
1319
1895
|
/**
|
1320
1896
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1321
1897
|
*
|
@@ -1646,6 +2222,132 @@ class ConversationalSearchServiceClient {
|
|
1646
2222
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
1647
2223
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
1648
2224
|
}
|
2225
|
+
/**
|
2226
|
+
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2227
|
+
*
|
2228
|
+
* @param {string} project
|
2229
|
+
* @param {string} location
|
2230
|
+
* @param {string} data_store
|
2231
|
+
* @param {string} session
|
2232
|
+
* @returns {string} Resource name string.
|
2233
|
+
*/
|
2234
|
+
projectLocationDataStoreSessionPath(project, location, dataStore, session) {
|
2235
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
|
2236
|
+
project: project,
|
2237
|
+
location: location,
|
2238
|
+
data_store: dataStore,
|
2239
|
+
session: session,
|
2240
|
+
});
|
2241
|
+
}
|
2242
|
+
/**
|
2243
|
+
* Parse the project from ProjectLocationDataStoreSession resource.
|
2244
|
+
*
|
2245
|
+
* @param {string} projectLocationDataStoreSessionName
|
2246
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2247
|
+
* @returns {string} A string representing the project.
|
2248
|
+
*/
|
2249
|
+
matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2250
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
|
2251
|
+
}
|
2252
|
+
/**
|
2253
|
+
* Parse the location from ProjectLocationDataStoreSession resource.
|
2254
|
+
*
|
2255
|
+
* @param {string} projectLocationDataStoreSessionName
|
2256
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2257
|
+
* @returns {string} A string representing the location.
|
2258
|
+
*/
|
2259
|
+
matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2260
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
|
2261
|
+
}
|
2262
|
+
/**
|
2263
|
+
* Parse the data_store from ProjectLocationDataStoreSession resource.
|
2264
|
+
*
|
2265
|
+
* @param {string} projectLocationDataStoreSessionName
|
2266
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2267
|
+
* @returns {string} A string representing the data_store.
|
2268
|
+
*/
|
2269
|
+
matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2270
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
|
2271
|
+
}
|
2272
|
+
/**
|
2273
|
+
* Parse the session from ProjectLocationDataStoreSession resource.
|
2274
|
+
*
|
2275
|
+
* @param {string} projectLocationDataStoreSessionName
|
2276
|
+
* A fully-qualified path representing project_location_data_store_session resource.
|
2277
|
+
* @returns {string} A string representing the session.
|
2278
|
+
*/
|
2279
|
+
matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
|
2280
|
+
return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
|
2281
|
+
}
|
2282
|
+
/**
|
2283
|
+
* Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
|
2284
|
+
*
|
2285
|
+
* @param {string} project
|
2286
|
+
* @param {string} location
|
2287
|
+
* @param {string} data_store
|
2288
|
+
* @param {string} session
|
2289
|
+
* @param {string} answer
|
2290
|
+
* @returns {string} Resource name string.
|
2291
|
+
*/
|
2292
|
+
projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
|
2293
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
|
2294
|
+
project: project,
|
2295
|
+
location: location,
|
2296
|
+
data_store: dataStore,
|
2297
|
+
session: session,
|
2298
|
+
answer: answer,
|
2299
|
+
});
|
2300
|
+
}
|
2301
|
+
/**
|
2302
|
+
* Parse the project from ProjectLocationDataStoreSessionAnswer resource.
|
2303
|
+
*
|
2304
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2305
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2306
|
+
* @returns {string} A string representing the project.
|
2307
|
+
*/
|
2308
|
+
matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2309
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
|
2310
|
+
}
|
2311
|
+
/**
|
2312
|
+
* Parse the location from ProjectLocationDataStoreSessionAnswer resource.
|
2313
|
+
*
|
2314
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2315
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2316
|
+
* @returns {string} A string representing the location.
|
2317
|
+
*/
|
2318
|
+
matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2319
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
|
2320
|
+
}
|
2321
|
+
/**
|
2322
|
+
* Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
|
2323
|
+
*
|
2324
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2325
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2326
|
+
* @returns {string} A string representing the data_store.
|
2327
|
+
*/
|
2328
|
+
matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2329
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
|
2330
|
+
}
|
2331
|
+
/**
|
2332
|
+
* Parse the session from ProjectLocationDataStoreSessionAnswer resource.
|
2333
|
+
*
|
2334
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2335
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2336
|
+
* @returns {string} A string representing the session.
|
2337
|
+
*/
|
2338
|
+
matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2339
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
|
2340
|
+
}
|
2341
|
+
/**
|
2342
|
+
* Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
|
2343
|
+
*
|
2344
|
+
* @param {string} projectLocationDataStoreSessionAnswerName
|
2345
|
+
* A fully-qualified path representing project_location_data_store_session_answer resource.
|
2346
|
+
* @returns {string} A string representing the answer.
|
2347
|
+
*/
|
2348
|
+
matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
|
2349
|
+
return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
|
2350
|
+
}
|
1649
2351
|
/**
|
1650
2352
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1651
2353
|
*
|