@google-cloud/discoveryengine 1.4.0 → 1.4.1

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 (107) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +13 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
  30. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +5 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +22 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +9 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +3 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +19 -4
  36. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +4 -3
  38. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +6 -5
  39. package/build/protos/protos.d.ts +15133 -7787
  40. package/build/protos/protos.js +50444 -32043
  41. package/build/protos/protos.json +4132 -2305
  42. package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
  43. package/build/src/v1alpha/acl_config_service_client.js +1765 -0
  44. package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
  45. package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
  46. package/build/src/v1alpha/chunk_service_client.js +1886 -0
  47. package/build/src/v1alpha/chunk_service_client_config.json +34 -0
  48. package/build/src/v1alpha/completion_service_client.d.ts +588 -3
  49. package/build/src/v1alpha/completion_service_client.js +831 -2
  50. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  51. package/build/src/v1alpha/conversational_search_service_client.d.ts +233 -1
  52. package/build/src/v1alpha/conversational_search_service_client.js +316 -0
  53. package/build/src/v1alpha/data_store_service_client.d.ts +451 -3
  54. package/build/src/v1alpha/data_store_service_client.js +562 -2
  55. package/build/src/v1alpha/data_store_service_client_config.json +8 -0
  56. package/build/src/v1alpha/document_service_client.d.ts +382 -0
  57. package/build/src/v1alpha/document_service_client.js +514 -0
  58. package/build/src/v1alpha/engine_service_client.d.ts +375 -2
  59. package/build/src/v1alpha/engine_service_client.js +514 -0
  60. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
  61. package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
  62. package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
  63. package/build/src/v1alpha/index.d.ts +4 -0
  64. package/build/src/v1alpha/index.js +9 -1
  65. package/build/src/v1alpha/recommendation_service_client.d.ts +231 -1
  66. package/build/src/v1alpha/recommendation_service_client.js +316 -0
  67. package/build/src/v1alpha/schema_service_client.d.ts +372 -0
  68. package/build/src/v1alpha/schema_service_client.js +514 -0
  69. package/build/src/v1alpha/search_service_client.d.ts +258 -15
  70. package/build/src/v1alpha/search_service_client.js +336 -10
  71. package/build/src/v1alpha/search_tuning_service_client.d.ts +373 -1
  72. package/build/src/v1alpha/search_tuning_service_client.js +514 -0
  73. package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
  74. package/build/src/v1alpha/serving_config_service_client.js +1935 -0
  75. package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
  76. package/build/src/v1alpha/site_search_engine_service_client.d.ts +372 -0
  77. package/build/src/v1alpha/site_search_engine_service_client.js +514 -0
  78. package/build/src/v1alpha/user_event_service_client.d.ts +372 -0
  79. package/build/src/v1alpha/user_event_service_client.js +514 -0
  80. package/build/src/v1beta/completion_service_client.d.ts +75 -0
  81. package/build/src/v1beta/completion_service_client.js +104 -0
  82. package/build/src/v1beta/conversational_search_service_client.d.ts +79 -0
  83. package/build/src/v1beta/conversational_search_service_client.js +104 -0
  84. package/build/src/v1beta/data_store_service_client.d.ts +75 -0
  85. package/build/src/v1beta/data_store_service_client.js +104 -0
  86. package/build/src/v1beta/document_service_client.d.ts +75 -0
  87. package/build/src/v1beta/document_service_client.js +104 -0
  88. package/build/src/v1beta/engine_service_client.d.ts +75 -0
  89. package/build/src/v1beta/engine_service_client.js +104 -0
  90. package/build/src/v1beta/index.d.ts +1 -0
  91. package/build/src/v1beta/index.js +3 -1
  92. package/build/src/v1beta/recommendation_service_client.d.ts +75 -0
  93. package/build/src/v1beta/recommendation_service_client.js +104 -0
  94. package/build/src/v1beta/schema_service_client.d.ts +75 -0
  95. package/build/src/v1beta/schema_service_client.js +104 -0
  96. package/build/src/v1beta/search_service_client.d.ts +81 -0
  97. package/build/src/v1beta/search_service_client.js +108 -0
  98. package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
  99. package/build/src/v1beta/search_tuning_service_client.js +1781 -0
  100. package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
  101. package/build/src/v1beta/serving_config_service_client.d.ts +123 -8
  102. package/build/src/v1beta/serving_config_service_client.js +166 -5
  103. package/build/src/v1beta/site_search_engine_service_client.d.ts +75 -0
  104. package/build/src/v1beta/site_search_engine_service_client.js +104 -0
  105. package/build/src/v1beta/user_event_service_client.d.ts +75 -0
  106. package/build/src/v1beta/user_event_service_client.js +104 -0
  107. package/package.json +3 -3
