@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
@@ -163,7 +163,10 @@ class RankServiceClient {
163
163
  // Create useful helper objects for these.
164
164
  this.pathTemplates = {
165
165
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
166
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
166
167
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
168
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
169
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
167
170
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
168
171
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
169
172
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -337,6 +340,12 @@ class RankServiceClient {
337
340
  ?.then(([response, options, rawResponse]) => {
338
341
  this._log.info('rank response %j', response);
339
342
  return [response, options, rawResponse];
343
+ }).catch((error) => {
344
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
345
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
346
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
347
+ }
348
+ throw error;
340
349
  });
341
350
  }
342
351
  /**
@@ -454,6 +463,51 @@ class RankServiceClient {
454
463
  matchEngineFromEngineName(engineName) {
455
464
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
456
465
  }
466
+ /**
467
+ * Return a fully-qualified identityMappingStore resource name string.
468
+ *
469
+ * @param {string} project
470
+ * @param {string} location
471
+ * @param {string} identity_mapping_store
472
+ * @returns {string} Resource name string.
473
+ */
474
+ identityMappingStorePath(project, location, identityMappingStore) {
475
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
476
+ project: project,
477
+ location: location,
478
+ identity_mapping_store: identityMappingStore,
479
+ });
480
+ }
481
+ /**
482
+ * Parse the project from IdentityMappingStore resource.
483
+ *
484
+ * @param {string} identityMappingStoreName
485
+ * A fully-qualified path representing IdentityMappingStore resource.
486
+ * @returns {string} A string representing the project.
487
+ */
488
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
489
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
490
+ }
491
+ /**
492
+ * Parse the location from IdentityMappingStore resource.
493
+ *
494
+ * @param {string} identityMappingStoreName
495
+ * A fully-qualified path representing IdentityMappingStore resource.
496
+ * @returns {string} A string representing the location.
497
+ */
498
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
499
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
500
+ }
501
+ /**
502
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
503
+ *
504
+ * @param {string} identityMappingStoreName
505
+ * A fully-qualified path representing IdentityMappingStore resource.
506
+ * @returns {string} A string representing the identity_mapping_store.
507
+ */
508
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
509
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
510
+ }
457
511
  /**
458
512
  * Return a fully-qualified project resource name string.
459
513
  *
@@ -475,6 +529,84 @@ class RankServiceClient {
475
529
  matchProjectFromProjectName(projectName) {
476
530
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
477
531
  }
532
+ /**
533
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
534
+ *
535
+ * @param {string} project
536
+ * @param {string} location
537
+ * @returns {string} Resource name string.
538
+ */
539
+ projectLocationCmekConfigPath(project, location) {
540
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
541
+ project: project,
542
+ location: location,
543
+ });
544
+ }
545
+ /**
546
+ * Parse the project from ProjectLocationCmekConfig resource.
547
+ *
548
+ * @param {string} projectLocationCmekConfigName
549
+ * A fully-qualified path representing project_location_cmekConfig resource.
550
+ * @returns {string} A string representing the project.
551
+ */
552
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
553
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
554
+ }
555
+ /**
556
+ * Parse the location from ProjectLocationCmekConfig resource.
557
+ *
558
+ * @param {string} projectLocationCmekConfigName
559
+ * A fully-qualified path representing project_location_cmekConfig resource.
560
+ * @returns {string} A string representing the location.
561
+ */
562
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
563
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
564
+ }
565
+ /**
566
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
567
+ *
568
+ * @param {string} project
569
+ * @param {string} location
570
+ * @param {string} cmek_config
571
+ * @returns {string} Resource name string.
572
+ */
573
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
574
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
575
+ project: project,
576
+ location: location,
577
+ cmek_config: cmekConfig,
578
+ });
579
+ }
580
+ /**
581
+ * Parse the project from ProjectLocationCmekConfigs resource.
582
+ *
583
+ * @param {string} projectLocationCmekConfigsName
584
+ * A fully-qualified path representing project_location_cmekConfigs resource.
585
+ * @returns {string} A string representing the project.
586
+ */
587
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
588
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
589
+ }
590
+ /**
591
+ * Parse the location from ProjectLocationCmekConfigs resource.
592
+ *
593
+ * @param {string} projectLocationCmekConfigsName
594
+ * A fully-qualified path representing project_location_cmekConfigs resource.
595
+ * @returns {string} A string representing the location.
596
+ */
597
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
598
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
599
+ }
600
+ /**
601
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
602
+ *
603
+ * @param {string} projectLocationCmekConfigsName
604
+ * A fully-qualified path representing project_location_cmekConfigs resource.
605
+ * @returns {string} A string representing the cmek_config.
606
+ */
607
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
608
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
609
+ }
478
610
  /**
479
611
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
480
612
  *
@@ -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
  ]
@@ -345,6 +345,39 @@ export declare class RecommendationServiceClient {
345
345
  * @returns {string} A string representing the engine.
346
346
  */
