@google-cloud/discoveryengine 2.2.0 → 2.3.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 (129) hide show
  1. package/README.md +13 -0
  2. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +3 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
  11. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
  13. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
  16. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +6 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
  21. package/build/protos/protos.d.ts +5387 -265
  22. package/build/protos/protos.js +77991 -63105
  23. package/build/protos/protos.json +1512 -91
  24. package/build/src/index.d.ts +10 -1
  25. package/build/src/index.js +8 -2
  26. package/build/src/v1/cmek_config_service_client.d.ts +2287 -0
  27. package/build/src/v1/cmek_config_service_client.js +3274 -0
  28. package/build/src/v1/cmek_config_service_client_config.json +42 -0
  29. package/build/src/v1/cmek_config_service_proto_list.json +44 -0
  30. package/build/src/v1/completion_service_client.d.ts +90 -0
  31. package/build/src/v1/completion_service_client.js +134 -2
  32. package/build/src/v1/completion_service_proto_list.json +6 -1
  33. package/build/src/v1/control_service_client.d.ts +90 -0
  34. package/build/src/v1/control_service_client.js +150 -0
  35. package/build/src/v1/control_service_proto_list.json +6 -1
  36. package/build/src/v1/conversational_search_service_client.d.ts +90 -0
  37. package/build/src/v1/conversational_search_service_client.js +192 -0
  38. package/build/src/v1/conversational_search_service_proto_list.json +6 -1
  39. package/build/src/v1/data_store_service_client.d.ts +96 -0
  40. package/build/src/v1/data_store_service_client.js +140 -2
  41. package/build/src/v1/data_store_service_proto_list.json +6 -1
  42. package/build/src/v1/document_service_client.d.ts +90 -0
  43. package/build/src/v1/document_service_client.js +158 -2
  44. package/build/src/v1/document_service_proto_list.json +6 -1
  45. package/build/src/v1/engine_service_client.d.ts +90 -0
  46. package/build/src/v1/engine_service_client.js +140 -2
  47. package/build/src/v1/engine_service_proto_list.json +6 -1
  48. package/build/src/v1/gapic_metadata.json +184 -0
  49. package/build/src/v1/grounded_generation_service_client.d.ts +90 -0
  50. package/build/src/v1/grounded_generation_service_client.js +138 -0
  51. package/build/src/v1/grounded_generation_service_proto_list.json +6 -1
  52. package/build/src/v1/identity_mapping_store_service_client.d.ts +2470 -0
  53. package/build/src/v1/identity_mapping_store_service_client.js +3449 -0
  54. package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
  55. package/build/src/v1/identity_mapping_store_service_proto_list.json +44 -0
  56. package/build/src/v1/index.d.ts +3 -0
  57. package/build/src/v1/index.js +7 -1
  58. package/build/src/v1/project_service_client.d.ts +90 -0
  59. package/build/src/v1/project_service_client.js +128 -2
  60. package/build/src/v1/project_service_proto_list.json +6 -1
  61. package/build/src/v1/rank_service_client.d.ts +90 -0
  62. package/build/src/v1/rank_service_client.js +132 -0
  63. package/build/src/v1/rank_service_proto_list.json +6 -1
  64. package/build/src/v1/recommendation_service_client.d.ts +90 -0
  65. package/build/src/v1/recommendation_service_client.js +132 -0
  66. package/build/src/v1/recommendation_service_proto_list.json +6 -1
  67. package/build/src/v1/schema_service_client.d.ts +90 -0
  68. package/build/src/v1/schema_service_client.js +134 -2
  69. package/build/src/v1/schema_service_proto_list.json +6 -1
  70. package/build/src/v1/search_service_client.d.ts +90 -0
  71. package/build/src/v1/search_service_client.js +126 -0
  72. package/build/src/v1/search_service_proto_list.json +6 -1
  73. package/build/src/v1/search_tuning_service_client.d.ts +90 -0
  74. package/build/src/v1/search_tuning_service_client.js +134 -2
  75. package/build/src/v1/search_tuning_service_proto_list.json +6 -1
  76. package/build/src/v1/serving_config_service_client.d.ts +90 -0
  77. package/build/src/v1/serving_config_service_client.js +132 -0
  78. package/build/src/v1/serving_config_service_proto_list.json +6 -1
  79. package/build/src/v1/site_search_engine_service_client.d.ts +90 -0
  80. package/build/src/v1/site_search_engine_service_client.js +146 -2
  81. package/build/src/v1/site_search_engine_service_proto_list.json +6 -1
  82. package/build/src/v1/user_event_service_client.d.ts +90 -0
  83. package/build/src/v1/user_event_service_client.js +140 -2
  84. package/build/src/v1/user_event_service_proto_list.json +6 -1
  85. package/build/src/v1/user_license_service_client.d.ts +2256 -0
  86. package/build/src/v1/user_license_service_client.js +3194 -0
  87. package/build/src/v1/user_license_service_client_config.json +34 -0
  88. package/build/src/v1/user_license_service_proto_list.json +44 -0
  89. package/build/src/v1alpha/acl_config_service_client.js +12 -0
  90. package/build/src/v1alpha/chunk_service_client.js +6 -0
  91. package/build/src/v1alpha/completion_service_client.js +7 -1
  92. package/build/src/v1alpha/control_service_client.js +24 -0
  93. package/build/src/v1alpha/conversational_search_service_client.js +66 -0
  94. package/build/src/v1alpha/data_store_service_client.js +25 -1
  95. package/build/src/v1alpha/document_service_client.js +37 -1
  96. package/build/src/v1alpha/engine_service_client.js +25 -1
  97. package/build/src/v1alpha/estimate_billing_service_client.js +1 -1
  98. package/build/src/v1alpha/evaluation_service_client.js +7 -1
  99. package/build/src/v1alpha/grounded_generation_service_client.js +6 -0
  100. package/build/src/v1alpha/project_service_client.js +13 -1
  101. package/build/src/v1alpha/rank_service_client.js +6 -0
  102. package/build/src/v1alpha/recommendation_service_client.js +6 -0
  103. package/build/src/v1alpha/sample_query_service_client.js +25 -1
  104. package/build/src/v1alpha/sample_query_set_service_client.js +24 -0
  105. package/build/src/v1alpha/schema_service_client.js +7 -1
  106. package/build/src/v1alpha/search_tuning_service_client.js +7 -1
  107. package/build/src/v1alpha/serving_config_service_client.js +12 -0
  108. package/build/src/v1alpha/site_search_engine_service_client.js +19 -1
  109. package/build/src/v1alpha/user_event_service_client.js +13 -1
  110. package/build/src/v1beta/completion_service_client.js +13 -1
  111. package/build/src/v1beta/control_service_client.js +24 -0
  112. package/build/src/v1beta/conversational_search_service_client.js +66 -0
  113. package/build/src/v1beta/data_store_service_client.js +13 -1
  114. package/build/src/v1beta/document_service_client.js +31 -1
  115. package/build/src/v1beta/engine_service_client.js +25 -1
  116. package/build/src/v1beta/evaluation_service_client.js +7 -1
  117. package/build/src/v1beta/grounded_generation_service_client.js +12 -0
  118. package/build/src/v1beta/project_service_client.js +1 -1
  119. package/build/src/v1beta/rank_service_client.js +6 -0
  120. package/build/src/v1beta/recommendation_service_client.js +6 -0
  121. package/build/src/v1beta/sample_query_service_client.js +25 -1
  122. package/build/src/v1beta/sample_query_set_service_client.js +24 -0
  123. package/build/src/v1beta/schema_service_client.js +7 -1
  124. package/build/src/v1beta/search_tuning_service_client.js +7 -1
  125. package/build/src/v1beta/serving_config_service_client.js +12 -0
  126. package/build/src/v1beta/site_search_engine_service_client.js +19 -1
  127. package/build/src/v1beta/user_event_service_client.js +13 -1
  128. package/package.json +7 -7
  129. package/CHANGELOG.md +0 -274
