@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
@@ -153,6 +153,7 @@ class EngineServiceClient {
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 EngineServiceClient {
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 EngineServiceClient {
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
  };
@@ -228,6 +235,9 @@ class EngineServiceClient {
228
235
  {
229
236
  get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
230
237
  },
238
+ {
239
+ get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
240
+ },
231
241
  { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
232
242
  { get: '/v1alpha/{name=projects/*/operations/*}' },
233
243
  ],
@@ -1039,6 +1049,27 @@ class EngineServiceClient {
1039
1049
  matchEngineFromEngineName(engineName) {
1040
1050
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1041
1051
  }
1052
+ /**
1053
+ * Return a fully-qualified project resource name string.
1054
+ *
1055
+ * @param {string} project
1056
+ * @returns {string} Resource name string.
1057
+ */
1058
+ projectPath(project) {
1059
+ return this.pathTemplates.projectPathTemplate.render({
1060
+ project: project,
1061
+ });
1062
+ }
1063
+ /**
1064
+ * Parse the project from Project resource.
1065
+ *
1066
+ * @param {string} projectName
1067
+ * A fully-qualified path representing Project resource.
1068
+ * @returns {string} A string representing the project.
1069
+ */
1070
+ matchProjectFromProjectName(projectName) {
1071
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
1072
+ }
1042
1073
  /**
1043
1074
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1044
1075
  *
@@ -1534,6 +1565,156 @@ class EngineServiceClient {
1534
1565
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1535
1566
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1536
1567
  }
1568
+ /**
1569
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1570
+ *
1571
+ * @param {string} project
1572
+ * @param {string} location
1573
+ * @param {string} collection
1574
+ * @param {string} data_store
1575
+ * @param {string} session
1576
+ * @returns {string} Resource name string.
1577
+ */
1578
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1579
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1580
+ project: project,
1581
+ location: location,
1582
+ collection: collection,
1583
+ data_store: dataStore,
1584
+ session: session,
1585
+ });
1586
+ }
1587
+ /**
1588
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1589
+ *
1590
+ * @param {string} projectLocationCollectionDataStoreSessionName
1591
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1592
+ * @returns {string} A string representing the project.
1593
+ */
1594
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1595
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1596
+ }
1597
+ /**
1598
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1599
+ *
1600
+ * @param {string} projectLocationCollectionDataStoreSessionName
1601
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1602
+ * @returns {string} A string representing the location.
1603
+ */
1604
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1605
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1606
+ }
1607
+ /**
1608
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1609
+ *
1610
+ * @param {string} projectLocationCollectionDataStoreSessionName
1611
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1612
+ * @returns {string} A string representing the collection.
1613
+ */
1614
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1615
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1616
+ }
1617
+ /**
1618
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1619
+ *
1620
+ * @param {string} projectLocationCollectionDataStoreSessionName
1621
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1622
+ * @returns {string} A string representing the data_store.
1623
+ */
1624
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1625
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1626
+ }
1627
+ /**
1628
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1629
+ *
1630
+ * @param {string} projectLocationCollectionDataStoreSessionName
1631
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1632
+ * @returns {string} A string representing the session.
1633
+ */
1634
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1635
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1636
+ }
1637
+ /**
1638
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1639
+ *
1640
+ * @param {string} project
1641
+ * @param {string} location
1642
+ * @param {string} collection
1643
+ * @param {string} data_store
1644
+ * @param {string} session
1645
+ * @param {string} answer
1646
+ * @returns {string} Resource name string.
1647
+ */
1648
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1649
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1650
+ project: project,
1651
+ location: location,
1652
+ collection: collection,
1653
+ data_store: dataStore,
1654
+ session: session,
1655
+ answer: answer,
1656
+ });
1657
+ }
1658
+ /**
1659
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1660
+ *
1661
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1662
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1663
+ * @returns {string} A string representing the project.
1664
+ */
1665
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1666
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1667
+ }
1668
+ /**
1669
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1670
+ *
1671
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1672
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1673
+ * @returns {string} A string representing the location.
1674
+ */
1675
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1676
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1677
+ }
1678
+ /**
1679
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1680
+ *
1681
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1682
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1683
+ * @returns {string} A string representing the collection.
1684
+ */
1685
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1686
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1687
+ }
1688
+ /**
1689
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1690
+ *
1691
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1692
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1693
+ * @returns {string} A string representing the data_store.
1694
+ */
1695
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1696
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1697
+ }
1698
+ /**
1699
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1700
+ *
1701
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1702
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1703
+ * @returns {string} A string representing the session.
1704
+ */
1705
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1706
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1707
+ }
1708
+ /**
1709
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1710
+ *
1711
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1712
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1713
+ * @returns {string} A string representing the answer.
1714
+ */
1715
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1716
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1717
+ }
1537
1718
  /**
1538
1719
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1539
1720
  *
@@ -1798,6 +1979,156 @@ class EngineServiceClient {
1798
1979
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1799
1980
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1800
1981
  }
1982
+ /**
1983
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1984
+ *
1985
+ * @param {string} project
1986
+ * @param {string} location
1987
+ * @param {string} collection
1988
+ * @param {string} engine
1989
+ * @param {string} session
1990
+ * @returns {string} Resource name string.
1991
+ */
1992
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1993
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1994
+ project: project,
1995
+ location: location,
1996
+ collection: collection,
1997
+ engine: engine,
1998
+ session: session,
1999
+ });
2000
+ }
2001
+ /**
2002
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
2003
+ *
2004
+ * @param {string} projectLocationCollectionEngineSessionName
2005
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2006
+ * @returns {string} A string representing the project.
2007
+ */
2008
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2009
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2010
+ }
2011
+ /**
2012
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
2013
+ *
2014
+ * @param {string} projectLocationCollectionEngineSessionName
2015
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2016
+ * @returns {string} A string representing the location.
2017
+ */
2018
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2019
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2020
+ }
2021
+ /**
2022
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
2023
+ *
2024
+ * @param {string} projectLocationCollectionEngineSessionName
2025
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2026
+ * @returns {string} A string representing the collection.
2027
+ */
2028
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2029
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2030
+ }
2031
+ /**
2032
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
2033
+ *
2034
+ * @param {string} projectLocationCollectionEngineSessionName
2035
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2036
+ * @returns {string} A string representing the engine.
2037
+ */
2038
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2039
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2040
+ }
2041
+ /**
2042
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
2043
+ *
2044
+ * @param {string} projectLocationCollectionEngineSessionName
2045
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2046
+ * @returns {string} A string representing the session.
2047
+ */
2048
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2049
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2050
+ }
2051
+ /**
2052
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2053
+ *
2054
+ * @param {string} project
2055
+ * @param {string} location
2056
+ * @param {string} collection
2057
+ * @param {string} engine
2058
+ * @param {string} session
2059
+ * @param {string} answer
2060
+ * @returns {string} Resource name string.
2061
+ */
2062
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2063
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2064
+ project: project,
2065
+ location: location,
2066
+ collection: collection,
2067
+ engine: engine,
2068
+ session: session,
2069
+ answer: answer,
2070
+ });
2071
+ }
2072
+ /**
2073
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2074
+ *
2075
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2076
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2077
+ * @returns {string} A string representing the project.
2078
+ */
2079
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2080
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2081
+ }
2082
+ /**
2083
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2084
+ *
2085
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2086
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2087
+ * @returns {string} A string representing the location.
2088
+ */
2089
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2090
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2091
+ }
2092
+ /**
2093
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2094
+ *
2095
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2096
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2097
+ * @returns {string} A string representing the collection.
2098
+ */
2099
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2100
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2101
+ }
2102
+ /**
2103
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2104
+ *
2105
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2106
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2107
+ * @returns {string} A string representing the engine.
2108
+ */
2109
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2110
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2111
+ }
2112
+ /**
2113
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2114
+ *
2115
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2116
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2117
+ * @returns {string} A string representing the session.
2118
+ */
2119
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2120
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2121
+ }
2122
+ /**
2123
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2124
+ *
2125
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2126
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2127
+ * @returns {string} A string representing the answer.
2128
+ */
2129
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2130
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2131
+ }
1801
2132
  /**
1802
2133
  * Return a fully-qualified projectLocationDataStore resource name string.
1803
2134
  *
@@ -2209,6 +2540,132 @@ class EngineServiceClient {
2209
2540
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2210
2541
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2211
2542
  }
2543
+ /**
2544
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2545
+ *
2546
+ * @param {string} project
2547
+ * @param {string} location
2548
+ * @param {string} data_store
2549
+ * @param {string} session
2550
+ * @returns {string} Resource name string.
2551
+ */
2552
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2553
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2554
+ project: project,
2555
+ location: location,
2556
+ data_store: dataStore,
2557
+ session: session,
2558
+ });
2559
+ }
2560
+ /**
2561
+ * Parse the project from ProjectLocationDataStoreSession resource.
2562
+ *
2563
+ * @param {string} projectLocationDataStoreSessionName
2564
+ * A fully-qualified path representing project_location_data_store_session resource.
2565
+ * @returns {string} A string representing the project.
2566
+ */
2567
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2568
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2569
+ }
2570
+ /**
2571
+ * Parse the location from ProjectLocationDataStoreSession resource.
2572
+ *
2573
+ * @param {string} projectLocationDataStoreSessionName
2574
+ * A fully-qualified path representing project_location_data_store_session resource.
2575
+ * @returns {string} A string representing the location.
2576
+ */
2577
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2578
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2579
+ }
2580
+ /**
2581
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2582
+ *
2583
+ * @param {string} projectLocationDataStoreSessionName
2584
+ * A fully-qualified path representing project_location_data_store_session resource.
2585
+ * @returns {string} A string representing the data_store.
2586
+ */
2587
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2588
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2589
+ }
2590
+ /**
2591
+ * Parse the session from ProjectLocationDataStoreSession resource.
2592
+ *
2593
+ * @param {string} projectLocationDataStoreSessionName
2594
+ * A fully-qualified path representing project_location_data_store_session resource.
2595
+ * @returns {string} A string representing the session.
2596
+ */
2597
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2598
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2599
+ }
2600
+ /**
2601
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2602
+ *
2603
+ * @param {string} project
2604
+ * @param {string} location
2605
+ * @param {string} data_store
2606
+ * @param {string} session
2607
+ * @param {string} answer
2608
+ * @returns {string} Resource name string.
2609
+ */
2610
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2611
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2612
+ project: project,
2613
+ location: location,
2614
+ data_store: dataStore,
2615
+ session: session,
2616
+ answer: answer,
2617
+ });
2618
+ }
2619
+ /**
2620
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2621
+ *
2622
+ * @param {string} projectLocationDataStoreSessionAnswerName
2623
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2624
+ * @returns {string} A string representing the project.
2625
+ */
2626
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2627
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2628
+ }
2629
+ /**
2630
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2631
+ *
2632
+ * @param {string} projectLocationDataStoreSessionAnswerName
2633
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2634
+ * @returns {string} A string representing the location.
2635
+ */
2636
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2637
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2638
+ }
2639
+ /**
2640
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2641
+ *
2642
+ * @param {string} projectLocationDataStoreSessionAnswerName
2643
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2644
+ * @returns {string} A string representing the data_store.
2645
+ */
2646
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2647
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2648
+ }
2649
+ /**
2650
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2651
+ *
2652
+ * @param {string} projectLocationDataStoreSessionAnswerName
2653
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2654
+ * @returns {string} A string representing the session.
2655
+ */
2656
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2657
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2658
+ }
2659
+ /**
2660
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2661
+ *
2662
+ * @param {string} projectLocationDataStoreSessionAnswerName
2663
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2664
+ * @returns {string} A string representing the answer.
2665
+ */
2666
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2667
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2668
+ }
2212
2669
  /**
2213
2670
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2214
2671
  *