@google-cloud/discoveryengine 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +24 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +13 -1
  4. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +5 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +17 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/document.proto +9 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +2 -2
  9. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +284 -22
  10. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +3 -0
  11. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +228 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +125 -21
  13. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +16 -11
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +328 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +41 -1
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +21 -1
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +19 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +2 -2
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +283 -24
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +21 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +158 -24
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +9 -3
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +2 -1
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +1 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +30 -1
  35. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +559 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +3 -6
  37. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +6 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +2 -2
  39. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +93 -0
  40. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
  41. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
  42. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +283 -24
  43. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +142 -22
  45. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +7 -1
  46. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
  47. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +1 -1
  48. package/build/protos/protos.d.ts +44799 -26093
  49. package/build/protos/protos.js +120465 -74222
  50. package/build/protos/protos.json +8911 -4556
  51. package/build/src/index.d.ts +4 -1
  52. package/build/src/index.js +4 -1
  53. package/build/src/v1/conversational_search_service_client.d.ts +4 -0
  54. package/build/src/v1/document_service_client.d.ts +47 -19
  55. package/build/src/v1/index.d.ts +1 -0
  56. package/build/src/v1/index.js +3 -1
  57. package/build/src/v1/recommendation_service_client.d.ts +1087 -0
  58. package/build/src/v1/recommendation_service_client.js +1432 -0
  59. package/build/src/v1/recommendation_service_client_config.json +43 -0
  60. package/build/src/v1/search_service_client.d.ts +27 -9
  61. package/build/src/v1/search_service_client.js +18 -6
  62. package/build/src/v1/search_service_client_config.json +5 -5
  63. package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
  64. package/build/src/v1alpha/acl_config_service_client.js +454 -0
  65. package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
  66. package/build/src/v1alpha/chunk_service_client.js +454 -0
  67. package/build/src/v1alpha/completion_service_client.d.ts +330 -0
  68. package/build/src/v1alpha/completion_service_client.js +457 -0
  69. package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
  70. package/build/src/v1alpha/conversational_search_service_client.js +724 -0
  71. package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
  72. package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
  73. package/build/src/v1alpha/data_store_service_client.js +457 -0
  74. package/build/src/v1alpha/document_service_client.d.ts +410 -21
  75. package/build/src/v1alpha/document_service_client.js +479 -0
  76. package/build/src/v1alpha/document_service_client_config.json +5 -0
  77. package/build/src/v1alpha/engine_service_client.d.ts +330 -0
  78. package/build/src/v1alpha/engine_service_client.js +457 -0
  79. package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
  80. package/build/src/v1alpha/estimate_billing_service_client.js +457 -0
  81. package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
  82. package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
  83. package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
  84. package/build/src/v1alpha/index.d.ts +3 -1
  85. package/build/src/v1alpha/index.js +7 -3
  86. package/build/src/v1alpha/project_service_client.d.ts +1756 -0
  87. package/build/src/v1alpha/project_service_client.js +2500 -0
  88. package/build/src/v1alpha/project_service_client_config.json +38 -0
  89. package/build/src/v1alpha/rank_service_client.d.ts +330 -0
  90. package/build/src/v1alpha/rank_service_client.js +454 -0
  91. package/build/src/v1alpha/rank_service_client_config.json +15 -2
  92. package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
  93. package/build/src/v1alpha/recommendation_service_client.js +454 -0
  94. package/build/src/v1alpha/schema_service_client.d.ts +330 -0
  95. package/build/src/v1alpha/schema_service_client.js +457 -0
  96. package/build/src/v1alpha/search_service_client.d.ts +360 -15
  97. package/build/src/v1alpha/search_service_client.js +474 -10
  98. package/build/src/v1alpha/search_service_client_config.json +5 -5
  99. package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
  100. package/build/src/v1alpha/search_tuning_service_client.js +457 -0
  101. package/build/src/v1alpha/serving_config_service_client.d.ts +317 -1
  102. package/build/src/v1alpha/serving_config_service_client.js +434 -1
  103. package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
  104. package/build/src/v1alpha/site_search_engine_service_client.js +457 -0
  105. package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
  106. package/build/src/v1alpha/user_event_service_client.js +457 -0
  107. package/build/src/v1beta/completion_service_client.d.ts +315 -0
  108. package/build/src/v1beta/completion_service_client.js +432 -0
  109. package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
  110. package/build/src/v1beta/conversational_search_service_client.js +702 -0
  111. package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
  112. package/build/src/v1beta/data_store_service_client.d.ts +315 -0
  113. package/build/src/v1beta/data_store_service_client.js +432 -0
  114. package/build/src/v1beta/document_service_client.d.ts +361 -21
  115. package/build/src/v1beta/document_service_client.js +432 -0
  116. package/build/src/v1beta/engine_service_client.d.ts +410 -0
  117. package/build/src/v1beta/engine_service_client.js +518 -0
  118. package/build/src/v1beta/engine_service_client_config.json +12 -0
  119. package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
  120. package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
  121. package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
  122. package/build/src/v1beta/index.d.ts +2 -0
  123. package/build/src/v1beta/index.js +5 -1
  124. package/build/src/v1beta/rank_service_client.d.ts +1416 -0
  125. package/build/src/v1beta/rank_service_client.js +2015 -0
  126. package/build/src/v1beta/rank_service_client_config.json +43 -0
  127. package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
  128. package/build/src/v1beta/recommendation_service_client.js +432 -0
  129. package/build/src/v1beta/schema_service_client.d.ts +315 -0
  130. package/build/src/v1beta/schema_service_client.js +432 -0
  131. package/build/src/v1beta/search_service_client.d.ts +342 -12
  132. package/build/src/v1beta/search_service_client.js +450 -8
  133. package/build/src/v1beta/search_service_client_config.json +5 -5
  134. package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
  135. package/build/src/v1beta/search_tuning_service_client.js +432 -0
  136. package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
  137. package/build/src/v1beta/serving_config_service_client.js +432 -0
  138. package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
  139. package/build/src/v1beta/site_search_engine_service_client.js +432 -0
  140. package/build/src/v1beta/user_event_service_client.d.ts +315 -0
  141. package/build/src/v1beta/user_event_service_client.js +432 -0
  142. package/package.json +1 -1
