@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 DocumentServiceClient {
153
153
  this.pathTemplates = {
154
154
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
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
  projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
158
159
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -161,10 +162,14 @@ class DocumentServiceClient {
161
162
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
162
163
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
163
164
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
165
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
166
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
164
167
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
165
168
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
166
169
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
167
170
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
171
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
172
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
168
173
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
169
174
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
170
175
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -173,6 +178,8 @@ class DocumentServiceClient {
173
178
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
174
179
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
175
180
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
181
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
182
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
176
183
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
177
184
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
178
185
  };
@@ -230,6 +237,9 @@ class DocumentServiceClient {
230
237
  {
231
238
  get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
232
239
  },
240
+ {
241
+ get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
242
+ },
233
243
  { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
234
244
  { get: '/v1alpha/{name=projects/*/operations/*}' },
235
245
  ],
@@ -330,6 +340,7 @@ class DocumentServiceClient {
330
340
  'deleteDocument',
331
341
  'importDocuments',
332
342
  'purgeDocuments',
343
+ 'getProcessedDocument',
333
344
  ];
334
345
  for (const methodName of documentServiceStubMethods) {
335
346
  const callPromise = this.documentServiceStub.then(stub => (...args) => {
@@ -493,6 +504,27 @@ class DocumentServiceClient {
493
504
  this.initialize();
494
505
  return this.innerApiCalls.deleteDocument(request, options, callback);
495
506
  }
507
+ getProcessedDocument(request, optionsOrCallback, callback) {
508
+ var _a;
509
+ request = request || {};
510
+ let options;
511
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
512
+ callback = optionsOrCallback;
513
+ options = {};
514
+ }
515
+ else {
516
+ options = optionsOrCallback;
517
+ }
518
+ options = options || {};
519
+ options.otherArgs = options.otherArgs || {};
520
+ options.otherArgs.headers = options.otherArgs.headers || {};
521
+ options.otherArgs.headers['x-goog-request-params'] =
522
+ this._gaxModule.routingHeader.fromParams({
523
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
524
+ });
525
+ this.initialize();
526
+ return this.innerApiCalls.getProcessedDocument(request, options, callback);
527
+ }
496
528
  importDocuments(request, optionsOrCallback, callback) {
497
529
  var _a;
498
530
  request = request || {};
@@ -987,6 +1019,27 @@ class DocumentServiceClient {
987
1019
  matchEngineFromEngineName(engineName) {
988
1020
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
989
1021
  }
1022
+ /**
1023
+ * Return a fully-qualified project resource name string.
1024
+ *
1025
+ * @param {string} project
1026
+ * @returns {string} Resource name string.
1027
+ */
1028
+ projectPath(project) {
1029
+ return this.pathTemplates.projectPathTemplate.render({
1030
+ project: project,
1031
+ });
1032
+ }
1033
+ /**
1034
+ * Parse the project from Project resource.
1035
+ *
1036
+ * @param {string} projectName
1037
+ * A fully-qualified path representing Project resource.
1038
+ * @returns {string} A string representing the project.
1039
+ */
1040
+ matchProjectFromProjectName(projectName) {
1041
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
1042
+ }
990
1043
  /**
991
1044
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
992
1045
  *
@@ -1551,6 +1604,156 @@ class DocumentServiceClient {
1551
1604
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1552
1605
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1553
1606
  }
1607
+ /**
1608
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1609
+ *
1610
+ * @param {string} project
1611
+ * @param {string} location
1612
+ * @param {string} collection
1613
+ * @param {string} data_store
1614
+ * @param {string} session
1615
+ * @returns {string} Resource name string.
1616
+ */
1617
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1618
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1619
+ project: project,
1620
+ location: location,
1621
+ collection: collection,
1622
+ data_store: dataStore,
1623
+ session: session,
1624
+ });
1625
+ }
1626
+ /**
1627
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1628
+ *
1629
+ * @param {string} projectLocationCollectionDataStoreSessionName
1630
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1631
+ * @returns {string} A string representing the project.
1632
+ */
1633
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1634
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1635
+ }
1636
+ /**
1637
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1638
+ *
1639
+ * @param {string} projectLocationCollectionDataStoreSessionName
1640
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1641
+ * @returns {string} A string representing the location.
1642
+ */
1643
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1644
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1645
+ }
1646
+ /**
1647
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1648
+ *
1649
+ * @param {string} projectLocationCollectionDataStoreSessionName
1650
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1651
+ * @returns {string} A string representing the collection.
1652
+ */
1653
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1654
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1655
+ }
1656
+ /**
1657
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1658
+ *
1659
+ * @param {string} projectLocationCollectionDataStoreSessionName
1660
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1661
+ * @returns {string} A string representing the data_store.
1662
+ */
1663
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1664
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1665
+ }
1666
+ /**
1667
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1668
+ *
1669
+ * @param {string} projectLocationCollectionDataStoreSessionName
1670
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1671
+ * @returns {string} A string representing the session.
1672
+ */
1673
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1674
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1675
+ }
1676
+ /**
1677
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1678
+ *
1679
+ * @param {string} project
1680
+ * @param {string} location
1681
+ * @param {string} collection
1682
+ * @param {string} data_store
1683
+ * @param {string} session
1684
+ * @param {string} answer
1685
+ * @returns {string} Resource name string.
1686
+ */
1687
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1688
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1689
+ project: project,
1690
+ location: location,
1691
+ collection: collection,
1692
+ data_store: dataStore,
1693
+ session: session,
1694
+ answer: answer,
1695
+ });
1696
+ }
1697
+ /**
1698
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1699
+ *
1700
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1701
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1702
+ * @returns {string} A string representing the project.
1703
+ */
1704
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1705
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1706
+ }
1707
+ /**
1708
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1709
+ *
1710
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1711
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1712
+ * @returns {string} A string representing the location.
1713
+ */
1714
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1715
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1716
+ }
1717
+ /**
1718
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1719
+ *
1720
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1721
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1722
+ * @returns {string} A string representing the collection.
1723
+ */
1724
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1725
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1726
+ }
1727
+ /**
1728
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1729
+ *
1730
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1731
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1732
+ * @returns {string} A string representing the data_store.
1733
+ */
1734
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1735
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1736
+ }
1737
+ /**
1738
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1739
+ *
1740
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1741
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1742
+ * @returns {string} A string representing the session.
1743
+ */
1744
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1745
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1746
+ }
1747
+ /**
1748
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1749
+ *
1750
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1751
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1752
+ * @returns {string} A string representing the answer.
1753
+ */
1754
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1755
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1756
+ }
1554
1757
  /**
1555
1758
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1556
1759
  *
@@ -1815,6 +2018,156 @@ class DocumentServiceClient {
1815
2018
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1816
2019
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1817
2020
  }
2021
+ /**
2022
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2023
+ *
2024
+ * @param {string} project
2025
+ * @param {string} location
2026
+ * @param {string} collection
2027
+ * @param {string} engine
2028
+ * @param {string} session
2029
+ * @returns {string} Resource name string.
2030
+ */
2031
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
2032
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
2033
+ project: project,
2034
+ location: location,
2035
+ collection: collection,
2036
+ engine: engine,
2037
+ session: session,
2038
+ });
2039
+ }
2040
+ /**
2041
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
2042
+ *
2043
+ * @param {string} projectLocationCollectionEngineSessionName
2044
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2045
+ * @returns {string} A string representing the project.
2046
+ */
2047
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2048
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2049
+ }
2050
+ /**
2051
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
2052
+ *
2053
+ * @param {string} projectLocationCollectionEngineSessionName
2054
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2055
+ * @returns {string} A string representing the location.
2056
+ */
2057
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2058
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2059
+ }
2060
+ /**
2061
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
2062
+ *
2063
+ * @param {string} projectLocationCollectionEngineSessionName
2064
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2065
+ * @returns {string} A string representing the collection.
2066
+ */
2067
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2068
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2069
+ }
2070
+ /**
2071
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
2072
+ *
2073
+ * @param {string} projectLocationCollectionEngineSessionName
2074
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2075
+ * @returns {string} A string representing the engine.
2076
+ */
2077
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2078
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2079
+ }
2080
+ /**
2081
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
2082
+ *
2083
+ * @param {string} projectLocationCollectionEngineSessionName
2084
+ * A fully-qualified path representing project_location_collection_engine_session resource.
2085
+ * @returns {string} A string representing the session.
2086
+ */
2087
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2088
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2089
+ }
2090
+ /**
2091
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2092
+ *
2093
+ * @param {string} project
2094
+ * @param {string} location
2095
+ * @param {string} collection
2096
+ * @param {string} engine
2097
+ * @param {string} session
2098
+ * @param {string} answer
2099
+ * @returns {string} Resource name string.
2100
+ */
2101
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2102
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2103
+ project: project,
2104
+ location: location,
2105
+ collection: collection,
2106
+ engine: engine,
2107
+ session: session,
2108
+ answer: answer,
2109
+ });
2110
+ }
2111
+ /**
2112
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2113
+ *
2114
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2115
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2116
+ * @returns {string} A string representing the project.
2117
+ */
2118
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2119
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2120
+ }
2121
+ /**
2122
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2123
+ *
2124
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2125
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2126
+ * @returns {string} A string representing the location.
2127
+ */
2128
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2129
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2130
+ }
2131
+ /**
2132
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2133
+ *
2134
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2135
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2136
+ * @returns {string} A string representing the collection.
2137
+ */
2138
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2139
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2140
+ }
2141
+ /**
2142
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2143
+ *
2144
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2145
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2146
+ * @returns {string} A string representing the engine.
2147
+ */
2148
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2149
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2150
+ }
2151
+ /**
2152
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2153
+ *
2154
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2155
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2156
+ * @returns {string} A string representing the session.
2157
+ */
2158
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2159
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2160
+ }
2161
+ /**
2162
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2163
+ *
2164
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2165
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2166
+ * @returns {string} A string representing the answer.
2167
+ */
2168
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2169
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2170
+ }
1818
2171
  /**
1819
2172
  * Return a fully-qualified projectLocationDataStore resource name string.
1820
2173
  *
@@ -2283,6 +2636,132 @@ class DocumentServiceClient {
2283
2636
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2284
2637
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2285
2638
  }
2639
+ /**
2640
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2641
+ *
2642
+ * @param {string} project
2643
+ * @param {string} location
2644
+ * @param {string} data_store
2645
+ * @param {string} session
2646
+ * @returns {string} Resource name string.
2647
+ */
2648
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2649
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2650
+ project: project,
2651
+ location: location,
2652
+ data_store: dataStore,
2653
+ session: session,
2654
+ });
2655
+ }
2656
+ /**
2657
+ * Parse the project from ProjectLocationDataStoreSession resource.
2658
+ *
2659
+ * @param {string} projectLocationDataStoreSessionName
2660
+ * A fully-qualified path representing project_location_data_store_session resource.
2661
+ * @returns {string} A string representing the project.
2662
+ */
2663
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2664
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2665
+ }
2666
+ /**
2667
+ * Parse the location from ProjectLocationDataStoreSession resource.
2668
+ *
2669
+ * @param {string} projectLocationDataStoreSessionName
2670
+ * A fully-qualified path representing project_location_data_store_session resource.
2671
+ * @returns {string} A string representing the location.
2672
+ */
2673
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2674
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2675
+ }
2676
+ /**
2677
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2678
+ *
2679
+ * @param {string} projectLocationDataStoreSessionName
2680
+ * A fully-qualified path representing project_location_data_store_session resource.
2681
+ * @returns {string} A string representing the data_store.
2682
+ */
2683
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2684
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2685
+ }
2686
+ /**
2687
+ * Parse the session from ProjectLocationDataStoreSession resource.
2688
+ *
2689
+ * @param {string} projectLocationDataStoreSessionName
2690
+ * A fully-qualified path representing project_location_data_store_session resource.
2691
+ * @returns {string} A string representing the session.
2692
+ */
2693
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2694
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2695
+ }
2696
+ /**
2697
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2698
+ *
2699
+ * @param {string} project
2700
+ * @param {string} location
2701
+ * @param {string} data_store
2702
+ * @param {string} session
2703
+ * @param {string} answer
2704
+ * @returns {string} Resource name string.
2705
+ */
2706
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2707
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2708
+ project: project,
2709
+ location: location,
2710
+ data_store: dataStore,
2711
+ session: session,
2712
+ answer: answer,
2713
+ });
2714
+ }
2715
+ /**
2716
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2717
+ *
2718
+ * @param {string} projectLocationDataStoreSessionAnswerName
2719
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2720
+ * @returns {string} A string representing the project.
2721
+ */
2722
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2723
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2724
+ }
2725
+ /**
2726
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2727
+ *
2728
+ * @param {string} projectLocationDataStoreSessionAnswerName
2729
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2730
+ * @returns {string} A string representing the location.
2731
+ */
2732
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2733
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2734
+ }
2735
+ /**
2736
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2737
+ *
2738
+ * @param {string} projectLocationDataStoreSessionAnswerName
2739
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2740
+ * @returns {string} A string representing the data_store.
2741
+ */
2742
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2743
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2744
+ }
2745
+ /**
2746
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2747
+ *
2748
+ * @param {string} projectLocationDataStoreSessionAnswerName
2749
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2750
+ * @returns {string} A string representing the session.
2751
+ */
2752
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2753
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2754
+ }
2755
+ /**
2756
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2757
+ *
2758
+ * @param {string} projectLocationDataStoreSessionAnswerName
2759
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2760
+ * @returns {string} A string representing the answer.
2761
+ */
2762
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2763
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2764
+ }
2286
2765
  /**
2287
2766
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2288
2767
  *
@@ -75,6 +75,11 @@
75
75
  "timeout_millis": 30000,
76
76
  "retry_codes_name": "unavailable",
77
77
  "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
78
+ },
79
+ "GetProcessedDocument": {
80
+ "timeout_millis": 30000,
81
+ "retry_codes_name": "unavailable",
82
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
78
83
  }
79
84
  }
80
85
  }