@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.
Files changed (142) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +24 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +13 -1
  4. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +5 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +17 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/document.proto +9 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +2 -2
  9. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +284 -22
  10. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +3 -0
  11. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +228 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +125 -21
  13. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +16 -11
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +328 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +41 -1
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +21 -1
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +19 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +2 -2
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +283 -24
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +21 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +158 -24
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +9 -3
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +2 -1
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +1 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +30 -1
  35. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +559 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +3 -6
  37. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +6 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +2 -2
  39. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +93 -0
  40. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
  41. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
  42. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +283 -24
  43. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +142 -22
  45. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +7 -1
  46. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
  47. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +1 -1
  48. package/build/protos/protos.d.ts +44799 -26093
  49. package/build/protos/protos.js +120465 -74222
  50. package/build/protos/protos.json +8911 -4556
  51. package/build/src/index.d.ts +4 -1
  52. package/build/src/index.js +4 -1
  53. package/build/src/v1/conversational_search_service_client.d.ts +4 -0
  54. package/build/src/v1/document_service_client.d.ts +47 -19
  55. package/build/src/v1/index.d.ts +1 -0
  56. package/build/src/v1/index.js +3 -1
  57. package/build/src/v1/recommendation_service_client.d.ts +1087 -0
  58. package/build/src/v1/recommendation_service_client.js +1432 -0
  59. package/build/src/v1/recommendation_service_client_config.json +43 -0
  60. package/build/src/v1/search_service_client.d.ts +27 -9
  61. package/build/src/v1/search_service_client.js +18 -6
  62. package/build/src/v1/search_service_client_config.json +5 -5
  63. package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
  64. package/build/src/v1alpha/acl_config_service_client.js +454 -0
  65. package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
  66. package/build/src/v1alpha/chunk_service_client.js +454 -0
  67. package/build/src/v1alpha/completion_service_client.d.ts +330 -0
  68. package/build/src/v1alpha/completion_service_client.js +457 -0
  69. package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
  70. package/build/src/v1alpha/conversational_search_service_client.js +724 -0
  71. package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
  72. package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
  73. package/build/src/v1alpha/data_store_service_client.js +457 -0
  74. package/build/src/v1alpha/document_service_client.d.ts +410 -21
  75. package/build/src/v1alpha/document_service_client.js +479 -0
  76. package/build/src/v1alpha/document_service_client_config.json +5 -0
  77. package/build/src/v1alpha/engine_service_client.d.ts +330 -0
  78. package/build/src/v1alpha/engine_service_client.js +457 -0
  79. package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
  80. package/build/src/v1alpha/estimate_billing_service_client.js +457 -0
  81. package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
  82. package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
  83. package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
  84. package/build/src/v1alpha/index.d.ts +3 -1
  85. package/build/src/v1alpha/index.js +7 -3
  86. package/build/src/v1alpha/project_service_client.d.ts +1756 -0
  87. package/build/src/v1alpha/project_service_client.js +2500 -0
  88. package/build/src/v1alpha/project_service_client_config.json +38 -0
  89. package/build/src/v1alpha/rank_service_client.d.ts +330 -0
  90. package/build/src/v1alpha/rank_service_client.js +454 -0
  91. package/build/src/v1alpha/rank_service_client_config.json +15 -2
  92. package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
  93. package/build/src/v1alpha/recommendation_service_client.js +454 -0
  94. package/build/src/v1alpha/schema_service_client.d.ts +330 -0
  95. package/build/src/v1alpha/schema_service_client.js +457 -0
  96. package/build/src/v1alpha/search_service_client.d.ts +360 -15
  97. package/build/src/v1alpha/search_service_client.js +474 -10
  98. package/build/src/v1alpha/search_service_client_config.json +5 -5
  99. package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
  100. package/build/src/v1alpha/search_tuning_service_client.js +457 -0
  101. package/build/src/v1alpha/serving_config_service_client.d.ts +317 -1
  102. package/build/src/v1alpha/serving_config_service_client.js +434 -1
  103. package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
  104. package/build/src/v1alpha/site_search_engine_service_client.js +457 -0
  105. package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
  106. package/build/src/v1alpha/user_event_service_client.js +457 -0
  107. package/build/src/v1beta/completion_service_client.d.ts +315 -0
  108. package/build/src/v1beta/completion_service_client.js +432 -0
  109. package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
  110. package/build/src/v1beta/conversational_search_service_client.js +702 -0
  111. package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
  112. package/build/src/v1beta/data_store_service_client.d.ts +315 -0
  113. package/build/src/v1beta/data_store_service_client.js +432 -0
  114. package/build/src/v1beta/document_service_client.d.ts +361 -21
  115. package/build/src/v1beta/document_service_client.js +432 -0
  116. package/build/src/v1beta/engine_service_client.d.ts +410 -0
  117. package/build/src/v1beta/engine_service_client.js +518 -0
  118. package/build/src/v1beta/engine_service_client_config.json +12 -0
  119. package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
  120. package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
  121. package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
  122. package/build/src/v1beta/index.d.ts +2 -0
  123. package/build/src/v1beta/index.js +5 -1
  124. package/build/src/v1beta/rank_service_client.d.ts +1416 -0
  125. package/build/src/v1beta/rank_service_client.js +2015 -0
  126. package/build/src/v1beta/rank_service_client_config.json +43 -0
  127. package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
  128. package/build/src/v1beta/recommendation_service_client.js +432 -0
  129. package/build/src/v1beta/schema_service_client.d.ts +315 -0
  130. package/build/src/v1beta/schema_service_client.js +432 -0
  131. package/build/src/v1beta/search_service_client.d.ts +342 -12
  132. package/build/src/v1beta/search_service_client.js +450 -8
  133. package/build/src/v1beta/search_service_client_config.json +5 -5
  134. package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
  135. package/build/src/v1beta/search_tuning_service_client.js +432 -0
  136. package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
  137. package/build/src/v1beta/serving_config_service_client.js +432 -0
  138. package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
  139. package/build/src/v1beta/site_search_engine_service_client.js +432 -0
  140. package/build/src/v1beta/user_event_service_client.d.ts +315 -0
  141. package/build/src/v1beta/user_event_service_client.js +432 -0
  142. package/package.json +1 -1