@@ -164,7 +164,10 @@ class SiteSearchEngineServiceClient {
164
164
  // Create useful helper objects for these.
165
165
  this.pathTemplates = {
166
166
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
167
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
167
168
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
169
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
170
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
168
171
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
169
172
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
170
173
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -206,7 +209,7 @@ class SiteSearchEngineServiceClient {
206
209
  listTargetSites: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites'),
207
210
  fetchDomainVerificationStatus: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites')
208
211
  };
209
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
212
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
210
213
  // This API contains "long-running operations", which return a
211
214
  // an Operation object that allows for tracking of the operation,
212
215
  // rather than holding a request open.
@@ -216,7 +219,7 @@ class SiteSearchEngineServiceClient {
216
219
  };
217
220
  if (opts.fallback) {
218
221
  lroOptions.protoJson = protoFilesRoot;
219
- lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
222
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
220
223
  }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
221
224
  }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
222
225
  }];
@@ -394,6 +397,12 @@ class SiteSearchEngineServiceClient {
394
397
  ?.then(([response, options, rawResponse]) => {
395
398
  this._log.info('getSiteSearchEngine response %j', response);
396
399
  return [response, options, rawResponse];
400
+ }).catch((error) => {
401
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
402
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
403
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
404
+ }
405
+ throw error;
397
406
  });
