@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
@@ -0,0 +1,42 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.discoveryengine.v1.CmekConfigService": {
4
+ "retry_codes": {
5
+ "non_idempotent": [],
6
+ "idempotent": [
7
+ "DEADLINE_EXCEEDED",
8
+ "UNAVAILABLE"
9
+ ]
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 60000,
17
+ "rpc_timeout_multiplier": 1,
18
+ "max_rpc_timeout_millis": 60000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "UpdateCmekConfig": {
24
+ "retry_codes_name": "non_idempotent",
25
+ "retry_params_name": "default"
26
+ },
27
+ "GetCmekConfig": {
28
+ "retry_codes_name": "non_idempotent",
29
+ "retry_params_name": "default"
30
+ },
31
+ "ListCmekConfigs": {
32
+ "retry_codes_name": "non_idempotent",
33
+ "retry_params_name": "default"
34
+ },
35
+ "DeleteCmekConfig": {
36
+ "retry_codes_name": "non_idempotent",
37
+ "retry_params_name": "default"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,44 @@
1
+ [
2
+ "../../protos/google/cloud/discoveryengine/v1/answer.proto",
3
+ "../../protos/google/cloud/discoveryengine/v1/chunk.proto",
4
+ "../../protos/google/cloud/discoveryengine/v1/cmek_config_service.proto",
5
+ "../../protos/google/cloud/discoveryengine/v1/common.proto",
6
+ "../../protos/google/cloud/discoveryengine/v1/completion.proto",
7
+ "../../protos/google/cloud/discoveryengine/v1/completion_service.proto",
8
+ "../../protos/google/cloud/discoveryengine/v1/control.proto",
9
+ "../../protos/google/cloud/discoveryengine/v1/control_service.proto",
10
+ "../../protos/google/cloud/discoveryengine/v1/conversation.proto",
11
+ "../../protos/google/cloud/discoveryengine/v1/conversational_search_service.proto",
12
+ "../../protos/google/cloud/discoveryengine/v1/custom_tuning_model.proto",
13
+ "../../protos/google/cloud/discoveryengine/v1/data_store.proto",
14
+ "../../protos/google/cloud/discoveryengine/v1/data_store_service.proto",
15
+ "../../protos/google/cloud/discoveryengine/v1/document.proto",
16
+ "../../protos/google/cloud/discoveryengine/v1/document_processing_config.proto",
17
+ "../../protos/google/cloud/discoveryengine/v1/document_service.proto",
18
+ "../../protos/google/cloud/discoveryengine/v1/engine.proto",
19
+ "../../protos/google/cloud/discoveryengine/v1/engine_service.proto",
20
+ "../../protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto",
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",
24
+ "../../protos/google/cloud/discoveryengine/v1/import_config.proto",
25
+ "../../protos/google/cloud/discoveryengine/v1/project.proto",
26
+ "../../protos/google/cloud/discoveryengine/v1/project_service.proto",
27
+ "../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
28
+ "../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
29
+ "../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
30
+ "../../protos/google/cloud/discoveryengine/v1/safety.proto",
31
+ "../../protos/google/cloud/discoveryengine/v1/schema.proto",
32
+ "../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
33
+ "../../protos/google/cloud/discoveryengine/v1/search_service.proto",
34
+ "../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
35
+ "../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
36
+ "../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
37
+ "../../protos/google/cloud/discoveryengine/v1/session.proto",
38
+ "../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
39
+ "../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
40
+ "../../protos/google/cloud/discoveryengine/v1/user_event.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"
44
+ ]
@@ -577,6 +577,39 @@ export declare class CompletionServiceClient {
577
577
  * @returns {string} A string representing the engine.
578
578
  */
579
579
  matchEngineFromEngineName(engineName: string): string | number;
580
+ /**
581
+ * Return a fully-qualified identityMappingStore resource name string.
582
+ *
583
+ * @param {string} project
584
+ * @param {string} location
585
+ * @param {string} identity_mapping_store
586
+ * @returns {string} Resource name string.
587
+ */
588
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
589
+ /**
590
+ * Parse the project from IdentityMappingStore resource.
591
+ *
592
+ * @param {string} identityMappingStoreName
593
+ * A fully-qualified path representing IdentityMappingStore resource.
594
+ * @returns {string} A string representing the project.
595
+ */
596
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
597
+ /**
598
+ * Parse the location from IdentityMappingStore resource.
599
+ *
600
+ * @param {string} identityMappingStoreName
601
+ * A fully-qualified path representing IdentityMappingStore resource.
602
+ * @returns {string} A string representing the location.
603
+ */
604
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
605
+ /**
606
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
607
+ *
608
+ * @param {string} identityMappingStoreName
609
+ * A fully-qualified path representing IdentityMappingStore resource.
610
+ * @returns {string} A string representing the identity_mapping_store.
611
+ */
612
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
580
613
  /**
581
614
  * Return a fully-qualified project resource name string.
582
615
  *
@@ -592,6 +625,63 @@ export declare class CompletionServiceClient {
592
625
  * @returns {string} A string representing the project.
593
626
  */
594
627
  matchProjectFromProjectName(projectName: string): string | number;
628
+ /**
629
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
630
+ *
631
+ * @param {string} project
632
+ * @param {string} location
633
+ * @returns {string} Resource name string.
634
+ */
635
+ projectLocationCmekConfigPath(project: string, location: string): string;
636
+ /**
637
+ * Parse the project from ProjectLocationCmekConfig resource.
638
+ *
639
+ * @param {string} projectLocationCmekConfigName
640
+ * A fully-qualified path representing project_location_cmekConfig resource.
641
+ * @returns {string} A string representing the project.
642
+ */
643
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
644
+ /**
645
+ * Parse the location from ProjectLocationCmekConfig resource.
646
+ *
647
+ * @param {string} projectLocationCmekConfigName
648
+ * A fully-qualified path representing project_location_cmekConfig resource.
649
+ * @returns {string} A string representing the location.
650
+ */
651
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
652
+ /**
653
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
654
+ *
655
+ * @param {string} project
656
+ * @param {string} location
657
+ * @param {string} cmek_config
658
+ * @returns {string} Resource name string.
659
+ */
660
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
661
+ /**
662
+ * Parse the project from ProjectLocationCmekConfigs resource.
663
+ *
664
+ * @param {string} projectLocationCmekConfigsName
665
+ * A fully-qualified path representing project_location_cmekConfigs resource.
666
+ * @returns {string} A string representing the project.
667
+ */
668
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
669
+ /**
670
+ * Parse the location from ProjectLocationCmekConfigs resource.
671
+ *
672
+ * @param {string} projectLocationCmekConfigsName
673
+ * A fully-qualified path representing project_location_cmekConfigs resource.
674
+ * @returns {string} A string representing the location.
675
+ */
676
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
677
+ /**
678
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
679
+ *
680
+ * @param {string} projectLocationCmekConfigsName
681
+ * A fully-qualified path representing project_location_cmekConfigs resource.
682
+ * @returns {string} A string representing the cmek_config.
683
+ */
684
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
595
685
  /**
596
686
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
597
687
  *
@@ -164,7 +164,10 @@ class CompletionServiceClient {
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 CompletionServiceClient {
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 CompletionServiceClient {
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
  }];
@@ -368,6 +371,12 @@ class CompletionServiceClient {
368
371
  ?.then(([response, options, rawResponse]) => {
369
372
  this._log.info('completeQuery response %j', response);
370
373
  return [response, options, rawResponse];
374
+ }).catch((error) => {
375
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
376
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
377
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
378
+ }
379
+ throw error;
371
380
  });
372
381
  }
373
382
  importSuggestionDenyListEntries(request, optionsOrCallback, callback) {
@@ -857,6 +866,51 @@ class CompletionServiceClient {
857
866
  matchEngineFromEngineName(engineName) {
858
867
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
859
868
  }
869
+ /**
870
+ * Return a fully-qualified identityMappingStore resource name string.
871
+ *
872
+ * @param {string} project
873
+ * @param {string} location
874
+ * @param {string} identity_mapping_store
875
+ * @returns {string} Resource name string.
876
+ */
877
+ identityMappingStorePath(project, location, identityMappingStore) {
878
+ return this.pathTemplates.identityMappingStorePathTemplate.render({
879
+ project: project,
880
+ location: location,
881
+ identity_mapping_store: identityMappingStore,
882
+ });
883
+ }
884
+ /**
885
+ * Parse the project from IdentityMappingStore resource.
886
+ *
887
+ * @param {string} identityMappingStoreName
888
+ * A fully-qualified path representing IdentityMappingStore resource.
889
+ * @returns {string} A string representing the project.
890
+ */
891
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
892
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
893
+ }
894
+ /**
895
+ * Parse the location from IdentityMappingStore resource.
896
+ *
897
+ * @param {string} identityMappingStoreName
898
+ * A fully-qualified path representing IdentityMappingStore resource.
899
+ * @returns {string} A string representing the location.
900
+ */
901
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
902
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
903
+ }
904
+ /**
905
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
906
+ *
907
+ * @param {string} identityMappingStoreName
908
+ * A fully-qualified path representing IdentityMappingStore resource.
909
+ * @returns {string} A string representing the identity_mapping_store.
910
+ */
911
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
912
+ return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
913
+ }
860
914
  /**
861
915
  * Return a fully-qualified project resource name string.
862
916
  *
@@ -878,6 +932,84 @@ class CompletionServiceClient {
878
932
  matchProjectFromProjectName(projectName) {
879
933
  return this.pathTemplates.projectPathTemplate.match(projectName).project;
880
934
  }
935
+ /**
936
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
937
+ *
938
+ * @param {string} project
939
+ * @param {string} location
940
+ * @returns {string} Resource name string.
941
+ */
942
+ projectLocationCmekConfigPath(project, location) {
943
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
944
+ project: project,
945
+ location: location,
946
+ });
947
+ }
948
+ /**
949
+ * Parse the project from ProjectLocationCmekConfig resource.
950
+ *
951
+ * @param {string} projectLocationCmekConfigName
952
+ * A fully-qualified path representing project_location_cmekConfig resource.
953
+ * @returns {string} A string representing the project.
954
+ */
955
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
956
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
957
+ }
958
+ /**
959
+ * Parse the location from ProjectLocationCmekConfig resource.
960
+ *
961
+ * @param {string} projectLocationCmekConfigName
962
+ * A fully-qualified path representing project_location_cmekConfig resource.
963
+ * @returns {string} A string representing the location.
964
+ */
965
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
966
+ return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
967
+ }
968
+ /**
969
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
970
+ *
971
+ * @param {string} project
972
+ * @param {string} location
973
+ * @param {string} cmek_config
974
+ * @returns {string} Resource name string.
975
+ */
976
+ projectLocationCmekConfigsPath(project, location, cmekConfig) {
977
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
978
+ project: project,
979
+ location: location,
980
+ cmek_config: cmekConfig,
981
+ });
982
+ }
983
+ /**
984
+ * Parse the project from ProjectLocationCmekConfigs resource.
985
+ *
986
+ * @param {string} projectLocationCmekConfigsName
987
+ * A fully-qualified path representing project_location_cmekConfigs resource.
988
+ * @returns {string} A string representing the project.
989
+ */
990
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
991
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
992
+ }
993
+ /**
994
+ * Parse the location from ProjectLocationCmekConfigs resource.
995
+ *
996
+ * @param {string} projectLocationCmekConfigsName
997
+ * A fully-qualified path representing project_location_cmekConfigs resource.
998
+ * @returns {string} A string representing the location.
999
+ */
1000
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1001
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
1002
+ }
1003
+ /**
1004
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
1005
+ *
1006
+ * @param {string} projectLocationCmekConfigsName
1007
+ * A fully-qualified path representing project_location_cmekConfigs resource.
1008
+ * @returns {string} A string representing the cmek_config.
1009
+ */
1010
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
1011
+ return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
1012
+ }
881
1013
  /**
882
1014
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
883
1015
  *
@@ -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
  ]
@@ -449,6 +449,39 @@ export declare class ControlServiceClient {
449
449
  * @returns {string} A string representing the engine.
450
450
  */
