@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
@@ -155,7 +155,9 @@ class CompletionServiceClient {
155
155
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
156
156
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
157
157
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
158
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
158
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}'),
159
161
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
160
162
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
161
163
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
@@ -163,6 +165,7 @@ class CompletionServiceClient {
163
165
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
164
166
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
165
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}'),
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}'),
168
171
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
@@ -170,7 +173,9 @@ class CompletionServiceClient {
170
173
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
171
174
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
172
175
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
176
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
173
177
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
178
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
174
179
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
175
180
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
176
181
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
@@ -190,6 +195,17 @@ class CompletionServiceClient {
190
195
  if (opts.fallback) {
191
196
  lroOptions.protoJson = protoFilesRoot;
192
197
  lroOptions.httpRules = [
198
+ {
199
+ selector: 'google.longrunning.Operations.CancelOperation',
200
+ post: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
201
+ body: '*',
202
+ additional_bindings: [
203
+ {
204
+ post: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
205
+ body: '*',
206
+ },
207
+ ],
208
+ },
193
209
  {
194
210
  selector: 'google.longrunning.Operations.GetOperation',
195
211
  get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
@@ -231,6 +247,9 @@ class CompletionServiceClient {
231
247
  get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
232
248
  },
233
249
  { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
250
+ {
251
+ get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
252
+ },
234
253
  { get: '/v1alpha/{name=projects/*/operations/*}' },
235
254
  ],
236
255
  },
@@ -1030,6 +1049,75 @@ class CompletionServiceClient {
1030
1049
  matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1031
1050
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1032
1051
  }
1052
+ /**
1053
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1054
+ *
1055
+ * @param {string} project
1056
+ * @param {string} location
1057
+ * @param {string} collection
1058
+ * @param {string} data_store
1059
+ * @param {string} control
1060
+ * @returns {string} Resource name string.
1061
+ */
1062
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
1063
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
1064
+ project: project,
1065
+ location: location,
1066
+ collection: collection,
1067
+ data_store: dataStore,
1068
+ control: control,
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
1073
+ *
1074
+ * @param {string} projectLocationCollectionDataStoreControlName
1075
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1076
+ * @returns {string} A string representing the project.
1077
+ */
1078
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1079
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
1080
+ }
1081
+ /**
1082
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
1083
+ *
1084
+ * @param {string} projectLocationCollectionDataStoreControlName
1085
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1086
+ * @returns {string} A string representing the location.
1087
+ */
1088
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1089
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
1090
+ }
1091
+ /**
1092
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
1093
+ *
1094
+ * @param {string} projectLocationCollectionDataStoreControlName
1095
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1096
+ * @returns {string} A string representing the collection.
1097
+ */
1098
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1099
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
1100
+ }
1101
+ /**
1102
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
1103
+ *
1104
+ * @param {string} projectLocationCollectionDataStoreControlName
1105
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1106
+ * @returns {string} A string representing the data_store.
1107
+ */
1108
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1109
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
1110
+ }
1111
+ /**
1112
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
1113
+ *
1114
+ * @param {string} projectLocationCollectionDataStoreControlName
1115
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1116
+ * @returns {string} A string representing the control.
1117
+ */
1118
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1119
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
1120
+ }
1033
1121
  /**
1034
1122
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
1035
1123
  *
@@ -1099,6 +1187,75 @@ class CompletionServiceClient {
1099
1187
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1100
1188
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1101
1189
  }
1190
+ /**
1191
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
1192
+ *
1193
+ * @param {string} project
1194
+ * @param {string} location
1195
+ * @param {string} collection
1196
+ * @param {string} data_store
1197
+ * @param {string} custom_tuning_model
1198
+ * @returns {string} Resource name string.
1199
+ */
1200
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
1201
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
1202
+ project: project,
1203
+ location: location,
1204
+ collection: collection,
1205
+ data_store: dataStore,
1206
+ custom_tuning_model: customTuningModel,
1207
+ });
1208
+ }
1209
+ /**
1210
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1211
+ *
1212
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1213
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1214
+ * @returns {string} A string representing the project.
1215
+ */
1216
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1217
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
1218
+ }
1219
+ /**
1220
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1221
+ *
1222
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1223
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1224
+ * @returns {string} A string representing the location.
1225
+ */
1226
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1227
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
1228
+ }
1229
+ /**
1230
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1231
+ *
1232
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1233
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1234
+ * @returns {string} A string representing the collection.
1235
+ */
1236
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1237
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
1238
+ }
1239
+ /**
1240
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1241
+ *
1242
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1243
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1244
+ * @returns {string} A string representing the data_store.
1245
+ */
1246
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1247
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
1248
+ }
1249
+ /**
1250
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1251
+ *
1252
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1253
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1254
+ * @returns {string} A string representing the custom_tuning_model.
1255
+ */
1256
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1257
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
1258
+ }
1102
1259
  /**
1103
1260
  * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1104
1261
  *
@@ -1570,6 +1727,75 @@ class CompletionServiceClient {
1570
1727
  matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1571
1728
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1572
1729
  }
1730
+ /**
1731
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
1732
+ *
1733
+ * @param {string} project
1734
+ * @param {string} location
1735
+ * @param {string} collection
1736
+ * @param {string} engine
1737
+ * @param {string} control
1738
+ * @returns {string} Resource name string.
1739
+ */
1740
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
1741
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
1742
+ project: project,
1743
+ location: location,
1744
+ collection: collection,
1745
+ engine: engine,
1746
+ control: control,
1747
+ });
1748
+ }
1749
+ /**
1750
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
1751
+ *
1752
+ * @param {string} projectLocationCollectionEngineControlName
1753
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1754
+ * @returns {string} A string representing the project.
1755
+ */
1756
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1757
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
1758
+ }
1759
+ /**
1760
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
1761
+ *
1762
+ * @param {string} projectLocationCollectionEngineControlName
1763
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1764
+ * @returns {string} A string representing the location.
1765
+ */
1766
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1767
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
1768
+ }
1769
+ /**
1770
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
1771
+ *
1772
+ * @param {string} projectLocationCollectionEngineControlName
1773
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1774
+ * @returns {string} A string representing the collection.
1775
+ */
1776
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1777
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
1778
+ }
1779
+ /**
1780
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
1781
+ *
1782
+ * @param {string} projectLocationCollectionEngineControlName
1783
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1784
+ * @returns {string} A string representing the engine.
1785
+ */
1786
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1787
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
1788
+ }
1789
+ /**
1790
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
1791
+ *
1792
+ * @param {string} projectLocationCollectionEngineControlName
1793
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1794
+ * @returns {string} A string representing the control.
1795
+ */
1796
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1797
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
1798
+ }
1573
1799
  /**
1574
1800
  * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1575
1801
  *
@@ -2053,6 +2279,63 @@ class CompletionServiceClient {
2053
2279
  matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2054
2280
  return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2055
2281
  }
2282
+ /**
2283
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
2284
+ *
2285
+ * @param {string} project
2286
+ * @param {string} location
2287
+ * @param {string} data_store
2288
+ * @param {string} control
2289
+ * @returns {string} Resource name string.
2290
+ */
2291
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
2292
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
2293
+ project: project,
2294
+ location: location,
2295
+ data_store: dataStore,
2296
+ control: control,
2297
+ });
2298
+ }
2299
+ /**
2300
+ * Parse the project from ProjectLocationDataStoreControl resource.
2301
+ *
2302
+ * @param {string} projectLocationDataStoreControlName
2303
+ * A fully-qualified path representing project_location_data_store_control resource.
2304
+ * @returns {string} A string representing the project.
2305
+ */
2306
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2307
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
2308
+ }
2309
+ /**
2310
+ * Parse the location from ProjectLocationDataStoreControl resource.
2311
+ *
2312
+ * @param {string} projectLocationDataStoreControlName
2313
+ * A fully-qualified path representing project_location_data_store_control resource.
2314
+ * @returns {string} A string representing the location.
2315
+ */
2316
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2317
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
2318
+ }
2319
+ /**
2320
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
2321
+ *
2322
+ * @param {string} projectLocationDataStoreControlName
2323
+ * A fully-qualified path representing project_location_data_store_control resource.
2324
+ * @returns {string} A string representing the data_store.
2325
+ */
2326
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2327
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
2328
+ }
2329
+ /**
2330
+ * Parse the control from ProjectLocationDataStoreControl resource.
2331
+ *
2332
+ * @param {string} projectLocationDataStoreControlName
2333
+ * A fully-qualified path representing project_location_data_store_control resource.
2334
+ * @returns {string} A string representing the control.
2335
+ */
2336
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2337
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
2338
+ }
2056
2339
  /**
2057
2340
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
2058
2341
  *
@@ -2110,6 +2393,63 @@ class CompletionServiceClient {
2110
2393
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2111
2394
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2112
2395
  }
2396
+ /**
2397
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
2398
+ *
2399
+ * @param {string} project
2400
+ * @param {string} location
2401
+ * @param {string} data_store
2402
+ * @param {string} custom_tuning_model
2403
+ * @returns {string} Resource name string.
2404
+ */
2405
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
2406
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
2407
+ project: project,
2408
+ location: location,
2409
+ data_store: dataStore,
2410
+ custom_tuning_model: customTuningModel,
2411
+ });
2412
+ }
2413
+ /**
2414
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
2415
+ *
2416
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2417
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2418
+ * @returns {string} A string representing the project.
2419
+ */
2420
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2421
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
2422
+ }
2423
+ /**
2424
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
2425
+ *
2426
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2427
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2428
+ * @returns {string} A string representing the location.
2429
+ */
2430
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2431
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
2432
+ }
2433
+ /**
2434
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
2435
+ *
2436
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2437
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2438
+ * @returns {string} A string representing the data_store.
2439
+ */
2440
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2441
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
2442
+ }
2443
+ /**
2444
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
2445
+ *
2446
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2447
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2448
+ * @returns {string} A string representing the custom_tuning_model.
2449
+ */
2450
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2451
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
2452
+ }
2113
2453
  /**
2114
2454
  * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2115
2455
  *