@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 SearchTuningServiceClient {
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 SearchTuningServiceClient {
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 SearchTuningServiceClient {
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
  }];
@@ -359,6 +362,12 @@ class SearchTuningServiceClient {
359
362
  ?.then(([response, options, rawResponse]) => {
360
363
  this._log.info('listCustomModels response %j', response);
361
364
  return [response, options, rawResponse];
365
+ }).catch((error) => {
366
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
367
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
368
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
369
+ }
370
+ throw error;
362
371
  });
363
372
  }
364
373
  trainCustomModel(request, optionsOrCallback, callback) {
@@ -704,6 +713,51 @@ class SearchTuningServiceClient {
704
713
  matchEngineFromEngineName(engineName) {
705
714
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
706
715
  }
716
+ /**
717
+ * Return a fully-qualified identityMappingStore resource name string.
718
+ *
719
+ * @param {string} project
720
+ * @param {string} location
721
+ * @param {string} identity_mapping_store
722
+ * @returns {string} Resource name string.
723
+ */
724
+ identityMappingStorePath(project, location, identityMappingStore) {
725
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
726
+ project: project,
727
+ location: location,
728
+ identity_mapping_store: identityMappingStore,
729
+ });
730
+ }
731
+ /**
732
+ * Parse the project from IdentityMappingStore resource.
733
+ *
734
+ * @param {string} identityMappingStoreName
735
+ * A fully-qualified path representing IdentityMappingStore resource.
736
+ * @returns {string} A string representing the project.
737
+ */
738
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
739
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
740
+ }
741
+ /**
742
+ * Parse the location from IdentityMappingStore resource.
743
+ *
744
+ * @param {string} identityMappingStoreName
745
+ * A fully-qualified path representing IdentityMappingStore resource.
746
+ * @returns {string} A string representing the location.
747
+ */
748
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
749
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
750
+ }
751
+ /**
752
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
753
+ *
754
+ * @param {string} identityMappingStoreName
755
+ * A fully-qualified path representing IdentityMappingStore resource.
756
+ * @returns {string} A string representing the identity_mapping_store.
757
+ */
758
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
759
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
760
+ }
707
761
  /**
708
762
  * Return a fully-qualified project resource name string.
709
763
  *
@@ -725,6 +779,84 @@ class SearchTuningServiceClient {
725
779
  matchProjectFromProjectName(projectName) {
726
780
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
727
781
  }
782
+ /**
783
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
784
+ *
785
+ * @param {string} project
786
+ * @param {string} location
787
+ * @returns {string} Resource name string.
788
+ */
789
+ projectLocationCmekConfigPath(project, location) {
790
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
791
+ project: project,
792
+ location: location,
793
+ });
794
+ }
795
+ /**
796
+ * Parse the project from ProjectLocationCmekConfig resource.
797
+ *
798
+ * @param {string} projectLocationCmekConfigName
799
+ * A fully-qualified path representing project_location_cmekConfig resource.
800
+ * @returns {string} A string representing the project.
801
+ */
802
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
803
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
804
+ }
805
+ /**
806
+ * Parse the location from ProjectLocationCmekConfig resource.
807
+ *
808
+ * @param {string} projectLocationCmekConfigName
809
+ * A fully-qualified path representing project_location_cmekConfig resource.
810
+ * @returns {string} A string representing the location.
811
+ */
812
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
813
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
814
+ }
815
+ /**
816
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
817
+ *
818
+ * @param {string} project
819
+ * @param {string} location
820
+ * @param {string} cmek_config
821
+ * @returns {string} Resource name string.
822
+ */
823
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
824
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
825
+ project: project,
826
+ location: location,
827
+ cmek_config: cmekConfig,
828
+ });
829
+ }
830
+ /**
831
+ * Parse the project from ProjectLocationCmekConfigs resource.
832
+ *
833
+ * @param {string} projectLocationCmekConfigsName
834
+ * A fully-qualified path representing project_location_cmekConfigs resource.
835
+ * @returns {string} A string representing the project.
836
+ */
837
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
838
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
839
+ }
840
+ /**
841
+ * Parse the location from ProjectLocationCmekConfigs resource.
842
+ *
843
+ * @param {string} projectLocationCmekConfigsName
844
+ * A fully-qualified path representing project_location_cmekConfigs resource.
845
+ * @returns {string} A string representing the location.
846
+ */
847
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
848
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
849
+ }
850
+ /**
851
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
852
+ *
853
+ * @param {string} projectLocationCmekConfigsName
854
+ * A fully-qualified path representing project_location_cmekConfigs resource.
855
+ * @returns {string} A string representing the cmek_config.
856
+ */
857
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
858
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
859
+ }
728
860
  /**
729
861
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
730
862
  *
@@ -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
  ]
@@ -242,6 +242,39 @@ export declare class ServingConfigServiceClient {
242
242
  * @returns {string} A string representing the engine.
243
243
  */