451
451
  matchEngineFromEngineName(engineName: string): string | number;
452
+ /**
453
+ * Return a fully-qualified identityMappingStore resource name string.
454
+ *
455
+ * @param {string} project
456
+ * @param {string} location
457
+ * @param {string} identity_mapping_store
458
+ * @returns {string} Resource name string.
459
+ */
460
+ identityMappingStorePath(project: string, location: string, identityMappingStore: string): string;
461
+ /**
462
+ * Parse the project from IdentityMappingStore resource.
463
+ *
464
+ * @param {string} identityMappingStoreName
465
+ * A fully-qualified path representing IdentityMappingStore resource.
466
+ * @returns {string} A string representing the project.
467
+ */
468
+ matchProjectFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
469
+ /**
470
+ * Parse the location from IdentityMappingStore resource.
471
+ *
472
+ * @param {string} identityMappingStoreName
473
+ * A fully-qualified path representing IdentityMappingStore resource.
474
+ * @returns {string} A string representing the location.
475
+ */
476
+ matchLocationFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
477
+ /**
478
+ * Parse the identity_mapping_store from IdentityMappingStore resource.
479
+ *
480
+ * @param {string} identityMappingStoreName
481
+ * A fully-qualified path representing IdentityMappingStore resource.
482
+ * @returns {string} A string representing the identity_mapping_store.
483
+ */
484
+ matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName: string): string | number;
452
485
  /**
453
486
  * Return a fully-qualified location resource name string.
454
487
  *
@@ -488,6 +521,63 @@ export declare class ControlServiceClient {
488
521
  * @returns {string} A string representing the project.
489
522
  */
