@google-cloud/discoveryengine 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/CHANGELOG.md +14 -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 +6 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +1 -1
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +2 -2
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +7 -39
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +21 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +7 -3
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +4 -1
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +1 -1
  30. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +30 -1
  32. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +559 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +3 -6
  34. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +6 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +2 -2
  36. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +93 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
  39. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +283 -24
  40. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
  41. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +142 -22
  42. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +7 -1
  43. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +1 -1
  45. package/build/protos/protos.d.ts +41126 -24558
  46. package/build/protos/protos.js +134286 -93661
  47. package/build/protos/protos.json +7598 -3744
  48. package/build/src/index.d.ts +4 -1
  49. package/build/src/index.js +4 -1
  50. package/build/src/v1/conversational_search_service_client.d.ts +4 -0
  51. package/build/src/v1/document_service_client.d.ts +47 -19
  52. package/build/src/v1/index.d.ts +1 -0
  53. package/build/src/v1/index.js +3 -1
  54. package/build/src/v1/recommendation_service_client.d.ts +1087 -0
  55. package/build/src/v1/recommendation_service_client.js +1432 -0
  56. package/build/src/v1/recommendation_service_client_config.json +43 -0
  57. package/build/src/v1/search_service_client.d.ts +27 -9
  58. package/build/src/v1/search_service_client.js +18 -6
  59. package/build/src/v1/search_service_client_config.json +5 -5
  60. package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
  61. package/build/src/v1alpha/acl_config_service_client.js +454 -0
  62. package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
  63. package/build/src/v1alpha/chunk_service_client.js +454 -0
  64. package/build/src/v1alpha/completion_service_client.d.ts +330 -0
  65. package/build/src/v1alpha/completion_service_client.js +454 -0
  66. package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
  67. package/build/src/v1alpha/conversational_search_service_client.js +724 -0
  68. package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
  69. package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
  70. package/build/src/v1alpha/data_store_service_client.js +454 -0
  71. package/build/src/v1alpha/document_service_client.d.ts +330 -0
  72. package/build/src/v1alpha/document_service_client.js +454 -0
  73. package/build/src/v1alpha/engine_service_client.d.ts +330 -0
  74. package/build/src/v1alpha/engine_service_client.js +454 -0
  75. package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
  76. package/build/src/v1alpha/estimate_billing_service_client.js +454 -0
  77. package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
  78. package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
  79. package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
  80. package/build/src/v1alpha/index.d.ts +2 -0
  81. package/build/src/v1alpha/index.js +5 -1
  82. package/build/src/v1alpha/project_service_client.d.ts +1756 -0
  83. package/build/src/v1alpha/project_service_client.js +2500 -0
  84. package/build/src/v1alpha/project_service_client_config.json +38 -0
  85. package/build/src/v1alpha/rank_service_client.d.ts +330 -0
  86. package/build/src/v1alpha/rank_service_client.js +454 -0
  87. package/build/src/v1alpha/rank_service_client_config.json +15 -2
  88. package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
  89. package/build/src/v1alpha/recommendation_service_client.js +454 -0
  90. package/build/src/v1alpha/schema_service_client.d.ts +330 -0
  91. package/build/src/v1alpha/schema_service_client.js +454 -0
  92. package/build/src/v1alpha/search_service_client.d.ts +330 -0
  93. package/build/src/v1alpha/search_service_client.js +454 -0
  94. package/build/src/v1alpha/search_service_client_config.json +5 -5
  95. package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
  96. package/build/src/v1alpha/search_tuning_service_client.js +454 -0
  97. package/build/src/v1alpha/serving_config_service_client.d.ts +315 -0
  98. package/build/src/v1alpha/serving_config_service_client.js +432 -0
  99. package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
  100. package/build/src/v1alpha/site_search_engine_service_client.js +454 -0
  101. package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
  102. package/build/src/v1alpha/user_event_service_client.js +454 -0
  103. package/build/src/v1beta/completion_service_client.d.ts +315 -0
  104. package/build/src/v1beta/completion_service_client.js +432 -0
  105. package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
  106. package/build/src/v1beta/conversational_search_service_client.js +702 -0
  107. package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
  108. package/build/src/v1beta/data_store_service_client.d.ts +315 -0
  109. package/build/src/v1beta/data_store_service_client.js +432 -0
  110. package/build/src/v1beta/document_service_client.d.ts +361 -21
  111. package/build/src/v1beta/document_service_client.js +432 -0
  112. package/build/src/v1beta/engine_service_client.d.ts +410 -0
  113. package/build/src/v1beta/engine_service_client.js +518 -0
  114. package/build/src/v1beta/engine_service_client_config.json +12 -0
  115. package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
  116. package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
  117. package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
  118. package/build/src/v1beta/index.d.ts +2 -0
  119. package/build/src/v1beta/index.js +5 -1
  120. package/build/src/v1beta/rank_service_client.d.ts +1416 -0
  121. package/build/src/v1beta/rank_service_client.js +2015 -0
  122. package/build/src/v1beta/rank_service_client_config.json +43 -0
  123. package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
  124. package/build/src/v1beta/recommendation_service_client.js +432 -0
  125. package/build/src/v1beta/schema_service_client.d.ts +315 -0
  126. package/build/src/v1beta/schema_service_client.js +432 -0
  127. package/build/src/v1beta/search_service_client.d.ts +342 -12
  128. package/build/src/v1beta/search_service_client.js +450 -8
  129. package/build/src/v1beta/search_service_client_config.json +5 -5
  130. package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
  131. package/build/src/v1beta/search_tuning_service_client.js +432 -0
  132. package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
  133. package/build/src/v1beta/serving_config_service_client.js +432 -0
  134. package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
  135. package/build/src/v1beta/site_search_engine_service_client.js +432 -0
  136. package/build/src/v1beta/user_event_service_client.d.ts +315 -0
  137. package/build/src/v1beta/user_event_service_client.js +432 -0
  138. package/package.json +1 -1