244
244
  matchEngineFromEngineName(engineName: string): string | number;
245
+ /**
246
+ * Return a fully-qualified identityMappingStore resource name string.
247
+ *
248
+ * @param {string} project
249
+ * @param {string} location
250
+ * @param {string} identity_mapping_store
251
+ * @returns {string} Resource name string.
252
+ */
253
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
254
+ /**
255
+ * Parse the project from IdentityMappingStore resource.
256
+ *
257
+ * @param {string} identityMappingStoreName
258
+ * A fully-qualified path representing IdentityMappingStore resource.
259
+ * @returns {string} A string representing the project.
260
+ */
261
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
262
+ /**
263
+ * Parse the location from IdentityMappingStore resource.
264
+ *
265
+ * @param {string} identityMappingStoreName
266
+ * A fully-qualified path representing IdentityMappingStore resource.
267
+ * @returns {string} A string representing the location.
268
+ */
269
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
270
+ /**
271
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
272
+ *
273
+ * @param {string} identityMappingStoreName
274
+ * A fully-qualified path representing IdentityMappingStore resource.
275
+ * @returns {string} A string representing the identity_mapping_store.
276
+ */
277
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
245
278
  /**
246
279
  * Return a fully-qualified project resource name string.
247
280
  *
@@ -257,6 +290,63 @@ export declare class ServingConfigServiceClient {
257
290
  * @returns {string} A string representing the project.
258
291
  */
259
292
  matchProjectFromProjectName(projectName: string): string | number;
293
+ /**
294
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
295
+ *
296
+ * @param {string} project
297
+ * @param {string} location
298
+ * @returns {string} Resource name string.
299
+ */
300
+ projectLocationCmekConfigPath(project: string, location: string): string;
301
+ /**
302
+ * Parse the project from ProjectLocationCmekConfig resource.
303
+ *
304
+ * @param {string} projectLocationCmekConfigName
305
+ * A fully-qualified path representing project_location_cmekConfig resource.
306
+ * @returns {string} A string representing the project.
307
+ */
308
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
309
+ /**
310
+ * Parse the location from ProjectLocationCmekConfig resource.
311
+ *
312
+ * @param {string} projectLocationCmekConfigName
313
+ * A fully-qualified path representing project_location_cmekConfig resource.
314
+ * @returns {string} A string representing the location.
315
+ */
316
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
317
+ /**
318
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
319
+ *
320
+ * @param {string} project
321
+ * @param {string} location
322
+ * @param {string} cmek_config
323
+ * @returns {string} Resource name string.
324
+ */
325
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
326
+ /**
327
+ * Parse the project from ProjectLocationCmekConfigs resource.
328
+ *
329
+ * @param {string} projectLocationCmekConfigsName
330
+ * A fully-qualified path representing project_location_cmekConfigs resource.
331
+ * @returns {string} A string representing the project.
332
+ */
333
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
334
+ /**
335
+ * Parse the location from ProjectLocationCmekConfigs resource.
336
+ *
337
+ * @param {string} projectLocationCmekConfigsName
338
+ * A fully-qualified path representing project_location_cmekConfigs resource.
339
+ * @returns {string} A string representing the location.
340
+ */
341
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
342
+ /**
343
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
344
+ *
345
+ * @param {string} projectLocationCmekConfigsName
346
+ * A fully-qualified path representing project_location_cmekConfigs resource.
347
+ * @returns {string} A string representing the cmek_config.
348
+ */
349
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
260
350
  /**
261
351
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
262
352
  *
@@ -164,7 +164,10 @@ class ServingConfigServiceClient {
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}'),
@@ -337,6 +340,12 @@ class ServingConfigServiceClient {
337
340
  ?.then(([response, options, rawResponse]) => {
338
341
  this._log.info('updateServingConfig 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 ServingConfigServiceClient {
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 ServingConfigServiceClient {
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
  ]
@@ -1083,6 +1083,39 @@ export declare class SiteSearchEngineServiceClient {
1083
1083
  * @returns {string} A string representing the engine.
1084
1084
  */