@@ -158,16 +158,22 @@ class EngineServiceClient {
158
158
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
159
159
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
160
160
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
161
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
162
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
161
163
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
162
164
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
163
165
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
164
166
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
167
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
168
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
165
169
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
166
170
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
167
171
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
168
172
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
169
173
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
170
174
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
175
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
176
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
171
177
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
172
178
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
173
179
  };
@@ -279,9 +285,12 @@ class EngineServiceClient {
279
285
  const createEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.CreateEngineMetadata');
280
286
  const deleteEngineResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
281
287
  const deleteEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.DeleteEngineMetadata');
288
+ const tuneEngineResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.TuneEngineResponse');
289
+ const tuneEngineMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.TuneEngineMetadata');
282
290
  this.descriptors.longrunning = {
283
291
  createEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createEngineResponse.decode.bind(createEngineResponse), createEngineMetadata.decode.bind(createEngineMetadata)),
284
292
  deleteEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteEngineResponse.decode.bind(deleteEngineResponse), deleteEngineMetadata.decode.bind(deleteEngineMetadata)),
293
+ tuneEngine: new this._gaxModule.LongrunningDescriptor(this.operationsClient, tuneEngineResponse.decode.bind(tuneEngineResponse), tuneEngineMetadata.decode.bind(tuneEngineMetadata)),
285
294
  };
286
295
  // Put together the default options sent with requests.
287
296
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.EngineService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -323,6 +332,9 @@ class EngineServiceClient {
323
332
  'updateEngine',
324
333
  'getEngine',
325
334
  'listEngines',
335
+ 'pauseEngine',
336
+ 'resumeEngine',
337
+ 'tuneEngine',
326
338
  ];