@@ -152,6 +152,7 @@ class ConversationalSearchServiceClient {
152
152
  this.pathTemplates = {
153
153
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
154
154
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
155
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
155
156
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
156
157
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
157
158
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -159,10 +160,14 @@ class ConversationalSearchServiceClient {
159
160
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
160
161
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
161
162
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
163
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
164
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
162
165
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
163
166
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
164
167
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
165
168
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
169
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
170
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
166
171
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
167
172
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
168
173
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -170,6 +175,8 @@ class ConversationalSearchServiceClient {
170
175
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
171
176
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
172
177
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
178
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
179
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
173
180
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
174
181
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
175
182
  };
@@ -178,6 +185,7 @@ class ConversationalSearchServiceClient {
178
185
  // pages). Denote the keys used for pagination and results.
179
186
  this.descriptors.page = {
180
187
  listConversations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversations'),
188
+ listSessions: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'sessions'),
181
189
  };
182
190
  // Put together the default options sent with requests.
183
191
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.ConversationalSearchService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -220,6 +228,13 @@ class ConversationalSearchServiceClient {
220
228
  'updateConversation',
221
229
  'getConversation',
222
230
  'listConversations',
231
+ 'answerQuery',
232
+ 'getAnswer',
233
+ 'createSession',
234
+ 'deleteSession',
235
+ 'updateSession',
236
+ 'getSession',
237
+ 'listSessions',
223
238
  ];
224
239
  for (const methodName of conversationalSearchServiceStubMethods) {
225
240
  const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
@@ -402,6 +417,132 @@ class ConversationalSearchServiceClient {
402
417
  this.initialize();
403
418
  return this.innerApiCalls.getConversation(request, options, callback);
404
419
  }
420
+ answerQuery(request, optionsOrCallback, callback) {
421
+ var _a;
422
+ request = request || {};
423
+ let options;
424
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
425
+ callback = optionsOrCallback;
426
+ options = {};
427
+ }
428
+ else {
429
+ options = optionsOrCallback;
430
+ }
431
+ options = options || {};
432
+ options.otherArgs = options.otherArgs || {};
433
+ options.otherArgs.headers = options.otherArgs.headers || {};
434
+ options.otherArgs.headers['x-goog-request-params'] =
435
+ this._gaxModule.routingHeader.fromParams({
436
+ serving_config: (_a = request.servingConfig) !== null && _a !== void 0 ? _a : '',
437
+ });
438
+ this.initialize();
439
+ return this.innerApiCalls.answerQuery(request, options, callback);
440
+ }
441
+ getAnswer(request, optionsOrCallback, callback) {
442
+ var _a;
443
+ request = request || {};
444
+ let options;
445
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
446
+ callback = optionsOrCallback;
447
+ options = {};
448
+ }
449
+ else {
450
+ options = optionsOrCallback;
451
+ }
452
+ options = options || {};
453
+ options.otherArgs = options.otherArgs || {};
454
+ options.otherArgs.headers = options.otherArgs.headers || {};
455
+ options.otherArgs.headers['x-goog-request-params'] =
456
+ this._gaxModule.routingHeader.fromParams({
457
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
458
+ });
459
+ this.initialize();
460
+ return this.innerApiCalls.getAnswer(request, options, callback);
461
+ }
462
+ createSession(request, optionsOrCallback, callback) {
463
+ var _a;
464
+ request = request || {};
465
+ let options;
466
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
467
+ callback = optionsOrCallback;
468
+ options = {};
469
+ }
470
+ else {
471
+ options = optionsOrCallback;
472
+ }
473
+ options = options || {};
474
+ options.otherArgs = options.otherArgs || {};
475
+ options.otherArgs.headers = options.otherArgs.headers || {};
476
+ options.otherArgs.headers['x-goog-request-params'] =
477
+ this._gaxModule.routingHeader.fromParams({
478
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
479
+ });
480
+ this.initialize();
481
+ return this.innerApiCalls.createSession(request, options, callback);
482
+ }
483
+ deleteSession(request, optionsOrCallback, callback) {
484
+ var _a;
485
+ request = request || {};
486
+ let options;
487
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
488
+ callback = optionsOrCallback;
489
+ options = {};
490
+ }
491
+ else {
492
+ options = optionsOrCallback;
493
+ }
494
+ options = options || {};
495
+ options.otherArgs = options.otherArgs || {};
496
+ options.otherArgs.headers = options.otherArgs.headers || {};
497
+ options.otherArgs.headers['x-goog-request-params'] =
498
+ this._gaxModule.routingHeader.fromParams({
499
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
500
+ });
501
+ this.initialize();
502
+ return this.innerApiCalls.deleteSession(request, options, callback);
503
+ }
504
+ updateSession(request, optionsOrCallback, callback) {
505
+ var _a;
506
+ request = request || {};
507
+ let options;
508
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
509
+ callback = optionsOrCallback;
510
+ options = {};
511
+ }
512
+ else {
513
+ options = optionsOrCallback;
514
+ }
515
+ options = options || {};
516
+ options.otherArgs = options.otherArgs || {};
517
+ options.otherArgs.headers = options.otherArgs.headers || {};
518
+ options.otherArgs.headers['x-goog-request-params'] =
519
+ this._gaxModule.routingHeader.fromParams({
520
+ 'session.name': (_a = request.session.name) !== null && _a !== void 0 ? _a : '',
521
+ });
522
+ this.initialize();
523
+ return this.innerApiCalls.updateSession(request, options, callback);
524
+ }
525
+ getSession(request, optionsOrCallback, callback) {
526
+ var _a;
527
+ request = request || {};
528
+ let options;
529
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
530
+ callback = optionsOrCallback;
531
+ options = {};
532
+ }
533
+ else {
534
+ options = optionsOrCallback;
535
+ }
536
+ options = options || {};
537
+ options.otherArgs = options.otherArgs || {};
538
+ options.otherArgs.headers = options.otherArgs.headers || {};
539
+ options.otherArgs.headers['x-goog-request-params'] =
540
+ this._gaxModule.routingHeader.fromParams({
541
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
542
+ });
543
+ this.initialize();
544
+ return this.innerApiCalls.getSession(request, options, callback);
545
+ }
405
546
  listConversations(request, optionsOrCallback, callback) {
406
547
  var _a;
407
548
  request = request || {};
@@ -538,6 +679,142 @@ class ConversationalSearchServiceClient {
538
679
  this.initialize();
539
680
  return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
540
681
  }
682
+ listSessions(request, optionsOrCallback, callback) {
683
+ var _a;
684
+ request = request || {};
685
+ let options;
686
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
687
+ callback = optionsOrCallback;
688
+ options = {};
689
+ }
690
+ else {
691
+ options = optionsOrCallback;
692
+ }
693
+ options = options || {};
694
+ options.otherArgs = options.otherArgs || {};
695
+ options.otherArgs.headers = options.otherArgs.headers || {};
696
+ options.otherArgs.headers['x-goog-request-params'] =
697
+ this._gaxModule.routingHeader.fromParams({
698
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
699
+ });
700
+ this.initialize();
701
+ return this.innerApiCalls.listSessions(request, options, callback);
702
+ }
703
+ /**
704
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
705
+ * @param {Object} request
706
+ * The request object that will be sent.
707
+ * @param {string} request.parent
708
+ * Required. The data store resource name. Format:
709
+ * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
710
+ * @param {number} request.pageSize
711
+ * Maximum number of results to return. If unspecified, defaults
712
+ * to 50. Max allowed value is 1000.
713
+ * @param {string} request.pageToken
714
+ * A page token, received from a previous `ListSessions` call.
715
+ * Provide this to retrieve the subsequent page.
716
+ * @param {string} request.filter
717
+ * A filter to apply on the list results. The supported features are:
718
+ * user_pseudo_id, state.
719
+ *
720
+ * Example:
721
+ * "user_pseudo_id = some_id"
722
+ * @param {string} request.orderBy
723
+ * A comma-separated list of fields to order by, sorted in ascending order.
724
+ * Use "desc" after a field name for descending.
725
+ * Supported fields:
726
+ * * `update_time`
727
+ * * `create_time`
728
+ * * `session_name`
729
+ *
730
+ * Example:
731
+ * "update_time desc"
732
+ * "create_time"
733
+ * @param {object} [options]
734
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
735
+ * @returns {Stream}
736
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1alpha.Session|Session} on 'data' event.
737
+ * The client library will perform auto-pagination by default: it will call the API as many
738
+ * times as needed. Note that it can affect your quota.
739
+ * We recommend using `listSessionsAsync()`
740
+ * method described below for async iteration which you can stop as needed.
741
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
742
+ * for more details and examples.
743
+ */
744
+ listSessionsStream(request, options) {
745
+ var _a;
746
+ request = request || {};
747
+ options = options || {};
748
+ options.otherArgs = options.otherArgs || {};
749
+ options.otherArgs.headers = options.otherArgs.headers || {};
750
+ options.otherArgs.headers['x-goog-request-params'] =
751
+ this._gaxModule.routingHeader.fromParams({
752
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
753
+ });
754
+ const defaultCallSettings = this._defaults['listSessions'];
755
+ const callSettings = defaultCallSettings.merge(options);
756
+ this.initialize();
757
+ return this.descriptors.page.listSessions.createStream(this.innerApiCalls.listSessions, request, callSettings);
758
+ }
759
+ /**
760
+ * Equivalent to `listSessions`, but returns an iterable object.
761
+ *
762
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
763
+ * @param {Object} request
764
+ * The request object that will be sent.
765
+ * @param {string} request.parent
766
+ * Required. The data store resource name. Format:
767
+ * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
768
+ * @param {number} request.pageSize
769
+ * Maximum number of results to return. If unspecified, defaults
770
+ * to 50. Max allowed value is 1000.
771
+ * @param {string} request.pageToken
772
+ * A page token, received from a previous `ListSessions` call.
773
+ * Provide this to retrieve the subsequent page.
774
+ * @param {string} request.filter
775
+ * A filter to apply on the list results. The supported features are:
776
+ * user_pseudo_id, state.
777
+ *
778
+ * Example:
779
+ * "user_pseudo_id = some_id"
780
+ * @param {string} request.orderBy
781
+ * A comma-separated list of fields to order by, sorted in ascending order.
782
+ * Use "desc" after a field name for descending.
783
+ * Supported fields:
784
+ * * `update_time`
785
+ * * `create_time`
786
+ * * `session_name`
787
+ *
788
+ * Example:
789
+ * "update_time desc"
790
+ * "create_time"
791
+ * @param {object} [options]
792
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
793
+ * @returns {Object}
794
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
795
+ * When you iterate the returned iterable, each element will be an object representing
796
+ * {@link protos.google.cloud.discoveryengine.v1alpha.Session|Session}. The API will be called under the hood as needed, once per the page,
797
+ * so you can stop the iteration when you don't need more results.
798
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
799
+ * for more details and examples.
800
+ * @example <caption>include:samples/generated/v1alpha/conversational_search_service.list_sessions.js</caption>
801
+ * region_tag:discoveryengine_v1alpha_generated_ConversationalSearchService_ListSessions_async
802
+ */
803
+ listSessionsAsync(request, options) {
804
+ var _a;
805
+ request = request || {};
806
+ options = options || {};
807
+ options.otherArgs = options.otherArgs || {};
808
+ options.otherArgs.headers = options.otherArgs.headers || {};
809
+ options.otherArgs.headers['x-goog-request-params'] =
810
+ this._gaxModule.routingHeader.fromParams({
811
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
812
+ });
813
+ const defaultCallSettings = this._defaults['listSessions'];
814
+ const callSettings = defaultCallSettings.merge(options);
815
+ this.initialize();
816
+ return this.descriptors.page.listSessions.asyncIterate(this.innerApiCalls['listSessions'], request, callSettings);
817
+ }
541
818
  /**
542
819
  * Gets information about a location.
543
820
  *
@@ -688,6 +965,27 @@ class ConversationalSearchServiceClient {
688
965
  matchEngineFromEngineName(engineName) {
689
966
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
690
967
  }
968
+ /**
969
+ * Return a fully-qualified project resource name string.
970
+ *
971
+ * @param {string} project
972
+ * @returns {string} Resource name string.
973
+ */
974
+ projectPath(project) {
975
+ return this.pathTemplates.projectPathTemplate.render({
976
+ project: project,
977
+ });
978
+ }
979
+ /**
980
+ * Parse the project from Project resource.
981
+ *
982
+ * @param {string} projectName
983
+ * A fully-qualified path representing Project resource.
984
+ * @returns {string} A string representing the project.
985
+ */
986
+ matchProjectFromProjectName(projectName) {
987
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
988
+ }
691
989
  /**
692
990
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
693
991
  *
@@ -1183,6 +1481,156 @@ class ConversationalSearchServiceClient {
1183
1481
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1184
1482
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1185
1483
  }
1484
+ /**
1485
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1486
+ *
1487
+ * @param {string} project
1488
+ * @param {string} location
1489
+ * @param {string} collection
1490
+ * @param {string} data_store
1491
+ * @param {string} session
1492
+ * @returns {string} Resource name string.
1493
+ */
1494
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1495
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1496
+ project: project,
1497
+ location: location,
1498
+ collection: collection,
1499
+ data_store: dataStore,
1500
+ session: session,
1501
+ });
1502
+ }
1503
+ /**
1504
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1505
+ *
1506
+ * @param {string} projectLocationCollectionDataStoreSessionName
1507
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1508
+ * @returns {string} A string representing the project.
1509
+ */
1510
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1511
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1512
+ }
1513
+ /**
1514
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1515
+ *
1516
+ * @param {string} projectLocationCollectionDataStoreSessionName
1517
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1518
+ * @returns {string} A string representing the location.
1519
+ */
1520
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1521
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1522
+ }
1523
+ /**
1524
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1525
+ *
1526
+ * @param {string} projectLocationCollectionDataStoreSessionName
1527
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1528
+ * @returns {string} A string representing the collection.
1529
+ */
1530
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1531
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1532
+ }
1533
+ /**
1534
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1535
+ *
1536
+ * @param {string} projectLocationCollectionDataStoreSessionName
1537
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1538
+ * @returns {string} A string representing the data_store.
1539
+ */
1540
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1541
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1542
+ }
1543
+ /**
1544
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1545
+ *
1546
+ * @param {string} projectLocationCollectionDataStoreSessionName
1547
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1548
+ * @returns {string} A string representing the session.
1549
+ */
1550
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1551
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1552
+ }
1553
+ /**
1554
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1555
+ *
1556
+ * @param {string} project
1557
+ * @param {string} location
1558
+ * @param {string} collection
1559
+ * @param {string} data_store
1560
+ * @param {string} session
1561
+ * @param {string} answer
1562
+ * @returns {string} Resource name string.
1563
+ */
1564
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1565
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1566
+ project: project,
1567
+ location: location,
1568
+ collection: collection,
1569
+ data_store: dataStore,
1570
+ session: session,
1571
+ answer: answer,
1572
+ });
1573
+ }
1574
+ /**
1575
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1576
+ *
1577
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1578
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1579
+ * @returns {string} A string representing the project.
1580
+ */
1581
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1582
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1583
+ }
1584
+ /**
1585
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1586
+ *
1587
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1588
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1589
+ * @returns {string} A string representing the location.
1590
+ */
1591
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1592
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1593
+ }
1594
+ /**
1595
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1596
+ *
1597
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1598
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1599
+ * @returns {string} A string representing the collection.
1600
+ */
1601
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1602
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1603
+ }
1604
+ /**
1605
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1606
+ *
1607
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1608
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1609
+ * @returns {string} A string representing the data_store.
1610
+ */
1611
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1612
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1613
+ }
1614
+ /**
1615
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1616
+ *
1617
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1618
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1619
+ * @returns {string} A string representing the session.
1620
+ */
1621
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1622
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1623
+ }
1624
+ /**
1625
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1626
+ *
1627
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1628
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1629
+ * @returns {string} A string representing the answer.
1630
+ */
1631
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1632
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1633
+ }
1186
1634
  /**
1187
1635
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1188
1636
  *
@@ -1447,6 +1895,156 @@ class ConversationalSearchServiceClient {
1447
1895
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1448
1896
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1449
1897
  }
1898
+ /**
1899
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1900
+ *
1901
+ * @param {string} project
1902
+ * @param {string} location
1903
+ * @param {string} collection
1904
+ * @param {string} engine
1905
+ * @param {string} session
1906
+ * @returns {string} Resource name string.
1907
+ */
1908
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1909
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1910
+ project: project,
1911
+ location: location,
1912
+ collection: collection,
1913
+ engine: engine,
1914
+ session: session,
1915
+ });
1916
+ }
1917
+ /**
1918
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1919
+ *
1920
+ * @param {string} projectLocationCollectionEngineSessionName
1921
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1922
+ * @returns {string} A string representing the project.
1923
+ */
1924
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1925
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1926
+ }
1927
+ /**
1928
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1929
+ *
1930
+ * @param {string} projectLocationCollectionEngineSessionName
1931
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1932
+ * @returns {string} A string representing the location.
1933
+ */
1934
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1935
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1936
+ }
1937
+ /**
1938
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1939
+ *
1940
+ * @param {string} projectLocationCollectionEngineSessionName
1941
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1942
+ * @returns {string} A string representing the collection.
1943
+ */
1944
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1945
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1946
+ }
1947
+ /**
1948
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1949
+ *
1950
+ * @param {string} projectLocationCollectionEngineSessionName
1951
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1952
+ * @returns {string} A string representing the engine.
1953
+ */
1954
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1955
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1956
+ }
1957
+ /**
1958
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1959
+ *
1960
+ * @param {string} projectLocationCollectionEngineSessionName
1961
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1962
+ * @returns {string} A string representing the session.
1963
+ */
1964
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1965
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1966
+ }
1967
+ /**
1968
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1969
+ *
1970
+ * @param {string} project
1971
+ * @param {string} location
1972
+ * @param {string} collection
1973
+ * @param {string} engine
1974
+ * @param {string} session
1975
+ * @param {string} answer
1976
+ * @returns {string} Resource name string.
1977
+ */
1978
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1979
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1980
+ project: project,
1981
+ location: location,
1982
+ collection: collection,
1983
+ engine: engine,
1984
+ session: session,
1985
+ answer: answer,
1986
+ });
1987
+ }
1988
+ /**
1989
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1990
+ *
1991
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1992
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1993
+ * @returns {string} A string representing the project.
1994
+ */
1995
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1996
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1997
+ }
1998
+ /**
1999
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2000
+ *
2001
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2002
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2003
+ * @returns {string} A string representing the location.
2004
+ */
2005
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2006
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2007
+ }
2008
+ /**
2009
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2010
+ *
2011
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2012
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2013
+ * @returns {string} A string representing the collection.
2014
+ */
2015
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2016
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2017
+ }
2018
+ /**
2019
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2020
+ *
2021
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2022
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2023
+ * @returns {string} A string representing the engine.
2024
+ */
2025
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2026
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2027
+ }
2028
+ /**
2029
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2030
+ *
2031
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2032
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2033
+ * @returns {string} A string representing the session.
2034
+ */
2035
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2036
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2037
+ }
2038
+ /**
2039
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2040
+ *
2041
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2042
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2043
+ * @returns {string} A string representing the answer.
2044
+ */
2045
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2046
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2047
+ }
1450
2048
  /**
1451
2049
  * Return a fully-qualified projectLocationDataStore resource name string.
1452
2050
  *
@@ -1858,6 +2456,132 @@ class ConversationalSearchServiceClient {
1858
2456
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1859
2457
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1860
2458
  }
2459
+ /**
2460
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2461
+ *
2462
+ * @param {string} project
2463
+ * @param {string} location
2464
+ * @param {string} data_store
2465
+ * @param {string} session
2466
+ * @returns {string} Resource name string.
2467
+ */
2468
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2469
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2470
+ project: project,
2471
+ location: location,
2472
+ data_store: dataStore,
2473
+ session: session,
2474
+ });
2475
+ }
2476
+ /**
2477
+ * Parse the project from ProjectLocationDataStoreSession resource.
2478
+ *
2479
+ * @param {string} projectLocationDataStoreSessionName
2480
+ * A fully-qualified path representing project_location_data_store_session resource.
2481
+ * @returns {string} A string representing the project.
2482
+ */
2483
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2484
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2485
+ }
2486
+ /**
2487
+ * Parse the location from ProjectLocationDataStoreSession resource.
2488
+ *
2489
+ * @param {string} projectLocationDataStoreSessionName
2490
+ * A fully-qualified path representing project_location_data_store_session resource.
2491
+ * @returns {string} A string representing the location.
2492
+ */
2493
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2494
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2495
+ }
2496
+ /**
2497
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2498
+ *
2499
+ * @param {string} projectLocationDataStoreSessionName
2500
+ * A fully-qualified path representing project_location_data_store_session resource.
2501
+ * @returns {string} A string representing the data_store.
2502
+ */
2503
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2504
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2505
+ }
2506
+ /**
2507
+ * Parse the session from ProjectLocationDataStoreSession resource.
2508
+ *
2509
+ * @param {string} projectLocationDataStoreSessionName
2510
+ * A fully-qualified path representing project_location_data_store_session resource.
2511
+ * @returns {string} A string representing the session.
2512
+ */
2513
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2514
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2515
+ }
2516
+ /**
2517
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2518
+ *
2519
+ * @param {string} project
2520
+ * @param {string} location
2521
+ * @param {string} data_store
2522
+ * @param {string} session
2523
+ * @param {string} answer
2524
+ * @returns {string} Resource name string.
2525
+ */
2526
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2527
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2528
+ project: project,
2529
+ location: location,
2530
+ data_store: dataStore,
2531
+ session: session,
2532
+ answer: answer,
2533
+ });
2534
+ }
2535
+ /**
2536
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2537
+ *
2538
+ * @param {string} projectLocationDataStoreSessionAnswerName
2539
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2540
+ * @returns {string} A string representing the project.
2541
+ */
2542
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2543
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2544
+ }
2545
+ /**
2546
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2547
+ *
2548
+ * @param {string} projectLocationDataStoreSessionAnswerName
2549
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2550
+ * @returns {string} A string representing the location.
2551
+ */
2552
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2553
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2554
+ }
2555
+ /**
2556
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2557
+ *
2558
+ * @param {string} projectLocationDataStoreSessionAnswerName
2559
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2560
+ * @returns {string} A string representing the data_store.
2561
+ */
2562
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2563
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2564
+ }
2565
+ /**
2566
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2567
+ *
2568
+ * @param {string} projectLocationDataStoreSessionAnswerName
2569
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2570
+ * @returns {string} A string representing the session.
2571
+ */
2572
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2573
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2574
+ }
2575
+ /**
2576
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2577
+ *
2578
+ * @param {string} projectLocationDataStoreSessionAnswerName
2579
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2580
+ * @returns {string} A string representing the answer.
2581
+ */
2582
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2583
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2584
+ }
1861
2585
  /**
1862
2586
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1863
2587
  *