@@ -146,21 +146,135 @@ class CompletionServiceClient {
146
146
  // identifiers to uniquely identify resources within the API.
147
147
  // Create useful helper objects for these.
148
148
  this.pathTemplates = {
149
+ aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
149
150
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
150
151
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
151
152
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
153
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
152
154
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
155
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
153
156
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
157
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
154
158
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
155
159
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
156
160
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
161
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
157
162
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
158
163
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
164
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
159
165
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
166
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
160
167
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
168
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
161
169
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
162
170
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
163
171
  };
172
+ const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
173
+ // This API contains "long-running operations", which return a
174
+ // an Operation object that allows for tracking of the operation,
175
+ // rather than holding a request open.
176
+ const lroOptions = {
177
+ auth: this.auth,
178
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
179
+ };
180
+ if (opts.fallback) {
181
+ lroOptions.protoJson = protoFilesRoot;
182
+ lroOptions.httpRules = [
183
+ {
184
+ selector: 'google.longrunning.Operations.GetOperation',
185
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
186
+ additional_bindings: [
187
+ {
188
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
189
+ },
190
+ {
191
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
192
+ },
193
+ {
194
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
195
+ },
196
+ {
197
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
198
+ },
199
+ {
200
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
201
+ },
202
+ {
203
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
204
+ },
205
+ {
206
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
207
+ },
208
+ {
209
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}',
210
+ },
211
+ {
212
+ get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
213
+ },
214
+ {
215
+ get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
216
+ },
217
+ {
218
+ get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
219
+ },
220
+ { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
221
+ { get: '/v1alpha/{name=projects/*/operations/*}' },
222
+ ],
223
+ },
224
+ {
225
+ selector: 'google.longrunning.Operations.ListOperations',
226
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
227
+ additional_bindings: [
228
+ {
229
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
230
+ },
231
+ {
232
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
233
+ },
234
+ {
235
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
236
+ },
237
+ {
238
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
239
+ },
240
+ {
241
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
242
+ },
243
+ {
244
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
245
+ },
246
+ {
247
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations',
248
+ },
249
+ {
250
+ get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations',
251
+ },
252
+ {
253
+ get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
254
+ },
255
+ {
256
+ get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
257
+ },
258
+ {
259
+ get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
260
+ },
261
+ { get: '/v1alpha/{name=projects/*/locations/*}/operations' },
262
+ { get: '/v1alpha/{name=projects/*}/operations' },
263
+ ],
264
+ },
265
+ ];
266
+ }
267
+ this.operationsClient = this._gaxModule
268
+ .lro(lroOptions)
269
+ .operationsClient(opts);
270
+ const importSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse');
271
+ const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata');
272
+ const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse');
273
+ const purgeSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata');
274
+ this.descriptors.longrunning = {
275
+ importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
276
+ purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
277
+ };
164
278
  // Put together the default options sent with requests.
165
279
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
166
280
  // Set up a dictionary of "inner API calls"; the core implementation
@@ -195,7 +309,11 @@ class CompletionServiceClient {
195
309
  .CompletionService, this._opts, this._providedCustomServicePath);
196
310
  // Iterate over each of the methods that the service provides
197
311
  // and create an API call method for each.
198
- const completionServiceStubMethods = ['completeQuery'];
312
+ const completionServiceStubMethods = [
313
+ 'completeQuery',
314
+ 'importSuggestionDenyListEntries',
315
+ 'purgeSuggestionDenyListEntries',
316
+ ];
199
317
  for (const methodName of completionServiceStubMethods) {
200
318
  const callPromise = this.completionServiceStub.then(stub => (...args) => {
201
319
  if (this._terminated) {
@@ -206,7 +324,7 @@ class CompletionServiceClient {
206
324
  }, (err) => () => {
207
325
  throw err;
208
326
  });
209
- const descriptor = undefined;
327
+ const descriptor = this.descriptors.longrunning[methodName] || undefined;
210
328
  const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
211
329
  this.innerApiCalls[methodName] = apiCall;
212
330
  }
@@ -293,6 +411,82 @@ class CompletionServiceClient {
293
411
  this.initialize();
294
412
  return this.innerApiCalls.completeQuery(request, options, callback);
295
413
  }
414
+ importSuggestionDenyListEntries(request, optionsOrCallback, callback) {
415
+ var _a;
416
+ request = request || {};
417
+ let options;
418
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
419
+ callback = optionsOrCallback;
420
+ options = {};
421
+ }
422
+ else {
423
+ options = optionsOrCallback;
424
+ }
425
+ options = options || {};
426
+ options.otherArgs = options.otherArgs || {};
427
+ options.otherArgs.headers = options.otherArgs.headers || {};
428
+ options.otherArgs.headers['x-goog-request-params'] =
429
+ this._gaxModule.routingHeader.fromParams({
430
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
431
+ });
432
+ this.initialize();
433
+ return this.innerApiCalls.importSuggestionDenyListEntries(request, options, callback);
434
+ }
435
+ /**
436
+ * Check the status of the long running operation returned by `importSuggestionDenyListEntries()`.
437
+ * @param {String} name
438
+ * The operation name that will be passed.
439
+ * @returns {Promise} - The promise which resolves to an object.
440
+ * The decoded operation object has result and metadata field to get information from.
441
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
442
+ * for more details and examples.
443
+ * @example <caption>include:samples/generated/v1alpha/completion_service.import_suggestion_deny_list_entries.js</caption>
444
+ * region_tag:discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_async
445
+ */
446
+ async checkImportSuggestionDenyListEntriesProgress(name) {
447
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
448
+ const [operation] = await this.operationsClient.getOperation(request);
449
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
450
+ return decodeOperation;
451
+ }
452
+ purgeSuggestionDenyListEntries(request, optionsOrCallback, callback) {
453
+ var _a;
454
+ request = request || {};
455
+ let options;
456
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
457
+ callback = optionsOrCallback;
458
+ options = {};
459
+ }
460
+ else {
461
+ options = optionsOrCallback;
462
+ }
463
+ options = options || {};
464
+ options.otherArgs = options.otherArgs || {};
465
+ options.otherArgs.headers = options.otherArgs.headers || {};
466
+ options.otherArgs.headers['x-goog-request-params'] =
467
+ this._gaxModule.routingHeader.fromParams({
468
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
469
+ });
470
+ this.initialize();
471
+ return this.innerApiCalls.purgeSuggestionDenyListEntries(request, options, callback);
472
+ }
473
+ /**
474
+ * Check the status of the long running operation returned by `purgeSuggestionDenyListEntries()`.
475
+ * @param {String} name
476
+ * The operation name that will be passed.
477
+ * @returns {Promise} - The promise which resolves to an object.
478
+ * The decoded operation object has result and metadata field to get information from.
479
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
480
+ * for more details and examples.
481
+ * @example <caption>include:samples/generated/v1alpha/completion_service.purge_suggestion_deny_list_entries.js</caption>
482
+ * region_tag:discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_async
483
+ */
484
+ async checkPurgeSuggestionDenyListEntriesProgress(name) {
485
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
486
+ const [operation] = await this.operationsClient.getOperation(request);
487
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
488
+ return decodeOperation;
489
+ }
296
490
  /**
297
491
  * Gets information about a location.
298
492
  *
@@ -348,9 +542,172 @@ class CompletionServiceClient {
348
542
  listLocationsAsync(request, options) {
349
543
  return this.locationsClient.listLocationsAsync(request, options);
350
544
  }
545
+ /**
546
+ * Gets the latest state of a long-running operation. Clients can use this
547
+ * method to poll the operation result at intervals as recommended by the API
548
+ * service.
549
+ *
550
+ * @param {Object} request - The request object that will be sent.
551
+ * @param {string} request.name - The name of the operation resource.
552
+ * @param {Object=} options
553
+ * Optional parameters. You can override the default settings for this call,
554
+ * e.g, timeout, retries, paginations, etc. See {@link
555
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
556
+ * for the details.
557
+ * @param {function(?Error, ?Object)=} callback
558
+ * The function which will be called with the result of the API call.
559
+ *
560
+ * The second parameter to the callback is an object representing
561
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
562
+ * @return {Promise} - The promise which resolves to an array.
563
+ * The first element of the array is an object representing
564
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
565
+ * The promise has a method named "cancel" which cancels the ongoing API call.
566
+ *
567
+ * @example
568
+ * ```
569
+ * const client = longrunning.operationsClient();
570
+ * const name = '';
571
+ * const [response] = await client.getOperation({name});
572
+ * // doThingsWith(response)
573
+ * ```
574
+ */
575
+ getOperation(request, options, callback) {
576
+ return this.operationsClient.getOperation(request, options, callback);
577
+ }
578
+ /**
579
+ * Lists operations that match the specified filter in the request. If the
580
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
581
+ *
582
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
583
+ *
584
+ * @param {Object} request - The request object that will be sent.
585
+ * @param {string} request.name - The name of the operation collection.
586
+ * @param {string} request.filter - The standard list filter.
587
+ * @param {number=} request.pageSize -
588
+ * The maximum number of resources contained in the underlying API
589
+ * response. If page streaming is performed per-resource, this
590
+ * parameter does not affect the return value. If page streaming is
591
+ * performed per-page, this determines the maximum number of
592
+ * resources in a page.
593
+ * @param {Object=} options
594
+ * Optional parameters. You can override the default settings for this call,
595
+ * e.g, timeout, retries, paginations, etc. See {@link
596
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
597
+ * details.
598
+ * @returns {Object}
599
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
600
+ *
601
+ * @example
602
+ * ```
603
+ * const client = longrunning.operationsClient();
604
+ * for await (const response of client.listOperationsAsync(request));
605
+ * // doThingsWith(response)
606
+ * ```
607
+ */
608
+ listOperationsAsync(request, options) {
609
+ return this.operationsClient.listOperationsAsync(request, options);
610
+ }
611
+ /**
612
+ * Starts asynchronous cancellation on a long-running operation. The server
613
+ * makes a best effort to cancel the operation, but success is not
614
+ * guaranteed. If the server doesn't support this method, it returns
615
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
616
+ * {@link Operations.GetOperation} or
617
+ * other methods to check whether the cancellation succeeded or whether the
618
+ * operation completed despite cancellation. On successful cancellation,
619
+ * the operation is not deleted; instead, it becomes an operation with
620
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
621
+ * 1, corresponding to `Code.CANCELLED`.
622
+ *
623
+ * @param {Object} request - The request object that will be sent.
624
+ * @param {string} request.name - The name of the operation resource to be cancelled.
625
+ * @param {Object=} options
626
+ * Optional parameters. You can override the default settings for this call,
627
+ * e.g, timeout, retries, paginations, etc. See {@link
628
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
629
+ * details.
630
+ * @param {function(?Error)=} callback
631
+ * The function which will be called with the result of the API call.
632
+ * @return {Promise} - The promise which resolves when API call finishes.
633
+ * The promise has a method named "cancel" which cancels the ongoing API
634
+ * call.
635
+ *
636
+ * @example
637
+ * ```
638
+ * const client = longrunning.operationsClient();
639
+ * await client.cancelOperation({name: ''});
640
+ * ```
641
+ */
642
+ cancelOperation(request, options, callback) {
643
+ return this.operationsClient.cancelOperation(request, options, callback);
644
+ }
645
+ /**
646
+ * Deletes a long-running operation. This method indicates that the client is
647
+ * no longer interested in the operation result. It does not cancel the
648
+ * operation. If the server doesn't support this method, it returns
649
+ * `google.rpc.Code.UNIMPLEMENTED`.
650
+ *
651
+ * @param {Object} request - The request object that will be sent.
652
+ * @param {string} request.name - The name of the operation resource to be deleted.
653
+ * @param {Object=} options
654
+ * Optional parameters. You can override the default settings for this call,
655
+ * e.g, timeout, retries, paginations, etc. See {@link
656
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
657
+ * for the details.
658
+ * @param {function(?Error)=} callback
659
+ * The function which will be called with the result of the API call.
660
+ * @return {Promise} - The promise which resolves when API call finishes.
661
+ * The promise has a method named "cancel" which cancels the ongoing API
662
+ * call.
663
+ *
664
+ * @example
665
+ * ```
666
+ * const client = longrunning.operationsClient();
667
+ * await client.deleteOperation({name: ''});
668
+ * ```
669
+ */
670
+ deleteOperation(request, options, callback) {
671
+ return this.operationsClient.deleteOperation(request, options, callback);
672
+ }
351
673
  // --------------------
352
674
  // -- Path templates --
353
675
  // --------------------
676
+ /**
677
+ * Return a fully-qualified aclConfig resource name string.
678
+ *
679
+ * @param {string} project
680
+ * @param {string} location
681
+ * @returns {string} Resource name string.
682
+ */
683
+ aclConfigPath(project, location) {
684
+ return this.pathTemplates.aclConfigPathTemplate.render({
685
+ project: project,
686
+ location: location,
687
+ });
688
+ }
689
+ /**
690
+ * Parse the project from AclConfig resource.
691
+ *
692
+ * @param {string} aclConfigName
693
+ * A fully-qualified path representing AclConfig resource.
694
+ * @returns {string} A string representing the project.
695
+ */
696
+ matchProjectFromAclConfigName(aclConfigName) {
697
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
698
+ .project;
699
+ }
700
+ /**
701
+ * Parse the location from AclConfig resource.
702
+ *
703
+ * @param {string} aclConfigName
704
+ * A fully-qualified path representing AclConfig resource.
705
+ * @returns {string} A string representing the location.
706
+ */
707
+ matchLocationFromAclConfigName(aclConfigName) {
708
+ return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
709
+ .location;
710
+ }
354
711
  /**
355
712
  * Return a fully-qualified engine resource name string.
356
713
  *
@@ -546,6 +903,99 @@ class CompletionServiceClient {
546
903
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
547
904
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
548
905
  }
906
+ /**
907
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
908
+ *
909
+ * @param {string} project
910
+ * @param {string} location
911
+ * @param {string} collection
912
+ * @param {string} data_store
913
+ * @param {string} branch
914
+ * @param {string} document
915
+ * @param {string} chunk
916
+ * @returns {string} Resource name string.
917
+ */
918
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
919
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
920
+ project: project,
921
+ location: location,
922
+ collection: collection,
923
+ data_store: dataStore,
924
+ branch: branch,
925
+ document: document,
926
+ chunk: chunk,
927
+ });
928
+ }
929
+ /**
930
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
931
+ *
932
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
933
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
934
+ * @returns {string} A string representing the project.
935
+ */
936
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
937
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
938
+ }
939
+ /**
940
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
941
+ *
942
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
943
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
944
+ * @returns {string} A string representing the location.
945
+ */
946
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
947
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
948
+ }
949
+ /**
950
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
951
+ *
952
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
953
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
954
+ * @returns {string} A string representing the collection.
955
+ */
956
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
957
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
958
+ }
959
+ /**
960
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
961
+ *
962
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
963
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
964
+ * @returns {string} A string representing the data_store.
965
+ */
966
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
967
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
968
+ }
969
+ /**
970
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
971
+ *
972
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
973
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
974
+ * @returns {string} A string representing the branch.
975
+ */
976
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
977
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
978
+ }
979
+ /**
980
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
981
+ *
982
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
983
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
984
+ * @returns {string} A string representing the document.
985
+ */
986
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
987
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
988
+ }
989
+ /**
990
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
991
+ *
992
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
993
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
994
+ * @returns {string} A string representing the chunk.
995
+ */
996
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
997
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
998
+ }
549
999
  /**
550
1000
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
551
1001
  *
@@ -615,6 +1065,63 @@ class CompletionServiceClient {
615
1065
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
616
1066
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
617
1067
  }
1068
+ /**
1069
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1070
+ *
1071
+ * @param {string} project
1072
+ * @param {string} location
1073
+ * @param {string} collection
1074
+ * @param {string} data_store
1075
+ * @returns {string} Resource name string.
1076
+ */
1077
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1078
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1079
+ project: project,
1080
+ location: location,
1081
+ collection: collection,
1082
+ data_store: dataStore,
1083
+ });
1084
+ }
1085
+ /**
1086
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1087
+ *
1088
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1089
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1090
+ * @returns {string} A string representing the project.
1091
+ */
1092
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1093
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1094
+ }
1095
+ /**
1096
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1097
+ *
1098
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1099
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1100
+ * @returns {string} A string representing the location.
1101
+ */
1102
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1103
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1104
+ }
1105
+ /**
1106
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1107
+ *
1108
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1109
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1110
+ * @returns {string} A string representing the collection.
1111
+ */
1112
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1113
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1114
+ }
1115
+ /**
1116
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1117
+ *
1118
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1119
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1120
+ * @returns {string} A string representing the data_store.
1121
+ */
1122
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1123
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1124
+ }
618
1125
  /**
619
1126
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
620
1127
  *
@@ -684,6 +1191,75 @@ class CompletionServiceClient {
684
1191
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
685
1192
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
686
1193
  }
1194
+ /**
1195
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1196
+ *
1197
+ * @param {string} project
1198
+ * @param {string} location
1199
+ * @param {string} collection
1200
+ * @param {string} data_store
1201
+ * @param {string} serving_config
1202
+ * @returns {string} Resource name string.
1203
+ */
1204
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1205
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1206
+ project: project,
1207
+ location: location,
1208
+ collection: collection,
1209
+ data_store: dataStore,
1210
+ serving_config: servingConfig,
1211
+ });
1212
+ }
1213
+ /**
1214
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1215
+ *
1216
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1217
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1218
+ * @returns {string} A string representing the project.
1219
+ */
1220
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1221
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1222
+ }
1223
+ /**
1224
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1225
+ *
1226
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1227
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1228
+ * @returns {string} A string representing the location.
1229
+ */
1230
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1231
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1232
+ }
1233
+ /**
1234
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1235
+ *
1236
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1237
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1238
+ * @returns {string} A string representing the collection.
1239
+ */
1240
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1241
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1242
+ }
1243
+ /**
1244
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1245
+ *
1246
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1247
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1248
+ * @returns {string} A string representing the data_store.
1249
+ */
1250
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1251
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1252
+ }
1253
+ /**
1254
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1255
+ *
1256
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1257
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1258
+ * @returns {string} A string representing the serving_config.
1259
+ */
1260
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1261
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1262
+ }
687
1263
  /**
688
1264
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
689
1265
  *
@@ -879,6 +1455,75 @@ class CompletionServiceClient {
879
1455
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
880
1456
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
881
1457
  }
1458
+ /**
1459
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1460
+ *
1461
+ * @param {string} project
1462
+ * @param {string} location
1463
+ * @param {string} collection
1464
+ * @param {string} engine
1465
+ * @param {string} serving_config
1466
+ * @returns {string} Resource name string.
1467
+ */
1468
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1469
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1470
+ project: project,
1471
+ location: location,
1472
+ collection: collection,
1473
+ engine: engine,
1474
+ serving_config: servingConfig,
1475
+ });
1476
+ }
1477
+ /**
1478
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1479
+ *
1480
+ * @param {string} projectLocationCollectionEngineServingConfigName
1481
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1482
+ * @returns {string} A string representing the project.
1483
+ */
1484
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1485
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1486
+ }
1487
+ /**
1488
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1489
+ *
1490
+ * @param {string} projectLocationCollectionEngineServingConfigName
1491
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1492
+ * @returns {string} A string representing the location.
1493
+ */
1494
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1495
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1496
+ }
1497
+ /**
1498
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1499
+ *
1500
+ * @param {string} projectLocationCollectionEngineServingConfigName
1501
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1502
+ * @returns {string} A string representing the collection.
1503
+ */
1504
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1505
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1506
+ }
1507
+ /**
1508
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1509
+ *
1510
+ * @param {string} projectLocationCollectionEngineServingConfigName
1511
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1512
+ * @returns {string} A string representing the engine.
1513
+ */
1514
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1515
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1516
+ }
1517
+ /**
1518
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1519
+ *
1520
+ * @param {string} projectLocationCollectionEngineServingConfigName
1521
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1522
+ * @returns {string} A string representing the serving_config.
1523
+ */
1524
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1525
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1526
+ }
882
1527
  /**
883
1528
  * Return a fully-qualified projectLocationDataStore resource name string.
884
1529
  *
@@ -993,6 +1638,87 @@ class CompletionServiceClient {
993
1638
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
994
1639
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
995
1640
  }
1641
+ /**
1642
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1643
+ *
1644
+ * @param {string} project
1645
+ * @param {string} location
1646
+ * @param {string} data_store
1647
+ * @param {string} branch
1648
+ * @param {string} document
1649
+ * @param {string} chunk
1650
+ * @returns {string} Resource name string.
1651
+ */
1652
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1653
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1654
+ project: project,
1655
+ location: location,
1656
+ data_store: dataStore,
1657
+ branch: branch,
1658
+ document: document,
1659
+ chunk: chunk,
1660
+ });
1661
+ }
1662
+ /**
1663
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1664
+ *
1665
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1666
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1667
+ * @returns {string} A string representing the project.
1668
+ */
1669
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1670
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1671
+ }
1672
+ /**
1673
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1674
+ *
1675
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1676
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1677
+ * @returns {string} A string representing the location.
1678
+ */
1679
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1680
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1681
+ }
1682
+ /**
1683
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1684
+ *
1685
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1686
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1687
+ * @returns {string} A string representing the data_store.
1688
+ */
1689
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1690
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1691
+ }
1692
+ /**
1693
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1694
+ *
1695
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1696
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1697
+ * @returns {string} A string representing the branch.
1698
+ */
1699
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1700
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1701
+ }
1702
+ /**
1703
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1704
+ *
1705
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1706
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1707
+ * @returns {string} A string representing the document.
1708
+ */
1709
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1710
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
1711
+ }
1712
+ /**
1713
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1714
+ *
1715
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1716
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1717
+ * @returns {string} A string representing the chunk.
1718
+ */
1719
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1720
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
1721
+ }
996
1722
  /**
997
1723
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
998
1724
  *
@@ -1050,6 +1776,51 @@ class CompletionServiceClient {
1050
1776
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1051
1777
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1052
1778
  }
1779
+ /**
1780
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1781
+ *
1782
+ * @param {string} project
1783
+ * @param {string} location
1784
+ * @param {string} data_store
1785
+ * @returns {string} Resource name string.
1786
+ */
1787
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
1788
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
1789
+ project: project,
1790
+ location: location,
1791
+ data_store: dataStore,
1792
+ });
1793
+ }
1794
+ /**
1795
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
1796
+ *
1797
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1798
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1799
+ * @returns {string} A string representing the project.
1800
+ */
1801
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1802
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
1803
+ }
1804
+ /**
1805
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
1806
+ *
1807
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1808
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1809
+ * @returns {string} A string representing the location.
1810
+ */
1811
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1812
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
1813
+ }
1814
+ /**
1815
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
1816
+ *
1817
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
1818
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
1819
+ * @returns {string} A string representing the data_store.
1820
+ */
1821
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
1822
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
1823
+ }
1053
1824
  /**
1054
1825
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1055
1826
  *
@@ -1107,6 +1878,63 @@ class CompletionServiceClient {
1107
1878
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
1108
1879
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
1109
1880
  }
1881
+ /**
1882
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
1883
+ *
1884
+ * @param {string} project
1885
+ * @param {string} location
1886
+ * @param {string} data_store
1887
+ * @param {string} serving_config
1888
+ * @returns {string} Resource name string.
1889
+ */
1890
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
1891
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
1892
+ project: project,
1893
+ location: location,
1894
+ data_store: dataStore,
1895
+ serving_config: servingConfig,
1896
+ });
1897
+ }
1898
+ /**
1899
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
1900
+ *
1901
+ * @param {string} projectLocationDataStoreServingConfigName
1902
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1903
+ * @returns {string} A string representing the project.
1904
+ */
1905
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1906
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
1907
+ }
1908
+ /**
1909
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
1910
+ *
1911
+ * @param {string} projectLocationDataStoreServingConfigName
1912
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1913
+ * @returns {string} A string representing the location.
1914
+ */
1915
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1916
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
1917
+ }
1918
+ /**
1919
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
1920
+ *
1921
+ * @param {string} projectLocationDataStoreServingConfigName
1922
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1923
+ * @returns {string} A string representing the data_store.
1924
+ */
1925
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1926
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
1927
+ }
1928
+ /**
1929
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
1930
+ *
1931
+ * @param {string} projectLocationDataStoreServingConfigName
1932
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
1933
+ * @returns {string} A string representing the serving_config.
1934
+ */
1935
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1936
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1937
+ }
1110
1938
  /**
1111
1939
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1112
1940
  *
@@ -1221,6 +2049,7 @@ class CompletionServiceClient {
1221
2049
  this._terminated = true;
1222
2050
  stub.close();
1223
2051
  this.locationsClient.close();
2052
+ this.operationsClient.close();
1224
2053
  });
1225
2054
  }
1226
2055
  return Promise.resolve();