327
339
  for (const methodName of engineServiceStubMethods) {
328
340
  const callPromise = this.engineServiceStub.then(stub => (...args) => {
@@ -444,6 +456,48 @@ class EngineServiceClient {
444
456
  this.initialize();
445
457
  return this.innerApiCalls.getEngine(request, options, callback);
446
458
  }
459
+ pauseEngine(request, optionsOrCallback, callback) {
460
+ var _a;
461
+ request = request || {};
462
+ let options;
463
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
464
+ callback = optionsOrCallback;
465
+ options = {};
466
+ }
467
+ else {
468
+ options = optionsOrCallback;
469
+ }
470
+ options = options || {};
471
+ options.otherArgs = options.otherArgs || {};
472
+ options.otherArgs.headers = options.otherArgs.headers || {};
473
+ options.otherArgs.headers['x-goog-request-params'] =
474
+ this._gaxModule.routingHeader.fromParams({
475
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
476
+ });
477
+ this.initialize();
478
+ return this.innerApiCalls.pauseEngine(request, options, callback);
479
+ }
480
+ resumeEngine(request, optionsOrCallback, callback) {
481
+ var _a;
482
+ request = request || {};
483
+ let options;
484
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
485
+ callback = optionsOrCallback;
486
+ options = {};
487
+ }
488
+ else {
489
+ options = optionsOrCallback;
490
+ }
491
+ options = options || {};
492
+ options.otherArgs = options.otherArgs || {};
493
+ options.otherArgs.headers = options.otherArgs.headers || {};
494
+ options.otherArgs.headers['x-goog-request-params'] =
495
+ this._gaxModule.routingHeader.fromParams({
496
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
497
+ });
498
+ this.initialize();
499
+ return this.innerApiCalls.resumeEngine(request, options, callback);
500
+ }
447
501
  createEngine(request, optionsOrCallback, callback) {
448
502
  var _a;
449
503
  request = request || {};
@@ -520,6 +574,44 @@ class EngineServiceClient {
520
574
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteEngine, this._gaxModule.createDefaultBackoffSettings());
521
575
  return decodeOperation;
522
576
  }
577
+ tuneEngine(request, optionsOrCallback, callback) {
578
+ var _a;
579
+ request = request || {};
580
+ let options;
581
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
582
+ callback = optionsOrCallback;
583
+ options = {};
584
+ }
585
+ else {
586
+ options = optionsOrCallback;
587
+ }
588
+ options = options || {};
589
+ options.otherArgs = options.otherArgs || {};
590
+ options.otherArgs.headers = options.otherArgs.headers || {};
591
+ options.otherArgs.headers['x-goog-request-params'] =
592
+ this._gaxModule.routingHeader.fromParams({
593
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
594
+ });
595
+ this.initialize();
596
+ return this.innerApiCalls.tuneEngine(request, options, callback);
597
+ }
598
+ /**
599
+ * Check the status of the long running operation returned by `tuneEngine()`.
600
+ * @param {String} name
601
+ * The operation name that will be passed.
602
+ * @returns {Promise} - The promise which resolves to an object.
603
+ * The decoded operation object has result and metadata field to get information from.
604
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
605
+ * for more details and examples.
606
+ * @example <caption>include:samples/generated/v1beta/engine_service.tune_engine.js</caption>
607
+ * region_tag:discoveryengine_v1beta_generated_EngineService_TuneEngine_async
608
+ */
609
+ async checkTuneEngineProgress(name) {
610
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
611
+ const [operation] = await this.operationsClient.getOperation(request);
612
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.tuneEngine, this._gaxModule.createDefaultBackoffSettings());
613
+ return decodeOperation;
614
+ }
523
615
  listEngines(request, optionsOrCallback, callback) {
524
616
  var _a;
525
617
  request = request || {};
@@ -1317,6 +1409,156 @@ class EngineServiceClient {
1317
1409
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1318
1410
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1319
1411
  }
1412
+ /**
1413
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1414
+ *
1415
+ * @param {string} project
1416
+ * @param {string} location
1417
+ * @param {string} collection
1418
+ * @param {string} data_store
1419
+ * @param {string} session
1420
+ * @returns {string} Resource name string.
1421
+ */
1422
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1423
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1424
+ project: project,
1425
+ location: location,
1426
+ collection: collection,
1427
+ data_store: dataStore,
1428
+ session: session,
1429
+ });
1430
+ }
1431
+ /**
1432
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1433
+ *
1434
+ * @param {string} projectLocationCollectionDataStoreSessionName
1435
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1436
+ * @returns {string} A string representing the project.
1437
+ */
1438
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1439
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1440
+ }
1441
+ /**
1442
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1443
+ *
1444
+ * @param {string} projectLocationCollectionDataStoreSessionName
1445
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1446
+ * @returns {string} A string representing the location.
1447
+ */
1448
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1449
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1450
+ }
1451
+ /**
1452
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1453
+ *
1454
+ * @param {string} projectLocationCollectionDataStoreSessionName
1455
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1456
+ * @returns {string} A string representing the collection.
1457
+ */
1458
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1459
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1460
+ }
1461
+ /**
1462
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1463
+ *
1464
+ * @param {string} projectLocationCollectionDataStoreSessionName
1465
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1466
+ * @returns {string} A string representing the data_store.
1467
+ */
1468
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1469
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1470
+ }
1471
+ /**
1472
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1473
+ *
1474
+ * @param {string} projectLocationCollectionDataStoreSessionName
1475
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1476
+ * @returns {string} A string representing the session.
1477
+ */
1478
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1479
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1480
+ }
1481
+ /**
1482
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1483
+ *
1484
+ * @param {string} project
1485
+ * @param {string} location
1486
+ * @param {string} collection
1487
+ * @param {string} data_store
1488
+ * @param {string} session
1489
+ * @param {string} answer
1490
+ * @returns {string} Resource name string.
1491
+ */
1492
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1493
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1494
+ project: project,
1495
+ location: location,
1496
+ collection: collection,
1497
+ data_store: dataStore,
1498
+ session: session,
1499
+ answer: answer,
1500
+ });
1501
+ }
1502
+ /**
1503
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1504
+ *
1505
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1506
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1507
+ * @returns {string} A string representing the project.
1508
+ */
1509
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1510
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1511
+ }
1512
+ /**
1513
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1514
+ *
1515
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1516
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1517
+ * @returns {string} A string representing the location.
1518
+ */
1519
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1520
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1521
+ }
1522
+ /**
1523
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1524
+ *
1525
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1526
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1527
+ * @returns {string} A string representing the collection.
1528
+ */
1529
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1530
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1531
+ }
1532
+ /**
1533
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1534
+ *
1535
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1536
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1537
+ * @returns {string} A string representing the data_store.
1538
+ */
1539
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1540
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1541
+ }
1542
+ /**
1543
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1544
+ *
1545
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1546
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1547
+ * @returns {string} A string representing the session.
1548
+ */
1549
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1550
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1551
+ }
1552
+ /**
1553
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1554
+ *
1555
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1556
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1557
+ * @returns {string} A string representing the answer.
1558
+ */
1559
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1560
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1561
+ }
1320
1562
  /**
1321
1563
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1322
1564
  *
@@ -1581,6 +1823,156 @@ class EngineServiceClient {
1581
1823
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1582
1824
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1583
1825
  }
1826
+ /**
1827
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1828
+ *
1829
+ * @param {string} project
1830
+ * @param {string} location
1831
+ * @param {string} collection
1832
+ * @param {string} engine
1833
+ * @param {string} session
1834
+ * @returns {string} Resource name string.
1835
+ */
1836
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1837
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1838
+ project: project,
1839
+ location: location,
1840
+ collection: collection,
1841
+ engine: engine,
1842
+ session: session,
1843
+ });
1844
+ }
1845
+ /**
1846
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1847
+ *
1848
+ * @param {string} projectLocationCollectionEngineSessionName
1849
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1850
+ * @returns {string} A string representing the project.
1851
+ */
1852
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1853
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1854
+ }
1855
+ /**
1856
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1857
+ *
1858
+ * @param {string} projectLocationCollectionEngineSessionName
1859
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1860
+ * @returns {string} A string representing the location.
1861
+ */
1862
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1863
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1864
+ }
1865
+ /**
1866
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1867
+ *
1868
+ * @param {string} projectLocationCollectionEngineSessionName
1869
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1870
+ * @returns {string} A string representing the collection.
1871
+ */
1872
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1873
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1874
+ }
1875
+ /**
1876
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1877
+ *
1878
+ * @param {string} projectLocationCollectionEngineSessionName
1879
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1880
+ * @returns {string} A string representing the engine.
1881
+ */
1882
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1883
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1884
+ }
1885
+ /**
1886
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1887
+ *
1888
+ * @param {string} projectLocationCollectionEngineSessionName
1889
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1890
+ * @returns {string} A string representing the session.
1891
+ */
1892
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1893
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1894
+ }
1895
+ /**
1896
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1897
+ *
1898
+ * @param {string} project
1899
+ * @param {string} location
1900
+ * @param {string} collection
1901
+ * @param {string} engine
1902
+ * @param {string} session
1903
+ * @param {string} answer
1904
+ * @returns {string} Resource name string.
1905
+ */
1906
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1907
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1908
+ project: project,
1909
+ location: location,
1910
+ collection: collection,
1911
+ engine: engine,
1912
+ session: session,
1913
+ answer: answer,
1914
+ });
1915
+ }
1916
+ /**
1917
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1918
+ *
1919
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1920
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1921
+ * @returns {string} A string representing the project.
1922
+ */
1923
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1924
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1925
+ }
1926
+ /**
1927
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1928
+ *
1929
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1930
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1931
+ * @returns {string} A string representing the location.
1932
+ */
1933
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1934
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1935
+ }
1936
+ /**
1937
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1938
+ *
1939
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1940
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1941
+ * @returns {string} A string representing the collection.
1942
+ */
1943
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1944
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1945
+ }
1946
+ /**
1947
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1948
+ *
1949
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1950
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1951
+ * @returns {string} A string representing the engine.
1952
+ */
1953
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1954
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1955
+ }
1956
+ /**
1957
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1958
+ *
1959
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1960
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1961
+ * @returns {string} A string representing the session.
1962
+ */
1963
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1964
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1965
+ }
1966
+ /**
1967
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1968
+ *
1969
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1970
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1971
+ * @returns {string} A string representing the answer.
1972
+ */
1973
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1974
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1975
+ }
1584
1976
  /**
1585
1977
  * Return a fully-qualified projectLocationDataStore resource name string.
1586
1978
  *
@@ -1911,6 +2303,132 @@ class EngineServiceClient {
1911
2303
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1912
2304
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1913
2305
  }
2306
+ /**
2307
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2308
+ *
2309
+ * @param {string} project
2310
+ * @param {string} location
2311
+ * @param {string} data_store
2312
+ * @param {string} session
2313
+ * @returns {string} Resource name string.
2314
+ */
2315
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2316
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2317
+ project: project,
2318
+ location: location,
2319
+ data_store: dataStore,
2320
+ session: session,
2321
+ });
2322
+ }
2323
+ /**
2324
+ * Parse the project from ProjectLocationDataStoreSession resource.
2325
+ *
2326
+ * @param {string} projectLocationDataStoreSessionName
2327
+ * A fully-qualified path representing project_location_data_store_session resource.
2328
+ * @returns {string} A string representing the project.
2329
+ */
2330
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2331
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2332
+ }
2333
+ /**
2334
+ * Parse the location from ProjectLocationDataStoreSession resource.
2335
+ *
2336
+ * @param {string} projectLocationDataStoreSessionName
2337
+ * A fully-qualified path representing project_location_data_store_session resource.
2338
+ * @returns {string} A string representing the location.
2339
+ */
2340
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2341
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2342
+ }
2343
+ /**
2344
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2345
+ *
2346
+ * @param {string} projectLocationDataStoreSessionName
2347
+ * A fully-qualified path representing project_location_data_store_session resource.
2348
+ * @returns {string} A string representing the data_store.
2349
+ */
2350
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2351
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2352
+ }
2353
+ /**
2354
+ * Parse the session from ProjectLocationDataStoreSession resource.
2355
+ *
2356
+ * @param {string} projectLocationDataStoreSessionName
2357
+ * A fully-qualified path representing project_location_data_store_session resource.
2358
+ * @returns {string} A string representing the session.
2359
+ */
2360
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2361
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2362
+ }
2363
+ /**
2364
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2365
+ *
2366
+ * @param {string} project
2367
+ * @param {string} location
2368
+ * @param {string} data_store
2369
+ * @param {string} session
2370
+ * @param {string} answer
2371
+ * @returns {string} Resource name string.
2372
+ */
2373
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2374
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2375
+ project: project,
2376
+ location: location,
2377
+ data_store: dataStore,
2378
+ session: session,
2379
+ answer: answer,
2380
+ });
2381
+ }
2382
+ /**
2383
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2384
+ *
2385
+ * @param {string} projectLocationDataStoreSessionAnswerName
2386
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2387
+ * @returns {string} A string representing the project.
2388
+ */
2389
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2390
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2391
+ }
2392
+ /**
2393
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2394
+ *
2395
+ * @param {string} projectLocationDataStoreSessionAnswerName
2396
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2397
+ * @returns {string} A string representing the location.
2398
+ */
2399
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2400
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2401
+ }
2402
+ /**
2403
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2404
+ *
2405
+ * @param {string} projectLocationDataStoreSessionAnswerName
2406
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2407
+ * @returns {string} A string representing the data_store.
2408
+ */
2409
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2410
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2411
+ }
2412
+ /**
2413
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2414
+ *
2415
+ * @param {string} projectLocationDataStoreSessionAnswerName
2416
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2417
+ * @returns {string} A string representing the session.
2418
+ */
2419
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2420
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2421
+ }
2422
+ /**
2423
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2424
+ *
2425
+ * @param {string} projectLocationDataStoreSessionAnswerName
2426
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2427
+ * @returns {string} A string representing the answer.
2428
+ */
2429
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2430
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2431
+ }
1914
2432
  /**
1915
2433
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1916
2434
  *
@@ -39,6 +39,18 @@
39
39
  "ListEngines": {
40
40
  "retry_codes_name": "non_idempotent",
41
41
  "retry_params_name": "default"
42
+ },
43
+ "PauseEngine": {
44
+ "retry_codes_name": "non_idempotent",
45
+ "retry_params_name": "default"
46
+ },
47
+ "ResumeEngine": {
48
+ "retry_codes_name": "non_idempotent",
49
+ "retry_params_name": "default"
50
+ },
51
+ "TuneEngine": {
52
+ "retry_codes_name": "non_idempotent",
53
+ "retry_params_name": "default"
42
54
  }
43
55
  }
44
56
  }