347
347
  matchEngineFromEngineName(engineName: string): string | number;
348
+ /**
349
+ * Return a fully-qualified identityMappingStore resource name string.
350
+ *
351
+ * @param {string} project
352
+ * @param {string} location
353
+ * @param {string} identity_mapping_store
354
+ * @returns {string} Resource name string.
355
+ */
356
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
357
+ /**
358
+ * Parse the project from IdentityMappingStore resource.
359
+ *
360
+ * @param {string} identityMappingStoreName
361
+ * A fully-qualified path representing IdentityMappingStore resource.
362
+ * @returns {string} A string representing the project.
363
+ */
364
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
365
+ /**
366
+ * Parse the location from IdentityMappingStore resource.
367
+ *
368
+ * @param {string} identityMappingStoreName
369
+ * A fully-qualified path representing IdentityMappingStore resource.
370
+ * @returns {string} A string representing the location.
371
+ */
372
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
373
+ /**
374
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
375
+ *
376
+ * @param {string} identityMappingStoreName
377
+ * A fully-qualified path representing IdentityMappingStore resource.
378
+ * @returns {string} A string representing the identity_mapping_store.
379
+ */
380
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
348
381
  /**
349
382
  * Return a fully-qualified project resource name string.
350
383
  *
@@ -360,6 +393,63 @@ export declare class RecommendationServiceClient {
360
393
  * @returns {string} A string representing the project.
361
394
  */
362
395
  matchProjectFromProjectName(projectName: string): string | number;