490
523
  matchProjectFromProjectName(projectName: string): string | number;
524
+ /**
525
+ * Return a fully-qualified projectLocationCmekConfig resource name string.
526
+ *
527
+ * @param {string} project
528
+ * @param {string} location
529
+ * @returns {string} Resource name string.
530
+ */
531
+ projectLocationCmekConfigPath(project: string, location: string): string;
532
+ /**
533
+ * Parse the project from ProjectLocationCmekConfig resource.
534
+ *
535
+ * @param {string} projectLocationCmekConfigName
536
+ * A fully-qualified path representing project_location_cmekConfig resource.
537
+ * @returns {string} A string representing the project.
538
+ */
539
+ matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
540
+ /**
541
+ * Parse the location from ProjectLocationCmekConfig resource.
542
+ *
543
+ * @param {string} projectLocationCmekConfigName
544
+ * A fully-qualified path representing project_location_cmekConfig resource.
545
+ * @returns {string} A string representing the location.
546
+ */
547
+ matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName: string): string | number;
548
+ /**
549
+ * Return a fully-qualified projectLocationCmekConfigs resource name string.
550
+ *
551
+ * @param {string} project
552
+ * @param {string} location
553
+ * @param {string} cmek_config
554
+ * @returns {string} Resource name string.
555
+ */
556
+ projectLocationCmekConfigsPath(project: string, location: string, cmekConfig: string): string;
557
+ /**
558
+ * Parse the project from ProjectLocationCmekConfigs resource.
559
+ *
560
+ * @param {string} projectLocationCmekConfigsName
561
+ * A fully-qualified path representing project_location_cmekConfigs resource.
562
+ * @returns {string} A string representing the project.
563
+ */
564
+ matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
565
+ /**
566
+ * Parse the location from ProjectLocationCmekConfigs resource.
567
+ *
568
+ * @param {string} projectLocationCmekConfigsName
569
+ * A fully-qualified path representing project_location_cmekConfigs resource.
570
+ * @returns {string} A string representing the location.
571
+ */
572
+ matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
573
+ /**
574
+ * Parse the cmek_config from ProjectLocationCmekConfigs resource.
575
+ *
576
+ * @param {string} projectLocationCmekConfigsName
577
+ * A fully-qualified path representing project_location_cmekConfigs resource.
578
+ * @returns {string} A string representing the cmek_config.
579
+ */
580
+ matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName: string): string | number;
491
581
  /**
492
582
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
493
583
  *