@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
@@ -166,8 +166,11 @@ class ControlServiceClient {
166
166
  // Create useful helper objects for these.
167
167
  this.pathTemplates = {
168
168
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
169
+ identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
169
170
  locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
170
171
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
172
+ projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
173
+ projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
171
174
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
172
175
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
173
176
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -347,6 +350,12 @@ class ControlServiceClient {
347
350
  ?.then(([response, options, rawResponse]) => {
348
351
  this._log.info('createControl response %j', response);
349
352
  return [response, options, rawResponse];
353
+ }).catch((error) => {
354
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
355
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
356
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
357
+ }
358
+ throw error;
350
359
  });
351
360
  }
352
361
  deleteControl(request, optionsOrCallback, callback) {
@@ -377,6 +386,12 @@ class ControlServiceClient {
377
386
  ?.then(([response, options, rawResponse]) => {
378
387
  this._log.info('deleteControl response %j', response);
379
388
  return [response, options, rawResponse];
389
+ }).catch((error) => {
390
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
391
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
392
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
393
+ }
394
+ throw error;
380
395
  });
381
396
  }
382
397
  updateControl(request, optionsOrCallback, callback) {
@@ -407,6 +422,12 @@ class ControlServiceClient {
407
422
  ?.then(([response, options, rawResponse]) => {
408
423
  this._log.info('updateControl response %j', response);
409
424
  return [response, options, rawResponse];
425
+ }).catch((error) => {
426
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
427
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
428
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
429
+ }
430
+ throw error;
410
431
  });
411
432
  }
412
433
  getControl(request, optionsOrCallback, callback) {
@@ -437,6 +458,12 @@ class ControlServiceClient {
437
458
  ?.then(([response, options, rawResponse]) => {
438
459
  this._log.info('getControl response %j', response);
439
460
  return [response, options, rawResponse];
461
+ }).catch((error) => {
462
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
463
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
464
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
465
+ }
466
+ throw error;
440
467
  });
441
468
  }
442
469
  listControls(request, optionsOrCallback, callback) {
@@ -680,6 +707,51 @@ class ControlServiceClient {
680
707
  matchEngineFromEngineName(engineName) {
681
708
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
682
709
  }
710
+ /**
711
+ * Return a fully-qualified identityMappingStore resource name string.
712
+ *
713
+ * @param {string} project
714
+ * @param {string} location
715
+ * @param {string} identity_mapping_store
716
+ * @returns {string} Resource name string.
717
+ */
718
+ identityMappingStorePath(project, location, identityMappingStore) {
719
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
720
+ project: project,
721
+ location: location,
722
+ identity_mapping_store: identityMappingStore,
723
+ });
724
+ }
725
+ /**
726
+ * Parse the project from IdentityMappingStore resource.
727
+ *
728
+ * @param {string} identityMappingStoreName
729
+ * A fully-qualified path representing IdentityMappingStore resource.
730
+ * @returns {string} A string representing the project.
731
+ */
732
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
733
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
734
+ }
735
+ /**
736
+ * Parse the location from IdentityMappingStore resource.
737
+ *
738
+ * @param {string} identityMappingStoreName
739
+ * A fully-qualified path representing IdentityMappingStore resource.
740
+ * @returns {string} A string representing the location.
741
+ */
742
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
743
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
744
+ }
745
+ /**
746
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
747
+ *
748
+ * @param {string} identityMappingStoreName
749
+ * A fully-qualified path representing IdentityMappingStore resource.
750
+ * @returns {string} A string representing the identity_mapping_store.
751
+ */
752
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
753
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
754
+ }
683
755
  /**
684
756
  * Return a fully-qualified location resource name string.
685
757
  *
@@ -734,6 +806,84 @@ class ControlServiceClient {
734
806
  matchProjectFromProjectName(projectName) {
735
807
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
736
808
  }
809
+ /**
810
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
811
+ *
812
+ * @param {string} project
813
+ * @param {string} location
814
+ * @returns {string} Resource name string.
815
+ */
816
+ projectLocationCmekConfigPath(project, location) {
817
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
818
+ project: project,
819
+ location: location,
820
+ });
821
+ }
822
+ /**
823
+ * Parse the project from ProjectLocationCmekConfig resource.
824
+ *
825
+ * @param {string} projectLocationCmekConfigName
826
+ * A fully-qualified path representing project_location_cmekConfig resource.
827
+ * @returns {string} A string representing the project.
828
+ */
829
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
830
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
831
+ }
832
+ /**
833
+ * Parse the location from ProjectLocationCmekConfig resource.
834
+ *
835
+ * @param {string} projectLocationCmekConfigName
836
+ * A fully-qualified path representing project_location_cmekConfig resource.
837
+ * @returns {string} A string representing the location.
838
+ */
839
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
840
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
841
+ }
842
+ /**
843
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
844
+ *
845
+ * @param {string} project
846
+ * @param {string} location
847
+ * @param {string} cmek_config
848
+ * @returns {string} Resource name string.
849
+ */
850
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
851
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
852
+ project: project,
853
+ location: location,
854
+ cmek_config: cmekConfig,
855
+ });
856
+ }
857
+ /**
858
+ * Parse the project from ProjectLocationCmekConfigs resource.
859
+ *
860
+ * @param {string} projectLocationCmekConfigsName
861
+ * A fully-qualified path representing project_location_cmekConfigs resource.
862
+ * @returns {string} A string representing the project.
863
+ */
864
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
865
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
866
+ }
867
+ /**
868
+ * Parse the location from ProjectLocationCmekConfigs resource.
869
+ *
870
+ * @param {string} projectLocationCmekConfigsName
871
+ * A fully-qualified path representing project_location_cmekConfigs resource.
872
+ * @returns {string} A string representing the location.
873
+ */
874
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
875
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
876
+ }
877
+ /**
878
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
879
+ *
880
+ * @param {string} projectLocationCmekConfigsName
881
+ * A fully-qualified path representing project_location_cmekConfigs resource.
882
+ * @returns {string} A string representing the cmek_config.
883
+ */
884
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
885
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
886
+ }
737
887
  /**
738
888
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
739
889
  *
@@ -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
  ]
@@ -1023,6 +1023,39 @@ export declare class ConversationalSearchServiceClient {
1023
1023
  * @returns {string} A string representing the engine.
1024
1024
  */