398
407
  }
399
408
  getTargetSite(request, optionsOrCallback, callback) {
@@ -424,6 +433,12 @@ class SiteSearchEngineServiceClient {
424
433
  ?.then(([response, options, rawResponse]) => {
425
434
  this._log.info('getTargetSite response %j', response);
426
435
  return [response, options, rawResponse];
436
+ }).catch((error) => {
437
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
438
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
439
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
440
+ }
441
+ throw error;
427
442
  });
428
443
  }
429
444
  fetchSitemaps(request, optionsOrCallback, callback) {
@@ -454,6 +469,12 @@ class SiteSearchEngineServiceClient {
454
469
  ?.then(([response, options, rawResponse]) => {
455
470
  this._log.info('fetchSitemaps response %j', response);
456
471
  return [response, options, rawResponse];
472
+ }).catch((error) => {
473
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
474
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
475
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
476
+ }
477
+ throw error;
457
478
  });
458
479
  }
459
480
  createTargetSite(request, optionsOrCallback, callback) {
@@ -1489,6 +1510,51 @@ class SiteSearchEngineServiceClient {
1489
1510
  matchEngineFromEngineName(engineName) {
1490
1511
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1491
1512
  }
1513
+ /**
1514
+ * Return a fully-qualified identityMappingStore resource name string.
1515
+ *
1516
+ * @param {string} project
1517
+ * @param {string} location
1518
+ * @param {string} identity_mapping_store
1519
+ * @returns {string} Resource name string.
1520
+ */
1521
+ identityMappingStorePath(project, location, identityMappingStore) {
1522
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
1523
+ project: project,
1524
+ location: location,
1525
+ identity_mapping_store: identityMappingStore,
1526
+ });
1527
+ }
1528
+ /**
1529
+ * Parse the project from IdentityMappingStore resource.
1530
+ *
1531
+ * @param {string} identityMappingStoreName
1532
+ * A fully-qualified path representing IdentityMappingStore resource.
1533
+ * @returns {string} A string representing the project.
1534
+ */
1535
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
1536
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
1537
+ }
1538
+ /**
1539
+ * Parse the location from IdentityMappingStore resource.
1540
+ *
1541
+ * @param {string} identityMappingStoreName
1542
+ * A fully-qualified path representing IdentityMappingStore resource.
1543
+ * @returns {string} A string representing the location.
1544
+ */
1545
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
1546
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
1547
+ }
1548
+ /**
1549
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1550
+ *
1551
+ * @param {string} identityMappingStoreName
1552
+ * A fully-qualified path representing IdentityMappingStore resource.
1553
+ * @returns {string} A string representing the identity_mapping_store.
1554
+ */
1555
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
1556
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
1557
+ }
1492
1558
  /**
1493
1559
  * Return a fully-qualified project resource name string.
1494
1560
  *
@@ -1510,6 +1576,84 @@ class SiteSearchEngineServiceClient {
1510
1576
  matchProjectFromProjectName(projectName) {
1511
1577
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
1512
1578
  }
1579
+ /**
1580
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1581
+ *
1582
+ * @param {string} project
1583
+ * @param {string} location
1584
+ * @returns {string} Resource name string.
1585
+ */
1586
+ projectLocationCmekConfigPath(project, location) {
1587
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
1588
+ project: project,
1589
+ location: location,
1590
+ });
1591
+ }
1592
+ /**
1593
+ * Parse the project from ProjectLocationCmekConfig resource.
1594
+ *
1595
+ * @param {string} projectLocationCmekConfigName
1596
+ * A fully-qualified path representing project_location_cmekConfig resource.
1597
+ * @returns {string} A string representing the project.
1598
+ */
1599
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1600
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
1601
+ }
1602
+ /**
1603
+ * Parse the location from ProjectLocationCmekConfig resource.
1604
+ *
1605
+ * @param {string} projectLocationCmekConfigName
1606
+ * A fully-qualified path representing project_location_cmekConfig resource.
1607
+ * @returns {string} A string representing the location.
1608
+ */
1609
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1610
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
1611
+ }
1612
+ /**
1613
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1614
+ *
1615
+ * @param {string} project
1616
+ * @param {string} location
1617
+ * @param {string} cmek_config
1618
+ * @returns {string} Resource name string.
1619
+ */
1620
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
1621
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
1622
+ project: project,
1623
+ location: location,
1624
+ cmek_config: cmekConfig,
1625
+ });
1626
+ }
1627
+ /**
1628
+ * Parse the project from ProjectLocationCmekConfigs resource.
1629
+ *
1630
+ * @param {string} projectLocationCmekConfigsName
1631
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1632
+ * @returns {string} A string representing the project.
1633
+ */
1634
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1635
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
1636
+ }
1637
+ /**
1638
+ * Parse the location from ProjectLocationCmekConfigs resource.
1639
+ *
1640
+ * @param {string} projectLocationCmekConfigsName
1641
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1642
+ * @returns {string} A string representing the location.
1643
+ */
1644
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1645
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1646
+ }
1647
+ /**
1648
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1649
+ *
1650
+ * @param {string} projectLocationCmekConfigsName
1651
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1652
+ * @returns {string} A string representing the cmek_config.
1653
+ */
1654
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1655
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1656
+ }
1513
1657
  /**
1514
1658
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1515
1659
  *
@@ -1,6 +1,7 @@
1
1
  [
2
2
  "../../protos/google/cloud/discoveryengine/v1/answer.proto",
3
3
  "../../protos/google/cloud/discoveryengine/v1/chunk.proto",
4
+ "../../protos/google/cloud/discoveryengine/v1/cmek_config_service.proto",
4
5
  "../../protos/google/cloud/discoveryengine/v1/common.proto",
5
6
  "../../protos/google/cloud/discoveryengine/v1/completion.proto",
6
7
  "../../protos/google/cloud/discoveryengine/v1/completion_service.proto",
@@ -18,6 +19,8 @@
18
19
  "../../protos/google/cloud/discoveryengine/v1/engine_service.proto",
19
20
  "../../protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto",
20
21
  "../../protos/google/cloud/discoveryengine/v1/grounding.proto",
22
+ "../../protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto",
23
+ "../../protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto",
21
24
  "../../protos/google/cloud/discoveryengine/v1/import_config.proto",
22
25
  "../../protos/google/cloud/discoveryengine/v1/project.proto",
23
26
  "../../protos/google/cloud/discoveryengine/v1/project_service.proto",
@@ -35,5 +38,7 @@
35
38
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
36
39
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
37
40
  "../../protos/google/cloud/discoveryengine/v1/user_event.proto",
38
- "../../protos/google/cloud/discoveryengine/v1/user_event_service.proto"
41
+ "../../protos/google/cloud/discoveryengine/v1/user_event_service.proto",
42
+ "../../protos/google/cloud/discoveryengine/v1/user_license.proto",
43
+ "../../protos/google/cloud/discoveryengine/v1/user_license_service.proto"
39
44
  ]
@@ -546,6 +546,39 @@ export declare class UserEventServiceClient {
546
546
  * @returns {string} A string representing the engine.
547
547
  */