@@ -153,6 +153,7 @@ class DataStoreServiceClient {
153
153
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
154
154
  collectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}'),
155
155
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
156
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
156
157
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
157
158
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
158
159
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -160,10 +161,14 @@ class DataStoreServiceClient {
160
161
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
161
162
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
162
163
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
164
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
165
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
163
166
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
164
167
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
165
168
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
166
169
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
170
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
171
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
167
172
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
168
173
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
169
174
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -171,6 +176,8 @@ class DataStoreServiceClient {
171
176
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
172
177
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
173
178
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
179
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
180
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
174
181
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
175
182
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
176
183
  };
@@ -1038,6 +1045,27 @@ class DataStoreServiceClient {
1038
1045
  matchEngineFromEngineName(engineName) {
1039
1046
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1040
1047
  }
1048
+ /**
1049
+ * Return a fully-qualified project resource name string.
1050
+ *
1051
+ * @param {string} project
1052
+ * @returns {string} Resource name string.
1053
+ */
1054
+ projectPath(project) {
1055
+ return this.pathTemplates.projectPathTemplate.render({
1056
+ project: project,
1057
+ });
1058
+ }
1059
+ /**
1060
+ * Parse the project from Project resource.
1061
+ *
1062
+ * @param {string} projectName
1063
+ * A fully-qualified path representing Project resource.
1064
+ * @returns {string} A string representing the project.
1065
+ */
1066
+ matchProjectFromProjectName(projectName) {
1067
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
1068
+ }
1041
1069
  /**
1042
1070
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1043
1071
  *
@@ -1533,6 +1561,156 @@ class DataStoreServiceClient {
1533
1561
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1534
1562
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1535
1563
  }
1564
+ /**
1565
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1566
+ *
1567
+ * @param {string} project
1568
+ * @param {string} location
1569
+ * @param {string} collection
1570
+ * @param {string} data_store
1571
+ * @param {string} session
1572
+ * @returns {string} Resource name string.
1573
+ */
1574
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1575
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1576
+ project: project,
1577
+ location: location,
1578
+ collection: collection,
1579
+ data_store: dataStore,
1580
+ session: session,
1581
+ });
1582
+ }
1583
+ /**
1584
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1585
+ *
1586
+ * @param {string} projectLocationCollectionDataStoreSessionName
1587
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1588
+ * @returns {string} A string representing the project.
1589
+ */
1590
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1591
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1592
+ }
1593
+ /**
1594
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1595
+ *
1596
+ * @param {string} projectLocationCollectionDataStoreSessionName
1597
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1598
+ * @returns {string} A string representing the location.
1599
+ */
1600
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1601
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1602
+ }
1603
+ /**
1604
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1605
+ *
1606
+ * @param {string} projectLocationCollectionDataStoreSessionName
1607
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1608
+ * @returns {string} A string representing the collection.
1609
+ */
1610
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1611
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1612
+ }
1613
+ /**
1614
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1615
+ *
1616
+ * @param {string} projectLocationCollectionDataStoreSessionName
1617
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1618
+ * @returns {string} A string representing the data_store.
1619
+ */
1620
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1621
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1622
+ }
1623
+ /**
1624
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1625
+ *
1626
+ * @param {string} projectLocationCollectionDataStoreSessionName
1627
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1628
+ * @returns {string} A string representing the session.
1629
+ */
1630
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1631
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1632
+ }
1633
+ /**
1634
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1635
+ *
1636
+ * @param {string} project
1637
+ * @param {string} location
1638
+ * @param {string} collection
1639
+ * @param {string} data_store
1640
+ * @param {string} session
1641
+ * @param {string} answer
1642
+ * @returns {string} Resource name string.
1643
+ */
1644
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1645
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1646
+ project: project,
1647
+ location: location,
1648
+ collection: collection,
1649
+ data_store: dataStore,
1650
+ session: session,
1651
+ answer: answer,
1652
+ });
1653
+ }
1654
+ /**
1655
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1656
+ *
1657
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1658
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1659
+ * @returns {string} A string representing the project.
1660
+ */
1661
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1662
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1663
+ }
1664
+ /**
1665
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1666
+ *
1667
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1668
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1669
+ * @returns {string} A string representing the location.
1670
+ */
1671
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1672
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1673
+ }
1674
+ /**
1675
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1676
+ *
1677
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1678
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1679
+ * @returns {string} A string representing the collection.
1680
+ */
1681
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1682
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1683
+ }
1684
+ /**
1685
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1686
+ *
1687
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1688
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1689
+ * @returns {string} A string representing the data_store.
1690
+ */
1691
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1692
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1693
+ }
1694
+ /**
1695
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1696
+ *
1697
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1698
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1699
+ * @returns {string} A string representing the session.
1700
+ */
1701
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1702
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1703
+ }
1704
+ /**
1705
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1706
+ *
1707
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1708
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1709
+ * @returns {string} A string representing the answer.
1710
+ */
1711
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1712
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1713
+ }
1536
1714
  /**
1537
1715
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1538
1716
  *
@@ -1797,6 +1975,156 @@ class DataStoreServiceClient {
1797
1975
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1798
1976
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1799
1977
  }
1978
+ /**
1979
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1980
+ *
1981
+ * @param {string} project
1982
+ * @param {string} location
1983
+ * @param {string} collection
1984
+ * @param {string} engine
1985
+ * @param {string} session
1986
+ * @returns {string} Resource name string.
1987
+ */
1988
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1989
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1990
+ project: project,
1991
+ location: location,
1992
+ collection: collection,
1993
+ engine: engine,
1994
+ session: session,
1995
+ });
1996
+ }
1997
+ /**
1998
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1999
+ *
2000
+ * @param {string} projectLocationCollectionEngineSessionName
2001
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2002
+ * @returns {string} A string representing the project.
2003
+ */
2004
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2005
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2006
+ }
2007
+ /**
2008
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
2009
+ *
2010
+ * @param {string} projectLocationCollectionEngineSessionName
2011
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2012
+ * @returns {string} A string representing the location.
2013
+ */
2014
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2015
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2016
+ }
2017
+ /**
2018
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
2019
+ *
2020
+ * @param {string} projectLocationCollectionEngineSessionName
2021
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2022
+ * @returns {string} A string representing the collection.
2023
+ */
2024
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2025
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2026
+ }
2027
+ /**
2028
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
2029
+ *
2030
+ * @param {string} projectLocationCollectionEngineSessionName
2031
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2032
+ * @returns {string} A string representing the engine.
2033
+ */
2034
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2035
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2036
+ }
2037
+ /**
2038
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
2039
+ *
2040
+ * @param {string} projectLocationCollectionEngineSessionName
2041
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2042
+ * @returns {string} A string representing the session.
2043
+ */
2044
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2045
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2046
+ }
2047
+ /**
2048
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2049
+ *
2050
+ * @param {string} project
2051
+ * @param {string} location
2052
+ * @param {string} collection
2053
+ * @param {string} engine
2054
+ * @param {string} session
2055
+ * @param {string} answer
2056
+ * @returns {string} Resource name string.
2057
+ */
2058
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2059
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2060
+ project: project,
2061
+ location: location,
2062
+ collection: collection,
2063
+ engine: engine,
2064
+ session: session,
2065
+ answer: answer,
2066
+ });
2067
+ }
2068
+ /**
2069
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2070
+ *
2071
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2072
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2073
+ * @returns {string} A string representing the project.
2074
+ */
2075
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2076
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2077
+ }
2078
+ /**
2079
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2080
+ *
2081
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2082
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2083
+ * @returns {string} A string representing the location.
2084
+ */
2085
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2086
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2087
+ }
2088
+ /**
2089
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2090
+ *
2091
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2092
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2093
+ * @returns {string} A string representing the collection.
2094
+ */
2095
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2096
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2097
+ }
2098
+ /**
2099
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2100
+ *
2101
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2102
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2103
+ * @returns {string} A string representing the engine.
2104
+ */
2105
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2106
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2107
+ }
2108
+ /**
2109
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2110
+ *
2111
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2112
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2113
+ * @returns {string} A string representing the session.
2114
+ */
2115
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2116
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2117
+ }
2118
+ /**
2119
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2120
+ *
2121
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2122
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2123
+ * @returns {string} A string representing the answer.
2124
+ */
2125
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2126
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2127
+ }
1800
2128
  /**
1801
2129
  * Return a fully-qualified projectLocationDataStore resource name string.
1802
2130
  *
@@ -2208,6 +2536,132 @@ class DataStoreServiceClient {
2208
2536
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2209
2537
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2210
2538
  }
2539
+ /**
2540
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2541
+ *
2542
+ * @param {string} project
2543
+ * @param {string} location
2544
+ * @param {string} data_store
2545
+ * @param {string} session
2546
+ * @returns {string} Resource name string.
2547
+ */
2548
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2549
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2550
+ project: project,
2551
+ location: location,
2552
+ data_store: dataStore,
2553
+ session: session,
2554
+ });
2555
+ }
2556
+ /**
2557
+ * Parse the project from ProjectLocationDataStoreSession resource.
2558
+ *
2559
+ * @param {string} projectLocationDataStoreSessionName
2560
+ * A fully-qualified path representing project_location_data_store_session resource.
2561
+ * @returns {string} A string representing the project.
2562
+ */
2563
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2564
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2565
+ }
2566
+ /**
2567
+ * Parse the location from ProjectLocationDataStoreSession resource.
2568
+ *
2569
+ * @param {string} projectLocationDataStoreSessionName
2570
+ * A fully-qualified path representing project_location_data_store_session resource.
2571
+ * @returns {string} A string representing the location.
2572
+ */
2573
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2574
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2575
+ }
2576
+ /**
2577
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2578
+ *
2579
+ * @param {string} projectLocationDataStoreSessionName
2580
+ * A fully-qualified path representing project_location_data_store_session resource.
2581
+ * @returns {string} A string representing the data_store.
2582
+ */
2583
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2584
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2585
+ }
2586
+ /**
2587
+ * Parse the session from ProjectLocationDataStoreSession resource.
2588
+ *
2589
+ * @param {string} projectLocationDataStoreSessionName
2590
+ * A fully-qualified path representing project_location_data_store_session resource.
2591
+ * @returns {string} A string representing the session.
2592
+ */
2593
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2594
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2595
+ }
2596
+ /**
2597
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2598
+ *
2599
+ * @param {string} project
2600
+ * @param {string} location
2601
+ * @param {string} data_store
2602
+ * @param {string} session
2603
+ * @param {string} answer
2604
+ * @returns {string} Resource name string.
2605
+ */
2606
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2607
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2608
+ project: project,
2609
+ location: location,
2610
+ data_store: dataStore,
2611
+ session: session,
2612
+ answer: answer,
2613
+ });
2614
+ }
2615
+ /**
2616
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2617
+ *
2618
+ * @param {string} projectLocationDataStoreSessionAnswerName
2619
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2620
+ * @returns {string} A string representing the project.
2621
+ */
2622
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2623
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2624
+ }
2625
+ /**
2626
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2627
+ *
2628
+ * @param {string} projectLocationDataStoreSessionAnswerName
2629
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2630
+ * @returns {string} A string representing the location.
2631
+ */
2632
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2633
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2634
+ }
2635
+ /**
2636
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2637
+ *
2638
+ * @param {string} projectLocationDataStoreSessionAnswerName
2639
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2640
+ * @returns {string} A string representing the data_store.
2641
+ */
2642
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2643
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2644
+ }
2645
+ /**
2646
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2647
+ *
2648
+ * @param {string} projectLocationDataStoreSessionAnswerName
2649
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2650
+ * @returns {string} A string representing the session.
2651
+ */
2652
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2653
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2654
+ }
2655
+ /**
2656
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2657
+ *
2658
+ * @param {string} projectLocationDataStoreSessionAnswerName
2659
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2660
+ * @returns {string} A string representing the answer.
2661
+ */
2662
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2663
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2664
+ }
2211
2665
  /**
2212
2666
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2213
2667
  *