@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
@@ -159,10 +159,14 @@ class DocumentServiceClient {
159
159
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
160
160
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
161
161
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
162
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
163
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
162
164
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
163
165
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
164
166
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
165
167
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
168
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
169
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
166
170
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
167
171
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
168
172
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -170,6 +174,8 @@ class DocumentServiceClient {
170
174
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
171
175
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
172
176
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
177
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
178
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
173
179
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
174
180
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
175
181
  };
@@ -1418,6 +1424,156 @@ class DocumentServiceClient {
1418
1424
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1419
1425
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1420
1426
  }
1427
+ /**
1428
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1429
+ *
1430
+ * @param {string} project
1431
+ * @param {string} location
1432
+ * @param {string} collection
1433
+ * @param {string} data_store
1434
+ * @param {string} session
1435
+ * @returns {string} Resource name string.
1436
+ */
1437
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1438
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1439
+ project: project,
1440
+ location: location,
1441
+ collection: collection,
1442
+ data_store: dataStore,
1443
+ session: session,
1444
+ });
1445
+ }
1446
+ /**
1447
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1448
+ *
1449
+ * @param {string} projectLocationCollectionDataStoreSessionName
1450
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1451
+ * @returns {string} A string representing the project.
1452
+ */
1453
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1454
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1455
+ }
1456
+ /**
1457
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1458
+ *
1459
+ * @param {string} projectLocationCollectionDataStoreSessionName
1460
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1461
+ * @returns {string} A string representing the location.
1462
+ */
1463
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1464
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1465
+ }
1466
+ /**
1467
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1468
+ *
1469
+ * @param {string} projectLocationCollectionDataStoreSessionName
1470
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1471
+ * @returns {string} A string representing the collection.
1472
+ */
1473
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1474
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1475
+ }
1476
+ /**
1477
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1478
+ *
1479
+ * @param {string} projectLocationCollectionDataStoreSessionName
1480
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1481
+ * @returns {string} A string representing the data_store.
1482
+ */
1483
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1484
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1485
+ }
1486
+ /**
1487
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1488
+ *
1489
+ * @param {string} projectLocationCollectionDataStoreSessionName
1490
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1491
+ * @returns {string} A string representing the session.
1492
+ */
1493
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1494
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1495
+ }
1496
+ /**
1497
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1498
+ *
1499
+ * @param {string} project
1500
+ * @param {string} location
1501
+ * @param {string} collection
1502
+ * @param {string} data_store
1503
+ * @param {string} session
1504
+ * @param {string} answer
1505
+ * @returns {string} Resource name string.
1506
+ */
1507
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1508
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1509
+ project: project,
1510
+ location: location,
1511
+ collection: collection,
1512
+ data_store: dataStore,
1513
+ session: session,
1514
+ answer: answer,
1515
+ });
1516
+ }
1517
+ /**
1518
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1519
+ *
1520
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1521
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1522
+ * @returns {string} A string representing the project.
1523
+ */
1524
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1525
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1526
+ }
1527
+ /**
1528
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1529
+ *
1530
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1531
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1532
+ * @returns {string} A string representing the location.
1533
+ */
1534
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1535
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1536
+ }
1537
+ /**
1538
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1539
+ *
1540
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1541
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1542
+ * @returns {string} A string representing the collection.
1543
+ */
1544
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1545
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1546
+ }
1547
+ /**
1548
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1549
+ *
1550
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1551
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1552
+ * @returns {string} A string representing the data_store.
1553
+ */
1554
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1555
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1556
+ }
1557
+ /**
1558
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1559
+ *
1560
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1561
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1562
+ * @returns {string} A string representing the session.
1563
+ */
1564
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1565
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1566
+ }
1567
+ /**
1568
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1569
+ *
1570
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1571
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1572
+ * @returns {string} A string representing the answer.
1573
+ */
1574
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1575
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1576
+ }
1421
1577
  /**
1422
1578
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1423
1579
  *
@@ -1682,6 +1838,156 @@ class DocumentServiceClient {
1682
1838
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1683
1839
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1684
1840
  }
1841
+ /**
1842
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1843
+ *
1844
+ * @param {string} project
1845
+ * @param {string} location
1846
+ * @param {string} collection
1847
+ * @param {string} engine
1848
+ * @param {string} session
1849
+ * @returns {string} Resource name string.
1850
+ */
1851
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1852
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1853
+ project: project,
1854
+ location: location,
1855
+ collection: collection,
1856
+ engine: engine,
1857
+ session: session,
1858
+ });
1859
+ }
1860
+ /**
1861
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1862
+ *
1863
+ * @param {string} projectLocationCollectionEngineSessionName
1864
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1865
+ * @returns {string} A string representing the project.
1866
+ */
1867
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1868
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1869
+ }
1870
+ /**
1871
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1872
+ *
1873
+ * @param {string} projectLocationCollectionEngineSessionName
1874
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1875
+ * @returns {string} A string representing the location.
1876
+ */
1877
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1878
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1879
+ }
1880
+ /**
1881
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1882
+ *
1883
+ * @param {string} projectLocationCollectionEngineSessionName
1884
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1885
+ * @returns {string} A string representing the collection.
1886
+ */
1887
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1888
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1889
+ }
1890
+ /**
1891
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1892
+ *
1893
+ * @param {string} projectLocationCollectionEngineSessionName
1894
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1895
+ * @returns {string} A string representing the engine.
1896
+ */
1897
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1898
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1899
+ }
1900
+ /**
1901
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1902
+ *
1903
+ * @param {string} projectLocationCollectionEngineSessionName
1904
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1905
+ * @returns {string} A string representing the session.
1906
+ */
1907
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1908
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1909
+ }
1910
+ /**
1911
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1912
+ *
1913
+ * @param {string} project
1914
+ * @param {string} location
1915
+ * @param {string} collection
1916
+ * @param {string} engine
1917
+ * @param {string} session
1918
+ * @param {string} answer
1919
+ * @returns {string} Resource name string.
1920
+ */
1921
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1922
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1923
+ project: project,
1924
+ location: location,
1925
+ collection: collection,
1926
+ engine: engine,
1927
+ session: session,
1928
+ answer: answer,
1929
+ });
1930
+ }
1931
+ /**
1932
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1933
+ *
1934
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1935
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1936
+ * @returns {string} A string representing the project.
1937
+ */
1938
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1939
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1940
+ }
1941
+ /**
1942
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1943
+ *
1944
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1945
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1946
+ * @returns {string} A string representing the location.
1947
+ */
1948
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1949
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1950
+ }
1951
+ /**
1952
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1953
+ *
1954
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1955
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1956
+ * @returns {string} A string representing the collection.
1957
+ */
1958
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1959
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1960
+ }
1961
+ /**
1962
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1963
+ *
1964
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1965
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1966
+ * @returns {string} A string representing the engine.
1967
+ */
1968
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1969
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1970
+ }
1971
+ /**
1972
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1973
+ *
1974
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1975
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1976
+ * @returns {string} A string representing the session.
1977
+ */
1978
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1979
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1980
+ }
1981
+ /**
1982
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1983
+ *
1984
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1985
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1986
+ * @returns {string} A string representing the answer.
1987
+ */
1988
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1989
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1990
+ }
1685
1991
  /**
1686
1992
  * Return a fully-qualified projectLocationDataStore resource name string.
1687
1993
  *
@@ -2069,6 +2375,132 @@ class DocumentServiceClient {
2069
2375
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2070
2376
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2071
2377
  }
2378
+ /**
2379
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2380
+ *
2381
+ * @param {string} project
2382
+ * @param {string} location
2383
+ * @param {string} data_store
2384
+ * @param {string} session
2385
+ * @returns {string} Resource name string.
2386
+ */
2387
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2388
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2389
+ project: project,
2390
+ location: location,
2391
+ data_store: dataStore,
2392
+ session: session,
2393
+ });
2394
+ }
2395
+ /**
2396
+ * Parse the project from ProjectLocationDataStoreSession resource.
2397
+ *
2398
+ * @param {string} projectLocationDataStoreSessionName
2399
+ * A fully-qualified path representing project_location_data_store_session resource.
2400
+ * @returns {string} A string representing the project.
2401
+ */
2402
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2403
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2404
+ }
2405
+ /**
2406
+ * Parse the location from ProjectLocationDataStoreSession resource.
2407
+ *
2408
+ * @param {string} projectLocationDataStoreSessionName
2409
+ * A fully-qualified path representing project_location_data_store_session resource.
2410
+ * @returns {string} A string representing the location.
2411
+ */
2412
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2413
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2414
+ }
2415
+ /**
2416
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2417
+ *
2418
+ * @param {string} projectLocationDataStoreSessionName
2419
+ * A fully-qualified path representing project_location_data_store_session resource.
2420
+ * @returns {string} A string representing the data_store.
2421
+ */
2422
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2423
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2424
+ }
2425
+ /**
2426
+ * Parse the session from ProjectLocationDataStoreSession resource.
2427
+ *
2428
+ * @param {string} projectLocationDataStoreSessionName
2429
+ * A fully-qualified path representing project_location_data_store_session resource.
2430
+ * @returns {string} A string representing the session.
2431
+ */
2432
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2433
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2434
+ }
2435
+ /**
2436
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2437
+ *
2438
+ * @param {string} project
2439
+ * @param {string} location
2440
+ * @param {string} data_store
2441
+ * @param {string} session
2442
+ * @param {string} answer
2443
+ * @returns {string} Resource name string.
2444
+ */
2445
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2446
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2447
+ project: project,
2448
+ location: location,
2449
+ data_store: dataStore,
2450
+ session: session,
2451
+ answer: answer,
2452
+ });
2453
+ }
2454
+ /**
2455
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2456
+ *
2457
+ * @param {string} projectLocationDataStoreSessionAnswerName
2458
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2459
+ * @returns {string} A string representing the project.
2460
+ */
2461
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2462
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2463
+ }
2464
+ /**
2465
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2466
+ *
2467
+ * @param {string} projectLocationDataStoreSessionAnswerName
2468
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2469
+ * @returns {string} A string representing the location.
2470
+ */
2471
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2472
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2473
+ }
2474
+ /**
2475
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2476
+ *
2477
+ * @param {string} projectLocationDataStoreSessionAnswerName
2478
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2479
+ * @returns {string} A string representing the data_store.
2480
+ */
2481
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2482
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2483
+ }
2484
+ /**
2485
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2486
+ *
2487
+ * @param {string} projectLocationDataStoreSessionAnswerName
2488
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2489
+ * @returns {string} A string representing the session.
2490
+ */
2491
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2492
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2493
+ }
2494
+ /**
2495
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2496
+ *
2497
+ * @param {string} projectLocationDataStoreSessionAnswerName
2498
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2499
+ * @returns {string} A string representing the answer.
2500
+ */
2501
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2502
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2503
+ }
2072
2504
  /**
2073
2505
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2074
2506
  *