1085
1085
  matchEngineFromEngineName(engineName: string): string | number;
1086
+ /**
1087
+ * Return a fully-qualified identityMappingStore resource name string.
1088
+ *
1089
+ * @param {string} project
1090
+ * @param {string} location
1091
+ * @param {string} identity_mapping_store
1092
+ * @returns {string} Resource name string.
1093
+ */
1094
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
1095
+ /**
1096
+ * Parse the project from IdentityMappingStore resource.
1097
+ *
1098
+ * @param {string} identityMappingStoreName
1099
+ * A fully-qualified path representing IdentityMappingStore resource.
1100
+ * @returns {string} A string representing the project.
1101
+ */
1102
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1103
+ /**
1104
+ * Parse the location from IdentityMappingStore resource.
1105
+ *
1106
+ * @param {string} identityMappingStoreName
1107
+ * A fully-qualified path representing IdentityMappingStore resource.
1108
+ * @returns {string} A string representing the location.
1109
+ */
1110
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1111
+ /**
1112
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
1113
+ *
1114
+ * @param {string} identityMappingStoreName
1115
+ * A fully-qualified path representing IdentityMappingStore resource.
1116
+ * @returns {string} A string representing the identity_mapping_store.
1117
+ */
1118
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
1086
1119
  /**
1087
1120
  * Return a fully-qualified project resource name string.
1088
1121
  *
@@ -1098,6 +1131,63 @@ export declare class SiteSearchEngineServiceClient {
1098
1131
  * @returns {string} A string representing the project.
1099
1132
  */
1100
1133
  matchProjectFromProjectName(projectName: string): string | number;
1134
+ /**
1135
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
1136
+ *
1137
+ * @param {string} project
1138
+ * @param {string} location
1139
+ * @returns {string} Resource name string.
1140
+ */
1141
+ projectLocationCmekConfigPath(project: string, location: string): string;
1142
+ /**
1143
+ * Parse the project from ProjectLocationCmekConfig resource.
1144
+ *
1145
+ * @param {string} projectLocationCmekConfigName
1146
+ * A fully-qualified path representing project_location_cmekConfig resource.
1147
+ * @returns {string} A string representing the project.
1148
+ */
1149
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
1150
+ /**
1151
+ * Parse the location from ProjectLocationCmekConfig resource.
1152
+ *
1153
+ * @param {string} projectLocationCmekConfigName
1154
+ * A fully-qualified path representing project_location_cmekConfig resource.
1155
+ * @returns {string} A string representing the location.
1156
+ */
1157
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
1158
+ /**
1159
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
1160
+ *
1161
+ * @param {string} project
1162
+ * @param {string} location
1163
+ * @param {string} cmek_config
1164
+ * @returns {string} Resource name string.
1165
+ */
1166
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
1167
+ /**
1168
+ * Parse the project from ProjectLocationCmekConfigs resource.
1169
+ *
1170
+ * @param {string} projectLocationCmekConfigsName
1171
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1172
+ * @returns {string} A string representing the project.
1173
+ */
1174
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1175
+ /**
1176
+ * Parse the location from ProjectLocationCmekConfigs resource.
1177
+ *
1178
+ * @param {string} projectLocationCmekConfigsName
1179
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1180
+ * @returns {string} A string representing the location.
1181
+ */
1182
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1183
+ /**
1184
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1185
+ *
1186
+ * @param {string} projectLocationCmekConfigsName
1187
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1188
+ * @returns {string} A string representing the cmek_config.
1189
+ */
1190
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
1101
1191
  /**
1102
1192
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
1103
1193
  *