548
548
  matchEngineFromEngineName(engineName: string): string | number;
549
+ /**
550
+ * Return a fully-qualified identityMappingStore resource name string.
551
+ *
552
+ * @param {string} project
553
+ * @param {string} location
554
+ * @param {string} identity_mapping_store
555
+ * @returns {string} Resource name string.
556
+ */
557
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
558
+ /**
559
+ * Parse the project from IdentityMappingStore resource.
560
+ *
561
+ * @param {string} identityMappingStoreName
562
+ * A fully-qualified path representing IdentityMappingStore resource.
563
+ * @returns {string} A string representing the project.
564
+ */
565
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
566
+ /**
567
+ * Parse the location from IdentityMappingStore resource.
568
+ *
569
+ * @param {string} identityMappingStoreName
570
+ * A fully-qualified path representing IdentityMappingStore resource.
571
+ * @returns {string} A string representing the location.
572
+ */
573
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
574
+ /**
575
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
576
+ *
577
+ * @param {string} identityMappingStoreName
578
+ * A fully-qualified path representing IdentityMappingStore resource.
579
+ * @returns {string} A string representing the identity_mapping_store.
580
+ */
581
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
549
582
  /**
550
583
  * Return a fully-qualified project resource name string.
551
584
  *
@@ -561,6 +594,63 @@ export declare class UserEventServiceClient {
561
594
  * @returns {string} A string representing the project.
562
595
  */