396
+ /**
397
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
398
+ *
399
+ * @param {string} project
400
+ * @param {string} location
401
+ * @returns {string} Resource name string.
402
+ */
403
+ projectLocationCmekConfigPath(project: string, location: string): string;
404
+ /**
405
+ * Parse the project from ProjectLocationCmekConfig resource.
406
+ *
407
+ * @param {string} projectLocationCmekConfigName
408
+ * A fully-qualified path representing project_location_cmekConfig resource.
409
+ * @returns {string} A string representing the project.
410
+ */
411
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
412
+ /**
413
+ * Parse the location from ProjectLocationCmekConfig resource.
414
+ *
415
+ * @param {string} projectLocationCmekConfigName
416
+ * A fully-qualified path representing project_location_cmekConfig resource.
417
+ * @returns {string} A string representing the location.
418
+ */
419
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
420
+ /**
421
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
422
+ *
423
+ * @param {string} project
424
+ * @param {string} location
425
+ * @param {string} cmek_config
426
+ * @returns {string} Resource name string.
427
+ */
428
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
429
+ /**
430
+ * Parse the project from ProjectLocationCmekConfigs resource.
431
+ *
432
+ * @param {string} projectLocationCmekConfigsName
433
+ * A fully-qualified path representing project_location_cmekConfigs resource.
434
+ * @returns {string} A string representing the project.
435
+ */
436
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
437
+ /**
438
+ * Parse the location from ProjectLocationCmekConfigs resource.
439
+ *
440
+ * @param {string} projectLocationCmekConfigsName
441
+ * A fully-qualified path representing project_location_cmekConfigs resource.
442
+ * @returns {string} A string representing the location.
443
+ */
444
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
445
+ /**
446
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
447
+ *
448
+ * @param {string} projectLocationCmekConfigsName
449
+ * A fully-qualified path representing project_location_cmekConfigs resource.
450
+ * @returns {string} A string representing the cmek_config.
451
+ */
452
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
363
453
  /**
364
454
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
365
455
  *
@@ -163,7 +163,10 @@ class RecommendationServiceClient {
163
163
  // Create useful helper objects for these.
164
164
  this.pathTemplates = {
165
165
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
166
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
166
167
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
168
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
169
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
167
170
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
168
171
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
169
172
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -336,6 +339,12 @@ class RecommendationServiceClient {
336
339
  ?.then(([response, options, rawResponse]) => {
337
340
  this._log.info('recommend response %j', response);
338
341
  return [response, options, rawResponse];
342
+ }).catch((error) => {
343
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
344
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
345
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
346
+ }
347
+ throw error;
339
348
  });
340
349
  }
341
350
  /**
@@ -453,6 +462,51 @@ class RecommendationServiceClient {
453
462
  matchEngineFromEngineName(engineName) {
454
463
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
455
464
  }
465
+ /**
466
+ * Return a fully-qualified identityMappingStore resource name string.
467
+ *
468
+ * @param {string} project
469
+ * @param {string} location
470
+ * @param {string} identity_mapping_store
471
+ * @returns {string} Resource name string.
472
+ */
473
+ identityMappingStorePath(project, location, identityMappingStore) {
474
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
475
+ project: project,
476
+ location: location,
477
+ identity_mapping_store: identityMappingStore,
478
+ });
479
+ }
480
+ /**
481
+ * Parse the project from IdentityMappingStore resource.
482
+ *
483
+ * @param {string} identityMappingStoreName
484
+ * A fully-qualified path representing IdentityMappingStore resource.
485
+ * @returns {string} A string representing the project.
486
+ */
487
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
488
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
489
+ }
490
+ /**
491
+ * Parse the location from IdentityMappingStore resource.
492
+ *
493
+ * @param {string} identityMappingStoreName
494
+ * A fully-qualified path representing IdentityMappingStore resource.
495
+ * @returns {string} A string representing the location.
496
+ */
497
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
498
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
499
+ }
500
+ /**
501
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
502
+ *
503
+ * @param {string} identityMappingStoreName
504
+ * A fully-qualified path representing IdentityMappingStore resource.
505
+ * @returns {string} A string representing the identity_mapping_store.
506
+ */
507
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
508
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
509
+ }
456
510
  /**
457
511
  * Return a fully-qualified project resource name string.
458
512
  *
@@ -474,6 +528,84 @@ class RecommendationServiceClient {
474
528
  matchProjectFromProjectName(projectName) {
475
529
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
476
530
  }
531
+ /**
532
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
533
+ *
534
+ * @param {string} project
535
+ * @param {string} location
536
+ * @returns {string} Resource name string.
537
+ */
538
+ projectLocationCmekConfigPath(project, location) {
539
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
540
+ project: project,
541
+ location: location,
542
+ });
543
+ }
544
+ /**
545
+ * Parse the project from ProjectLocationCmekConfig resource.
546
+ *
547
+ * @param {string} projectLocationCmekConfigName
548
+ * A fully-qualified path representing project_location_cmekConfig resource.
549
+ * @returns {string} A string representing the project.
550
+ */
551
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
552
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
553
+ }
554
+ /**
555
+ * Parse the location from ProjectLocationCmekConfig resource.
556
+ *
557
+ * @param {string} projectLocationCmekConfigName
558
+ * A fully-qualified path representing project_location_cmekConfig resource.
559
+ * @returns {string} A string representing the location.
560
+ */
561
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
562
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
563
+ }
564
+ /**
565
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
566
+ *
567
+ * @param {string} project
568
+ * @param {string} location
569
+ * @param {string} cmek_config
570
+ * @returns {string} Resource name string.
571
+ */
572
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
573
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
574
+ project: project,
575
+ location: location,
576
+ cmek_config: cmekConfig,
577
+ });
578
+ }
579
+ /**
580
+ * Parse the project from ProjectLocationCmekConfigs resource.
581
+ *
582
+ * @param {string} projectLocationCmekConfigsName
583
+ * A fully-qualified path representing project_location_cmekConfigs resource.
584
+ * @returns {string} A string representing the project.
585
+ */
586
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
587
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
588
+ }
589
+ /**
590
+ * Parse the location from ProjectLocationCmekConfigs resource.
591
+ *
592
+ * @param {string} projectLocationCmekConfigsName
593
+ * A fully-qualified path representing project_location_cmekConfigs resource.
594
+ * @returns {string} A string representing the location.
595
+ */
596
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
597
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
598
+ }
599
+ /**
600
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
601
+ *
602
+ * @param {string} projectLocationCmekConfigsName
603
+ * A fully-qualified path representing project_location_cmekConfigs resource.
604
+ * @returns {string} A string representing the cmek_config.
605
+ */
606
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
607
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
608
+ }
477
609
  /**
478
610
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
479
611
  *
@@ -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
  ]
@@ -598,6 +598,39 @@ export declare class SchemaServiceClient {
598
598
  * @returns {string} A string representing the engine.
599
599
  */