1025
1025
  matchEngineFromEngineName(engineName: string): string | number;
1026
+ /**
1027
+ * Return a fully-qualified identityMappingStore resource name string.
1028
+ *
1029
+ * @param {string} project
1030
+ * @param {string} location
1031
+ * @param {string} identity_mapping_store
1032
+ * @returns {string} Resource name string.
1033
+ */
1034
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
1035
+ /**
1036
+ * Parse the project from IdentityMappingStore resource.
1037
+ *
1038
+ * @param {string} identityMappingStoreName
1039
+ * A fully-qualified path representing IdentityMappingStore resource.
1040
+ * @returns {string} A string representing the project.
1041
+ */
1042
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1043
+ /**
1044
+ * Parse the location from IdentityMappingStore resource.
1045
+ *
1046
+ * @param {string} identityMappingStoreName
1047
+ * A fully-qualified path representing IdentityMappingStore resource.
1048
+ * @returns {string} A string representing the location.
1049
+ */
1050
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1051
+ /**
1052
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1053
+ *
1054
+ * @param {string} identityMappingStoreName
1055
+ * A fully-qualified path representing IdentityMappingStore resource.
1056
+ * @returns {string} A string representing the identity_mapping_store.
1057
+ */
1058
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1026
1059
  /**
1027
1060
  * Return a fully-qualified project resource name string.
1028
1061
  *
@@ -1038,6 +1071,63 @@ export declare class ConversationalSearchServiceClient {
1038
1071
  * @returns {string} A string representing the project.
1039
1072
  */
1040
1073
  matchProjectFromProjectName(projectName: string): string | number;