563
596
  matchProjectFromProjectName(projectName: string): string | number;
597
+ /**
598
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
599
+ *
600
+ * @param {string} project
601
+ * @param {string} location
602
+ * @returns {string} Resource name string.
603
+ */
604
+ projectLocationCmekConfigPath(project: string, location: string): string;
605
+ /**
606
+ * Parse the project from ProjectLocationCmekConfig resource.
607
+ *
608
+ * @param {string} projectLocationCmekConfigName
609
+ * A fully-qualified path representing project_location_cmekConfig resource.
610
+ * @returns {string} A string representing the project.
611
+ */
612
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
613
+ /**
614
+ * Parse the location from ProjectLocationCmekConfig resource.
615
+ *
616
+ * @param {string} projectLocationCmekConfigName
617
+ * A fully-qualified path representing project_location_cmekConfig resource.
618
+ * @returns {string} A string representing the location.
619
+ */
620
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
621
+ /**
622
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
623
+ *
624
+ * @param {string} project
625
+ * @param {string} location
626
+ * @param {string} cmek_config
627
+ * @returns {string} Resource name string.
628
+ */
629
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
630
+ /**
631
+ * Parse the project from ProjectLocationCmekConfigs resource.
632
+ *
633
+ * @param {string} projectLocationCmekConfigsName
634
+ * A fully-qualified path representing project_location_cmekConfigs resource.
635
+ * @returns {string} A string representing the project.
636
+ */
637
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
638
+ /**
639
+ * Parse the location from ProjectLocationCmekConfigs resource.
640
+ *
641
+ * @param {string} projectLocationCmekConfigsName
642
+ * A fully-qualified path representing project_location_cmekConfigs resource.
643
+ * @returns {string} A string representing the location.
644
+ */
645
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
646
+ /**
647
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
648
+ *
649
+ * @param {string} projectLocationCmekConfigsName
650
+ * A fully-qualified path representing project_location_cmekConfigs resource.
651
+ * @returns {string} A string representing the cmek_config.
652
+ */
653
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
564
654
  /**
565
655
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
566
656
  *
@@ -164,7 +164,10 @@ class UserEventServiceClient {
164
164
  // Create useful helper objects for these.
165
165
  this.pathTemplates = {
166
166
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
167
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
167
168
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
169
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
170
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
168
171
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
169
172
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
170
173
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -199,7 +202,7 @@ class UserEventServiceClient {
199
202
  projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
200
203
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
201
204
  };
202
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
205
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
203
206
  // This API contains "long-running operations", which return a
204
207
  // an Operation object that allows for tracking of the operation,
205
208
  // rather than holding a request open.
@@ -209,7 +212,7 @@ class UserEventServiceClient {
209
212
  };
210
213
  if (opts.fallback) {
211
214
  lroOptions.protoJson = protoFilesRoot;
212
- lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
215
+ lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
213
216
  }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
214
217
  }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
215
218
  }];
@@ -362,6 +365,12 @@ class UserEventServiceClient {
362
365
  ?.then(([response, options, rawResponse]) => {
363
366
  this._log.info('writeUserEvent response %j', response);
364
367
  return [response, options, rawResponse];
368
+ }).catch((error) => {
369
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
370
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
371
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
372
+ }
373
+ throw error;
365
374
  });
366
375
  }
367
376
  collectUserEvent(request, optionsOrCallback, callback) {
@@ -392,6 +401,12 @@ class UserEventServiceClient {
392
401
  ?.then(([response, options, rawResponse]) => {
393
402
  this._log.info('collectUserEvent response %j', response);
394
403
  return [response, options, rawResponse];
404
+ }).catch((error) => {
405
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
406
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
407
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
408
+ }
409
+ throw error;
395
410
  });
396
411
  }
397
412
  purgeUserEvents(request, optionsOrCallback, callback) {
@@ -785,6 +800,51 @@ class UserEventServiceClient {
785
800
  matchEngineFromEngineName(engineName) {
786
801
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
787
802
  }
803
+ /**
804
+ * Return a fully-qualified identityMappingStore resource name string.
805
+ *
806
+ * @param {string} project
807
+ * @param {string} location
808
+ * @param {string} identity_mapping_store
809
+ * @returns {string} Resource name string.
810
+ */
811
+ identityMappingStorePath(project, location, identityMappingStore) {
812
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
813
+ project: project,
814
+ location: location,
815
+ identity_mapping_store: identityMappingStore,
816
+ });
817
+ }
818
+ /**
819
+ * Parse the project from IdentityMappingStore resource.
820
+ *
821
+ * @param {string} identityMappingStoreName
822
+ * A fully-qualified path representing IdentityMappingStore resource.
823
+ * @returns {string} A string representing the project.
824
+ */
825
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
826
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
827
+ }
828
+ /**
829
+ * Parse the location from IdentityMappingStore resource.
830
+ *
831
+ * @param {string} identityMappingStoreName
832
+ * A fully-qualified path representing IdentityMappingStore resource.
833
+ * @returns {string} A string representing the location.
834
+ */
835
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
836
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
837
+ }
838
+ /**
839
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
840
+ *
841
+ * @param {string} identityMappingStoreName
842
+ * A fully-qualified path representing IdentityMappingStore resource.
843
+ * @returns {string} A string representing the identity_mapping_store.
844
+ */
845
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
846
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
847
+ }
788
848
  /**
789
849
  * Return a fully-qualified project resource name string.
790
850
  *
@@ -806,6 +866,84 @@ class UserEventServiceClient {
806
866
  matchProjectFromProjectName(projectName) {
807
867
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
808
868
  }
869
+ /**
870
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
871
+ *
872
+ * @param {string} project
873
+ * @param {string} location
874
+ * @returns {string} Resource name string.
875
+ */
876
+ projectLocationCmekConfigPath(project, location) {
877
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
878
+ project: project,
879
+ location: location,
880
+ });
881
+ }
882
+ /**
883
+ * Parse the project from ProjectLocationCmekConfig resource.
884
+ *
885
+ * @param {string} projectLocationCmekConfigName
886
+ * A fully-qualified path representing project_location_cmekConfig resource.
887
+ * @returns {string} A string representing the project.
888
+ */
889
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
890
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
891
+ }
892
+ /**
893
+ * Parse the location from ProjectLocationCmekConfig resource.
894
+ *
895
+ * @param {string} projectLocationCmekConfigName
896
+ * A fully-qualified path representing project_location_cmekConfig resource.
897
+ * @returns {string} A string representing the location.
898
+ */
899
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
900
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
901
+ }
902
+ /**
903
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
904
+ *
905
+ * @param {string} project
906
+ * @param {string} location
907
+ * @param {string} cmek_config
908
+ * @returns {string} Resource name string.
909
+ */
910
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
911
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
912
+ project: project,
913
+ location: location,
914
+ cmek_config: cmekConfig,
915
+ });
916
+ }
917
+ /**
918
+ * Parse the project from ProjectLocationCmekConfigs resource.
919
+ *
920
+ * @param {string} projectLocationCmekConfigsName
921
+ * A fully-qualified path representing project_location_cmekConfigs resource.
922
+ * @returns {string} A string representing the project.
923
+ */
924
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
925
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
926
+ }
927
+ /**
928
+ * Parse the location from ProjectLocationCmekConfigs resource.
929
+ *
930
+ * @param {string} projectLocationCmekConfigsName
931
+ * A fully-qualified path representing project_location_cmekConfigs resource.
932
+ * @returns {string} A string representing the location.
933
+ */
934
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
935
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
936
+ }
937
+ /**
938
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
939
+ *
940
+ * @param {string} projectLocationCmekConfigsName
941
+ * A fully-qualified path representing project_location_cmekConfigs resource.
942
+ * @returns {string} A string representing the cmek_config.
943
+ */
944
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
945
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
946
+ }
809
947
  /**
810
948
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
811
949
  *
@@ -1,6 +1,7 @@
1
1
  [
2
2
  "../../protos/google/cloud/discoveryengine/v1/answer.proto",
3
3
  "../../protos/google/cloud/discoveryengine/v1/chunk.proto",
4
+ "../../protos/google/cloud/discoveryengine/v1/cmek_config_service.proto",
4
5
  "../../protos/google/cloud/discoveryengine/v1/common.proto",
5
6
  "../../protos/google/cloud/discoveryengine/v1/completion.proto",
6
7
  "../../protos/google/cloud/discoveryengine/v1/completion_service.proto",
@@ -18,6 +19,8 @@
18
19
  "../../protos/google/cloud/discoveryengine/v1/engine_service.proto",
19
20
  "../../protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto",
20
21
  "../../protos/google/cloud/discoveryengine/v1/grounding.proto",
22
+ "../../protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto",
23
+ "../../protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto",
21
24
  "../../protos/google/cloud/discoveryengine/v1/import_config.proto",
22
25
  "../../protos/google/cloud/discoveryengine/v1/project.proto",
23
26
  "../../protos/google/cloud/discoveryengine/v1/project_service.proto",
@@ -35,5 +38,7 @@
35
38
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
36
39
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
37
40
  "../../protos/google/cloud/discoveryengine/v1/user_event.proto",
38
- "../../protos/google/cloud/discoveryengine/v1/user_event_service.proto"
41
+ "../../protos/google/cloud/discoveryengine/v1/user_event_service.proto",
42
+ "../../protos/google/cloud/discoveryengine/v1/user_license.proto",
43
+ "../../protos/google/cloud/discoveryengine/v1/user_license_service.proto"
39
44
  ]