@google-cloud/discoveryengine 1.8.0 → 1.9.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 (199) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +33 -4
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/common.proto +33 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +2 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +569 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +4 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +2 -2
  11. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -6
  13. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +4 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
  16. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +4 -4
  17. package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +20 -19
  21. package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +5 -5
  22. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +23 -18
  23. package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
  24. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +3 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +28 -3
  26. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +18 -2
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +9 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +7 -0
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +16 -0
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +2 -2
  33. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +19 -3
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +2 -2
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +1 -0
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +12 -9
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +4 -4
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +30 -1
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +3 -0
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +4 -4
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +1 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +2 -0
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +19 -0
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +20 -19
  46. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +37 -2
  47. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +6 -6
  48. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +28 -31
  49. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +39 -0
  50. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +3 -0
  51. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +3 -0
  52. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +29 -3
  53. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +18 -2
  54. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +10 -1
  55. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +16 -0
  56. package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
  57. package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
  58. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +2 -2
  59. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +19 -3
  60. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
  61. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +2 -2
  62. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +1 -0
  63. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +7 -8
  64. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +4 -4
  65. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +30 -1
  66. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +3 -0
  67. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +4 -4
  68. package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
  69. package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
  70. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +19 -0
  71. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +20 -19
  72. package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +5 -5
  73. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +30 -24
  74. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +39 -0
  75. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +4 -1
  76. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +3 -0
  77. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +28 -3
  78. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +18 -2
  79. package/build/protos/protos.d.ts +52350 -38733
  80. package/build/protos/protos.js +136479 -103212
  81. package/build/protos/protos.json +9460 -5916
  82. package/build/src/index.d.ts +13 -1
  83. package/build/src/index.js +13 -1
  84. package/build/src/v1/completion_service_client.d.ts +549 -0
  85. package/build/src/v1/completion_service_client.js +771 -0
  86. package/build/src/v1/control_service_client.d.ts +1623 -0
  87. package/build/src/v1/control_service_client.js +2218 -0
  88. package/build/src/v1/control_service_client_config.json +63 -0
  89. package/build/src/v1/conversational_search_service_client.d.ts +893 -0
  90. package/build/src/v1/conversational_search_service_client.js +1040 -14
  91. package/build/src/v1/conversational_search_service_client_config.json +35 -0
  92. package/build/src/v1/data_store_service_client.d.ts +555 -6
  93. package/build/src/v1/data_store_service_client.js +775 -4
  94. package/build/src/v1/document_service_client.d.ts +557 -8
  95. package/build/src/v1/document_service_client.js +773 -2
  96. package/build/src/v1/engine_service_client.d.ts +549 -0
  97. package/build/src/v1/engine_service_client.js +771 -0
  98. package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
  99. package/build/src/v1/grounded_generation_service_client.js +2036 -0
  100. package/build/src/v1/grounded_generation_service_client_config.json +43 -0
  101. package/build/src/v1/index.d.ts +4 -0
  102. package/build/src/v1/index.js +9 -1
  103. package/build/src/v1/project_service_client.d.ts +1533 -0
  104. package/build/src/v1/project_service_client.js +2255 -0
  105. package/build/src/v1/project_service_client_config.json +43 -0
  106. package/build/src/v1/rank_service_client.d.ts +1449 -0
  107. package/build/src/v1/rank_service_client.js +2037 -0
  108. package/build/src/v1/rank_service_client_config.json +43 -0
  109. package/build/src/v1/recommendation_service_client.d.ts +568 -18
  110. package/build/src/v1/recommendation_service_client.js +756 -0
  111. package/build/src/v1/schema_service_client.d.ts +558 -9
  112. package/build/src/v1/schema_service_client.js +775 -4
  113. package/build/src/v1/search_service_client.d.ts +579 -21
  114. package/build/src/v1/search_service_client.js +776 -14
  115. package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
  116. package/build/src/v1/site_search_engine_service_client.js +771 -0
  117. package/build/src/v1/user_event_service_client.d.ts +562 -2
  118. package/build/src/v1/user_event_service_client.js +771 -0
  119. package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
  120. package/build/src/v1alpha/acl_config_service_client.js +326 -0
  121. package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
  122. package/build/src/v1alpha/chunk_service_client.js +326 -0
  123. package/build/src/v1alpha/completion_service_client.d.ts +237 -0
  124. package/build/src/v1alpha/completion_service_client.js +340 -0
  125. package/build/src/v1alpha/control_service_client.d.ts +2013 -0
  126. package/build/src/v1alpha/control_service_client.js +2757 -0
  127. package/build/src/v1alpha/control_service_client_config.json +63 -0
  128. package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
  129. package/build/src/v1alpha/conversational_search_service_client.js +326 -0
  130. package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
  131. package/build/src/v1alpha/data_store_service_client.js +344 -4
  132. package/build/src/v1alpha/document_service_client.d.ts +246 -9
  133. package/build/src/v1alpha/document_service_client.js +342 -2
  134. package/build/src/v1alpha/engine_service_client.d.ts +237 -0
  135. package/build/src/v1alpha/engine_service_client.js +340 -0
  136. package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
  137. package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
  138. package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
  139. package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
  140. package/build/src/v1alpha/index.d.ts +1 -0
  141. package/build/src/v1alpha/index.js +3 -1
  142. package/build/src/v1alpha/project_service_client.d.ts +239 -0
  143. package/build/src/v1alpha/project_service_client.js +340 -0
  144. package/build/src/v1alpha/project_service_client_config.json +21 -6
  145. package/build/src/v1alpha/rank_service_client.d.ts +255 -0
  146. package/build/src/v1alpha/rank_service_client.js +326 -0
  147. package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
  148. package/build/src/v1alpha/recommendation_service_client.js +326 -0
  149. package/build/src/v1alpha/schema_service_client.d.ts +247 -10
  150. package/build/src/v1alpha/schema_service_client.js +344 -4
  151. package/build/src/v1alpha/search_service_client.d.ts +267 -21
  152. package/build/src/v1alpha/search_service_client.js +346 -14
  153. package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
  154. package/build/src/v1alpha/search_tuning_service_client.js +365 -1
  155. package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
  156. package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
  157. package/build/src/v1alpha/serving_config_service_client.js +326 -0
  158. package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
  159. package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
  160. package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
  161. package/build/src/v1alpha/user_event_service_client.js +340 -0
  162. package/build/src/v1beta/completion_service_client.d.ts +252 -0
  163. package/build/src/v1beta/completion_service_client.js +359 -0
  164. package/build/src/v1beta/control_service_client.d.ts +1860 -0
  165. package/build/src/v1beta/control_service_client.js +2545 -0
  166. package/build/src/v1beta/control_service_client_config.json +63 -0
  167. package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
  168. package/build/src/v1beta/conversational_search_service_client.js +348 -0
  169. package/build/src/v1beta/data_store_service_client.d.ts +258 -6
  170. package/build/src/v1beta/data_store_service_client.js +363 -4
  171. package/build/src/v1beta/document_service_client.d.ts +261 -10
  172. package/build/src/v1beta/document_service_client.js +361 -2
  173. package/build/src/v1beta/engine_service_client.d.ts +252 -0
  174. package/build/src/v1beta/engine_service_client.js +359 -0
  175. package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
  176. package/build/src/v1beta/grounded_generation_service_client.js +348 -0
  177. package/build/src/v1beta/index.d.ts +2 -0
  178. package/build/src/v1beta/index.js +5 -1
  179. package/build/src/v1beta/project_service_client.d.ts +1770 -0
  180. package/build/src/v1beta/project_service_client.js +2576 -0
  181. package/build/src/v1beta/project_service_client_config.json +43 -0
  182. package/build/src/v1beta/rank_service_client.d.ts +270 -0
  183. package/build/src/v1beta/rank_service_client.js +348 -0
  184. package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
  185. package/build/src/v1beta/recommendation_service_client.js +348 -0
  186. package/build/src/v1beta/schema_service_client.d.ts +261 -9
  187. package/build/src/v1beta/schema_service_client.js +363 -4
  188. package/build/src/v1beta/search_service_client.d.ts +282 -21
  189. package/build/src/v1beta/search_service_client.js +368 -14
  190. package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
  191. package/build/src/v1beta/search_tuning_service_client.js +384 -1
  192. package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
  193. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  194. package/build/src/v1beta/serving_config_service_client.js +326 -0
  195. package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
  196. package/build/src/v1beta/site_search_engine_service_client.js +359 -0
  197. package/build/src/v1beta/user_event_service_client.d.ts +265 -2
  198. package/build/src/v1beta/user_event_service_client.js +359 -0
  199. package/package.json +2 -2