1074
+ /**
1075
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1076
+ *
1077
+ * @param {string} project
1078
+ * @param {string} location
1079
+ * @returns {string} Resource name string.
1080
+ */
1081
+ projectLocationCmekConfigPath(project: string, location: string): string;
1082
+ /**
1083
+ * Parse the project from ProjectLocationCmekConfig resource.
1084
+ *
1085
+ * @param {string} projectLocationCmekConfigName
1086
+ * A fully-qualified path representing project_location_cmekConfig resource.
1087
+ * @returns {string} A string representing the project.
1088
+ */
1089
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
1090
+ /**
1091
+ * Parse the location from ProjectLocationCmekConfig resource.
1092
+ *
1093
+ * @param {string} projectLocationCmekConfigName
1094
+ * A fully-qualified path representing project_location_cmekConfig resource.
1095
+ * @returns {string} A string representing the location.
1096
+ */
1097
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
1098
+ /**
1099
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1100
+ *
1101
+ * @param {string} project
1102
+ * @param {string} location
1103
+ * @param {string} cmek_config
1104
+ * @returns {string} Resource name string.
1105
+ */
1106
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
1107
+ /**
1108
+ * Parse the project from ProjectLocationCmekConfigs resource.
1109
+ *
1110
+ * @param {string} projectLocationCmekConfigsName
1111
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1112
+ * @returns {string} A string representing the project.
1113
+ */
1114
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1115
+ /**
1116
+ * Parse the location from ProjectLocationCmekConfigs resource.
1117
+ *
1118
+ * @param {string} projectLocationCmekConfigsName
1119
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1120
+ * @returns {string} A string representing the location.
1121
+ */
1122
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1123
+ /**
1124
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1125
+ *
1126
+ * @param {string} projectLocationCmekConfigsName
1127
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1128
+ * @returns {string} A string representing the cmek_config.
1129
+ */
1130
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1041
1131
  /**
1042
1132
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1043
1133
  *
@@ -164,7 +164,10 @@ class ConversationalSearchServiceClient {
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}'),
@@ -358,6 +361,12 @@ class ConversationalSearchServiceClient {
358
361
  ?.then(([response, options, rawResponse]) => {
359
362
  this._log.info('converseConversation response %j', response);
360
363
  return [response, options, rawResponse];
364
+ }).catch((error) => {
365
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
366
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
367
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
368
+ }
369
+ throw error;
361
370
  });
362
371
  }
363
372
  createConversation(request, optionsOrCallback, callback) {
@@ -388,6 +397,12 @@ class ConversationalSearchServiceClient {
388
397
  ?.then(([response, options, rawResponse]) => {
389
398
  this._log.info('createConversation response %j', response);
390
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;
391
406
  });
392
407
  }
393
408
  deleteConversation(request, optionsOrCallback, callback) {
@@ -418,6 +433,12 @@ class ConversationalSearchServiceClient {
418
433
  ?.then(([response, options, rawResponse]) => {
419
434
  this._log.info('deleteConversation response %j', response);
420
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;
421
442
  });
422
443
  }
423
444
  updateConversation(request, optionsOrCallback, callback) {
@@ -448,6 +469,12 @@ class ConversationalSearchServiceClient {
448
469
  ?.then(([response, options, rawResponse]) => {
449
470
  this._log.info('updateConversation response %j', response);
450
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;
451
478
  });
452
479
  }
453
480
  getConversation(request, optionsOrCallback, callback) {
@@ -478,6 +505,12 @@ class ConversationalSearchServiceClient {
478
505
  ?.then(([response, options, rawResponse]) => {
479
506
  this._log.info('getConversation response %j', response);
480
507
  return [response, options, rawResponse];
508
+ }).catch((error) => {
509
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
510
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
511
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
512
+ }
513
+ throw error;
481
514
  });
482
515
  }
483
516
  answerQuery(request, optionsOrCallback, callback) {
@@ -508,6 +541,12 @@ class ConversationalSearchServiceClient {
508
541
  ?.then(([response, options, rawResponse]) => {
509
542
  this._log.info('answerQuery response %j', response);
510
543
  return [response, options, rawResponse];
544
+ }).catch((error) => {
545
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
546
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
547
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
548
+ }
549
+ throw error;
511
550
  });
512
551
  }
513
552
  getAnswer(request, optionsOrCallback, callback) {
@@ -538,6 +577,12 @@ class ConversationalSearchServiceClient {
538
577
  ?.then(([response, options, rawResponse]) => {
539
578
  this._log.info('getAnswer response %j', response);
540
579
  return [response, options, rawResponse];
580
+ }).catch((error) => {
581
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
582
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
583
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
584
+ }
585
+ throw error;
541
586
  });
542
587
  }
543
588
  createSession(request, optionsOrCallback, callback) {
@@ -568,6 +613,12 @@ class ConversationalSearchServiceClient {
568
613
  ?.then(([response, options, rawResponse]) => {
569
614
  this._log.info('createSession response %j', response);
570
615
  return [response, options, rawResponse];
616
+ }).catch((error) => {
617
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
618
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
619
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
620
+ }
621
+ throw error;
571
622
  });
572
623
  }
573
624
  deleteSession(request, optionsOrCallback, callback) {
@@ -598,6 +649,12 @@ class ConversationalSearchServiceClient {
598
649
  ?.then(([response, options, rawResponse]) => {
599
650
  this._log.info('deleteSession response %j', response);
600
651
  return [response, options, rawResponse];
652
+ }).catch((error) => {
653
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
654
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
655
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
656
+ }
657
+ throw error;
601
658
  });
602
659
  }
603
660
  updateSession(request, optionsOrCallback, callback) {
@@ -628,6 +685,12 @@ class ConversationalSearchServiceClient {
628
685
  ?.then(([response, options, rawResponse]) => {
629
686
  this._log.info('updateSession response %j', response);
630
687
  return [response, options, rawResponse];
688
+ }).catch((error) => {
689
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
690
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
691
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
692
+ }
693
+ throw error;
631
694
  });
632
695
  }
633
696
  getSession(request, optionsOrCallback, callback) {
@@ -658,6 +721,12 @@ class ConversationalSearchServiceClient {
658
721
  ?.then(([response, options, rawResponse]) => {
659
722
  this._log.info('getSession response %j', response);
660
723
  return [response, options, rawResponse];
724
+ }).catch((error) => {
725
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
726
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
727
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
728
+ }
729
+ throw error;
661
730
  });
662
731
  }
663
732
  /**
@@ -1176,6 +1245,51 @@ class ConversationalSearchServiceClient {
1176
1245
  matchEngineFromEngineName(engineName) {
1177
1246
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1178
1247
  }
1248
+ /**
1249
+ * Return a fully-qualified identityMappingStore resource name string.
1250
+ *
1251
+ * @param {string} project
1252
+ * @param {string} location
1253
+ * @param {string} identity_mapping_store
1254
+ * @returns {string} Resource name string.
1255
+ */
1256
+ identityMappingStorePath(project, location, identityMappingStore) {
1257
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
1258
+ project: project,
1259
+ location: location,
1260
+ identity_mapping_store: identityMappingStore,
1261
+ });
1262
+ }
1263
+ /**
1264
+ * Parse the project from IdentityMappingStore resource.
1265
+ *
1266
+ * @param {string} identityMappingStoreName
1267
+ * A fully-qualified path representing IdentityMappingStore resource.
1268
+ * @returns {string} A string representing the project.
1269
+ */
1270
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
1271
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
1272
+ }
1273
+ /**
1274
+ * Parse the location from IdentityMappingStore resource.
1275
+ *
1276
+ * @param {string} identityMappingStoreName
1277
+ * A fully-qualified path representing IdentityMappingStore resource.
1278
+ * @returns {string} A string representing the location.
1279
+ */
1280
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
1281
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
1282
+ }
1283
+ /**
1284
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1285
+ *
1286
+ * @param {string} identityMappingStoreName
1287
+ * A fully-qualified path representing IdentityMappingStore resource.
1288
+ * @returns {string} A string representing the identity_mapping_store.
1289
+ */
1290
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
1291
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
1292
+ }
1179
1293
  /**
1180
1294
  * Return a fully-qualified project resource name string.
1181
1295
  *
@@ -1197,6 +1311,84 @@ class ConversationalSearchServiceClient {
1197
1311
  matchProjectFromProjectName(projectName) {
1198
1312
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
1199
1313
  }
1314
+ /**
1315
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1316
+ *
1317
+ * @param {string} project
1318
+ * @param {string} location
1319
+ * @returns {string} Resource name string.
1320
+ */
1321
+ projectLocationCmekConfigPath(project, location) {
1322
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
1323
+ project: project,
1324
+ location: location,
1325
+ });
1326
+ }
1327
+ /**
1328
+ * Parse the project from ProjectLocationCmekConfig resource.
1329
+ *
1330
+ * @param {string} projectLocationCmekConfigName
1331
+ * A fully-qualified path representing project_location_cmekConfig resource.
1332
+ * @returns {string} A string representing the project.
1333
+ */
1334
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1335
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
1336
+ }
1337
+ /**
1338
+ * Parse the location from ProjectLocationCmekConfig resource.
1339
+ *
1340
+ * @param {string} projectLocationCmekConfigName
1341
+ * A fully-qualified path representing project_location_cmekConfig resource.
1342
+ * @returns {string} A string representing the location.
1343
+ */
1344
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
1345
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
1346
+ }
1347
+ /**
1348
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1349
+ *
1350
+ * @param {string} project
1351
+ * @param {string} location
1352
+ * @param {string} cmek_config
1353
+ * @returns {string} Resource name string.
1354
+ */
1355
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
1356
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
1357
+ project: project,
1358
+ location: location,
1359
+ cmek_config: cmekConfig,
1360
+ });
1361
+ }
1362
+ /**
1363
+ * Parse the project from ProjectLocationCmekConfigs resource.
1364
+ *
1365
+ * @param {string} projectLocationCmekConfigsName
1366
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1367
+ * @returns {string} A string representing the project.
1368
+ */
1369
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1370
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
1371
+ }
1372
+ /**
1373
+ * Parse the location from ProjectLocationCmekConfigs resource.
1374
+ *
1375
+ * @param {string} projectLocationCmekConfigsName
1376
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1377
+ * @returns {string} A string representing the location.
1378
+ */
1379
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1380
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1381
+ }
1382
+ /**
1383
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1384
+ *
1385
+ * @param {string} projectLocationCmekConfigsName
1386
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1387
+ * @returns {string} A string representing the cmek_config.
1388
+ */
1389
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1390
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1391
+ }
1200
1392
  /**
1201
1393
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1202
1394
  *
@@ -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
  ]