600
600
  matchEngineFromEngineName(engineName: string): string | number;
601
+ /**
602
+ * Return a fully-qualified identityMappingStore resource name string.
603
+ *
604
+ * @param {string} project
605
+ * @param {string} location
606
+ * @param {string} identity_mapping_store
607
+ * @returns {string} Resource name string.
608
+ */
609
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
610
+ /**
611
+ * Parse the project from IdentityMappingStore resource.
612
+ *
613
+ * @param {string} identityMappingStoreName
614
+ * A fully-qualified path representing IdentityMappingStore resource.
615
+ * @returns {string} A string representing the project.
616
+ */
617
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
618
+ /**
619
+ * Parse the location from IdentityMappingStore resource.
620
+ *
621
+ * @param {string} identityMappingStoreName
622
+ * A fully-qualified path representing IdentityMappingStore resource.
623
+ * @returns {string} A string representing the location.
624
+ */
625
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
626
+ /**
627
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
628
+ *
629
+ * @param {string} identityMappingStoreName
630
+ * A fully-qualified path representing IdentityMappingStore resource.
631
+ * @returns {string} A string representing the identity_mapping_store.
632
+ */
633
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
601
634
  /**
602
635
  * Return a fully-qualified project resource name string.
603
636
  *
@@ -613,6 +646,63 @@ export declare class SchemaServiceClient {
613
646
  * @returns {string} A string representing the project.
614
647
  */
615
648
  matchProjectFromProjectName(projectName: string): string | number;
649
+ /**
650
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
651
+ *
652
+ * @param {string} project
653
+ * @param {string} location
654
+ * @returns {string} Resource name string.
655
+ */
656
+ projectLocationCmekConfigPath(project: string, location: string): string;
657
+ /**
658
+ * Parse the project from ProjectLocationCmekConfig resource.
659
+ *
660
+ * @param {string} projectLocationCmekConfigName
661
+ * A fully-qualified path representing project_location_cmekConfig resource.
662
+ * @returns {string} A string representing the project.
663
+ */
664
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
665
+ /**
666
+ * Parse the location from ProjectLocationCmekConfig resource.
667
+ *
668
+ * @param {string} projectLocationCmekConfigName
669
+ * A fully-qualified path representing project_location_cmekConfig resource.
670
+ * @returns {string} A string representing the location.
671
+ */
672
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
673
+ /**
674
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
675
+ *
676
+ * @param {string} project
677
+ * @param {string} location
678
+ * @param {string} cmek_config
679
+ * @returns {string} Resource name string.
680
+ */
681
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
682
+ /**
683
+ * Parse the project from ProjectLocationCmekConfigs resource.
684
+ *
685
+ * @param {string} projectLocationCmekConfigsName
686
+ * A fully-qualified path representing project_location_cmekConfigs resource.
687
+ * @returns {string} A string representing the project.
688
+ */
689
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
690
+ /**
691
+ * Parse the location from ProjectLocationCmekConfigs resource.
692
+ *
693
+ * @param {string} projectLocationCmekConfigsName
694
+ * A fully-qualified path representing project_location_cmekConfigs resource.
695
+ * @returns {string} A string representing the location.
696
+ */
697
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
698
+ /**
699
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
700
+ *
701
+ * @param {string} projectLocationCmekConfigsName
702
+ * A fully-qualified path representing project_location_cmekConfigs resource.
703
+ * @returns {string} A string representing the cmek_config.
704
+ */
705
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
616
706
  /**
617
707
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
618
708
  *