@@ -152,9 +152,12 @@ class GroundedGenerationServiceClient {
152
152
  this.pathTemplates = {
153
153
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
154
  groundingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/groundingConfigs/{grounding_config}'),
155
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
155
156
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
156
157
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
158
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
157
159
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
160
+ projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
158
161
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
159
162
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
160
163
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
@@ -162,13 +165,16 @@ class GroundedGenerationServiceClient {
162
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}'),
168
+ projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
165
169
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
166
170
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
167
171
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
168
172
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
169
173
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
170
174
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
175
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
171
176
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
177
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
172
178
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
173
179
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
174
180
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
@@ -469,6 +475,27 @@ class GroundedGenerationServiceClient {
469
475
  matchGroundingConfigFromGroundingConfigName(groundingConfigName) {
470
476
  return this.pathTemplates.groundingConfigPathTemplate.match(groundingConfigName).grounding_config;
471
477
  }
478
+ /**
479
+ * Return a fully-qualified project resource name string.
480
+ *
481
+ * @param {string} project
482
+ * @returns {string} Resource name string.
483
+ */
484
+ projectPath(project) {
485
+ return this.pathTemplates.projectPathTemplate.render({
486
+ project: project,
487
+ });
488
+ }
489
+ /**
490
+ * Parse the project from Project resource.
491
+ *
492
+ * @param {string} projectName
493
+ * A fully-qualified path representing Project resource.
494
+ * @returns {string} A string representing the project.
495
+ */
496
+ matchProjectFromProjectName(projectName) {
497
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
498
+ }
472
499
  /**
473
500
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
474
501
  *
@@ -607,6 +634,75 @@ class GroundedGenerationServiceClient {
607
634
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
608
635
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
609
636
  }
637
+ /**
638
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
639
+ *
640
+ * @param {string} project
641
+ * @param {string} location
642
+ * @param {string} collection
643
+ * @param {string} data_store
644
+ * @param {string} control
645
+ * @returns {string} Resource name string.
646
+ */
647
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
648
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
649
+ project: project,
650
+ location: location,
651
+ collection: collection,
652
+ data_store: dataStore,
653
+ control: control,
654
+ });
655
+ }
656
+ /**
657
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
658
+ *
659
+ * @param {string} projectLocationCollectionDataStoreControlName
660
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
661
+ * @returns {string} A string representing the project.
662
+ */
663
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
664
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
665
+ }
666
+ /**
667
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
668
+ *
669
+ * @param {string} projectLocationCollectionDataStoreControlName
670
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
671
+ * @returns {string} A string representing the location.
672
+ */
673
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
674
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
675
+ }
676
+ /**
677
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
678
+ *
679
+ * @param {string} projectLocationCollectionDataStoreControlName
680
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
681
+ * @returns {string} A string representing the collection.
682
+ */
683
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
684
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
685
+ }
686
+ /**
687
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
688
+ *
689
+ * @param {string} projectLocationCollectionDataStoreControlName
690
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
691
+ * @returns {string} A string representing the data_store.
692
+ */
693
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
694
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
695
+ }
696
+ /**
697
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
698
+ *
699
+ * @param {string} projectLocationCollectionDataStoreControlName
700
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
701
+ * @returns {string} A string representing the control.
702
+ */
703
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
704
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
705
+ }
610
706
  /**
611
707
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
612
708
  *
@@ -676,6 +772,75 @@ class GroundedGenerationServiceClient {
676
772
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
677
773
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
678
774
  }
775
+ /**
776
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
777
+ *
778
+ * @param {string} project
779
+ * @param {string} location
780
+ * @param {string} collection
781
+ * @param {string} data_store
782
+ * @param {string} custom_tuning_model
783
+ * @returns {string} Resource name string.
784
+ */
785
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
786
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
787
+ project: project,
788
+ location: location,
789
+ collection: collection,
790
+ data_store: dataStore,
791
+ custom_tuning_model: customTuningModel,
792
+ });
793
+ }
794
+ /**
795
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
796
+ *
797
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
798
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
799
+ * @returns {string} A string representing the project.
800
+ */
801
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
802
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
803
+ }
804
+ /**
805
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
806
+ *
807
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
808
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
809
+ * @returns {string} A string representing the location.
810
+ */
811
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
812
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
813
+ }
814
+ /**
815
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
816
+ *
817
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
818
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
819
+ * @returns {string} A string representing the collection.
820
+ */
821
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
822
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
823
+ }
824
+ /**
825
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
826
+ *
827
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
828
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
829
+ * @returns {string} A string representing the data_store.
830
+ */
831
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
832
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
833
+ }
834
+ /**
835
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
836
+ *
837
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
838
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
839
+ * @returns {string} A string representing the custom_tuning_model.
840
+ */
841
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
842
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
843
+ }
679
844
  /**
680
845
  * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
681
846
  *
@@ -1147,6 +1312,75 @@ class GroundedGenerationServiceClient {
1147
1312
  matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1148
1313
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1149
1314
  }
1315
+ /**
1316
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
1317
+ *
1318
+ * @param {string} project
1319
+ * @param {string} location
1320
+ * @param {string} collection
1321
+ * @param {string} engine
1322
+ * @param {string} control
1323
+ * @returns {string} Resource name string.
1324
+ */
1325
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
1326
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
1327
+ project: project,
1328
+ location: location,
1329
+ collection: collection,
1330
+ engine: engine,
1331
+ control: control,
1332
+ });
1333
+ }
1334
+ /**
1335
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
1336
+ *
1337
+ * @param {string} projectLocationCollectionEngineControlName
1338
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1339
+ * @returns {string} A string representing the project.
1340
+ */
1341
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1342
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
1343
+ }
1344
+ /**
1345
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
1346
+ *
1347
+ * @param {string} projectLocationCollectionEngineControlName
1348
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1349
+ * @returns {string} A string representing the location.
1350
+ */
1351
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1352
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
1353
+ }
1354
+ /**
1355
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
1356
+ *
1357
+ * @param {string} projectLocationCollectionEngineControlName
1358
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1359
+ * @returns {string} A string representing the collection.
1360
+ */
1361
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1362
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
1363
+ }
1364
+ /**
1365
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
1366
+ *
1367
+ * @param {string} projectLocationCollectionEngineControlName
1368
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1369
+ * @returns {string} A string representing the engine.
1370
+ */
1371
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1372
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
1373
+ }
1374
+ /**
1375
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
1376
+ *
1377
+ * @param {string} projectLocationCollectionEngineControlName
1378
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1379
+ * @returns {string} A string representing the control.
1380
+ */
1381
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1382
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
1383
+ }
1150
1384
  /**
1151
1385
  * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1152
1386
  *
@@ -1549,6 +1783,63 @@ class GroundedGenerationServiceClient {
1549
1783
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1550
1784
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1551
1785
  }
1786
+ /**
1787
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
1788
+ *
1789
+ * @param {string} project
1790
+ * @param {string} location
1791
+ * @param {string} data_store
1792
+ * @param {string} control
1793
+ * @returns {string} Resource name string.
1794
+ */
1795
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
1796
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
1797
+ project: project,
1798
+ location: location,
1799
+ data_store: dataStore,
1800
+ control: control,
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Parse the project from ProjectLocationDataStoreControl resource.
1805
+ *
1806
+ * @param {string} projectLocationDataStoreControlName
1807
+ * A fully-qualified path representing project_location_data_store_control resource.
1808
+ * @returns {string} A string representing the project.
1809
+ */
1810
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
1811
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
1812
+ }
1813
+ /**
1814
+ * Parse the location from ProjectLocationDataStoreControl resource.
1815
+ *
1816
+ * @param {string} projectLocationDataStoreControlName
1817
+ * A fully-qualified path representing project_location_data_store_control resource.
1818
+ * @returns {string} A string representing the location.
1819
+ */
1820
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
1821
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
1822
+ }
1823
+ /**
1824
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
1825
+ *
1826
+ * @param {string} projectLocationDataStoreControlName
1827
+ * A fully-qualified path representing project_location_data_store_control resource.
1828
+ * @returns {string} A string representing the data_store.
1829
+ */
1830
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
1831
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
1832
+ }
1833
+ /**
1834
+ * Parse the control from ProjectLocationDataStoreControl resource.
1835
+ *
1836
+ * @param {string} projectLocationDataStoreControlName
1837
+ * A fully-qualified path representing project_location_data_store_control resource.
1838
+ * @returns {string} A string representing the control.
1839
+ */
1840
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
1841
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
1842
+ }
1552
1843
  /**
1553
1844
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1554
1845
  *
@@ -1606,6 +1897,63 @@ class GroundedGenerationServiceClient {
1606
1897
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1607
1898
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1608
1899
  }
1900
+ /**
1901
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
1902
+ *
1903
+ * @param {string} project
1904
+ * @param {string} location
1905
+ * @param {string} data_store
1906
+ * @param {string} custom_tuning_model
1907
+ * @returns {string} Resource name string.
1908
+ */
1909
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
1910
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
1911
+ project: project,
1912
+ location: location,
1913
+ data_store: dataStore,
1914
+ custom_tuning_model: customTuningModel,
1915
+ });
1916
+ }
1917
+ /**
1918
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
1919
+ *
1920
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1921
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1922
+ * @returns {string} A string representing the project.
1923
+ */
1924
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
1925
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
1926
+ }
1927
+ /**
1928
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
1929
+ *
1930
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1931
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1932
+ * @returns {string} A string representing the location.
1933
+ */
1934
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
1935
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
1936
+ }
1937
+ /**
1938
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
1939
+ *
1940
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1941
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1942
+ * @returns {string} A string representing the data_store.
1943
+ */
1944
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
1945
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
1946
+ }
1947
+ /**
1948
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
1949
+ *
1950
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1951
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1952
+ * @returns {string} A string representing the custom_tuning_model.
1953
+ */
1954
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
1955
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
1956
+ }
1609
1957
  /**
1610
1958
  * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1611
1959
  *
@@ -1,9 +1,11 @@
1
1
  export { CompletionServiceClient } from './completion_service_client';
2
+ export { ControlServiceClient } from './control_service_client';
2
3
  export { ConversationalSearchServiceClient } from './conversational_search_service_client';
3
4
  export { DataStoreServiceClient } from './data_store_service_client';
4
5
  export { DocumentServiceClient } from './document_service_client';
5
6
  export { EngineServiceClient } from './engine_service_client';
6
7
  export { GroundedGenerationServiceClient } from './grounded_generation_service_client';
8
+ export { ProjectServiceClient } from './project_service_client';
7
9
  export { RankServiceClient } from './rank_service_client';
8
10
  export { RecommendationServiceClient } from './recommendation_service_client';
9
11
  export { SchemaServiceClient } from './schema_service_client';
@@ -17,9 +17,11 @@
17
17
  // ** https://github.com/googleapis/gapic-generator-typescript **
18
18
  // ** All changes to this file may be overwritten. **
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = void 0;
20
+ exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
21
21
  var completion_service_client_1 = require("./completion_service_client");
22
22
  Object.defineProperty(exports, "CompletionServiceClient", { enumerable: true, get: function () { return completion_service_client_1.CompletionServiceClient; } });
23
+ var control_service_client_1 = require("./control_service_client");
24
+ Object.defineProperty(exports, "ControlServiceClient", { enumerable: true, get: function () { return control_service_client_1.ControlServiceClient; } });
23
25
  var conversational_search_service_client_1 = require("./conversational_search_service_client");
24
26
  Object.defineProperty(exports, "ConversationalSearchServiceClient", { enumerable: true, get: function () { return conversational_search_service_client_1.ConversationalSearchServiceClient; } });
25
27
  var data_store_service_client_1 = require("./data_store_service_client");
@@ -30,6 +32,8 @@ var engine_service_client_1 = require("./engine_service_client");
30
32
  Object.defineProperty(exports, "EngineServiceClient", { enumerable: true, get: function () { return engine_service_client_1.EngineServiceClient; } });
31
33
  var grounded_generation_service_client_1 = require("./grounded_generation_service_client");
32
34
  Object.defineProperty(exports, "GroundedGenerationServiceClient", { enumerable: true, get: function () { return grounded_generation_service_client_1.GroundedGenerationServiceClient; } });
35
+ var project_service_client_1 = require("./project_service_client");
36
+ Object.defineProperty(exports, "ProjectServiceClient", { enumerable: true, get: function () { return project_service_client_1.ProjectServiceClient; } });
33
37
  var rank_service_client_1 = require("./rank_service_client");
34
38
  Object.defineProperty(exports, "RankServiceClient", { enumerable: true, get: function () { return rank_service_client_1.RankServiceClient; } });
35
39
  var recommendation_service_client_1 = require("./recommendation_service_client");